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 Trf 2.1.4. 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='Trf' 575PACKAGE_TARNAME='trf' 576PACKAGE_VERSION='2.1.4' 577PACKAGE_STRING='Trf 2.1.4' 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 680zlibtcl_VERSION 681zlibtcl_BIN_DIR 682zlibtcl_SRC_DIR 683zlibtcl_LIB_FILE 684zlibtcl_LIB_SPEC 685zlibtcl_STUB_LIB_FILE 686zlibtcl_STUB_LIB_SPEC 687zlibtcl_STUB_LIB_PATH 688zlibtcl_SRC_PATH 689zlibtcl_BUILD_PATH 690CC 691CFLAGS 692LDFLAGS 693CPPFLAGS 694ac_ct_CC 695OBJEXT 696CPP 697INSTALL_PROGRAM 698INSTALL_SCRIPT 699INSTALL_DATA 700SET_MAKE 701RANLIB 702GREP 703EGREP 704MATH_LIBS 705PKG_SOURCES 706PKG_OBJECTS 707SHLIB_SUFFIX 708TCL_INCLUDES 709TCL_TOP_DIR_NATIVE 710TCL_THREADS 711SHARED_BUILD 712AR 713CELIB_DIR 714CFLAGS_DEBUG 715CFLAGS_OPTIMIZE 716CFLAGS_WARNING 717STLIB_LD 718SHLIB_LD 719SHLIB_LD_LIBS 720SHLIB_CFLAGS 721LD_LIBRARY_PATH_VAR 722CFLAGS_DEFAULT 723LDFLAGS_DEFAULT 724TCL_DBGX 725MAKE_LIB 726MAKE_SHARED_LIB 727MAKE_STATIC_LIB 728MAKE_STUB_LIB 729RANLIB_STUB 730VC_MANIFEST_EMBED_DLL 731VC_MANIFEST_EMBED_EXE 732TCLSH_PROG 733ZLIB_INCLUDE_DIR 734ZLIB_LIB_DIR 735SSL_INCLUDE_DIR 736SSL_LIB_DIR 737BZ2_INCLUDE_DIR 738BZ2_LIB_DIR 739TRF_TESTS 740MD5_LIB_FILE 741LIBOBJS 742LTLIBOBJS' 743ac_subst_files='' 744 ac_precious_vars='build_alias 745host_alias 746target_alias 747CC 748CFLAGS 749LDFLAGS 750LIBS 751CPPFLAGS 752CPP' 753 754 755# Initialize some variables set by options. 756ac_init_help= 757ac_init_version=false 758# The variables have the same names as the options, with 759# dashes changed to underlines. 760cache_file=/dev/null 761exec_prefix=NONE 762no_create= 763no_recursion= 764prefix=NONE 765program_prefix=NONE 766program_suffix=NONE 767program_transform_name=s,x,x, 768silent= 769site= 770srcdir= 771verbose= 772x_includes=NONE 773x_libraries=NONE 774 775# Installation directory options. 776# These are left unexpanded so users can "make install exec_prefix=/foo" 777# and all the variables that are supposed to be based on exec_prefix 778# by default will actually change. 779# Use braces instead of parens because sh, perl, etc. also accept them. 780# (The list follows the same order as the GNU Coding Standards.) 781bindir='${exec_prefix}/bin' 782sbindir='${exec_prefix}/sbin' 783libexecdir='${exec_prefix}/libexec' 784datarootdir='${prefix}/share' 785datadir='${datarootdir}' 786sysconfdir='${prefix}/etc' 787sharedstatedir='${prefix}/com' 788localstatedir='${prefix}/var' 789includedir='${prefix}/include' 790oldincludedir='/usr/include' 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 792infodir='${datarootdir}/info' 793htmldir='${docdir}' 794dvidir='${docdir}' 795pdfdir='${docdir}' 796psdir='${docdir}' 797libdir='${exec_prefix}/lib' 798localedir='${datarootdir}/locale' 799mandir='${datarootdir}/man' 800 801ac_prev= 802ac_dashdash= 803for ac_option 804do 805 # If the previous option needs an argument, assign it. 806 if test -n "$ac_prev"; then 807 eval $ac_prev=\$ac_option 808 ac_prev= 809 continue 810 fi 811 812 case $ac_option in 813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 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=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 879 { (exit 1); exit 1; }; } 880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 881 eval enable_$ac_feature=\$ac_optarg ;; 882 883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 885 | --exec | --exe | --ex) 886 ac_prev=exec_prefix ;; 887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 889 | --exec=* | --exe=* | --ex=*) 890 exec_prefix=$ac_optarg ;; 891 892 -gas | --gas | --ga | --g) 893 # Obsolete; use --with-gas. 894 with_gas=yes ;; 895 896 -help | --help | --hel | --he | -h) 897 ac_init_help=long ;; 898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 899 ac_init_help=recursive ;; 900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 901 ac_init_help=short ;; 902 903 -host | --host | --hos | --ho) 904 ac_prev=host_alias ;; 905 -host=* | --host=* | --hos=* | --ho=*) 906 host_alias=$ac_optarg ;; 907 908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 909 ac_prev=htmldir ;; 910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 911 | --ht=*) 912 htmldir=$ac_optarg ;; 913 914 -includedir | --includedir | --includedi | --included | --include \ 915 | --includ | --inclu | --incl | --inc) 916 ac_prev=includedir ;; 917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 918 | --includ=* | --inclu=* | --incl=* | --inc=*) 919 includedir=$ac_optarg ;; 920 921 -infodir | --infodir | --infodi | --infod | --info | --inf) 922 ac_prev=infodir ;; 923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 924 infodir=$ac_optarg ;; 925 926 -libdir | --libdir | --libdi | --libd) 927 ac_prev=libdir ;; 928 -libdir=* | --libdir=* | --libdi=* | --libd=*) 929 libdir=$ac_optarg ;; 930 931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 932 | --libexe | --libex | --libe) 933 ac_prev=libexecdir ;; 934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 935 | --libexe=* | --libex=* | --libe=*) 936 libexecdir=$ac_optarg ;; 937 938 -localedir | --localedir | --localedi | --localed | --locale) 939 ac_prev=localedir ;; 940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 941 localedir=$ac_optarg ;; 942 943 -localstatedir | --localstatedir | --localstatedi | --localstated \ 944 | --localstate | --localstat | --localsta | --localst | --locals) 945 ac_prev=localstatedir ;; 946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 948 localstatedir=$ac_optarg ;; 949 950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 951 ac_prev=mandir ;; 952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 953 mandir=$ac_optarg ;; 954 955 -nfp | --nfp | --nf) 956 # Obsolete; use --without-fp. 957 with_fp=no ;; 958 959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 960 | --no-cr | --no-c | -n) 961 no_create=yes ;; 962 963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 965 no_recursion=yes ;; 966 967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 969 | --oldin | --oldi | --old | --ol | --o) 970 ac_prev=oldincludedir ;; 971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 974 oldincludedir=$ac_optarg ;; 975 976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 977 ac_prev=prefix ;; 978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 979 prefix=$ac_optarg ;; 980 981 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 982 | --program-pre | --program-pr | --program-p) 983 ac_prev=program_prefix ;; 984 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 986 program_prefix=$ac_optarg ;; 987 988 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 989 | --program-suf | --program-su | --program-s) 990 ac_prev=program_suffix ;; 991 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 993 program_suffix=$ac_optarg ;; 994 995 -program-transform-name | --program-transform-name \ 996 | --program-transform-nam | --program-transform-na \ 997 | --program-transform-n | --program-transform- \ 998 | --program-transform | --program-transfor \ 999 | --program-transfo | --program-transf \ 1000 | --program-trans | --program-tran \ 1001 | --progr-tra | --program-tr | --program-t) 1002 ac_prev=program_transform_name ;; 1003 -program-transform-name=* | --program-transform-name=* \ 1004 | --program-transform-nam=* | --program-transform-na=* \ 1005 | --program-transform-n=* | --program-transform-=* \ 1006 | --program-transform=* | --program-transfor=* \ 1007 | --program-transfo=* | --program-transf=* \ 1008 | --program-trans=* | --program-tran=* \ 1009 | --progr-tra=* | --program-tr=* | --program-t=*) 1010 program_transform_name=$ac_optarg ;; 1011 1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1013 ac_prev=pdfdir ;; 1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1015 pdfdir=$ac_optarg ;; 1016 1017 -psdir | --psdir | --psdi | --psd | --ps) 1018 ac_prev=psdir ;; 1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1020 psdir=$ac_optarg ;; 1021 1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1023 | -silent | --silent | --silen | --sile | --sil) 1024 silent=yes ;; 1025 1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1027 ac_prev=sbindir ;; 1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1029 | --sbi=* | --sb=*) 1030 sbindir=$ac_optarg ;; 1031 1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1034 | --sharedst | --shareds | --shared | --share | --shar \ 1035 | --sha | --sh) 1036 ac_prev=sharedstatedir ;; 1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1040 | --sha=* | --sh=*) 1041 sharedstatedir=$ac_optarg ;; 1042 1043 -site | --site | --sit) 1044 ac_prev=site ;; 1045 -site=* | --site=* | --sit=*) 1046 site=$ac_optarg ;; 1047 1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1049 ac_prev=srcdir ;; 1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1051 srcdir=$ac_optarg ;; 1052 1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1054 | --syscon | --sysco | --sysc | --sys | --sy) 1055 ac_prev=sysconfdir ;; 1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1058 sysconfdir=$ac_optarg ;; 1059 1060 -target | --target | --targe | --targ | --tar | --ta | --t) 1061 ac_prev=target_alias ;; 1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1063 target_alias=$ac_optarg ;; 1064 1065 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1066 verbose=yes ;; 1067 1068 -version | --version | --versio | --versi | --vers | -V) 1069 ac_init_version=: ;; 1070 1071 -with-* | --with-*) 1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1073 # Reject names that are not valid shell variable names. 1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1075 { echo "$as_me: error: invalid package name: $ac_package" >&2 1076 { (exit 1); exit 1; }; } 1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1078 eval with_$ac_package=\$ac_optarg ;; 1079 1080 -without-* | --without-*) 1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1082 # Reject names that are not valid shell variable names. 1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1084 { echo "$as_me: error: invalid package name: $ac_package" >&2 1085 { (exit 1); exit 1; }; } 1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1087 eval with_$ac_package=no ;; 1088 1089 --x) 1090 # Obsolete; use --with-x. 1091 with_x=yes ;; 1092 1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1094 | --x-incl | --x-inc | --x-in | --x-i) 1095 ac_prev=x_includes ;; 1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1098 x_includes=$ac_optarg ;; 1099 1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1102 ac_prev=x_libraries ;; 1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1105 x_libraries=$ac_optarg ;; 1106 1107 -*) { echo "$as_me: error: unrecognized option: $ac_option 1108Try \`$0 --help' for more information." >&2 1109 { (exit 1); exit 1; }; } 1110 ;; 1111 1112 *=*) 1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1114 # Reject names that are not valid shell variable names. 1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1117 { (exit 1); exit 1; }; } 1118 eval $ac_envvar=\$ac_optarg 1119 export $ac_envvar ;; 1120 1121 *) 1122 # FIXME: should be removed in autoconf 3.0. 1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1127 ;; 1128 1129 esac 1130done 1131 1132if test -n "$ac_prev"; then 1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1134 { echo "$as_me: error: missing argument to $ac_option" >&2 1135 { (exit 1); exit 1; }; } 1136fi 1137 1138# Be sure to have absolute directory names. 1139for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1140 datadir sysconfdir sharedstatedir localstatedir includedir \ 1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1142 libdir localedir mandir 1143do 1144 eval ac_val=\$$ac_var 1145 case $ac_val in 1146 [\\/$]* | ?:[\\/]* ) continue;; 1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1148 esac 1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1150 { (exit 1); exit 1; }; } 1151done 1152 1153# There might be people who depend on the old broken behavior: `$host' 1154# used to hold the argument of --host etc. 1155# FIXME: To remove some day. 1156build=$build_alias 1157host=$host_alias 1158target=$target_alias 1159 1160# FIXME: To remove some day. 1161if test "x$host_alias" != x; then 1162 if test "x$build_alias" = x; then 1163 cross_compiling=maybe 1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1165 If a cross compiler is detected then cross compile mode will be used." >&2 1166 elif test "x$build_alias" != "x$host_alias"; then 1167 cross_compiling=yes 1168 fi 1169fi 1170 1171ac_tool_prefix= 1172test -n "$host_alias" && ac_tool_prefix=$host_alias- 1173 1174test "$silent" = yes && exec 6>/dev/null 1175 1176 1177ac_pwd=`pwd` && test -n "$ac_pwd" && 1178ac_ls_di=`ls -di .` && 1179ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1180 { echo "$as_me: error: Working directory cannot be determined" >&2 1181 { (exit 1); exit 1; }; } 1182test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1183 { echo "$as_me: error: pwd does not report name of working directory" >&2 1184 { (exit 1); exit 1; }; } 1185 1186 1187# Find the source files, if location was not specified. 1188if test -z "$srcdir"; then 1189 ac_srcdir_defaulted=yes 1190 # Try the directory containing this script, then the parent directory. 1191 ac_confdir=`$as_dirname -- "$0" || 1192$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1193 X"$0" : 'X\(//\)[^/]' \| \ 1194 X"$0" : 'X\(//\)$' \| \ 1195 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1196echo X"$0" | 1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1198 s//\1/ 1199 q 1200 } 1201 /^X\(\/\/\)[^/].*/{ 1202 s//\1/ 1203 q 1204 } 1205 /^X\(\/\/\)$/{ 1206 s//\1/ 1207 q 1208 } 1209 /^X\(\/\).*/{ 1210 s//\1/ 1211 q 1212 } 1213 s/.*/./; q'` 1214 srcdir=$ac_confdir 1215 if test ! -r "$srcdir/$ac_unique_file"; then 1216 srcdir=.. 1217 fi 1218else 1219 ac_srcdir_defaulted=no 1220fi 1221if test ! -r "$srcdir/$ac_unique_file"; then 1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1224 { (exit 1); exit 1; }; } 1225fi 1226ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1227ac_abs_confdir=`( 1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1229 { (exit 1); exit 1; }; } 1230 pwd)` 1231# When building in place, set srcdir=. 1232if test "$ac_abs_confdir" = "$ac_pwd"; then 1233 srcdir=. 1234fi 1235# Remove unnecessary trailing slashes from srcdir. 1236# Double slashes in file names in object file debugging info 1237# mess up M-x gdb in Emacs. 1238case $srcdir in 1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1240esac 1241for ac_var in $ac_precious_vars; do 1242 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1243 eval ac_env_${ac_var}_value=\$${ac_var} 1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1245 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1246done 1247 1248# 1249# Report the --help message. 1250# 1251if test "$ac_init_help" = "long"; then 1252 # Omit some internal or obsolete options to make the list less imposing. 1253 # This message is too long to be a string in the A/UX 3.1 sh. 1254 cat <<_ACEOF 1255\`configure' configures Trf 2.1.4 to adapt to many kinds of systems. 1256 1257Usage: $0 [OPTION]... [VAR=VALUE]... 1258 1259To assign environment variables (e.g., CC, CFLAGS...), specify them as 1260VAR=VALUE. See below for descriptions of some of the useful variables. 1261 1262Defaults for the options are specified in brackets. 1263 1264Configuration: 1265 -h, --help display this help and exit 1266 --help=short display options specific to this package 1267 --help=recursive display the short help of all the included packages 1268 -V, --version display version information and exit 1269 -q, --quiet, --silent do not print \`checking...' messages 1270 --cache-file=FILE cache test results in FILE [disabled] 1271 -C, --config-cache alias for \`--cache-file=config.cache' 1272 -n, --no-create do not create output files 1273 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1274 1275Installation directories: 1276 --prefix=PREFIX install architecture-independent files in PREFIX 1277 [$ac_default_prefix] 1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1279 [PREFIX] 1280 1281By default, \`make install' will install all the files in 1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1283an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1284for instance \`--prefix=\$HOME'. 1285 1286For better control, use the options below. 1287 1288Fine tuning of the installation directories: 1289 --bindir=DIR user executables [EPREFIX/bin] 1290 --sbindir=DIR system admin executables [EPREFIX/sbin] 1291 --libexecdir=DIR program executables [EPREFIX/libexec] 1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1295 --libdir=DIR object code libraries [EPREFIX/lib] 1296 --includedir=DIR C header files [PREFIX/include] 1297 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1300 --infodir=DIR info documentation [DATAROOTDIR/info] 1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1302 --mandir=DIR man documentation [DATAROOTDIR/man] 1303 --docdir=DIR documentation root [DATAROOTDIR/doc/trf] 1304 --htmldir=DIR html documentation [DOCDIR] 1305 --dvidir=DIR dvi documentation [DOCDIR] 1306 --pdfdir=DIR pdf documentation [DOCDIR] 1307 --psdir=DIR ps documentation [DOCDIR] 1308_ACEOF 1309 1310 cat <<\_ACEOF 1311_ACEOF 1312fi 1313 1314if test -n "$ac_init_help"; then 1315 case $ac_init_help in 1316 short | recursive ) echo "Configuration of Trf 2.1.4:";; 1317 esac 1318 cat <<\_ACEOF 1319 1320Optional Features: 1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1323 --enable-threads build with threads 1324 --enable-shared build and link with shared libraries (default: on) 1325 --enable-64bit enable 64bit support (default: off) 1326 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1327 --disable-rpath disable rpath support (default: on) 1328 --enable-wince enable Win/CE support (where applicable) 1329 --enable-symbols build with debugging symbols (default: off) 1330 --enable-static-zlib link 'zlib' statically 1331 --enable-static-bzlib link 'bzlib' statically 1332 --enable-static-md5 link 'md5' statically 1333 --enable-trf-debug enable debugging output 1334 --enable-stream-debug enable debugging of IO streams 1335 1336Optional Packages: 1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1339 --with-tcl directory containing tcl configuration 1340 (tclConfig.sh) 1341 --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh) 1342 --with-tclinclude directory containing the public Tcl header files 1343 --with-celib=DIR use Windows/CE support library from DIR 1344 --with-zlib=DIR zlib.h resides in DIR/include, libz resides in DIR/lib 1345 --with-zlib-include-dir=DIR zlib.h resides in DIR 1346 --with-zlib-lib-dir=DIR libz resides in DIR 1347 --with-ssl=DIR md2.h/sha1.h reside in DIR/include, libcrypto resides in DIR/lib 1348 --with-ssl-include-dir=DIR md2.h/sha1.h reside in DIR 1349 --with-ssl-lib-dir=DIR libcrypto resides in DIR 1350 --with-bz2=DIR bzlib.h resides in DIR/include, libbz2 resides in DIR/lib 1351 --with-bz2-include-dir=DIR bzlib.h resides in DIR 1352 --with-bz2-lib-dir=DIR libbz2 resides in DIR 1353 1354Some influential environment variables: 1355 CC C compiler command 1356 CFLAGS C compiler flags 1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1358 nonstandard directory <lib dir> 1359 LIBS libraries to pass to the linker, e.g. -l<library> 1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1361 you have headers in a nonstandard directory <include dir> 1362 CPP C preprocessor 1363 1364Use these variables to override the choices made by `configure' or to help 1365it to find libraries and programs with nonstandard names/locations. 1366 1367_ACEOF 1368ac_status=$? 1369fi 1370 1371if test "$ac_init_help" = "recursive"; then 1372 # If there are subdirs, report their specific --help. 1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1374 test -d "$ac_dir" || continue 1375 ac_builddir=. 1376 1377case "$ac_dir" in 1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1379*) 1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1381 # A ".." for each directory in $ac_dir_suffix. 1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1383 case $ac_top_builddir_sub in 1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1386 esac ;; 1387esac 1388ac_abs_top_builddir=$ac_pwd 1389ac_abs_builddir=$ac_pwd$ac_dir_suffix 1390# for backward compatibility: 1391ac_top_builddir=$ac_top_build_prefix 1392 1393case $srcdir in 1394 .) # We are building in place. 1395 ac_srcdir=. 1396 ac_top_srcdir=$ac_top_builddir_sub 1397 ac_abs_top_srcdir=$ac_pwd ;; 1398 [\\/]* | ?:[\\/]* ) # Absolute name. 1399 ac_srcdir=$srcdir$ac_dir_suffix; 1400 ac_top_srcdir=$srcdir 1401 ac_abs_top_srcdir=$srcdir ;; 1402 *) # Relative name. 1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1404 ac_top_srcdir=$ac_top_build_prefix$srcdir 1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1406esac 1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1408 1409 cd "$ac_dir" || { ac_status=$?; continue; } 1410 # Check for guested configure. 1411 if test -f "$ac_srcdir/configure.gnu"; then 1412 echo && 1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1414 elif test -f "$ac_srcdir/configure"; then 1415 echo && 1416 $SHELL "$ac_srcdir/configure" --help=recursive 1417 else 1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1419 fi || ac_status=$? 1420 cd "$ac_pwd" || { ac_status=$?; break; } 1421 done 1422fi 1423 1424test -n "$ac_init_help" && exit $ac_status 1425if $ac_init_version; then 1426 cat <<\_ACEOF 1427Trf configure 2.1.4 1428generated by GNU Autoconf 2.61 1429 1430Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14312002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1432This configure script is free software; the Free Software Foundation 1433gives unlimited permission to copy, distribute and modify it. 1434_ACEOF 1435 exit 1436fi 1437cat >config.log <<_ACEOF 1438This file contains any messages produced by compilers while 1439running configure, to aid debugging if configure makes a mistake. 1440 1441It was created by Trf $as_me 2.1.4, which was 1442generated by GNU Autoconf 2.61. Invocation command line was 1443 1444 $ $0 $@ 1445 1446_ACEOF 1447exec 5>>config.log 1448{ 1449cat <<_ASUNAME 1450## --------- ## 1451## Platform. ## 1452## --------- ## 1453 1454hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1455uname -m = `(uname -m) 2>/dev/null || echo unknown` 1456uname -r = `(uname -r) 2>/dev/null || echo unknown` 1457uname -s = `(uname -s) 2>/dev/null || echo unknown` 1458uname -v = `(uname -v) 2>/dev/null || echo unknown` 1459 1460/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1461/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1462 1463/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1464/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1466/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1467/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1468/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1469/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1470 1471_ASUNAME 1472 1473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1474for as_dir in $PATH 1475do 1476 IFS=$as_save_IFS 1477 test -z "$as_dir" && as_dir=. 1478 echo "PATH: $as_dir" 1479done 1480IFS=$as_save_IFS 1481 1482} >&5 1483 1484cat >&5 <<_ACEOF 1485 1486 1487## ----------- ## 1488## Core tests. ## 1489## ----------- ## 1490 1491_ACEOF 1492 1493 1494# Keep a trace of the command line. 1495# Strip out --no-create and --no-recursion so they do not pile up. 1496# Strip out --silent because we don't want to record it for future runs. 1497# Also quote any args containing shell meta-characters. 1498# Make two passes to allow for proper duplicate-argument suppression. 1499ac_configure_args= 1500ac_configure_args0= 1501ac_configure_args1= 1502ac_must_keep_next=false 1503for ac_pass in 1 2 1504do 1505 for ac_arg 1506 do 1507 case $ac_arg in 1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1510 | -silent | --silent | --silen | --sile | --sil) 1511 continue ;; 1512 *\'*) 1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1514 esac 1515 case $ac_pass in 1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1517 2) 1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1519 if test $ac_must_keep_next = true; then 1520 ac_must_keep_next=false # Got value, back to normal. 1521 else 1522 case $ac_arg in 1523 *=* | --config-cache | -C | -disable-* | --disable-* \ 1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1526 | -with-* | --with-* | -without-* | --without-* | --x) 1527 case "$ac_configure_args0 " in 1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1529 esac 1530 ;; 1531 -* ) ac_must_keep_next=true ;; 1532 esac 1533 fi 1534 ac_configure_args="$ac_configure_args '$ac_arg'" 1535 ;; 1536 esac 1537 done 1538done 1539$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1540$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1541 1542# When interrupted or exit'd, cleanup temporary files, and complete 1543# config.log. We remove comments because anyway the quotes in there 1544# would cause problems or look ugly. 1545# WARNING: Use '\'' to represent an apostrophe within the trap. 1546# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1547trap 'exit_status=$? 1548 # Save into config.log some information that might help in debugging. 1549 { 1550 echo 1551 1552 cat <<\_ASBOX 1553## ---------------- ## 1554## Cache variables. ## 1555## ---------------- ## 1556_ASBOX 1557 echo 1558 # The following way of writing the cache mishandles newlines in values, 1559( 1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1561 eval ac_val=\$$ac_var 1562 case $ac_val in #( 1563 *${as_nl}*) 1564 case $ac_var in #( 1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1566echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1567 esac 1568 case $ac_var in #( 1569 _ | IFS | as_nl) ;; #( 1570 *) $as_unset $ac_var ;; 1571 esac ;; 1572 esac 1573 done 1574 (set) 2>&1 | 1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1576 *${as_nl}ac_space=\ *) 1577 sed -n \ 1578 "s/'\''/'\''\\\\'\'''\''/g; 1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1580 ;; #( 1581 *) 1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1583 ;; 1584 esac | 1585 sort 1586) 1587 echo 1588 1589 cat <<\_ASBOX 1590## ----------------- ## 1591## Output variables. ## 1592## ----------------- ## 1593_ASBOX 1594 echo 1595 for ac_var in $ac_subst_vars 1596 do 1597 eval ac_val=\$$ac_var 1598 case $ac_val in 1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1600 esac 1601 echo "$ac_var='\''$ac_val'\''" 1602 done | sort 1603 echo 1604 1605 if test -n "$ac_subst_files"; then 1606 cat <<\_ASBOX 1607## ------------------- ## 1608## File substitutions. ## 1609## ------------------- ## 1610_ASBOX 1611 echo 1612 for ac_var in $ac_subst_files 1613 do 1614 eval ac_val=\$$ac_var 1615 case $ac_val in 1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1617 esac 1618 echo "$ac_var='\''$ac_val'\''" 1619 done | sort 1620 echo 1621 fi 1622 1623 if test -s confdefs.h; then 1624 cat <<\_ASBOX 1625## ----------- ## 1626## confdefs.h. ## 1627## ----------- ## 1628_ASBOX 1629 echo 1630 cat confdefs.h 1631 echo 1632 fi 1633 test "$ac_signal" != 0 && 1634 echo "$as_me: caught signal $ac_signal" 1635 echo "$as_me: exit $exit_status" 1636 } >&5 1637 rm -f core *.core core.conftest.* && 1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1639 exit $exit_status 1640' 0 1641for ac_signal in 1 2 13 15; do 1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1643done 1644ac_signal=0 1645 1646# confdefs.h avoids OS command line length limits that DEFS can exceed. 1647rm -f -r conftest* confdefs.h 1648 1649# Predefined preprocessor variables. 1650 1651cat >>confdefs.h <<_ACEOF 1652#define PACKAGE_NAME "$PACKAGE_NAME" 1653_ACEOF 1654 1655 1656cat >>confdefs.h <<_ACEOF 1657#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1658_ACEOF 1659 1660 1661cat >>confdefs.h <<_ACEOF 1662#define PACKAGE_VERSION "$PACKAGE_VERSION" 1663_ACEOF 1664 1665 1666cat >>confdefs.h <<_ACEOF 1667#define PACKAGE_STRING "$PACKAGE_STRING" 1668_ACEOF 1669 1670 1671cat >>confdefs.h <<_ACEOF 1672#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1673_ACEOF 1674 1675 1676# Let the site file select an alternate cache file if it wants to. 1677# Prefer explicitly selected file to automatically selected ones. 1678if test -n "$CONFIG_SITE"; then 1679 set x "$CONFIG_SITE" 1680elif test "x$prefix" != xNONE; then 1681 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1682else 1683 set x "$ac_default_prefix/share/config.site" \ 1684 "$ac_default_prefix/etc/config.site" 1685fi 1686shift 1687for ac_site_file 1688do 1689 if test -r "$ac_site_file"; then 1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1691echo "$as_me: loading site script $ac_site_file" >&6;} 1692 sed 's/^/| /' "$ac_site_file" >&5 1693 . "$ac_site_file" 1694 fi 1695done 1696 1697if test -r "$cache_file"; then 1698 # Some versions of bash will fail to source /dev/null (special 1699 # files actually), so we avoid doing that. 1700 if test -f "$cache_file"; then 1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1702echo "$as_me: loading cache $cache_file" >&6;} 1703 case $cache_file in 1704 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1705 *) . "./$cache_file";; 1706 esac 1707 fi 1708else 1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1710echo "$as_me: creating cache $cache_file" >&6;} 1711 >$cache_file 1712fi 1713 1714# Check that the precious variables saved in the cache have kept the same 1715# value. 1716ac_cache_corrupted=false 1717for ac_var in $ac_precious_vars; do 1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1719 eval ac_new_set=\$ac_env_${ac_var}_set 1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1721 eval ac_new_val=\$ac_env_${ac_var}_value 1722 case $ac_old_set,$ac_new_set in 1723 set,) 1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1725echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1726 ac_cache_corrupted=: ;; 1727 ,set) 1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1729echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1730 ac_cache_corrupted=: ;; 1731 ,);; 1732 *) 1733 if test "x$ac_old_val" != "x$ac_new_val"; then 1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1735echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1737echo "$as_me: former value: $ac_old_val" >&2;} 1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1739echo "$as_me: current value: $ac_new_val" >&2;} 1740 ac_cache_corrupted=: 1741 fi;; 1742 esac 1743 # Pass precious variables to config.status. 1744 if test "$ac_new_set" = set; then 1745 case $ac_new_val in 1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1747 *) ac_arg=$ac_var=$ac_new_val ;; 1748 esac 1749 case " $ac_configure_args " in 1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1752 esac 1753 fi 1754done 1755if $ac_cache_corrupted; then 1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1757echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1759echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1760 { (exit 1); exit 1; }; } 1761fi 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787ac_ext=c 1788ac_cpp='$CPP $CPPFLAGS' 1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1791ac_compiler_gnu=$ac_cv_c_compiler_gnu 1792 1793 1794 1795 1796 # TEA extensions pass this us the version of TEA they think they 1797 # are compatible with. 1798 TEA_VERSION="3.9" 1799 1800 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1801echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1802 if test x"${PACKAGE_NAME}" = x ; then 1803 { { echo "$as_me:$LINENO: error: 1804The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1805echo "$as_me: error: 1806The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1807 { (exit 1); exit 1; }; } 1808 fi 1809 if test x"3.9" = x ; then 1810 { { echo "$as_me:$LINENO: error: 1811TEA version not specified." >&5 1812echo "$as_me: error: 1813TEA version not specified." >&2;} 1814 { (exit 1); exit 1; }; } 1815 elif test "3.9" != "${TEA_VERSION}" ; then 1816 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1817echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1818 else 1819 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1820echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1821 fi 1822 case "`uname -s`" in 1823 *win32*|*WIN32*|*MINGW32_*) 1824 # Extract the first word of "cygpath", so it can be a program name with args. 1825set dummy cygpath; ac_word=$2 1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1828if test "${ac_cv_prog_CYGPATH+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 if test -n "$CYGPATH"; then 1832 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1833else 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 test -z "$as_dir" && as_dir=. 1839 for ac_exec_ext in '' $ac_executable_extensions; do 1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1841 ac_cv_prog_CYGPATH="cygpath -w" 1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1843 break 2 1844 fi 1845done 1846done 1847IFS=$as_save_IFS 1848 1849 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1850fi 1851fi 1852CYGPATH=$ac_cv_prog_CYGPATH 1853if test -n "$CYGPATH"; then 1854 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1855echo "${ECHO_T}$CYGPATH" >&6; } 1856else 1857 { echo "$as_me:$LINENO: result: no" >&5 1858echo "${ECHO_T}no" >&6; } 1859fi 1860 1861 1862 EXEEXT=".exe" 1863 TEA_PLATFORM="windows" 1864 ;; 1865 *CYGWIN_*) 1866 CYGPATH=echo 1867 EXEEXT=".exe" 1868 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1869 ;; 1870 *) 1871 CYGPATH=echo 1872 EXEEXT="" 1873 TEA_PLATFORM="unix" 1874 ;; 1875 esac 1876 1877 # Check if exec_prefix is set. If not use fall back to prefix. 1878 # Note when adjusted, so that TEA_PREFIX can correct for this. 1879 # This is needed for recursive configures, since autoconf propagates 1880 # $prefix, but not $exec_prefix (doh!). 1881 if test x$exec_prefix = xNONE ; then 1882 exec_prefix_default=yes 1883 exec_prefix=$prefix 1884 fi 1885 1886 1887 1888 1889 # This package name must be replaced statically for AC_SUBST to work 1890 1891 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1892 1893 1894 # We AC_SUBST these here to ensure they are subst'ed, 1895 # in case the user doesn't call TEA_ADD_... 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905ac_aux_dir= 1906for ac_dir in tclconfig "$srcdir"/tclconfig; do 1907 if test -f "$ac_dir/install-sh"; then 1908 ac_aux_dir=$ac_dir 1909 ac_install_sh="$ac_aux_dir/install-sh -c" 1910 break 1911 elif test -f "$ac_dir/install.sh"; then 1912 ac_aux_dir=$ac_dir 1913 ac_install_sh="$ac_aux_dir/install.sh -c" 1914 break 1915 elif test -f "$ac_dir/shtool"; then 1916 ac_aux_dir=$ac_dir 1917 ac_install_sh="$ac_aux_dir/shtool install -c" 1918 break 1919 fi 1920done 1921if test -z "$ac_aux_dir"; then 1922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1923echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1924 { (exit 1); exit 1; }; } 1925fi 1926 1927# These three variables are undocumented and unsupported, 1928# and are intended to be withdrawn in a future Autoconf release. 1929# They can cause serious problems if a builder's source tree is in a directory 1930# whose full name contains unusual characters. 1931ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1932ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1933ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1934 1935 1936 1937#-------------------------------------------------------------------- 1938# Configure script for package 'trf', as distributed at November 20, 2001. 1939# TEA compliant. 1940#-------------------------------------------------------------------- 1941 1942#-------------------------------------------------------------------- 1943# Load the tclConfig.sh file 1944#-------------------------------------------------------------------- 1945 1946 1947 1948 # 1949 # Ok, lets find the tcl configuration 1950 # First, look for one uninstalled. 1951 # the alternative search directory is invoked by --with-tcl 1952 # 1953 1954 if test x"${no_tcl}" = x ; then 1955 # we reset no_tcl in case something fails here 1956 no_tcl=true 1957 1958# Check whether --with-tcl was given. 1959if test "${with_tcl+set}" = set; then 1960 withval=$with_tcl; with_tclconfig="${withval}" 1961fi 1962 1963 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1964echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1965 if test "${ac_cv_c_tclconfig+set}" = set; then 1966 echo $ECHO_N "(cached) $ECHO_C" >&6 1967else 1968 1969 1970 # First check to see if --with-tcl was specified. 1971 if test x"${with_tclconfig}" != x ; then 1972 case "${with_tclconfig}" in 1973 */tclConfig.sh ) 1974 if test -f "${with_tclconfig}"; then 1975 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1976echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1977 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1978 fi ;; 1979 esac 1980 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1981 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1982 else 1983 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1984echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1985 { (exit 1); exit 1; }; } 1986 fi 1987 fi 1988 1989 # then check for a private Tcl installation 1990 if test x"${ac_cv_c_tclconfig}" = x ; then 1991 for i in \ 1992 ../tcl \ 1993 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1994 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1995 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1996 ../../tcl \ 1997 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1998 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1999 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2000 ../../../tcl \ 2001 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2002 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2003 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2004 if test "${TEA_PLATFORM}" = "windows" \ 2005 -a -f "$i/win/tclConfig.sh" ; then 2006 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2007 break 2008 fi 2009 if test -f "$i/unix/tclConfig.sh" ; then 2010 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2011 break 2012 fi 2013 done 2014 fi 2015 2016 # on Darwin, check in Framework installation locations 2017 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2018 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2019 `ls -d /Library/Frameworks 2>/dev/null` \ 2020 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2021 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2022 ; do 2023 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2024 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2025 break 2026 fi 2027 done 2028 fi 2029 2030 # TEA specific: on Windows, check in common installation locations 2031 if test "${TEA_PLATFORM}" = "windows" \ 2032 -a x"${ac_cv_c_tclconfig}" = x ; then 2033 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2034 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2035 ; do 2036 if test -f "$i/tclConfig.sh" ; then 2037 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2038 break 2039 fi 2040 done 2041 fi 2042 2043 # check in a few common install locations 2044 if test x"${ac_cv_c_tclconfig}" = x ; then 2045 for i in `ls -d ${libdir} 2>/dev/null` \ 2046 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2047 `ls -d ${prefix}/lib 2>/dev/null` \ 2048 `ls -d /usr/local/lib 2>/dev/null` \ 2049 `ls -d /usr/contrib/lib 2>/dev/null` \ 2050 `ls -d /usr/lib 2>/dev/null` \ 2051 `ls -d /usr/lib64 2>/dev/null` \ 2052 ; do 2053 if test -f "$i/tclConfig.sh" ; then 2054 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2055 break 2056 fi 2057 done 2058 fi 2059 2060 # check in a few other private locations 2061 if test x"${ac_cv_c_tclconfig}" = x ; then 2062 for i in \ 2063 ${srcdir}/../tcl \ 2064 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2065 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2066 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2067 if test "${TEA_PLATFORM}" = "windows" \ 2068 -a -f "$i/win/tclConfig.sh" ; then 2069 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2070 break 2071 fi 2072 if test -f "$i/unix/tclConfig.sh" ; then 2073 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2074 break 2075 fi 2076 done 2077 fi 2078 2079fi 2080 2081 2082 if test x"${ac_cv_c_tclconfig}" = x ; then 2083 TCL_BIN_DIR="# no Tcl configs found" 2084 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2085echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2086 { (exit 1); exit 1; }; } 2087 else 2088 no_tcl= 2089 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2090 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2091echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2092 fi 2093 fi 2094 2095 2096 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2097echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2098 2099 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2100 { echo "$as_me:$LINENO: result: loading" >&5 2101echo "${ECHO_T}loading" >&6; } 2102 . "${TCL_BIN_DIR}/tclConfig.sh" 2103 else 2104 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2105echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2106 fi 2107 2108 # eval is required to do the TCL_DBGX substitution 2109 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2110 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2111 2112 # If the TCL_BIN_DIR is the build directory (not the install directory), 2113 # then set the common variable name to the value of the build variables. 2114 # For example, the variable TCL_LIB_SPEC will be set to the value 2115 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2116 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2117 # installed and uninstalled version of Tcl. 2118 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2119 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2120 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2121 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2122 elif test "`uname -s`" = "Darwin"; then 2123 # If Tcl was built as a framework, attempt to use the libraries 2124 # from the framework at the given location so that linking works 2125 # against Tcl.framework installed in an arbitrary location. 2126 case ${TCL_DEFS} in 2127 *TCL_FRAMEWORK*) 2128 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2129 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2130 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2131 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2132 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2133 break 2134 fi 2135 done 2136 fi 2137 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2138 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2139 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2140 fi 2141 ;; 2142 esac 2143 fi 2144 2145 # eval is required to do the TCL_DBGX substitution 2146 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2147 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2148 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2149 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 case "`uname -s`" in 2165 *CYGWIN_*) 2166 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2167echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2168 case ${TCL_EXTRA_CFLAGS} in 2169 *-mwin32*|*-mno-cygwin*) 2170 TEA_PLATFORM="windows" 2171 CFLAGS="$CFLAGS -mwin32" 2172 { echo "$as_me:$LINENO: result: win32" >&5 2173echo "${ECHO_T}win32" >&6; } 2174 ;; 2175 *) 2176 TEA_PLATFORM="unix" 2177 { echo "$as_me:$LINENO: result: unix" >&5 2178echo "${ECHO_T}unix" >&6; } 2179 ;; 2180 esac 2181 EXEEXT=".exe" 2182 ;; 2183 *) 2184 ;; 2185 esac 2186 2187 # Do this here as we have fully defined TEA_PLATFORM now 2188 if test "${TEA_PLATFORM}" = "windows" ; then 2189 # The BUILD_$pkg is to define the correct extern storage class 2190 # handling when making this package 2191 2192cat >>confdefs.h <<_ACEOF 2193#define BUILD_${PACKAGE_NAME} 2194_ACEOF 2195 2196 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2197 fi 2198 2199 # TEA specific: 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 # 2210 # Ok, lets find the zlibtcl configuration 2211 # First, look for one uninstalled. 2212 # the alternative search directory is invoked by --with-zlibtcl 2213 # 2214 2215 if test x"${no_zlibtcl}" = x ; then 2216 # we reset no_zlibtcl in case something fails here 2217 no_zlibtcl=true 2218 2219# Check whether --with-zlibtcl was given. 2220if test "${with_zlibtcl+set}" = set; then 2221 withval=$with_zlibtcl; with_zlibtclconfig=${withval} 2222fi 2223 2224 { echo "$as_me:$LINENO: checking for zlibtcl configuration" >&5 2225echo $ECHO_N "checking for zlibtcl configuration... $ECHO_C" >&6; } 2226 if test "${ac_cv_c_zlibtclconfig+set}" = set; then 2227 echo $ECHO_N "(cached) $ECHO_C" >&6 2228else 2229 2230 2231 # First check to see if --with-zlibtcl was specified. 2232 if test x"${with_zlibtclconfig}" != x ; then 2233 if test -f "${with_zlibtclconfig}/zlibtclConfig.sh" ; then 2234 ac_cv_c_zlibtclconfig=`(cd ${with_zlibtclconfig}; pwd)` 2235 else 2236 { { echo "$as_me:$LINENO: error: ${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" >&5 2237echo "$as_me: error: ${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" >&2;} 2238 { (exit 1); exit 1; }; } 2239 fi 2240 fi 2241 2242 # then check for a private zlibtcl installation 2243 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 2244 for i in \ 2245 ../zlibtcl \ 2246 `ls -dr ../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2247 ../../zlibtcl \ 2248 `ls -dr ../../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2249 ../../../zlibtcl \ 2250 `ls -dr ../../../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2251 ${srcdir}/../zlibtcl \ 2252 `ls -dr ${srcdir}/../zlibtcl[8-9].[0-9]* 2>/dev/null` \ 2253 ; do 2254 if test -f "$i/zlibtclConfig.sh" ; then 2255 ac_cv_c_zlibtclconfig=`(cd $i; pwd)` 2256 break 2257 fi 2258 if test -f "$i/unix/zlibtclConfig.sh" ; then 2259 ac_cv_c_zlibtclconfig=`(cd $i/unix; pwd)` 2260 break 2261 fi 2262 done 2263 fi 2264 2265 # check in a few common install locations 2266 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 2267 for i in `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2268 `ls -d ${prefix}/lib 2>/dev/null` \ 2269 `ls -d /usr/local/lib 2>/dev/null` \ 2270 `ls -d /usr/contrib/lib 2>/dev/null` \ 2271 `ls -d /usr/lib 2>/dev/null` \ 2272 ; do 2273 if test -f "$i/zlibtclConfig.sh" ; then 2274 ac_cv_c_zlibtclconfig=`(cd $i; pwd)` 2275 break 2276 fi 2277 done 2278 fi 2279 2280fi 2281 2282 2283 if test x"${ac_cv_c_zlibtclconfig}" = x ; then 2284 zlibtcl_BIN_DIR="# no zlibtcl configs found" 2285 { echo "$as_me:$LINENO: WARNING: \"Cannot find zlibtcl configuration definitions\"" >&5 2286echo "$as_me: WARNING: \"Cannot find zlibtcl configuration definitions\"" >&2;} 2287 if test "Xoptional" != "Xoptional" ; then 2288 exit 0 2289 fi 2290 HAVE_zlibtcl_PACKAGE=0 2291 else 2292 no_zlibtcl= 2293 zlibtcl_BIN_DIR=${ac_cv_c_zlibtclconfig} 2294 { echo "$as_me:$LINENO: result: found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&5 2295echo "${ECHO_T}found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&6; } 2296 HAVE_zlibtcl_PACKAGE=1 2297 cat >>confdefs.h <<\_ACEOF 2298#define HAVE_zlibtcl_PACKAGE 1 2299_ACEOF 2300 2301 fi 2302 fi 2303 2304if test $HAVE_zlibtcl_PACKAGE -gt 0 ; then 2305 2306 { echo "$as_me:$LINENO: checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh" >&5 2307echo $ECHO_N "checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh... $ECHO_C" >&6; } 2308 2309 if test -f "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" ; then 2310 { echo "$as_me:$LINENO: result: loading" >&5 2311echo "${ECHO_T}loading" >&6; } 2312 . "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" 2313 else 2314 { echo "$as_me:$LINENO: result: file not found" >&5 2315echo "${ECHO_T}file not found" >&6; } 2316 fi 2317 2318 # 2319 # If the zlibtcl_BIN_DIR is the build directory (not the install directory), 2320 # then set the common variable name to the value of the build variables. 2321 # For example, the variable zlibtcl_LIB_SPEC will be set to the value 2322 # of zlibtcl_BUILD_LIB_SPEC. An extension should make use of zlibtcl_LIB_SPEC 2323 # instead of zlibtcl_BUILD_LIB_SPEC since it will work with both an 2324 # installed and uninstalled version of Tcl. 2325 # 2326 2327 if test -f "${zlibtcl_BIN_DIR}/Makefile" ; then 2328 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for zlibtcl" >&5 2329echo "$as_me: WARNING: Found Makefile - using build library specs for zlibtcl" >&2;} 2330 zlibtcl_LIB_SPEC=${zlibtcl_BUILD_LIB_SPEC} 2331 zlibtcl_STUB_LIB_SPEC=${zlibtcl_BUILD_STUB_LIB_SPEC} 2332 zlibtcl_STUB_LIB_PATH=${zlibtcl_BUILD_STUB_LIB_PATH} 2333 fi 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 # Allow the caller to prevent this auto-check by specifying any 2nd arg 2347 if test "x" = x; then 2348 2349 # Check both upper and lower-case variants 2350 # If a dev wanted non-stubs libs, this function could take an option 2351 # to not use _STUB in the paths below 2352 if test "x${zlibtcl_STUB_LIB_SPEC}" = x; then 2353 2354 { echo "$as_me:$LINENO: checking For ZLIBTCL_STUB library for LIBS" >&5 2355echo $ECHO_N "checking For ZLIBTCL_STUB library for LIBS... $ECHO_C" >&6; } 2356 # This simplifies the use of stub libraries by automatically adding 2357 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 2358 # but this is called before CONFIG_CFLAGS. More importantly, this adds 2359 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 2360 if test "x${ZLIBTCL_STUB_LIB_SPEC}" != "x" ; then 2361 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 2362 2363 vars="\"`${CYGPATH} ${ZLIBTCL_STUB_LIB_PATH}`\"" 2364 for i in $vars; do 2365 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2366 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2367 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2368 fi 2369 PKG_LIBS="$PKG_LIBS $i" 2370 done 2371 2372 2373 { echo "$as_me:$LINENO: result: using ZLIBTCL_STUB_LIB_PATH ${ZLIBTCL_STUB_LIB_PATH}" >&5 2374echo "${ECHO_T}using ZLIBTCL_STUB_LIB_PATH ${ZLIBTCL_STUB_LIB_PATH}" >&6; } 2375 else 2376 2377 vars="${ZLIBTCL_STUB_LIB_SPEC}" 2378 for i in $vars; do 2379 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2380 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2381 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2382 fi 2383 PKG_LIBS="$PKG_LIBS $i" 2384 done 2385 2386 2387 { echo "$as_me:$LINENO: result: using ZLIBTCL_STUB_LIB_SPEC ${ZLIBTCL_STUB_LIB_SPEC}" >&5 2388echo "${ECHO_T}using ZLIBTCL_STUB_LIB_SPEC ${ZLIBTCL_STUB_LIB_SPEC}" >&6; } 2389 fi 2390 else 2391 { echo "$as_me:$LINENO: result: file not found" >&5 2392echo "${ECHO_T}file not found" >&6; } 2393 fi 2394 2395else 2396 2397 { echo "$as_me:$LINENO: checking For zlibtcl_STUB library for LIBS" >&5 2398echo $ECHO_N "checking For zlibtcl_STUB library for LIBS... $ECHO_C" >&6; } 2399 # This simplifies the use of stub libraries by automatically adding 2400 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 2401 # but this is called before CONFIG_CFLAGS. More importantly, this adds 2402 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 2403 if test "x${zlibtcl_STUB_LIB_SPEC}" != "x" ; then 2404 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 2405 2406 vars="\"`${CYGPATH} ${zlibtcl_STUB_LIB_PATH}`\"" 2407 for i in $vars; do 2408 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2409 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2410 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2411 fi 2412 PKG_LIBS="$PKG_LIBS $i" 2413 done 2414 2415 2416 { echo "$as_me:$LINENO: result: using zlibtcl_STUB_LIB_PATH ${zlibtcl_STUB_LIB_PATH}" >&5 2417echo "${ECHO_T}using zlibtcl_STUB_LIB_PATH ${zlibtcl_STUB_LIB_PATH}" >&6; } 2418 else 2419 2420 vars="${zlibtcl_STUB_LIB_SPEC}" 2421 for i in $vars; do 2422 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 2423 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 2424 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 2425 fi 2426 PKG_LIBS="$PKG_LIBS $i" 2427 done 2428 2429 2430 { echo "$as_me:$LINENO: result: using zlibtcl_STUB_LIB_SPEC ${zlibtcl_STUB_LIB_SPEC}" >&5 2431echo "${ECHO_T}using zlibtcl_STUB_LIB_SPEC ${zlibtcl_STUB_LIB_SPEC}" >&6; } 2432 fi 2433 else 2434 { echo "$as_me:$LINENO: result: file not found" >&5 2435echo "${ECHO_T}file not found" >&6; } 2436 fi 2437 2438fi 2439 2440 2441fi 2442 2443 2444 2445 #-------------------------------------------------------------------- 2446 # Compute an absolute path to the src directory of 'zlibtcl'. We 2447 # need the special 'zlib.h' header which routes through 2448 # 'zlibtcl.h' to splice the stub definitions into the unchanged 2449 # sources of png. 2450 #-------------------------------------------------------------------- 2451 2452 case $zlibtcl_SRC_DIR in 2453 /*) zlibtcl_SRC_PATH=$zlibtcl_SRC_DIR 2454 ;; 2455 *) # SRC_DIR relative, splice with BUILD_PATH 2456 zlibtcl_SRC_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`/$zlibtcl_SRC_DIR" 2457 esac 2458 2459 zlibtcl_BUILD_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`" 2460 2461 if test "${TEA_PLATFORM}" = "windows" ; then 2462 zlibtcl_SRC_PATH="`$CYGPATH $zlibtcl_SRC_PATH`" 2463 zlibtcl_BUILD_PATH="`$CYGPATH $zlibtcl_BUILD_PATH`" 2464 fi 2465fi 2466 2467 2468 2469 2470 2471#----------------------------------------------------------------------- 2472# Handle the --prefix=... option by defaulting to what Tcl gave. 2473# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2474#----------------------------------------------------------------------- 2475 2476 2477 if test "${prefix}" = "NONE"; then 2478 prefix_default=yes 2479 if test x"${TCL_PREFIX}" != x; then 2480 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2481echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2482 prefix=${TCL_PREFIX} 2483 else 2484 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2485echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2486 prefix=/usr/local 2487 fi 2488 fi 2489 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2490 -o x"${exec_prefix_default}" = x"yes" ; then 2491 if test x"${TCL_EXEC_PREFIX}" != x; then 2492 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2493echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2494 exec_prefix=${TCL_EXEC_PREFIX} 2495 else 2496 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2497echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2498 exec_prefix=$prefix 2499 fi 2500 fi 2501 2502 2503#----------------------------------------------------------------------- 2504# Standard compiler checks. 2505# This sets up CC by using the CC env var, or looks for gcc otherwise. 2506# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2507# the basic setup necessary to compile executables. 2508#----------------------------------------------------------------------- 2509 2510 2511 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2512 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2513 2514 # If the user did not set CFLAGS, set it now to keep 2515 # the AC_PROG_CC macro from adding "-g -O2". 2516 if test "${CFLAGS+set}" != "set" ; then 2517 CFLAGS="" 2518 fi 2519 2520 ac_ext=c 2521ac_cpp='$CPP $CPPFLAGS' 2522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2524ac_compiler_gnu=$ac_cv_c_compiler_gnu 2525if test -n "$ac_tool_prefix"; then 2526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2527set dummy ${ac_tool_prefix}gcc; ac_word=$2 2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2530if test "${ac_cv_prog_CC+set}" = set; then 2531 echo $ECHO_N "(cached) $ECHO_C" >&6 2532else 2533 if test -n "$CC"; then 2534 ac_cv_prog_CC="$CC" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553CC=$ac_cv_prog_CC 2554if test -n "$CC"; then 2555 { echo "$as_me:$LINENO: result: $CC" >&5 2556echo "${ECHO_T}$CC" >&6; } 2557else 2558 { echo "$as_me:$LINENO: result: no" >&5 2559echo "${ECHO_T}no" >&6; } 2560fi 2561 2562 2563fi 2564if test -z "$ac_cv_prog_CC"; then 2565 ac_ct_CC=$CC 2566 # Extract the first word of "gcc", so it can be a program name with args. 2567set dummy gcc; ac_word=$2 2568{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2570if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2571 echo $ECHO_N "(cached) $ECHO_C" >&6 2572else 2573 if test -n "$ac_ct_CC"; then 2574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2575else 2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2577for as_dir in $PATH 2578do 2579 IFS=$as_save_IFS 2580 test -z "$as_dir" && as_dir=. 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2583 ac_cv_prog_ac_ct_CC="gcc" 2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2585 break 2 2586 fi 2587done 2588done 2589IFS=$as_save_IFS 2590 2591fi 2592fi 2593ac_ct_CC=$ac_cv_prog_ac_ct_CC 2594if test -n "$ac_ct_CC"; then 2595 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2596echo "${ECHO_T}$ac_ct_CC" >&6; } 2597else 2598 { echo "$as_me:$LINENO: result: no" >&5 2599echo "${ECHO_T}no" >&6; } 2600fi 2601 2602 if test "x$ac_ct_CC" = x; then 2603 CC="" 2604 else 2605 case $cross_compiling:$ac_tool_warned in 2606yes:) 2607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2608whose name does not start with the host triplet. If you think this 2609configuration is useful to you, please write to autoconf@gnu.org." >&5 2610echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2611whose name does not start with the host triplet. If you think this 2612configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2613ac_tool_warned=yes ;; 2614esac 2615 CC=$ac_ct_CC 2616 fi 2617else 2618 CC="$ac_cv_prog_CC" 2619fi 2620 2621if test -z "$CC"; then 2622 if test -n "$ac_tool_prefix"; then 2623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2624set dummy ${ac_tool_prefix}cc; ac_word=$2 2625{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2627if test "${ac_cv_prog_CC+set}" = set; then 2628 echo $ECHO_N "(cached) $ECHO_C" >&6 2629else 2630 if test -n "$CC"; then 2631 ac_cv_prog_CC="$CC" # Let the user override the test. 2632else 2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2634for as_dir in $PATH 2635do 2636 IFS=$as_save_IFS 2637 test -z "$as_dir" && as_dir=. 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2640 ac_cv_prog_CC="${ac_tool_prefix}cc" 2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645done 2646IFS=$as_save_IFS 2647 2648fi 2649fi 2650CC=$ac_cv_prog_CC 2651if test -n "$CC"; then 2652 { echo "$as_me:$LINENO: result: $CC" >&5 2653echo "${ECHO_T}$CC" >&6; } 2654else 2655 { echo "$as_me:$LINENO: result: no" >&5 2656echo "${ECHO_T}no" >&6; } 2657fi 2658 2659 2660 fi 2661fi 2662if test -z "$CC"; then 2663 # Extract the first word of "cc", so it can be a program name with args. 2664set dummy cc; ac_word=$2 2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2667if test "${ac_cv_prog_CC+set}" = set; then 2668 echo $ECHO_N "(cached) $ECHO_C" >&6 2669else 2670 if test -n "$CC"; then 2671 ac_cv_prog_CC="$CC" # Let the user override the test. 2672else 2673 ac_prog_rejected=no 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2682 ac_prog_rejected=yes 2683 continue 2684 fi 2685 ac_cv_prog_CC="cc" 2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689done 2690done 2691IFS=$as_save_IFS 2692 2693if test $ac_prog_rejected = yes; then 2694 # We found a bogon in the path, so make sure we never use it. 2695 set dummy $ac_cv_prog_CC 2696 shift 2697 if test $# != 0; then 2698 # We chose a different compiler from the bogus one. 2699 # However, it has the same basename, so the bogon will be chosen 2700 # first if we set CC to just the basename; use the full file name. 2701 shift 2702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2703 fi 2704fi 2705fi 2706fi 2707CC=$ac_cv_prog_CC 2708if test -n "$CC"; then 2709 { echo "$as_me:$LINENO: result: $CC" >&5 2710echo "${ECHO_T}$CC" >&6; } 2711else 2712 { echo "$as_me:$LINENO: result: no" >&5 2713echo "${ECHO_T}no" >&6; } 2714fi 2715 2716 2717fi 2718if test -z "$CC"; then 2719 if test -n "$ac_tool_prefix"; then 2720 for ac_prog in cl.exe 2721 do 2722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2723set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2724{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2726if test "${ac_cv_prog_CC+set}" = set; then 2727 echo $ECHO_N "(cached) $ECHO_C" >&6 2728else 2729 if test -n "$CC"; then 2730 ac_cv_prog_CC="$CC" # Let the user override the test. 2731else 2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2741 break 2 2742 fi 2743done 2744done 2745IFS=$as_save_IFS 2746 2747fi 2748fi 2749CC=$ac_cv_prog_CC 2750if test -n "$CC"; then 2751 { echo "$as_me:$LINENO: result: $CC" >&5 2752echo "${ECHO_T}$CC" >&6; } 2753else 2754 { echo "$as_me:$LINENO: result: no" >&5 2755echo "${ECHO_T}no" >&6; } 2756fi 2757 2758 2759 test -n "$CC" && break 2760 done 2761fi 2762if test -z "$CC"; then 2763 ac_ct_CC=$CC 2764 for ac_prog in cl.exe 2765do 2766 # Extract the first word of "$ac_prog", so it can be a program name with args. 2767set dummy $ac_prog; ac_word=$2 2768{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2770if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2771 echo $ECHO_N "(cached) $ECHO_C" >&6 2772else 2773 if test -n "$ac_ct_CC"; then 2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2783 ac_cv_prog_ac_ct_CC="$ac_prog" 2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793ac_ct_CC=$ac_cv_prog_ac_ct_CC 2794if test -n "$ac_ct_CC"; then 2795 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2796echo "${ECHO_T}$ac_ct_CC" >&6; } 2797else 2798 { echo "$as_me:$LINENO: result: no" >&5 2799echo "${ECHO_T}no" >&6; } 2800fi 2801 2802 2803 test -n "$ac_ct_CC" && break 2804done 2805 2806 if test "x$ac_ct_CC" = x; then 2807 CC="" 2808 else 2809 case $cross_compiling:$ac_tool_warned in 2810yes:) 2811{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2812whose name does not start with the host triplet. If you think this 2813configuration is useful to you, please write to autoconf@gnu.org." >&5 2814echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2815whose name does not start with the host triplet. If you think this 2816configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2817ac_tool_warned=yes ;; 2818esac 2819 CC=$ac_ct_CC 2820 fi 2821fi 2822 2823fi 2824 2825 2826test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2827See \`config.log' for more details." >&5 2828echo "$as_me: error: no acceptable C compiler found in \$PATH 2829See \`config.log' for more details." >&2;} 2830 { (exit 1); exit 1; }; } 2831 2832# Provide some information about the compiler. 2833echo "$as_me:$LINENO: checking for C compiler version" >&5 2834ac_compiler=`set X $ac_compile; echo $2` 2835{ (ac_try="$ac_compiler --version >&5" 2836case "(($ac_try" in 2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2838 *) ac_try_echo=$ac_try;; 2839esac 2840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2841 (eval "$ac_compiler --version >&5") 2>&5 2842 ac_status=$? 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } 2845{ (ac_try="$ac_compiler -v >&5" 2846case "(($ac_try" in 2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2848 *) ac_try_echo=$ac_try;; 2849esac 2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2851 (eval "$ac_compiler -v >&5") 2>&5 2852 ac_status=$? 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); } 2855{ (ac_try="$ac_compiler -V >&5" 2856case "(($ac_try" in 2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2858 *) ac_try_echo=$ac_try;; 2859esac 2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2861 (eval "$ac_compiler -V >&5") 2>&5 2862 ac_status=$? 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); } 2865 2866cat >conftest.$ac_ext <<_ACEOF 2867/* confdefs.h. */ 2868_ACEOF 2869cat confdefs.h >>conftest.$ac_ext 2870cat >>conftest.$ac_ext <<_ACEOF 2871/* end confdefs.h. */ 2872 2873int 2874main () 2875{ 2876 2877 ; 2878 return 0; 2879} 2880_ACEOF 2881ac_clean_files_save=$ac_clean_files 2882ac_clean_files="$ac_clean_files a.out a.exe b.out" 2883# Try to create an executable without -o first, disregard a.out. 2884# It will help us diagnose broken compilers, and finding out an intuition 2885# of exeext. 2886{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2887echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2888ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2889# 2890# List of possible output files, starting from the most likely. 2891# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2892# only as a last resort. b.out is created by i960 compilers. 2893ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2894# 2895# The IRIX 6 linker writes into existing files which may not be 2896# executable, retaining their permissions. Remove them first so a 2897# subsequent execution test works. 2898ac_rmfiles= 2899for ac_file in $ac_files 2900do 2901 case $ac_file in 2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2903 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2904 esac 2905done 2906rm -f $ac_rmfiles 2907 2908if { (ac_try="$ac_link_default" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_link_default") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); }; then 2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2920# in a Makefile. We should not override ac_cv_exeext if it was cached, 2921# so that the user can short-circuit this test for compilers unknown to 2922# Autoconf. 2923for ac_file in $ac_files '' 2924do 2925 test -f "$ac_file" || continue 2926 case $ac_file in 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2928 ;; 2929 [ab].out ) 2930 # We found the default executable, but exeext='' is most 2931 # certainly right. 2932 break;; 2933 *.* ) 2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2935 then :; else 2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2937 fi 2938 # We set ac_cv_exeext here because the later test for it is not 2939 # safe: cross compilers may not add the suffix if given an `-o' 2940 # argument, so we may need to know it at that point already. 2941 # Even if this section looks crufty: it has the advantage of 2942 # actually working. 2943 break;; 2944 * ) 2945 break;; 2946 esac 2947done 2948test "$ac_cv_exeext" = no && ac_cv_exeext= 2949 2950else 2951 ac_file='' 2952fi 2953 2954{ echo "$as_me:$LINENO: result: $ac_file" >&5 2955echo "${ECHO_T}$ac_file" >&6; } 2956if test -z "$ac_file"; then 2957 echo "$as_me: failed program was:" >&5 2958sed 's/^/| /' conftest.$ac_ext >&5 2959 2960{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2961See \`config.log' for more details." >&5 2962echo "$as_me: error: C compiler cannot create executables 2963See \`config.log' for more details." >&2;} 2964 { (exit 77); exit 77; }; } 2965fi 2966 2967ac_exeext=$ac_cv_exeext 2968 2969# Check that the compiler produces executables we can run. If not, either 2970# the compiler is broken, or we cross compile. 2971{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2972echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2973# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2974# If not cross compiling, check that we can run a simple program. 2975if test "$cross_compiling" != yes; then 2976 if { ac_try='./$ac_file' 2977 { (case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_try") 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; }; then 2986 cross_compiling=no 2987 else 2988 if test "$cross_compiling" = maybe; then 2989 cross_compiling=yes 2990 else 2991 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2992If you meant to cross compile, use \`--host'. 2993See \`config.log' for more details." >&5 2994echo "$as_me: error: cannot run C compiled programs. 2995If you meant to cross compile, use \`--host'. 2996See \`config.log' for more details." >&2;} 2997 { (exit 1); exit 1; }; } 2998 fi 2999 fi 3000fi 3001{ echo "$as_me:$LINENO: result: yes" >&5 3002echo "${ECHO_T}yes" >&6; } 3003 3004rm -f a.out a.exe conftest$ac_cv_exeext b.out 3005ac_clean_files=$ac_clean_files_save 3006# Check that the compiler produces executables we can run. If not, either 3007# the compiler is broken, or we cross compile. 3008{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3009echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3010{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3011echo "${ECHO_T}$cross_compiling" >&6; } 3012 3013{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3014echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3015if { (ac_try="$ac_link" 3016case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_link") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; then 3025 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3026# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3027# work properly (i.e., refer to `conftest.exe'), while it won't with 3028# `rm'. 3029for ac_file in conftest.exe conftest conftest.*; do 3030 test -f "$ac_file" || continue 3031 case $ac_file in 3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3034 break;; 3035 * ) break;; 3036 esac 3037done 3038else 3039 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3040See \`config.log' for more details." >&5 3041echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3042See \`config.log' for more details." >&2;} 3043 { (exit 1); exit 1; }; } 3044fi 3045 3046rm -f conftest$ac_cv_exeext 3047{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3048echo "${ECHO_T}$ac_cv_exeext" >&6; } 3049 3050rm -f conftest.$ac_ext 3051EXEEXT=$ac_cv_exeext 3052ac_exeext=$EXEEXT 3053{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3054echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3055if test "${ac_cv_objext+set}" = set; then 3056 echo $ECHO_N "(cached) $ECHO_C" >&6 3057else 3058 cat >conftest.$ac_ext <<_ACEOF 3059/* confdefs.h. */ 3060_ACEOF 3061cat confdefs.h >>conftest.$ac_ext 3062cat >>conftest.$ac_ext <<_ACEOF 3063/* end confdefs.h. */ 3064 3065int 3066main () 3067{ 3068 3069 ; 3070 return 0; 3071} 3072_ACEOF 3073rm -f conftest.o conftest.obj 3074if { (ac_try="$ac_compile" 3075case "(($ac_try" in 3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3077 *) ac_try_echo=$ac_try;; 3078esac 3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3080 (eval "$ac_compile") 2>&5 3081 ac_status=$? 3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3083 (exit $ac_status); }; then 3084 for ac_file in conftest.o conftest.obj conftest.*; do 3085 test -f "$ac_file" || continue; 3086 case $ac_file in 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3089 break;; 3090 esac 3091done 3092else 3093 echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3097See \`config.log' for more details." >&5 3098echo "$as_me: error: cannot compute suffix of object files: cannot compile 3099See \`config.log' for more details." >&2;} 3100 { (exit 1); exit 1; }; } 3101fi 3102 3103rm -f conftest.$ac_cv_objext conftest.$ac_ext 3104fi 3105{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3106echo "${ECHO_T}$ac_cv_objext" >&6; } 3107OBJEXT=$ac_cv_objext 3108ac_objext=$OBJEXT 3109{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3110echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3111if test "${ac_cv_c_compiler_gnu+set}" = set; then 3112 echo $ECHO_N "(cached) $ECHO_C" >&6 3113else 3114 cat >conftest.$ac_ext <<_ACEOF 3115/* confdefs.h. */ 3116_ACEOF 3117cat confdefs.h >>conftest.$ac_ext 3118cat >>conftest.$ac_ext <<_ACEOF 3119/* end confdefs.h. */ 3120 3121int 3122main () 3123{ 3124#ifndef __GNUC__ 3125 choke me 3126#endif 3127 3128 ; 3129 return 0; 3130} 3131_ACEOF 3132rm -f conftest.$ac_objext 3133if { (ac_try="$ac_compile" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3139 (eval "$ac_compile") 2>conftest.er1 3140 ac_status=$? 3141 grep -v '^ *+' conftest.er1 >conftest.err 3142 rm -f conftest.er1 3143 cat conftest.err >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); } && { 3146 test -z "$ac_c_werror_flag" || 3147 test ! -s conftest.err 3148 } && test -s conftest.$ac_objext; then 3149 ac_compiler_gnu=yes 3150else 3151 echo "$as_me: failed program was:" >&5 3152sed 's/^/| /' conftest.$ac_ext >&5 3153 3154 ac_compiler_gnu=no 3155fi 3156 3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3158ac_cv_c_compiler_gnu=$ac_compiler_gnu 3159 3160fi 3161{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3162echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3163GCC=`test $ac_compiler_gnu = yes && echo yes` 3164ac_test_CFLAGS=${CFLAGS+set} 3165ac_save_CFLAGS=$CFLAGS 3166{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3167echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3168if test "${ac_cv_prog_cc_g+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 ac_save_c_werror_flag=$ac_c_werror_flag 3172 ac_c_werror_flag=yes 3173 ac_cv_prog_cc_g=no 3174 CFLAGS="-g" 3175 cat >conftest.$ac_ext <<_ACEOF 3176/* confdefs.h. */ 3177_ACEOF 3178cat confdefs.h >>conftest.$ac_ext 3179cat >>conftest.$ac_ext <<_ACEOF 3180/* end confdefs.h. */ 3181 3182int 3183main () 3184{ 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190rm -f conftest.$ac_objext 3191if { (ac_try="$ac_compile" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3197 (eval "$ac_compile") 2>conftest.er1 3198 ac_status=$? 3199 grep -v '^ *+' conftest.er1 >conftest.err 3200 rm -f conftest.er1 3201 cat conftest.err >&5 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); } && { 3204 test -z "$ac_c_werror_flag" || 3205 test ! -s conftest.err 3206 } && test -s conftest.$ac_objext; then 3207 ac_cv_prog_cc_g=yes 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 CFLAGS="" 3213 cat >conftest.$ac_ext <<_ACEOF 3214/* confdefs.h. */ 3215_ACEOF 3216cat confdefs.h >>conftest.$ac_ext 3217cat >>conftest.$ac_ext <<_ACEOF 3218/* end confdefs.h. */ 3219 3220int 3221main () 3222{ 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228rm -f conftest.$ac_objext 3229if { (ac_try="$ac_compile" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3235 (eval "$ac_compile") 2>conftest.er1 3236 ac_status=$? 3237 grep -v '^ *+' conftest.er1 >conftest.err 3238 rm -f conftest.er1 3239 cat conftest.err >&5 3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241 (exit $ac_status); } && { 3242 test -z "$ac_c_werror_flag" || 3243 test ! -s conftest.err 3244 } && test -s conftest.$ac_objext; then 3245 : 3246else 3247 echo "$as_me: failed program was:" >&5 3248sed 's/^/| /' conftest.$ac_ext >&5 3249 3250 ac_c_werror_flag=$ac_save_c_werror_flag 3251 CFLAGS="-g" 3252 cat >conftest.$ac_ext <<_ACEOF 3253/* confdefs.h. */ 3254_ACEOF 3255cat confdefs.h >>conftest.$ac_ext 3256cat >>conftest.$ac_ext <<_ACEOF 3257/* end confdefs.h. */ 3258 3259int 3260main () 3261{ 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267rm -f conftest.$ac_objext 3268if { (ac_try="$ac_compile" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3274 (eval "$ac_compile") 2>conftest.er1 3275 ac_status=$? 3276 grep -v '^ *+' conftest.er1 >conftest.err 3277 rm -f conftest.er1 3278 cat conftest.err >&5 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); } && { 3281 test -z "$ac_c_werror_flag" || 3282 test ! -s conftest.err 3283 } && test -s conftest.$ac_objext; then 3284 ac_cv_prog_cc_g=yes 3285else 3286 echo "$as_me: failed program was:" >&5 3287sed 's/^/| /' conftest.$ac_ext >&5 3288 3289 3290fi 3291 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293fi 3294 3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3296fi 3297 3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3299 ac_c_werror_flag=$ac_save_c_werror_flag 3300fi 3301{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3302echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3303if test "$ac_test_CFLAGS" = set; then 3304 CFLAGS=$ac_save_CFLAGS 3305elif test $ac_cv_prog_cc_g = yes; then 3306 if test "$GCC" = yes; then 3307 CFLAGS="-g -O2" 3308 else 3309 CFLAGS="-g" 3310 fi 3311else 3312 if test "$GCC" = yes; then 3313 CFLAGS="-O2" 3314 else 3315 CFLAGS= 3316 fi 3317fi 3318{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3319echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3320if test "${ac_cv_prog_cc_c89+set}" = set; then 3321 echo $ECHO_N "(cached) $ECHO_C" >&6 3322else 3323 ac_cv_prog_cc_c89=no 3324ac_save_CC=$CC 3325cat >conftest.$ac_ext <<_ACEOF 3326/* confdefs.h. */ 3327_ACEOF 3328cat confdefs.h >>conftest.$ac_ext 3329cat >>conftest.$ac_ext <<_ACEOF 3330/* end confdefs.h. */ 3331#include <stdarg.h> 3332#include <stdio.h> 3333#include <sys/types.h> 3334#include <sys/stat.h> 3335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3336struct buf { int x; }; 3337FILE * (*rcsopen) (struct buf *, struct stat *, int); 3338static char *e (p, i) 3339 char **p; 3340 int i; 3341{ 3342 return p[i]; 3343} 3344static char *f (char * (*g) (char **, int), char **p, ...) 3345{ 3346 char *s; 3347 va_list v; 3348 va_start (v,p); 3349 s = g (p, va_arg (v,int)); 3350 va_end (v); 3351 return s; 3352} 3353 3354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3355 function prototypes and stuff, but not '\xHH' hex character constants. 3356 These don't provoke an error unfortunately, instead are silently treated 3357 as 'x'. The following induces an error, until -std is added to get 3358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3359 array size at least. It's necessary to write '\x00'==0 to get something 3360 that's true only with -std. */ 3361int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3362 3363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3364 inside strings and character constants. */ 3365#define FOO(x) 'x' 3366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3367 3368int test (int i, double x); 3369struct s1 {int (*f) (int a);}; 3370struct s2 {int (*f) (double a);}; 3371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3372int argc; 3373char **argv; 3374int 3375main () 3376{ 3377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3384do 3385 CC="$ac_save_CC $ac_arg" 3386 rm -f conftest.$ac_objext 3387if { (ac_try="$ac_compile" 3388case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391esac 3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3393 (eval "$ac_compile") 2>conftest.er1 3394 ac_status=$? 3395 grep -v '^ *+' conftest.er1 >conftest.err 3396 rm -f conftest.er1 3397 cat conftest.err >&5 3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3399 (exit $ac_status); } && { 3400 test -z "$ac_c_werror_flag" || 3401 test ! -s conftest.err 3402 } && test -s conftest.$ac_objext; then 3403 ac_cv_prog_cc_c89=$ac_arg 3404else 3405 echo "$as_me: failed program was:" >&5 3406sed 's/^/| /' conftest.$ac_ext >&5 3407 3408 3409fi 3410 3411rm -f core conftest.err conftest.$ac_objext 3412 test "x$ac_cv_prog_cc_c89" != "xno" && break 3413done 3414rm -f conftest.$ac_ext 3415CC=$ac_save_CC 3416 3417fi 3418# AC_CACHE_VAL 3419case "x$ac_cv_prog_cc_c89" in 3420 x) 3421 { echo "$as_me:$LINENO: result: none needed" >&5 3422echo "${ECHO_T}none needed" >&6; } ;; 3423 xno) 3424 { echo "$as_me:$LINENO: result: unsupported" >&5 3425echo "${ECHO_T}unsupported" >&6; } ;; 3426 *) 3427 CC="$CC $ac_cv_prog_cc_c89" 3428 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3429echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3430esac 3431 3432 3433ac_ext=c 3434ac_cpp='$CPP $CPPFLAGS' 3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3437ac_compiler_gnu=$ac_cv_c_compiler_gnu 3438 3439 ac_ext=c 3440ac_cpp='$CPP $CPPFLAGS' 3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3443ac_compiler_gnu=$ac_cv_c_compiler_gnu 3444{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3445echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3446# On Suns, sometimes $CPP names a directory. 3447if test -n "$CPP" && test -d "$CPP"; then 3448 CPP= 3449fi 3450if test -z "$CPP"; then 3451 if test "${ac_cv_prog_CPP+set}" = set; then 3452 echo $ECHO_N "(cached) $ECHO_C" >&6 3453else 3454 # Double quotes because CPP needs to be expanded 3455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3456 do 3457 ac_preproc_ok=false 3458for ac_c_preproc_warn_flag in '' yes 3459do 3460 # Use a header file that comes with gcc, so configuring glibc 3461 # with a fresh cross-compiler works. 3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3463 # <limits.h> exists even on freestanding compilers. 3464 # On the NeXT, cc -E runs the code through the compiler's parser, 3465 # not just through cpp. "Syntax error" is here to catch this case. 3466 cat >conftest.$ac_ext <<_ACEOF 3467/* confdefs.h. */ 3468_ACEOF 3469cat confdefs.h >>conftest.$ac_ext 3470cat >>conftest.$ac_ext <<_ACEOF 3471/* end confdefs.h. */ 3472#ifdef __STDC__ 3473# include <limits.h> 3474#else 3475# include <assert.h> 3476#endif 3477 Syntax error 3478_ACEOF 3479if { (ac_try="$ac_cpp conftest.$ac_ext" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3486 ac_status=$? 3487 grep -v '^ *+' conftest.er1 >conftest.err 3488 rm -f conftest.er1 3489 cat conftest.err >&5 3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } >/dev/null && { 3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3493 test ! -s conftest.err 3494 }; then 3495 : 3496else 3497 echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 # Broken: fails on valid input. 3501continue 3502fi 3503 3504rm -f conftest.err conftest.$ac_ext 3505 3506 # OK, works on sane cases. Now check whether nonexistent headers 3507 # can be detected and how. 3508 cat >conftest.$ac_ext <<_ACEOF 3509/* confdefs.h. */ 3510_ACEOF 3511cat confdefs.h >>conftest.$ac_ext 3512cat >>conftest.$ac_ext <<_ACEOF 3513/* end confdefs.h. */ 3514#include <ac_nonexistent.h> 3515_ACEOF 3516if { (ac_try="$ac_cpp conftest.$ac_ext" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3523 ac_status=$? 3524 grep -v '^ *+' conftest.er1 >conftest.err 3525 rm -f conftest.er1 3526 cat conftest.err >&5 3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528 (exit $ac_status); } >/dev/null && { 3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3530 test ! -s conftest.err 3531 }; then 3532 # Broken: success on invalid input. 3533continue 3534else 3535 echo "$as_me: failed program was:" >&5 3536sed 's/^/| /' conftest.$ac_ext >&5 3537 3538 # Passes both tests. 3539ac_preproc_ok=: 3540break 3541fi 3542 3543rm -f conftest.err conftest.$ac_ext 3544 3545done 3546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3547rm -f conftest.err conftest.$ac_ext 3548if $ac_preproc_ok; then 3549 break 3550fi 3551 3552 done 3553 ac_cv_prog_CPP=$CPP 3554 3555fi 3556 CPP=$ac_cv_prog_CPP 3557else 3558 ac_cv_prog_CPP=$CPP 3559fi 3560{ echo "$as_me:$LINENO: result: $CPP" >&5 3561echo "${ECHO_T}$CPP" >&6; } 3562ac_preproc_ok=false 3563for ac_c_preproc_warn_flag in '' yes 3564do 3565 # Use a header file that comes with gcc, so configuring glibc 3566 # with a fresh cross-compiler works. 3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3568 # <limits.h> exists even on freestanding compilers. 3569 # On the NeXT, cc -E runs the code through the compiler's parser, 3570 # not just through cpp. "Syntax error" is here to catch this case. 3571 cat >conftest.$ac_ext <<_ACEOF 3572/* confdefs.h. */ 3573_ACEOF 3574cat confdefs.h >>conftest.$ac_ext 3575cat >>conftest.$ac_ext <<_ACEOF 3576/* end confdefs.h. */ 3577#ifdef __STDC__ 3578# include <limits.h> 3579#else 3580# include <assert.h> 3581#endif 3582 Syntax error 3583_ACEOF 3584if { (ac_try="$ac_cpp conftest.$ac_ext" 3585case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588esac 3589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3591 ac_status=$? 3592 grep -v '^ *+' conftest.er1 >conftest.err 3593 rm -f conftest.er1 3594 cat conftest.err >&5 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); } >/dev/null && { 3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3598 test ! -s conftest.err 3599 }; then 3600 : 3601else 3602 echo "$as_me: failed program was:" >&5 3603sed 's/^/| /' conftest.$ac_ext >&5 3604 3605 # Broken: fails on valid input. 3606continue 3607fi 3608 3609rm -f conftest.err conftest.$ac_ext 3610 3611 # OK, works on sane cases. Now check whether nonexistent headers 3612 # can be detected and how. 3613 cat >conftest.$ac_ext <<_ACEOF 3614/* confdefs.h. */ 3615_ACEOF 3616cat confdefs.h >>conftest.$ac_ext 3617cat >>conftest.$ac_ext <<_ACEOF 3618/* end confdefs.h. */ 3619#include <ac_nonexistent.h> 3620_ACEOF 3621if { (ac_try="$ac_cpp conftest.$ac_ext" 3622case "(($ac_try" in 3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3624 *) ac_try_echo=$ac_try;; 3625esac 3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3628 ac_status=$? 3629 grep -v '^ *+' conftest.er1 >conftest.err 3630 rm -f conftest.er1 3631 cat conftest.err >&5 3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3633 (exit $ac_status); } >/dev/null && { 3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3635 test ! -s conftest.err 3636 }; then 3637 # Broken: success on invalid input. 3638continue 3639else 3640 echo "$as_me: failed program was:" >&5 3641sed 's/^/| /' conftest.$ac_ext >&5 3642 3643 # Passes both tests. 3644ac_preproc_ok=: 3645break 3646fi 3647 3648rm -f conftest.err conftest.$ac_ext 3649 3650done 3651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3652rm -f conftest.err conftest.$ac_ext 3653if $ac_preproc_ok; then 3654 : 3655else 3656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3657See \`config.log' for more details." >&5 3658echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3659See \`config.log' for more details." >&2;} 3660 { (exit 1); exit 1; }; } 3661fi 3662 3663ac_ext=c 3664ac_cpp='$CPP $CPPFLAGS' 3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3667ac_compiler_gnu=$ac_cv_c_compiler_gnu 3668 3669 3670 # Find a good install program. We prefer a C program (faster), 3671# so one script is as good as another. But avoid the broken or 3672# incompatible versions: 3673# SysV /etc/install, /usr/sbin/install 3674# SunOS /usr/etc/install 3675# IRIX /sbin/install 3676# AIX /bin/install 3677# AmigaOS /C/install, which installs bootblocks on floppy discs 3678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3679# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3681# OS/2's system install, which has a completely different semantic 3682# ./install, which can be erroneously created by make from ./install.sh. 3683{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3684echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3685if test -z "$INSTALL"; then 3686if test "${ac_cv_path_install+set}" = set; then 3687 echo $ECHO_N "(cached) $ECHO_C" >&6 3688else 3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3690for as_dir in $PATH 3691do 3692 IFS=$as_save_IFS 3693 test -z "$as_dir" && as_dir=. 3694 # Account for people who put trailing slashes in PATH elements. 3695case $as_dir/ in 3696 ./ | .// | /cC/* | \ 3697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3699 /usr/ucb/* ) ;; 3700 *) 3701 # OSF1 and SCO ODT 3.0 have their own names for install. 3702 # Don't use installbsd from OSF since it installs stuff as root 3703 # by default. 3704 for ac_prog in ginstall scoinst install; do 3705 for ac_exec_ext in '' $ac_executable_extensions; do 3706 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3707 if test $ac_prog = install && 3708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3709 # AIX install. It has an incompatible calling convention. 3710 : 3711 elif test $ac_prog = install && 3712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3713 # program-specific install script used by HP pwplus--don't use. 3714 : 3715 else 3716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3717 break 3 3718 fi 3719 fi 3720 done 3721 done 3722 ;; 3723esac 3724done 3725IFS=$as_save_IFS 3726 3727 3728fi 3729 if test "${ac_cv_path_install+set}" = set; then 3730 INSTALL=$ac_cv_path_install 3731 else 3732 # As a last resort, use the slow shell script. Don't cache a 3733 # value for INSTALL within a source directory, because that will 3734 # break other packages using the cache if that directory is 3735 # removed, or if the value is a relative name. 3736 INSTALL=$ac_install_sh 3737 fi 3738fi 3739{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3740echo "${ECHO_T}$INSTALL" >&6; } 3741 3742# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3743# It thinks the first close brace ends the variable substitution. 3744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3745 3746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3747 3748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3749 3750 3751 #-------------------------------------------------------------------- 3752 # Checks to see if the make program sets the $MAKE variable. 3753 #-------------------------------------------------------------------- 3754 3755 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3756echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3757set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3758if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3759 echo $ECHO_N "(cached) $ECHO_C" >&6 3760else 3761 cat >conftest.make <<\_ACEOF 3762SHELL = /bin/sh 3763all: 3764 @echo '@@@%%%=$(MAKE)=@@@%%%' 3765_ACEOF 3766# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3767case `${MAKE-make} -f conftest.make 2>/dev/null` in 3768 *@@@%%%=?*=@@@%%%*) 3769 eval ac_cv_prog_make_${ac_make}_set=yes;; 3770 *) 3771 eval ac_cv_prog_make_${ac_make}_set=no;; 3772esac 3773rm -f conftest.make 3774fi 3775if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3776 { echo "$as_me:$LINENO: result: yes" >&5 3777echo "${ECHO_T}yes" >&6; } 3778 SET_MAKE= 3779else 3780 { echo "$as_me:$LINENO: result: no" >&5 3781echo "${ECHO_T}no" >&6; } 3782 SET_MAKE="MAKE=${MAKE-make}" 3783fi 3784 3785 3786 #-------------------------------------------------------------------- 3787 # Find ranlib 3788 #-------------------------------------------------------------------- 3789 3790 if test -n "$ac_tool_prefix"; then 3791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3792set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3793{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3795if test "${ac_cv_prog_RANLIB+set}" = set; then 3796 echo $ECHO_N "(cached) $ECHO_C" >&6 3797else 3798 if test -n "$RANLIB"; then 3799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3800else 3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3802for as_dir in $PATH 3803do 3804 IFS=$as_save_IFS 3805 test -z "$as_dir" && as_dir=. 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3810 break 2 3811 fi 3812done 3813done 3814IFS=$as_save_IFS 3815 3816fi 3817fi 3818RANLIB=$ac_cv_prog_RANLIB 3819if test -n "$RANLIB"; then 3820 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3821echo "${ECHO_T}$RANLIB" >&6; } 3822else 3823 { echo "$as_me:$LINENO: result: no" >&5 3824echo "${ECHO_T}no" >&6; } 3825fi 3826 3827 3828fi 3829if test -z "$ac_cv_prog_RANLIB"; then 3830 ac_ct_RANLIB=$RANLIB 3831 # Extract the first word of "ranlib", so it can be a program name with args. 3832set dummy ranlib; ac_word=$2 3833{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3835if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3837else 3838 if test -n "$ac_ct_RANLIB"; then 3839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3840else 3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3842for as_dir in $PATH 3843do 3844 IFS=$as_save_IFS 3845 test -z "$as_dir" && as_dir=. 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3848 ac_cv_prog_ac_ct_RANLIB="ranlib" 3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3850 break 2 3851 fi 3852done 3853done 3854IFS=$as_save_IFS 3855 3856fi 3857fi 3858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3859if test -n "$ac_ct_RANLIB"; then 3860 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3861echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3862else 3863 { echo "$as_me:$LINENO: result: no" >&5 3864echo "${ECHO_T}no" >&6; } 3865fi 3866 3867 if test "x$ac_ct_RANLIB" = x; then 3868 RANLIB=":" 3869 else 3870 case $cross_compiling:$ac_tool_warned in 3871yes:) 3872{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3873whose name does not start with the host triplet. If you think this 3874configuration is useful to you, please write to autoconf@gnu.org." >&5 3875echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3876whose name does not start with the host triplet. If you think this 3877configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3878ac_tool_warned=yes ;; 3879esac 3880 RANLIB=$ac_ct_RANLIB 3881 fi 3882else 3883 RANLIB="$ac_cv_prog_RANLIB" 3884fi 3885 3886 3887 #-------------------------------------------------------------------- 3888 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3889 #-------------------------------------------------------------------- 3890 3891 3892 3893 3894 3895 3896{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3897echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3898if test "${ac_cv_path_GREP+set}" = set; then 3899 echo $ECHO_N "(cached) $ECHO_C" >&6 3900else 3901 # Extract the first word of "grep ggrep" to use in msg output 3902if test -z "$GREP"; then 3903set dummy grep ggrep; ac_prog_name=$2 3904if test "${ac_cv_path_GREP+set}" = set; then 3905 echo $ECHO_N "(cached) $ECHO_C" >&6 3906else 3907 ac_path_GREP_found=false 3908# Loop through the user's path and test for each of PROGNAME-LIST 3909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3911do 3912 IFS=$as_save_IFS 3913 test -z "$as_dir" && as_dir=. 3914 for ac_prog in grep ggrep; do 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3917 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3918 # Check for GNU ac_path_GREP and select it if it is found. 3919 # Check for GNU $ac_path_GREP 3920case `"$ac_path_GREP" --version 2>&1` in 3921*GNU*) 3922 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3923*) 3924 ac_count=0 3925 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3926 while : 3927 do 3928 cat "conftest.in" "conftest.in" >"conftest.tmp" 3929 mv "conftest.tmp" "conftest.in" 3930 cp "conftest.in" "conftest.nl" 3931 echo 'GREP' >> "conftest.nl" 3932 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3934 ac_count=`expr $ac_count + 1` 3935 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3936 # Best one so far, save it but keep looking for a better one 3937 ac_cv_path_GREP="$ac_path_GREP" 3938 ac_path_GREP_max=$ac_count 3939 fi 3940 # 10*(2^10) chars as input seems more than enough 3941 test $ac_count -gt 10 && break 3942 done 3943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3944esac 3945 3946 3947 $ac_path_GREP_found && break 3 3948 done 3949done 3950 3951done 3952IFS=$as_save_IFS 3953 3954 3955fi 3956 3957GREP="$ac_cv_path_GREP" 3958if test -z "$GREP"; then 3959 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3960echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3961 { (exit 1); exit 1; }; } 3962fi 3963 3964else 3965 ac_cv_path_GREP=$GREP 3966fi 3967 3968 3969fi 3970{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3971echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3972 GREP="$ac_cv_path_GREP" 3973 3974 3975{ echo "$as_me:$LINENO: checking for egrep" >&5 3976echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3977if test "${ac_cv_path_EGREP+set}" = set; then 3978 echo $ECHO_N "(cached) $ECHO_C" >&6 3979else 3980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3981 then ac_cv_path_EGREP="$GREP -E" 3982 else 3983 # Extract the first word of "egrep" to use in msg output 3984if test -z "$EGREP"; then 3985set dummy egrep; ac_prog_name=$2 3986if test "${ac_cv_path_EGREP+set}" = set; then 3987 echo $ECHO_N "(cached) $ECHO_C" >&6 3988else 3989 ac_path_EGREP_found=false 3990# Loop through the user's path and test for each of PROGNAME-LIST 3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3993do 3994 IFS=$as_save_IFS 3995 test -z "$as_dir" && as_dir=. 3996 for ac_prog in egrep; do 3997 for ac_exec_ext in '' $ac_executable_extensions; do 3998 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3999 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4000 # Check for GNU ac_path_EGREP and select it if it is found. 4001 # Check for GNU $ac_path_EGREP 4002case `"$ac_path_EGREP" --version 2>&1` in 4003*GNU*) 4004 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4005*) 4006 ac_count=0 4007 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4008 while : 4009 do 4010 cat "conftest.in" "conftest.in" >"conftest.tmp" 4011 mv "conftest.tmp" "conftest.in" 4012 cp "conftest.in" "conftest.nl" 4013 echo 'EGREP' >> "conftest.nl" 4014 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4016 ac_count=`expr $ac_count + 1` 4017 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4018 # Best one so far, save it but keep looking for a better one 4019 ac_cv_path_EGREP="$ac_path_EGREP" 4020 ac_path_EGREP_max=$ac_count 4021 fi 4022 # 10*(2^10) chars as input seems more than enough 4023 test $ac_count -gt 10 && break 4024 done 4025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4026esac 4027 4028 4029 $ac_path_EGREP_found && break 3 4030 done 4031done 4032 4033done 4034IFS=$as_save_IFS 4035 4036 4037fi 4038 4039EGREP="$ac_cv_path_EGREP" 4040if test -z "$EGREP"; then 4041 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4042echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4043 { (exit 1); exit 1; }; } 4044fi 4045 4046else 4047 ac_cv_path_EGREP=$EGREP 4048fi 4049 4050 4051 fi 4052fi 4053{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4054echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4055 EGREP="$ac_cv_path_EGREP" 4056 4057 4058{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4059echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4060if test "${ac_cv_header_stdc+set}" = set; then 4061 echo $ECHO_N "(cached) $ECHO_C" >&6 4062else 4063 cat >conftest.$ac_ext <<_ACEOF 4064/* confdefs.h. */ 4065_ACEOF 4066cat confdefs.h >>conftest.$ac_ext 4067cat >>conftest.$ac_ext <<_ACEOF 4068/* end confdefs.h. */ 4069#include <stdlib.h> 4070#include <stdarg.h> 4071#include <string.h> 4072#include <float.h> 4073 4074int 4075main () 4076{ 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082rm -f conftest.$ac_objext 4083if { (ac_try="$ac_compile" 4084case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087esac 4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4089 (eval "$ac_compile") 2>conftest.er1 4090 ac_status=$? 4091 grep -v '^ *+' conftest.er1 >conftest.err 4092 rm -f conftest.er1 4093 cat conftest.err >&5 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); } && { 4096 test -z "$ac_c_werror_flag" || 4097 test ! -s conftest.err 4098 } && test -s conftest.$ac_objext; then 4099 ac_cv_header_stdc=yes 4100else 4101 echo "$as_me: failed program was:" >&5 4102sed 's/^/| /' conftest.$ac_ext >&5 4103 4104 ac_cv_header_stdc=no 4105fi 4106 4107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4108 4109if test $ac_cv_header_stdc = yes; then 4110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4111 cat >conftest.$ac_ext <<_ACEOF 4112/* confdefs.h. */ 4113_ACEOF 4114cat confdefs.h >>conftest.$ac_ext 4115cat >>conftest.$ac_ext <<_ACEOF 4116/* end confdefs.h. */ 4117#include <string.h> 4118 4119_ACEOF 4120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4121 $EGREP "memchr" >/dev/null 2>&1; then 4122 : 4123else 4124 ac_cv_header_stdc=no 4125fi 4126rm -f -r conftest* 4127 4128fi 4129 4130if test $ac_cv_header_stdc = yes; then 4131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4132 cat >conftest.$ac_ext <<_ACEOF 4133/* confdefs.h. */ 4134_ACEOF 4135cat confdefs.h >>conftest.$ac_ext 4136cat >>conftest.$ac_ext <<_ACEOF 4137/* end confdefs.h. */ 4138#include <stdlib.h> 4139 4140_ACEOF 4141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4142 $EGREP "free" >/dev/null 2>&1; then 4143 : 4144else 4145 ac_cv_header_stdc=no 4146fi 4147rm -f -r conftest* 4148 4149fi 4150 4151if test $ac_cv_header_stdc = yes; then 4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4153 if test "$cross_compiling" = yes; then 4154 : 4155else 4156 cat >conftest.$ac_ext <<_ACEOF 4157/* confdefs.h. */ 4158_ACEOF 4159cat confdefs.h >>conftest.$ac_ext 4160cat >>conftest.$ac_ext <<_ACEOF 4161/* end confdefs.h. */ 4162#include <ctype.h> 4163#include <stdlib.h> 4164#if ((' ' & 0x0FF) == 0x020) 4165# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4166# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4167#else 4168# define ISLOWER(c) \ 4169 (('a' <= (c) && (c) <= 'i') \ 4170 || ('j' <= (c) && (c) <= 'r') \ 4171 || ('s' <= (c) && (c) <= 'z')) 4172# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4173#endif 4174 4175#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4176int 4177main () 4178{ 4179 int i; 4180 for (i = 0; i < 256; i++) 4181 if (XOR (islower (i), ISLOWER (i)) 4182 || toupper (i) != TOUPPER (i)) 4183 return 2; 4184 return 0; 4185} 4186_ACEOF 4187rm -f conftest$ac_exeext 4188if { (ac_try="$ac_link" 4189case "(($ac_try" in 4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4191 *) ac_try_echo=$ac_try;; 4192esac 4193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4194 (eval "$ac_link") 2>&5 4195 ac_status=$? 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4198 { (case "(($ac_try" in 4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4200 *) ac_try_echo=$ac_try;; 4201esac 4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4203 (eval "$ac_try") 2>&5 4204 ac_status=$? 4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 (exit $ac_status); }; }; then 4207 : 4208else 4209 echo "$as_me: program exited with status $ac_status" >&5 4210echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213( exit $ac_status ) 4214ac_cv_header_stdc=no 4215fi 4216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4217fi 4218 4219 4220fi 4221fi 4222{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4223echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4224if test $ac_cv_header_stdc = yes; then 4225 4226cat >>confdefs.h <<\_ACEOF 4227#define STDC_HEADERS 1 4228_ACEOF 4229 4230fi 4231 4232# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4243 inttypes.h stdint.h unistd.h 4244do 4245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4246{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4249 echo $ECHO_N "(cached) $ECHO_C" >&6 4250else 4251 cat >conftest.$ac_ext <<_ACEOF 4252/* confdefs.h. */ 4253_ACEOF 4254cat confdefs.h >>conftest.$ac_ext 4255cat >>conftest.$ac_ext <<_ACEOF 4256/* end confdefs.h. */ 4257$ac_includes_default 4258 4259#include <$ac_header> 4260_ACEOF 4261rm -f conftest.$ac_objext 4262if { (ac_try="$ac_compile" 4263case "(($ac_try" in 4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4265 *) ac_try_echo=$ac_try;; 4266esac 4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4268 (eval "$ac_compile") 2>conftest.er1 4269 ac_status=$? 4270 grep -v '^ *+' conftest.er1 >conftest.err 4271 rm -f conftest.er1 4272 cat conftest.err >&5 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); } && { 4275 test -z "$ac_c_werror_flag" || 4276 test ! -s conftest.err 4277 } && test -s conftest.$ac_objext; then 4278 eval "$as_ac_Header=yes" 4279else 4280 echo "$as_me: failed program was:" >&5 4281sed 's/^/| /' conftest.$ac_ext >&5 4282 4283 eval "$as_ac_Header=no" 4284fi 4285 4286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4287fi 4288ac_res=`eval echo '${'$as_ac_Header'}'` 4289 { echo "$as_me:$LINENO: result: $ac_res" >&5 4290echo "${ECHO_T}$ac_res" >&6; } 4291if test `eval echo '${'$as_ac_Header'}'` = yes; then 4292 cat >>confdefs.h <<_ACEOF 4293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4294_ACEOF 4295 4296fi 4297 4298done 4299 4300 4301 4302 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4303 4304 4305 #------------------------------------------------------------------------ 4306 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4307 # It makes compiling go faster. (This is only a performance feature.) 4308 #------------------------------------------------------------------------ 4309 4310 if test -z "$no_pipe" -a -n "$GCC"; then 4311 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4312echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4313if test "${tcl_cv_cc_pipe+set}" = set; then 4314 echo $ECHO_N "(cached) $ECHO_C" >&6 4315else 4316 4317 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4318 cat >conftest.$ac_ext <<_ACEOF 4319/* confdefs.h. */ 4320_ACEOF 4321cat confdefs.h >>conftest.$ac_ext 4322cat >>conftest.$ac_ext <<_ACEOF 4323/* end confdefs.h. */ 4324 4325int 4326main () 4327{ 4328 4329 ; 4330 return 0; 4331} 4332_ACEOF 4333rm -f conftest.$ac_objext 4334if { (ac_try="$ac_compile" 4335case "(($ac_try" in 4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4337 *) ac_try_echo=$ac_try;; 4338esac 4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4340 (eval "$ac_compile") 2>conftest.er1 4341 ac_status=$? 4342 grep -v '^ *+' conftest.er1 >conftest.err 4343 rm -f conftest.er1 4344 cat conftest.err >&5 4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4346 (exit $ac_status); } && { 4347 test -z "$ac_c_werror_flag" || 4348 test ! -s conftest.err 4349 } && test -s conftest.$ac_objext; then 4350 tcl_cv_cc_pipe=yes 4351else 4352 echo "$as_me: failed program was:" >&5 4353sed 's/^/| /' conftest.$ac_ext >&5 4354 4355 tcl_cv_cc_pipe=no 4356fi 4357 4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4359 CFLAGS=$hold_cflags 4360fi 4361{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4362echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4363 if test $tcl_cv_cc_pipe = yes; then 4364 CFLAGS="$CFLAGS -pipe" 4365 fi 4366 fi 4367 4368 #-------------------------------------------------------------------- 4369 # Common compiler flag setup 4370 #-------------------------------------------------------------------- 4371 4372 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4373echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4374if test "${ac_cv_c_bigendian+set}" = set; then 4375 echo $ECHO_N "(cached) $ECHO_C" >&6 4376else 4377 # See if sys/param.h defines the BYTE_ORDER macro. 4378cat >conftest.$ac_ext <<_ACEOF 4379/* confdefs.h. */ 4380_ACEOF 4381cat confdefs.h >>conftest.$ac_ext 4382cat >>conftest.$ac_ext <<_ACEOF 4383/* end confdefs.h. */ 4384#include <sys/types.h> 4385#include <sys/param.h> 4386 4387int 4388main () 4389{ 4390#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4391 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4392 bogus endian macros 4393#endif 4394 4395 ; 4396 return 0; 4397} 4398_ACEOF 4399rm -f conftest.$ac_objext 4400if { (ac_try="$ac_compile" 4401case "(($ac_try" in 4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4403 *) ac_try_echo=$ac_try;; 4404esac 4405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4406 (eval "$ac_compile") 2>conftest.er1 4407 ac_status=$? 4408 grep -v '^ *+' conftest.er1 >conftest.err 4409 rm -f conftest.er1 4410 cat conftest.err >&5 4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); } && { 4413 test -z "$ac_c_werror_flag" || 4414 test ! -s conftest.err 4415 } && test -s conftest.$ac_objext; then 4416 # It does; now see whether it defined to BIG_ENDIAN or not. 4417cat >conftest.$ac_ext <<_ACEOF 4418/* confdefs.h. */ 4419_ACEOF 4420cat confdefs.h >>conftest.$ac_ext 4421cat >>conftest.$ac_ext <<_ACEOF 4422/* end confdefs.h. */ 4423#include <sys/types.h> 4424#include <sys/param.h> 4425 4426int 4427main () 4428{ 4429#if BYTE_ORDER != BIG_ENDIAN 4430 not big endian 4431#endif 4432 4433 ; 4434 return 0; 4435} 4436_ACEOF 4437rm -f conftest.$ac_objext 4438if { (ac_try="$ac_compile" 4439case "(($ac_try" in 4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4441 *) ac_try_echo=$ac_try;; 4442esac 4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4444 (eval "$ac_compile") 2>conftest.er1 4445 ac_status=$? 4446 grep -v '^ *+' conftest.er1 >conftest.err 4447 rm -f conftest.er1 4448 cat conftest.err >&5 4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); } && { 4451 test -z "$ac_c_werror_flag" || 4452 test ! -s conftest.err 4453 } && test -s conftest.$ac_objext; then 4454 ac_cv_c_bigendian=yes 4455else 4456 echo "$as_me: failed program was:" >&5 4457sed 's/^/| /' conftest.$ac_ext >&5 4458 4459 ac_cv_c_bigendian=no 4460fi 4461 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4463else 4464 echo "$as_me: failed program was:" >&5 4465sed 's/^/| /' conftest.$ac_ext >&5 4466 4467 # It does not; compile a test program. 4468if test "$cross_compiling" = yes; then 4469 # try to guess the endianness by grepping values into an object file 4470 ac_cv_c_bigendian=unknown 4471 cat >conftest.$ac_ext <<_ACEOF 4472/* confdefs.h. */ 4473_ACEOF 4474cat confdefs.h >>conftest.$ac_ext 4475cat >>conftest.$ac_ext <<_ACEOF 4476/* end confdefs.h. */ 4477short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4478short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4479void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4480short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4481short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4482void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4483int 4484main () 4485{ 4486 _ascii (); _ebcdic (); 4487 ; 4488 return 0; 4489} 4490_ACEOF 4491rm -f conftest.$ac_objext 4492if { (ac_try="$ac_compile" 4493case "(($ac_try" in 4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4495 *) ac_try_echo=$ac_try;; 4496esac 4497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4498 (eval "$ac_compile") 2>conftest.er1 4499 ac_status=$? 4500 grep -v '^ *+' conftest.er1 >conftest.err 4501 rm -f conftest.er1 4502 cat conftest.err >&5 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); } && { 4505 test -z "$ac_c_werror_flag" || 4506 test ! -s conftest.err 4507 } && test -s conftest.$ac_objext; then 4508 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4509 ac_cv_c_bigendian=yes 4510fi 4511if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4512 if test "$ac_cv_c_bigendian" = unknown; then 4513 ac_cv_c_bigendian=no 4514 else 4515 # finding both strings is unlikely to happen, but who knows? 4516 ac_cv_c_bigendian=unknown 4517 fi 4518fi 4519else 4520 echo "$as_me: failed program was:" >&5 4521sed 's/^/| /' conftest.$ac_ext >&5 4522 4523 4524fi 4525 4526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4527else 4528 cat >conftest.$ac_ext <<_ACEOF 4529/* confdefs.h. */ 4530_ACEOF 4531cat confdefs.h >>conftest.$ac_ext 4532cat >>conftest.$ac_ext <<_ACEOF 4533/* end confdefs.h. */ 4534$ac_includes_default 4535int 4536main () 4537{ 4538 4539 /* Are we little or big endian? From Harbison&Steele. */ 4540 union 4541 { 4542 long int l; 4543 char c[sizeof (long int)]; 4544 } u; 4545 u.l = 1; 4546 return u.c[sizeof (long int) - 1] == 1; 4547 4548 ; 4549 return 0; 4550} 4551_ACEOF 4552rm -f conftest$ac_exeext 4553if { (ac_try="$ac_link" 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_link") 2>&5 4560 ac_status=$? 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4563 { (case "(($ac_try" in 4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4565 *) ac_try_echo=$ac_try;; 4566esac 4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4568 (eval "$ac_try") 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; }; then 4572 ac_cv_c_bigendian=no 4573else 4574 echo "$as_me: program exited with status $ac_status" >&5 4575echo "$as_me: failed program was:" >&5 4576sed 's/^/| /' conftest.$ac_ext >&5 4577 4578( exit $ac_status ) 4579ac_cv_c_bigendian=yes 4580fi 4581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4582fi 4583 4584 4585fi 4586 4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4588fi 4589{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4590echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4591case $ac_cv_c_bigendian in 4592 yes) 4593 4594cat >>confdefs.h <<\_ACEOF 4595#define WORDS_BIGENDIAN 1 4596_ACEOF 4597 ;; 4598 no) 4599 ;; 4600 *) 4601 { { echo "$as_me:$LINENO: error: unknown endianness 4602presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4603echo "$as_me: error: unknown endianness 4604presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4605 { (exit 1); exit 1; }; } ;; 4606esac 4607 4608 if test "${TEA_PLATFORM}" = "unix" ; then 4609 4610 #-------------------------------------------------------------------- 4611 # On a few very rare systems, all of the libm.a stuff is 4612 # already in libc.a. Set compiler flags accordingly. 4613 # Also, Linux requires the "ieee" library for math to work 4614 # right (and it must appear before "-lm"). 4615 #-------------------------------------------------------------------- 4616 4617 { echo "$as_me:$LINENO: checking for sin" >&5 4618echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4619if test "${ac_cv_func_sin+set}" = set; then 4620 echo $ECHO_N "(cached) $ECHO_C" >&6 4621else 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4629 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4630#define sin innocuous_sin 4631 4632/* System header to define __stub macros and hopefully few prototypes, 4633 which can conflict with char sin (); below. 4634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4635 <limits.h> exists even on freestanding compilers. */ 4636 4637#ifdef __STDC__ 4638# include <limits.h> 4639#else 4640# include <assert.h> 4641#endif 4642 4643#undef sin 4644 4645/* Override any GCC internal prototype to avoid an error. 4646 Use char because int might match the return type of a GCC 4647 builtin and then its argument prototype would still apply. */ 4648#ifdef __cplusplus 4649extern "C" 4650#endif 4651char sin (); 4652/* The GNU C library defines this for functions which it implements 4653 to always fail with ENOSYS. Some functions are actually named 4654 something starting with __ and the normal name is an alias. */ 4655#if defined __stub_sin || defined __stub___sin 4656choke me 4657#endif 4658 4659int 4660main () 4661{ 4662return sin (); 4663 ; 4664 return 0; 4665} 4666_ACEOF 4667rm -f conftest.$ac_objext conftest$ac_exeext 4668if { (ac_try="$ac_link" 4669case "(($ac_try" in 4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4671 *) ac_try_echo=$ac_try;; 4672esac 4673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4674 (eval "$ac_link") 2>conftest.er1 4675 ac_status=$? 4676 grep -v '^ *+' conftest.er1 >conftest.err 4677 rm -f conftest.er1 4678 cat conftest.err >&5 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); } && { 4681 test -z "$ac_c_werror_flag" || 4682 test ! -s conftest.err 4683 } && test -s conftest$ac_exeext && 4684 $as_test_x conftest$ac_exeext; then 4685 ac_cv_func_sin=yes 4686else 4687 echo "$as_me: failed program was:" >&5 4688sed 's/^/| /' conftest.$ac_ext >&5 4689 4690 ac_cv_func_sin=no 4691fi 4692 4693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4694 conftest$ac_exeext conftest.$ac_ext 4695fi 4696{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4697echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4698if test $ac_cv_func_sin = yes; then 4699 MATH_LIBS="" 4700else 4701 MATH_LIBS="-lm" 4702fi 4703 4704 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4705echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4706if test "${ac_cv_lib_ieee_main+set}" = set; then 4707 echo $ECHO_N "(cached) $ECHO_C" >&6 4708else 4709 ac_check_lib_save_LIBS=$LIBS 4710LIBS="-lieee $LIBS" 4711cat >conftest.$ac_ext <<_ACEOF 4712/* confdefs.h. */ 4713_ACEOF 4714cat confdefs.h >>conftest.$ac_ext 4715cat >>conftest.$ac_ext <<_ACEOF 4716/* end confdefs.h. */ 4717 4718 4719int 4720main () 4721{ 4722return main (); 4723 ; 4724 return 0; 4725} 4726_ACEOF 4727rm -f conftest.$ac_objext conftest$ac_exeext 4728if { (ac_try="$ac_link" 4729case "(($ac_try" in 4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4731 *) ac_try_echo=$ac_try;; 4732esac 4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4734 (eval "$ac_link") 2>conftest.er1 4735 ac_status=$? 4736 grep -v '^ *+' conftest.er1 >conftest.err 4737 rm -f conftest.er1 4738 cat conftest.err >&5 4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4740 (exit $ac_status); } && { 4741 test -z "$ac_c_werror_flag" || 4742 test ! -s conftest.err 4743 } && test -s conftest$ac_exeext && 4744 $as_test_x conftest$ac_exeext; then 4745 ac_cv_lib_ieee_main=yes 4746else 4747 echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750 ac_cv_lib_ieee_main=no 4751fi 4752 4753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4754 conftest$ac_exeext conftest.$ac_ext 4755LIBS=$ac_check_lib_save_LIBS 4756fi 4757{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4758echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4759if test $ac_cv_lib_ieee_main = yes; then 4760 MATH_LIBS="-lieee $MATH_LIBS" 4761fi 4762 4763 4764 #-------------------------------------------------------------------- 4765 # Interactive UNIX requires -linet instead of -lsocket, plus it 4766 # needs net/errno.h to define the socket-related error codes. 4767 #-------------------------------------------------------------------- 4768 4769 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4770echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4771if test "${ac_cv_lib_inet_main+set}" = set; then 4772 echo $ECHO_N "(cached) $ECHO_C" >&6 4773else 4774 ac_check_lib_save_LIBS=$LIBS 4775LIBS="-linet $LIBS" 4776cat >conftest.$ac_ext <<_ACEOF 4777/* confdefs.h. */ 4778_ACEOF 4779cat confdefs.h >>conftest.$ac_ext 4780cat >>conftest.$ac_ext <<_ACEOF 4781/* end confdefs.h. */ 4782 4783 4784int 4785main () 4786{ 4787return main (); 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792rm -f conftest.$ac_objext conftest$ac_exeext 4793if { (ac_try="$ac_link" 4794case "(($ac_try" in 4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4796 *) ac_try_echo=$ac_try;; 4797esac 4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4799 (eval "$ac_link") 2>conftest.er1 4800 ac_status=$? 4801 grep -v '^ *+' conftest.er1 >conftest.err 4802 rm -f conftest.er1 4803 cat conftest.err >&5 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && { 4806 test -z "$ac_c_werror_flag" || 4807 test ! -s conftest.err 4808 } && test -s conftest$ac_exeext && 4809 $as_test_x conftest$ac_exeext; then 4810 ac_cv_lib_inet_main=yes 4811else 4812 echo "$as_me: failed program was:" >&5 4813sed 's/^/| /' conftest.$ac_ext >&5 4814 4815 ac_cv_lib_inet_main=no 4816fi 4817 4818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4819 conftest$ac_exeext conftest.$ac_ext 4820LIBS=$ac_check_lib_save_LIBS 4821fi 4822{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4823echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4824if test $ac_cv_lib_inet_main = yes; then 4825 LIBS="$LIBS -linet" 4826fi 4827 4828 if test "${ac_cv_header_net_errno_h+set}" = set; then 4829 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4830echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4831if test "${ac_cv_header_net_errno_h+set}" = set; then 4832 echo $ECHO_N "(cached) $ECHO_C" >&6 4833fi 4834{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4835echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4836else 4837 # Is the header compilable? 4838{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4839echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4840cat >conftest.$ac_ext <<_ACEOF 4841/* confdefs.h. */ 4842_ACEOF 4843cat confdefs.h >>conftest.$ac_ext 4844cat >>conftest.$ac_ext <<_ACEOF 4845/* end confdefs.h. */ 4846$ac_includes_default 4847#include <net/errno.h> 4848_ACEOF 4849rm -f conftest.$ac_objext 4850if { (ac_try="$ac_compile" 4851case "(($ac_try" in 4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4853 *) ac_try_echo=$ac_try;; 4854esac 4855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4856 (eval "$ac_compile") 2>conftest.er1 4857 ac_status=$? 4858 grep -v '^ *+' conftest.er1 >conftest.err 4859 rm -f conftest.er1 4860 cat conftest.err >&5 4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4862 (exit $ac_status); } && { 4863 test -z "$ac_c_werror_flag" || 4864 test ! -s conftest.err 4865 } && test -s conftest.$ac_objext; then 4866 ac_header_compiler=yes 4867else 4868 echo "$as_me: failed program was:" >&5 4869sed 's/^/| /' conftest.$ac_ext >&5 4870 4871 ac_header_compiler=no 4872fi 4873 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4875{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4876echo "${ECHO_T}$ac_header_compiler" >&6; } 4877 4878# Is the header present? 4879{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4880echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4881cat >conftest.$ac_ext <<_ACEOF 4882/* confdefs.h. */ 4883_ACEOF 4884cat confdefs.h >>conftest.$ac_ext 4885cat >>conftest.$ac_ext <<_ACEOF 4886/* end confdefs.h. */ 4887#include <net/errno.h> 4888_ACEOF 4889if { (ac_try="$ac_cpp conftest.$ac_ext" 4890case "(($ac_try" in 4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4892 *) ac_try_echo=$ac_try;; 4893esac 4894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4896 ac_status=$? 4897 grep -v '^ *+' conftest.er1 >conftest.err 4898 rm -f conftest.er1 4899 cat conftest.err >&5 4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4901 (exit $ac_status); } >/dev/null && { 4902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4903 test ! -s conftest.err 4904 }; then 4905 ac_header_preproc=yes 4906else 4907 echo "$as_me: failed program was:" >&5 4908sed 's/^/| /' conftest.$ac_ext >&5 4909 4910 ac_header_preproc=no 4911fi 4912 4913rm -f conftest.err conftest.$ac_ext 4914{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4915echo "${ECHO_T}$ac_header_preproc" >&6; } 4916 4917# So? What about this header? 4918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4919 yes:no: ) 4920 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4921echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4922 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4923echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4924 ac_header_preproc=yes 4925 ;; 4926 no:yes:* ) 4927 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4928echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4929 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4930echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4931 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4932echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4934echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4935 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4936echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4937 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4938echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4939 4940 ;; 4941esac 4942{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4943echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4944if test "${ac_cv_header_net_errno_h+set}" = set; then 4945 echo $ECHO_N "(cached) $ECHO_C" >&6 4946else 4947 ac_cv_header_net_errno_h=$ac_header_preproc 4948fi 4949{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4950echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4951 4952fi 4953if test $ac_cv_header_net_errno_h = yes; then 4954 4955 4956cat >>confdefs.h <<\_ACEOF 4957#define HAVE_NET_ERRNO_H 1 4958_ACEOF 4959 4960fi 4961 4962 4963 4964 #-------------------------------------------------------------------- 4965 # Check for the existence of the -lsocket and -lnsl libraries. 4966 # The order here is important, so that they end up in the right 4967 # order in the command line generated by make. Here are some 4968 # special considerations: 4969 # 1. Use "connect" and "accept" to check for -lsocket, and 4970 # "gethostbyname" to check for -lnsl. 4971 # 2. Use each function name only once: can't redo a check because 4972 # autoconf caches the results of the last check and won't redo it. 4973 # 3. Use -lnsl and -lsocket only if they supply procedures that 4974 # aren't already present in the normal libraries. This is because 4975 # IRIX 5.2 has libraries, but they aren't needed and they're 4976 # bogus: they goof up name resolution if used. 4977 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4978 # To get around this problem, check for both libraries together 4979 # if -lsocket doesn't work by itself. 4980 #-------------------------------------------------------------------- 4981 4982 tcl_checkBoth=0 4983 { echo "$as_me:$LINENO: checking for connect" >&5 4984echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4985if test "${ac_cv_func_connect+set}" = set; then 4986 echo $ECHO_N "(cached) $ECHO_C" >&6 4987else 4988 cat >conftest.$ac_ext <<_ACEOF 4989/* confdefs.h. */ 4990_ACEOF 4991cat confdefs.h >>conftest.$ac_ext 4992cat >>conftest.$ac_ext <<_ACEOF 4993/* end confdefs.h. */ 4994/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4995 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4996#define connect innocuous_connect 4997 4998/* System header to define __stub macros and hopefully few prototypes, 4999 which can conflict with char connect (); below. 5000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5001 <limits.h> exists even on freestanding compilers. */ 5002 5003#ifdef __STDC__ 5004# include <limits.h> 5005#else 5006# include <assert.h> 5007#endif 5008 5009#undef connect 5010 5011/* Override any GCC internal prototype to avoid an error. 5012 Use char because int might match the return type of a GCC 5013 builtin and then its argument prototype would still apply. */ 5014#ifdef __cplusplus 5015extern "C" 5016#endif 5017char connect (); 5018/* The GNU C library defines this for functions which it implements 5019 to always fail with ENOSYS. Some functions are actually named 5020 something starting with __ and the normal name is an alias. */ 5021#if defined __stub_connect || defined __stub___connect 5022choke me 5023#endif 5024 5025int 5026main () 5027{ 5028return connect (); 5029 ; 5030 return 0; 5031} 5032_ACEOF 5033rm -f conftest.$ac_objext conftest$ac_exeext 5034if { (ac_try="$ac_link" 5035case "(($ac_try" in 5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5037 *) ac_try_echo=$ac_try;; 5038esac 5039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5040 (eval "$ac_link") 2>conftest.er1 5041 ac_status=$? 5042 grep -v '^ *+' conftest.er1 >conftest.err 5043 rm -f conftest.er1 5044 cat conftest.err >&5 5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 (exit $ac_status); } && { 5047 test -z "$ac_c_werror_flag" || 5048 test ! -s conftest.err 5049 } && test -s conftest$ac_exeext && 5050 $as_test_x conftest$ac_exeext; then 5051 ac_cv_func_connect=yes 5052else 5053 echo "$as_me: failed program was:" >&5 5054sed 's/^/| /' conftest.$ac_ext >&5 5055 5056 ac_cv_func_connect=no 5057fi 5058 5059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5060 conftest$ac_exeext conftest.$ac_ext 5061fi 5062{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5063echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5064if test $ac_cv_func_connect = yes; then 5065 tcl_checkSocket=0 5066else 5067 tcl_checkSocket=1 5068fi 5069 5070 if test "$tcl_checkSocket" = 1; then 5071 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5072echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5073if test "${ac_cv_func_setsockopt+set}" = set; then 5074 echo $ECHO_N "(cached) $ECHO_C" >&6 5075else 5076 cat >conftest.$ac_ext <<_ACEOF 5077/* confdefs.h. */ 5078_ACEOF 5079cat confdefs.h >>conftest.$ac_ext 5080cat >>conftest.$ac_ext <<_ACEOF 5081/* end confdefs.h. */ 5082/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5083 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5084#define setsockopt innocuous_setsockopt 5085 5086/* System header to define __stub macros and hopefully few prototypes, 5087 which can conflict with char setsockopt (); below. 5088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5089 <limits.h> exists even on freestanding compilers. */ 5090 5091#ifdef __STDC__ 5092# include <limits.h> 5093#else 5094# include <assert.h> 5095#endif 5096 5097#undef setsockopt 5098 5099/* Override any GCC internal prototype to avoid an error. 5100 Use char because int might match the return type of a GCC 5101 builtin and then its argument prototype would still apply. */ 5102#ifdef __cplusplus 5103extern "C" 5104#endif 5105char setsockopt (); 5106/* The GNU C library defines this for functions which it implements 5107 to always fail with ENOSYS. Some functions are actually named 5108 something starting with __ and the normal name is an alias. */ 5109#if defined __stub_setsockopt || defined __stub___setsockopt 5110choke me 5111#endif 5112 5113int 5114main () 5115{ 5116return setsockopt (); 5117 ; 5118 return 0; 5119} 5120_ACEOF 5121rm -f conftest.$ac_objext conftest$ac_exeext 5122if { (ac_try="$ac_link" 5123case "(($ac_try" in 5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5125 *) ac_try_echo=$ac_try;; 5126esac 5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5128 (eval "$ac_link") 2>conftest.er1 5129 ac_status=$? 5130 grep -v '^ *+' conftest.er1 >conftest.err 5131 rm -f conftest.er1 5132 cat conftest.err >&5 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); } && { 5135 test -z "$ac_c_werror_flag" || 5136 test ! -s conftest.err 5137 } && test -s conftest$ac_exeext && 5138 $as_test_x conftest$ac_exeext; then 5139 ac_cv_func_setsockopt=yes 5140else 5141 echo "$as_me: failed program was:" >&5 5142sed 's/^/| /' conftest.$ac_ext >&5 5143 5144 ac_cv_func_setsockopt=no 5145fi 5146 5147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5148 conftest$ac_exeext conftest.$ac_ext 5149fi 5150{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5151echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5152if test $ac_cv_func_setsockopt = yes; then 5153 : 5154else 5155 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5156echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5157if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5158 echo $ECHO_N "(cached) $ECHO_C" >&6 5159else 5160 ac_check_lib_save_LIBS=$LIBS 5161LIBS="-lsocket $LIBS" 5162cat >conftest.$ac_ext <<_ACEOF 5163/* confdefs.h. */ 5164_ACEOF 5165cat confdefs.h >>conftest.$ac_ext 5166cat >>conftest.$ac_ext <<_ACEOF 5167/* end confdefs.h. */ 5168 5169/* Override any GCC internal prototype to avoid an error. 5170 Use char because int might match the return type of a GCC 5171 builtin and then its argument prototype would still apply. */ 5172#ifdef __cplusplus 5173extern "C" 5174#endif 5175char setsockopt (); 5176int 5177main () 5178{ 5179return setsockopt (); 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184rm -f conftest.$ac_objext conftest$ac_exeext 5185if { (ac_try="$ac_link" 5186case "(($ac_try" in 5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5188 *) ac_try_echo=$ac_try;; 5189esac 5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5191 (eval "$ac_link") 2>conftest.er1 5192 ac_status=$? 5193 grep -v '^ *+' conftest.er1 >conftest.err 5194 rm -f conftest.er1 5195 cat conftest.err >&5 5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5197 (exit $ac_status); } && { 5198 test -z "$ac_c_werror_flag" || 5199 test ! -s conftest.err 5200 } && test -s conftest$ac_exeext && 5201 $as_test_x conftest$ac_exeext; then 5202 ac_cv_lib_socket_setsockopt=yes 5203else 5204 echo "$as_me: failed program was:" >&5 5205sed 's/^/| /' conftest.$ac_ext >&5 5206 5207 ac_cv_lib_socket_setsockopt=no 5208fi 5209 5210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5211 conftest$ac_exeext conftest.$ac_ext 5212LIBS=$ac_check_lib_save_LIBS 5213fi 5214{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5215echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5216if test $ac_cv_lib_socket_setsockopt = yes; then 5217 LIBS="$LIBS -lsocket" 5218else 5219 tcl_checkBoth=1 5220fi 5221 5222fi 5223 5224 fi 5225 if test "$tcl_checkBoth" = 1; then 5226 tk_oldLibs=$LIBS 5227 LIBS="$LIBS -lsocket -lnsl" 5228 { echo "$as_me:$LINENO: checking for accept" >&5 5229echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5230if test "${ac_cv_func_accept+set}" = set; then 5231 echo $ECHO_N "(cached) $ECHO_C" >&6 5232else 5233 cat >conftest.$ac_ext <<_ACEOF 5234/* confdefs.h. */ 5235_ACEOF 5236cat confdefs.h >>conftest.$ac_ext 5237cat >>conftest.$ac_ext <<_ACEOF 5238/* end confdefs.h. */ 5239/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5240 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5241#define accept innocuous_accept 5242 5243/* System header to define __stub macros and hopefully few prototypes, 5244 which can conflict with char accept (); below. 5245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5246 <limits.h> exists even on freestanding compilers. */ 5247 5248#ifdef __STDC__ 5249# include <limits.h> 5250#else 5251# include <assert.h> 5252#endif 5253 5254#undef accept 5255 5256/* Override any GCC internal prototype to avoid an error. 5257 Use char because int might match the return type of a GCC 5258 builtin and then its argument prototype would still apply. */ 5259#ifdef __cplusplus 5260extern "C" 5261#endif 5262char accept (); 5263/* The GNU C library defines this for functions which it implements 5264 to always fail with ENOSYS. Some functions are actually named 5265 something starting with __ and the normal name is an alias. */ 5266#if defined __stub_accept || defined __stub___accept 5267choke me 5268#endif 5269 5270int 5271main () 5272{ 5273return accept (); 5274 ; 5275 return 0; 5276} 5277_ACEOF 5278rm -f conftest.$ac_objext conftest$ac_exeext 5279if { (ac_try="$ac_link" 5280case "(($ac_try" in 5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5282 *) ac_try_echo=$ac_try;; 5283esac 5284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5285 (eval "$ac_link") 2>conftest.er1 5286 ac_status=$? 5287 grep -v '^ *+' conftest.er1 >conftest.err 5288 rm -f conftest.er1 5289 cat conftest.err >&5 5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5291 (exit $ac_status); } && { 5292 test -z "$ac_c_werror_flag" || 5293 test ! -s conftest.err 5294 } && test -s conftest$ac_exeext && 5295 $as_test_x conftest$ac_exeext; then 5296 ac_cv_func_accept=yes 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301 ac_cv_func_accept=no 5302fi 5303 5304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5305 conftest$ac_exeext conftest.$ac_ext 5306fi 5307{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5308echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5309if test $ac_cv_func_accept = yes; then 5310 tcl_checkNsl=0 5311else 5312 LIBS=$tk_oldLibs 5313fi 5314 5315 fi 5316 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5317echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5318if test "${ac_cv_func_gethostbyname+set}" = set; then 5319 echo $ECHO_N "(cached) $ECHO_C" >&6 5320else 5321 cat >conftest.$ac_ext <<_ACEOF 5322/* confdefs.h. */ 5323_ACEOF 5324cat confdefs.h >>conftest.$ac_ext 5325cat >>conftest.$ac_ext <<_ACEOF 5326/* end confdefs.h. */ 5327/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5328 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5329#define gethostbyname innocuous_gethostbyname 5330 5331/* System header to define __stub macros and hopefully few prototypes, 5332 which can conflict with char gethostbyname (); below. 5333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5334 <limits.h> exists even on freestanding compilers. */ 5335 5336#ifdef __STDC__ 5337# include <limits.h> 5338#else 5339# include <assert.h> 5340#endif 5341 5342#undef gethostbyname 5343 5344/* Override any GCC internal prototype to avoid an error. 5345 Use char because int might match the return type of a GCC 5346 builtin and then its argument prototype would still apply. */ 5347#ifdef __cplusplus 5348extern "C" 5349#endif 5350char gethostbyname (); 5351/* The GNU C library defines this for functions which it implements 5352 to always fail with ENOSYS. Some functions are actually named 5353 something starting with __ and the normal name is an alias. */ 5354#if defined __stub_gethostbyname || defined __stub___gethostbyname 5355choke me 5356#endif 5357 5358int 5359main () 5360{ 5361return gethostbyname (); 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366rm -f conftest.$ac_objext conftest$ac_exeext 5367if { (ac_try="$ac_link" 5368case "(($ac_try" in 5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5370 *) ac_try_echo=$ac_try;; 5371esac 5372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5373 (eval "$ac_link") 2>conftest.er1 5374 ac_status=$? 5375 grep -v '^ *+' conftest.er1 >conftest.err 5376 rm -f conftest.er1 5377 cat conftest.err >&5 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); } && { 5380 test -z "$ac_c_werror_flag" || 5381 test ! -s conftest.err 5382 } && test -s conftest$ac_exeext && 5383 $as_test_x conftest$ac_exeext; then 5384 ac_cv_func_gethostbyname=yes 5385else 5386 echo "$as_me: failed program was:" >&5 5387sed 's/^/| /' conftest.$ac_ext >&5 5388 5389 ac_cv_func_gethostbyname=no 5390fi 5391 5392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5393 conftest$ac_exeext conftest.$ac_ext 5394fi 5395{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5396echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5397if test $ac_cv_func_gethostbyname = yes; then 5398 : 5399else 5400 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5401echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5402if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5403 echo $ECHO_N "(cached) $ECHO_C" >&6 5404else 5405 ac_check_lib_save_LIBS=$LIBS 5406LIBS="-lnsl $LIBS" 5407cat >conftest.$ac_ext <<_ACEOF 5408/* confdefs.h. */ 5409_ACEOF 5410cat confdefs.h >>conftest.$ac_ext 5411cat >>conftest.$ac_ext <<_ACEOF 5412/* end confdefs.h. */ 5413 5414/* Override any GCC internal prototype to avoid an error. 5415 Use char because int might match the return type of a GCC 5416 builtin and then its argument prototype would still apply. */ 5417#ifdef __cplusplus 5418extern "C" 5419#endif 5420char gethostbyname (); 5421int 5422main () 5423{ 5424return gethostbyname (); 5425 ; 5426 return 0; 5427} 5428_ACEOF 5429rm -f conftest.$ac_objext conftest$ac_exeext 5430if { (ac_try="$ac_link" 5431case "(($ac_try" in 5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5433 *) ac_try_echo=$ac_try;; 5434esac 5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5436 (eval "$ac_link") 2>conftest.er1 5437 ac_status=$? 5438 grep -v '^ *+' conftest.er1 >conftest.err 5439 rm -f conftest.er1 5440 cat conftest.err >&5 5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5442 (exit $ac_status); } && { 5443 test -z "$ac_c_werror_flag" || 5444 test ! -s conftest.err 5445 } && test -s conftest$ac_exeext && 5446 $as_test_x conftest$ac_exeext; then 5447 ac_cv_lib_nsl_gethostbyname=yes 5448else 5449 echo "$as_me: failed program was:" >&5 5450sed 's/^/| /' conftest.$ac_ext >&5 5451 5452 ac_cv_lib_nsl_gethostbyname=no 5453fi 5454 5455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5456 conftest$ac_exeext conftest.$ac_ext 5457LIBS=$ac_check_lib_save_LIBS 5458fi 5459{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5460echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5461if test $ac_cv_lib_nsl_gethostbyname = yes; then 5462 LIBS="$LIBS -lnsl" 5463fi 5464 5465fi 5466 5467 5468 # TEA specific: Don't perform the eval of the libraries here because 5469 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5470 5471 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5472 5473 5474 5475 5476 { echo "$as_me:$LINENO: checking dirent.h" >&5 5477echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5478if test "${tcl_cv_dirent_h+set}" = set; then 5479 echo $ECHO_N "(cached) $ECHO_C" >&6 5480else 5481 5482 cat >conftest.$ac_ext <<_ACEOF 5483/* confdefs.h. */ 5484_ACEOF 5485cat confdefs.h >>conftest.$ac_ext 5486cat >>conftest.$ac_ext <<_ACEOF 5487/* end confdefs.h. */ 5488#include <sys/types.h> 5489#include <dirent.h> 5490int 5491main () 5492{ 5493 5494#ifndef _POSIX_SOURCE 5495# ifdef __Lynx__ 5496 /* 5497 * Generate compilation error to make the test fail: Lynx headers 5498 * are only valid if really in the POSIX environment. 5499 */ 5500 5501 missing_procedure(); 5502# endif 5503#endif 5504DIR *d; 5505struct dirent *entryPtr; 5506char *p; 5507d = opendir("foobar"); 5508entryPtr = readdir(d); 5509p = entryPtr->d_name; 5510closedir(d); 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516rm -f conftest.$ac_objext conftest$ac_exeext 5517if { (ac_try="$ac_link" 5518case "(($ac_try" in 5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5520 *) ac_try_echo=$ac_try;; 5521esac 5522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5523 (eval "$ac_link") 2>conftest.er1 5524 ac_status=$? 5525 grep -v '^ *+' conftest.er1 >conftest.err 5526 rm -f conftest.er1 5527 cat conftest.err >&5 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); } && { 5530 test -z "$ac_c_werror_flag" || 5531 test ! -s conftest.err 5532 } && test -s conftest$ac_exeext && 5533 $as_test_x conftest$ac_exeext; then 5534 tcl_cv_dirent_h=yes 5535else 5536 echo "$as_me: failed program was:" >&5 5537sed 's/^/| /' conftest.$ac_ext >&5 5538 5539 tcl_cv_dirent_h=no 5540fi 5541 5542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5543 conftest$ac_exeext conftest.$ac_ext 5544fi 5545{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5546echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5547 5548 if test $tcl_cv_dirent_h = no; then 5549 5550cat >>confdefs.h <<\_ACEOF 5551#define NO_DIRENT_H 1 5552_ACEOF 5553 5554 fi 5555 5556 # TEA specific: 5557 if test "${ac_cv_header_errno_h+set}" = set; then 5558 { echo "$as_me:$LINENO: checking for errno.h" >&5 5559echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5560if test "${ac_cv_header_errno_h+set}" = set; then 5561 echo $ECHO_N "(cached) $ECHO_C" >&6 5562fi 5563{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5564echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5565else 5566 # Is the header compilable? 5567{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5568echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5569cat >conftest.$ac_ext <<_ACEOF 5570/* confdefs.h. */ 5571_ACEOF 5572cat confdefs.h >>conftest.$ac_ext 5573cat >>conftest.$ac_ext <<_ACEOF 5574/* end confdefs.h. */ 5575$ac_includes_default 5576#include <errno.h> 5577_ACEOF 5578rm -f conftest.$ac_objext 5579if { (ac_try="$ac_compile" 5580case "(($ac_try" in 5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5582 *) ac_try_echo=$ac_try;; 5583esac 5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5585 (eval "$ac_compile") 2>conftest.er1 5586 ac_status=$? 5587 grep -v '^ *+' conftest.er1 >conftest.err 5588 rm -f conftest.er1 5589 cat conftest.err >&5 5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5591 (exit $ac_status); } && { 5592 test -z "$ac_c_werror_flag" || 5593 test ! -s conftest.err 5594 } && test -s conftest.$ac_objext; then 5595 ac_header_compiler=yes 5596else 5597 echo "$as_me: failed program was:" >&5 5598sed 's/^/| /' conftest.$ac_ext >&5 5599 5600 ac_header_compiler=no 5601fi 5602 5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5605echo "${ECHO_T}$ac_header_compiler" >&6; } 5606 5607# Is the header present? 5608{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5609echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5610cat >conftest.$ac_ext <<_ACEOF 5611/* confdefs.h. */ 5612_ACEOF 5613cat confdefs.h >>conftest.$ac_ext 5614cat >>conftest.$ac_ext <<_ACEOF 5615/* end confdefs.h. */ 5616#include <errno.h> 5617_ACEOF 5618if { (ac_try="$ac_cpp conftest.$ac_ext" 5619case "(($ac_try" in 5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5621 *) ac_try_echo=$ac_try;; 5622esac 5623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5625 ac_status=$? 5626 grep -v '^ *+' conftest.er1 >conftest.err 5627 rm -f conftest.er1 5628 cat conftest.err >&5 5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5630 (exit $ac_status); } >/dev/null && { 5631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5632 test ! -s conftest.err 5633 }; then 5634 ac_header_preproc=yes 5635else 5636 echo "$as_me: failed program was:" >&5 5637sed 's/^/| /' conftest.$ac_ext >&5 5638 5639 ac_header_preproc=no 5640fi 5641 5642rm -f conftest.err conftest.$ac_ext 5643{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5644echo "${ECHO_T}$ac_header_preproc" >&6; } 5645 5646# So? What about this header? 5647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5648 yes:no: ) 5649 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5650echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5651 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5652echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5653 ac_header_preproc=yes 5654 ;; 5655 no:yes:* ) 5656 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5657echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5658 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5659echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5660 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5661echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5662 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5663echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5664 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5665echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5666 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5667echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5668 5669 ;; 5670esac 5671{ echo "$as_me:$LINENO: checking for errno.h" >&5 5672echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5673if test "${ac_cv_header_errno_h+set}" = set; then 5674 echo $ECHO_N "(cached) $ECHO_C" >&6 5675else 5676 ac_cv_header_errno_h=$ac_header_preproc 5677fi 5678{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5679echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5680 5681fi 5682if test $ac_cv_header_errno_h = yes; then 5683 : 5684else 5685 5686cat >>confdefs.h <<\_ACEOF 5687#define NO_ERRNO_H 1 5688_ACEOF 5689 5690fi 5691 5692 5693 if test "${ac_cv_header_float_h+set}" = set; then 5694 { echo "$as_me:$LINENO: checking for float.h" >&5 5695echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5696if test "${ac_cv_header_float_h+set}" = set; then 5697 echo $ECHO_N "(cached) $ECHO_C" >&6 5698fi 5699{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5700echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5701else 5702 # Is the header compilable? 5703{ echo "$as_me:$LINENO: checking float.h usability" >&5 5704echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5705cat >conftest.$ac_ext <<_ACEOF 5706/* confdefs.h. */ 5707_ACEOF 5708cat confdefs.h >>conftest.$ac_ext 5709cat >>conftest.$ac_ext <<_ACEOF 5710/* end confdefs.h. */ 5711$ac_includes_default 5712#include <float.h> 5713_ACEOF 5714rm -f conftest.$ac_objext 5715if { (ac_try="$ac_compile" 5716case "(($ac_try" in 5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5718 *) ac_try_echo=$ac_try;; 5719esac 5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5721 (eval "$ac_compile") 2>conftest.er1 5722 ac_status=$? 5723 grep -v '^ *+' conftest.er1 >conftest.err 5724 rm -f conftest.er1 5725 cat conftest.err >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); } && { 5728 test -z "$ac_c_werror_flag" || 5729 test ! -s conftest.err 5730 } && test -s conftest.$ac_objext; then 5731 ac_header_compiler=yes 5732else 5733 echo "$as_me: failed program was:" >&5 5734sed 's/^/| /' conftest.$ac_ext >&5 5735 5736 ac_header_compiler=no 5737fi 5738 5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5740{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5741echo "${ECHO_T}$ac_header_compiler" >&6; } 5742 5743# Is the header present? 5744{ echo "$as_me:$LINENO: checking float.h presence" >&5 5745echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5746cat >conftest.$ac_ext <<_ACEOF 5747/* confdefs.h. */ 5748_ACEOF 5749cat confdefs.h >>conftest.$ac_ext 5750cat >>conftest.$ac_ext <<_ACEOF 5751/* end confdefs.h. */ 5752#include <float.h> 5753_ACEOF 5754if { (ac_try="$ac_cpp conftest.$ac_ext" 5755case "(($ac_try" in 5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5757 *) ac_try_echo=$ac_try;; 5758esac 5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5761 ac_status=$? 5762 grep -v '^ *+' conftest.er1 >conftest.err 5763 rm -f conftest.er1 5764 cat conftest.err >&5 5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5766 (exit $ac_status); } >/dev/null && { 5767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5768 test ! -s conftest.err 5769 }; then 5770 ac_header_preproc=yes 5771else 5772 echo "$as_me: failed program was:" >&5 5773sed 's/^/| /' conftest.$ac_ext >&5 5774 5775 ac_header_preproc=no 5776fi 5777 5778rm -f conftest.err conftest.$ac_ext 5779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5780echo "${ECHO_T}$ac_header_preproc" >&6; } 5781 5782# So? What about this header? 5783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5784 yes:no: ) 5785 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5786echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5787 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5788echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5789 ac_header_preproc=yes 5790 ;; 5791 no:yes:* ) 5792 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5793echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5794 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5795echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5796 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5797echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5798 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5799echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5800 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5801echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5802 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5803echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5804 5805 ;; 5806esac 5807{ echo "$as_me:$LINENO: checking for float.h" >&5 5808echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5809if test "${ac_cv_header_float_h+set}" = set; then 5810 echo $ECHO_N "(cached) $ECHO_C" >&6 5811else 5812 ac_cv_header_float_h=$ac_header_preproc 5813fi 5814{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5815echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5816 5817fi 5818if test $ac_cv_header_float_h = yes; then 5819 : 5820else 5821 5822cat >>confdefs.h <<\_ACEOF 5823#define NO_FLOAT_H 1 5824_ACEOF 5825 5826fi 5827 5828 5829 if test "${ac_cv_header_values_h+set}" = set; then 5830 { echo "$as_me:$LINENO: checking for values.h" >&5 5831echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5832if test "${ac_cv_header_values_h+set}" = set; then 5833 echo $ECHO_N "(cached) $ECHO_C" >&6 5834fi 5835{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5836echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5837else 5838 # Is the header compilable? 5839{ echo "$as_me:$LINENO: checking values.h usability" >&5 5840echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5841cat >conftest.$ac_ext <<_ACEOF 5842/* confdefs.h. */ 5843_ACEOF 5844cat confdefs.h >>conftest.$ac_ext 5845cat >>conftest.$ac_ext <<_ACEOF 5846/* end confdefs.h. */ 5847$ac_includes_default 5848#include <values.h> 5849_ACEOF 5850rm -f conftest.$ac_objext 5851if { (ac_try="$ac_compile" 5852case "(($ac_try" in 5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5854 *) ac_try_echo=$ac_try;; 5855esac 5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5857 (eval "$ac_compile") 2>conftest.er1 5858 ac_status=$? 5859 grep -v '^ *+' conftest.er1 >conftest.err 5860 rm -f conftest.er1 5861 cat conftest.err >&5 5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5863 (exit $ac_status); } && { 5864 test -z "$ac_c_werror_flag" || 5865 test ! -s conftest.err 5866 } && test -s conftest.$ac_objext; then 5867 ac_header_compiler=yes 5868else 5869 echo "$as_me: failed program was:" >&5 5870sed 's/^/| /' conftest.$ac_ext >&5 5871 5872 ac_header_compiler=no 5873fi 5874 5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5876{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5877echo "${ECHO_T}$ac_header_compiler" >&6; } 5878 5879# Is the header present? 5880{ echo "$as_me:$LINENO: checking values.h presence" >&5 5881echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5882cat >conftest.$ac_ext <<_ACEOF 5883/* confdefs.h. */ 5884_ACEOF 5885cat confdefs.h >>conftest.$ac_ext 5886cat >>conftest.$ac_ext <<_ACEOF 5887/* end confdefs.h. */ 5888#include <values.h> 5889_ACEOF 5890if { (ac_try="$ac_cpp conftest.$ac_ext" 5891case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894esac 5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5897 ac_status=$? 5898 grep -v '^ *+' conftest.er1 >conftest.err 5899 rm -f conftest.er1 5900 cat conftest.err >&5 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); } >/dev/null && { 5903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5904 test ! -s conftest.err 5905 }; then 5906 ac_header_preproc=yes 5907else 5908 echo "$as_me: failed program was:" >&5 5909sed 's/^/| /' conftest.$ac_ext >&5 5910 5911 ac_header_preproc=no 5912fi 5913 5914rm -f conftest.err conftest.$ac_ext 5915{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5916echo "${ECHO_T}$ac_header_preproc" >&6; } 5917 5918# So? What about this header? 5919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5920 yes:no: ) 5921 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5922echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5923 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5924echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5925 ac_header_preproc=yes 5926 ;; 5927 no:yes:* ) 5928 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5929echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5930 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5931echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5932 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5933echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5934 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5935echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5936 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5937echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5938 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5939echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5940 5941 ;; 5942esac 5943{ echo "$as_me:$LINENO: checking for values.h" >&5 5944echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5945if test "${ac_cv_header_values_h+set}" = set; then 5946 echo $ECHO_N "(cached) $ECHO_C" >&6 5947else 5948 ac_cv_header_values_h=$ac_header_preproc 5949fi 5950{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5951echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5952 5953fi 5954if test $ac_cv_header_values_h = yes; then 5955 : 5956else 5957 5958cat >>confdefs.h <<\_ACEOF 5959#define NO_VALUES_H 1 5960_ACEOF 5961 5962fi 5963 5964 5965 if test "${ac_cv_header_limits_h+set}" = set; then 5966 { echo "$as_me:$LINENO: checking for limits.h" >&5 5967echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5968if test "${ac_cv_header_limits_h+set}" = set; then 5969 echo $ECHO_N "(cached) $ECHO_C" >&6 5970fi 5971{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5972echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5973else 5974 # Is the header compilable? 5975{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5976echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5977cat >conftest.$ac_ext <<_ACEOF 5978/* confdefs.h. */ 5979_ACEOF 5980cat confdefs.h >>conftest.$ac_ext 5981cat >>conftest.$ac_ext <<_ACEOF 5982/* end confdefs.h. */ 5983$ac_includes_default 5984#include <limits.h> 5985_ACEOF 5986rm -f conftest.$ac_objext 5987if { (ac_try="$ac_compile" 5988case "(($ac_try" in 5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5990 *) ac_try_echo=$ac_try;; 5991esac 5992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5993 (eval "$ac_compile") 2>conftest.er1 5994 ac_status=$? 5995 grep -v '^ *+' conftest.er1 >conftest.err 5996 rm -f conftest.er1 5997 cat conftest.err >&5 5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5999 (exit $ac_status); } && { 6000 test -z "$ac_c_werror_flag" || 6001 test ! -s conftest.err 6002 } && test -s conftest.$ac_objext; then 6003 ac_header_compiler=yes 6004else 6005 echo "$as_me: failed program was:" >&5 6006sed 's/^/| /' conftest.$ac_ext >&5 6007 6008 ac_header_compiler=no 6009fi 6010 6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6013echo "${ECHO_T}$ac_header_compiler" >&6; } 6014 6015# Is the header present? 6016{ echo "$as_me:$LINENO: checking limits.h presence" >&5 6017echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 6018cat >conftest.$ac_ext <<_ACEOF 6019/* confdefs.h. */ 6020_ACEOF 6021cat confdefs.h >>conftest.$ac_ext 6022cat >>conftest.$ac_ext <<_ACEOF 6023/* end confdefs.h. */ 6024#include <limits.h> 6025_ACEOF 6026if { (ac_try="$ac_cpp conftest.$ac_ext" 6027case "(($ac_try" in 6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6029 *) ac_try_echo=$ac_try;; 6030esac 6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6033 ac_status=$? 6034 grep -v '^ *+' conftest.er1 >conftest.err 6035 rm -f conftest.er1 6036 cat conftest.err >&5 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6038 (exit $ac_status); } >/dev/null && { 6039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6040 test ! -s conftest.err 6041 }; then 6042 ac_header_preproc=yes 6043else 6044 echo "$as_me: failed program was:" >&5 6045sed 's/^/| /' conftest.$ac_ext >&5 6046 6047 ac_header_preproc=no 6048fi 6049 6050rm -f conftest.err conftest.$ac_ext 6051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6052echo "${ECHO_T}$ac_header_preproc" >&6; } 6053 6054# So? What about this header? 6055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6056 yes:no: ) 6057 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6058echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6059 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6060echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6061 ac_header_preproc=yes 6062 ;; 6063 no:yes:* ) 6064 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6065echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6066 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6067echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6068 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6069echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6070 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6071echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6072 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6073echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6074 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6075echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6076 6077 ;; 6078esac 6079{ echo "$as_me:$LINENO: checking for limits.h" >&5 6080echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6081if test "${ac_cv_header_limits_h+set}" = set; then 6082 echo $ECHO_N "(cached) $ECHO_C" >&6 6083else 6084 ac_cv_header_limits_h=$ac_header_preproc 6085fi 6086{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6087echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6088 6089fi 6090if test $ac_cv_header_limits_h = yes; then 6091 6092cat >>confdefs.h <<\_ACEOF 6093#define HAVE_LIMITS_H 1 6094_ACEOF 6095 6096else 6097 6098cat >>confdefs.h <<\_ACEOF 6099#define NO_LIMITS_H 1 6100_ACEOF 6101 6102fi 6103 6104 6105 if test "${ac_cv_header_stdlib_h+set}" = set; then 6106 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6107echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6108if test "${ac_cv_header_stdlib_h+set}" = set; then 6109 echo $ECHO_N "(cached) $ECHO_C" >&6 6110fi 6111{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6112echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6113else 6114 # Is the header compilable? 6115{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6116echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6117cat >conftest.$ac_ext <<_ACEOF 6118/* confdefs.h. */ 6119_ACEOF 6120cat confdefs.h >>conftest.$ac_ext 6121cat >>conftest.$ac_ext <<_ACEOF 6122/* end confdefs.h. */ 6123$ac_includes_default 6124#include <stdlib.h> 6125_ACEOF 6126rm -f conftest.$ac_objext 6127if { (ac_try="$ac_compile" 6128case "(($ac_try" in 6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6130 *) ac_try_echo=$ac_try;; 6131esac 6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6133 (eval "$ac_compile") 2>conftest.er1 6134 ac_status=$? 6135 grep -v '^ *+' conftest.er1 >conftest.err 6136 rm -f conftest.er1 6137 cat conftest.err >&5 6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6139 (exit $ac_status); } && { 6140 test -z "$ac_c_werror_flag" || 6141 test ! -s conftest.err 6142 } && test -s conftest.$ac_objext; then 6143 ac_header_compiler=yes 6144else 6145 echo "$as_me: failed program was:" >&5 6146sed 's/^/| /' conftest.$ac_ext >&5 6147 6148 ac_header_compiler=no 6149fi 6150 6151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6152{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6153echo "${ECHO_T}$ac_header_compiler" >&6; } 6154 6155# Is the header present? 6156{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6157echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6158cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ 6164#include <stdlib.h> 6165_ACEOF 6166if { (ac_try="$ac_cpp conftest.$ac_ext" 6167case "(($ac_try" in 6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6169 *) ac_try_echo=$ac_try;; 6170esac 6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6173 ac_status=$? 6174 grep -v '^ *+' conftest.er1 >conftest.err 6175 rm -f conftest.er1 6176 cat conftest.err >&5 6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 (exit $ac_status); } >/dev/null && { 6179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6180 test ! -s conftest.err 6181 }; then 6182 ac_header_preproc=yes 6183else 6184 echo "$as_me: failed program was:" >&5 6185sed 's/^/| /' conftest.$ac_ext >&5 6186 6187 ac_header_preproc=no 6188fi 6189 6190rm -f conftest.err conftest.$ac_ext 6191{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6192echo "${ECHO_T}$ac_header_preproc" >&6; } 6193 6194# So? What about this header? 6195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6196 yes:no: ) 6197 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6198echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6199 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6200echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6201 ac_header_preproc=yes 6202 ;; 6203 no:yes:* ) 6204 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6205echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6206 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6207echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6208 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6209echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6210 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6211echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6212 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6213echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6214 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6215echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6216 6217 ;; 6218esac 6219{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6220echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6221if test "${ac_cv_header_stdlib_h+set}" = set; then 6222 echo $ECHO_N "(cached) $ECHO_C" >&6 6223else 6224 ac_cv_header_stdlib_h=$ac_header_preproc 6225fi 6226{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6227echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6228 6229fi 6230if test $ac_cv_header_stdlib_h = yes; then 6231 tcl_ok=1 6232else 6233 tcl_ok=0 6234fi 6235 6236 6237 cat >conftest.$ac_ext <<_ACEOF 6238/* confdefs.h. */ 6239_ACEOF 6240cat confdefs.h >>conftest.$ac_ext 6241cat >>conftest.$ac_ext <<_ACEOF 6242/* end confdefs.h. */ 6243#include <stdlib.h> 6244 6245_ACEOF 6246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6247 $EGREP "strtol" >/dev/null 2>&1; then 6248 : 6249else 6250 tcl_ok=0 6251fi 6252rm -f -r conftest* 6253 6254 cat >conftest.$ac_ext <<_ACEOF 6255/* confdefs.h. */ 6256_ACEOF 6257cat confdefs.h >>conftest.$ac_ext 6258cat >>conftest.$ac_ext <<_ACEOF 6259/* end confdefs.h. */ 6260#include <stdlib.h> 6261 6262_ACEOF 6263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6264 $EGREP "strtoul" >/dev/null 2>&1; then 6265 : 6266else 6267 tcl_ok=0 6268fi 6269rm -f -r conftest* 6270 6271 cat >conftest.$ac_ext <<_ACEOF 6272/* confdefs.h. */ 6273_ACEOF 6274cat confdefs.h >>conftest.$ac_ext 6275cat >>conftest.$ac_ext <<_ACEOF 6276/* end confdefs.h. */ 6277#include <stdlib.h> 6278 6279_ACEOF 6280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6281 $EGREP "strtod" >/dev/null 2>&1; then 6282 : 6283else 6284 tcl_ok=0 6285fi 6286rm -f -r conftest* 6287 6288 if test $tcl_ok = 0; then 6289 6290cat >>confdefs.h <<\_ACEOF 6291#define NO_STDLIB_H 1 6292_ACEOF 6293 6294 fi 6295 if test "${ac_cv_header_string_h+set}" = set; then 6296 { echo "$as_me:$LINENO: checking for string.h" >&5 6297echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6298if test "${ac_cv_header_string_h+set}" = set; then 6299 echo $ECHO_N "(cached) $ECHO_C" >&6 6300fi 6301{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6302echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6303else 6304 # Is the header compilable? 6305{ echo "$as_me:$LINENO: checking string.h usability" >&5 6306echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6307cat >conftest.$ac_ext <<_ACEOF 6308/* confdefs.h. */ 6309_ACEOF 6310cat confdefs.h >>conftest.$ac_ext 6311cat >>conftest.$ac_ext <<_ACEOF 6312/* end confdefs.h. */ 6313$ac_includes_default 6314#include <string.h> 6315_ACEOF 6316rm -f conftest.$ac_objext 6317if { (ac_try="$ac_compile" 6318case "(($ac_try" in 6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6320 *) ac_try_echo=$ac_try;; 6321esac 6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6323 (eval "$ac_compile") 2>conftest.er1 6324 ac_status=$? 6325 grep -v '^ *+' conftest.er1 >conftest.err 6326 rm -f conftest.er1 6327 cat conftest.err >&5 6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6329 (exit $ac_status); } && { 6330 test -z "$ac_c_werror_flag" || 6331 test ! -s conftest.err 6332 } && test -s conftest.$ac_objext; then 6333 ac_header_compiler=yes 6334else 6335 echo "$as_me: failed program was:" >&5 6336sed 's/^/| /' conftest.$ac_ext >&5 6337 6338 ac_header_compiler=no 6339fi 6340 6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6343echo "${ECHO_T}$ac_header_compiler" >&6; } 6344 6345# Is the header present? 6346{ echo "$as_me:$LINENO: checking string.h presence" >&5 6347echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6348cat >conftest.$ac_ext <<_ACEOF 6349/* confdefs.h. */ 6350_ACEOF 6351cat confdefs.h >>conftest.$ac_ext 6352cat >>conftest.$ac_ext <<_ACEOF 6353/* end confdefs.h. */ 6354#include <string.h> 6355_ACEOF 6356if { (ac_try="$ac_cpp conftest.$ac_ext" 6357case "(($ac_try" in 6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6359 *) ac_try_echo=$ac_try;; 6360esac 6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6363 ac_status=$? 6364 grep -v '^ *+' conftest.er1 >conftest.err 6365 rm -f conftest.er1 6366 cat conftest.err >&5 6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6368 (exit $ac_status); } >/dev/null && { 6369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6370 test ! -s conftest.err 6371 }; then 6372 ac_header_preproc=yes 6373else 6374 echo "$as_me: failed program was:" >&5 6375sed 's/^/| /' conftest.$ac_ext >&5 6376 6377 ac_header_preproc=no 6378fi 6379 6380rm -f conftest.err conftest.$ac_ext 6381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6382echo "${ECHO_T}$ac_header_preproc" >&6; } 6383 6384# So? What about this header? 6385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6386 yes:no: ) 6387 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6388echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6389 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6390echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6391 ac_header_preproc=yes 6392 ;; 6393 no:yes:* ) 6394 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6395echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6396 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6397echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6398 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6399echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6400 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6401echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6402 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6403echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6404 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6405echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6406 6407 ;; 6408esac 6409{ echo "$as_me:$LINENO: checking for string.h" >&5 6410echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6411if test "${ac_cv_header_string_h+set}" = set; then 6412 echo $ECHO_N "(cached) $ECHO_C" >&6 6413else 6414 ac_cv_header_string_h=$ac_header_preproc 6415fi 6416{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6417echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6418 6419fi 6420if test $ac_cv_header_string_h = yes; then 6421 tcl_ok=1 6422else 6423 tcl_ok=0 6424fi 6425 6426 6427 cat >conftest.$ac_ext <<_ACEOF 6428/* confdefs.h. */ 6429_ACEOF 6430cat confdefs.h >>conftest.$ac_ext 6431cat >>conftest.$ac_ext <<_ACEOF 6432/* end confdefs.h. */ 6433#include <string.h> 6434 6435_ACEOF 6436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6437 $EGREP "strstr" >/dev/null 2>&1; then 6438 : 6439else 6440 tcl_ok=0 6441fi 6442rm -f -r conftest* 6443 6444 cat >conftest.$ac_ext <<_ACEOF 6445/* confdefs.h. */ 6446_ACEOF 6447cat confdefs.h >>conftest.$ac_ext 6448cat >>conftest.$ac_ext <<_ACEOF 6449/* end confdefs.h. */ 6450#include <string.h> 6451 6452_ACEOF 6453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6454 $EGREP "strerror" >/dev/null 2>&1; then 6455 : 6456else 6457 tcl_ok=0 6458fi 6459rm -f -r conftest* 6460 6461 6462 # See also memmove check below for a place where NO_STRING_H can be 6463 # set and why. 6464 6465 if test $tcl_ok = 0; then 6466 6467cat >>confdefs.h <<\_ACEOF 6468#define NO_STRING_H 1 6469_ACEOF 6470 6471 fi 6472 6473 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6474 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6475echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6476if test "${ac_cv_header_sys_wait_h+set}" = set; then 6477 echo $ECHO_N "(cached) $ECHO_C" >&6 6478fi 6479{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6480echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6481else 6482 # Is the header compilable? 6483{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6484echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6485cat >conftest.$ac_ext <<_ACEOF 6486/* confdefs.h. */ 6487_ACEOF 6488cat confdefs.h >>conftest.$ac_ext 6489cat >>conftest.$ac_ext <<_ACEOF 6490/* end confdefs.h. */ 6491$ac_includes_default 6492#include <sys/wait.h> 6493_ACEOF 6494rm -f conftest.$ac_objext 6495if { (ac_try="$ac_compile" 6496case "(($ac_try" in 6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6498 *) ac_try_echo=$ac_try;; 6499esac 6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6501 (eval "$ac_compile") 2>conftest.er1 6502 ac_status=$? 6503 grep -v '^ *+' conftest.er1 >conftest.err 6504 rm -f conftest.er1 6505 cat conftest.err >&5 6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6507 (exit $ac_status); } && { 6508 test -z "$ac_c_werror_flag" || 6509 test ! -s conftest.err 6510 } && test -s conftest.$ac_objext; then 6511 ac_header_compiler=yes 6512else 6513 echo "$as_me: failed program was:" >&5 6514sed 's/^/| /' conftest.$ac_ext >&5 6515 6516 ac_header_compiler=no 6517fi 6518 6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6521echo "${ECHO_T}$ac_header_compiler" >&6; } 6522 6523# Is the header present? 6524{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6525echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6526cat >conftest.$ac_ext <<_ACEOF 6527/* confdefs.h. */ 6528_ACEOF 6529cat confdefs.h >>conftest.$ac_ext 6530cat >>conftest.$ac_ext <<_ACEOF 6531/* end confdefs.h. */ 6532#include <sys/wait.h> 6533_ACEOF 6534if { (ac_try="$ac_cpp conftest.$ac_ext" 6535case "(($ac_try" in 6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6537 *) ac_try_echo=$ac_try;; 6538esac 6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6541 ac_status=$? 6542 grep -v '^ *+' conftest.er1 >conftest.err 6543 rm -f conftest.er1 6544 cat conftest.err >&5 6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6546 (exit $ac_status); } >/dev/null && { 6547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6548 test ! -s conftest.err 6549 }; then 6550 ac_header_preproc=yes 6551else 6552 echo "$as_me: failed program was:" >&5 6553sed 's/^/| /' conftest.$ac_ext >&5 6554 6555 ac_header_preproc=no 6556fi 6557 6558rm -f conftest.err conftest.$ac_ext 6559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6560echo "${ECHO_T}$ac_header_preproc" >&6; } 6561 6562# So? What about this header? 6563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6564 yes:no: ) 6565 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6566echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6568echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6569 ac_header_preproc=yes 6570 ;; 6571 no:yes:* ) 6572 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6573echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6574 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6575echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6576 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6577echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6578 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6579echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6580 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6581echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6582 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6583echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6584 6585 ;; 6586esac 6587{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6588echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6589if test "${ac_cv_header_sys_wait_h+set}" = set; then 6590 echo $ECHO_N "(cached) $ECHO_C" >&6 6591else 6592 ac_cv_header_sys_wait_h=$ac_header_preproc 6593fi 6594{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6595echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6596 6597fi 6598if test $ac_cv_header_sys_wait_h = yes; then 6599 : 6600else 6601 6602cat >>confdefs.h <<\_ACEOF 6603#define NO_SYS_WAIT_H 1 6604_ACEOF 6605 6606fi 6607 6608 6609 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6610 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6611echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6612if test "${ac_cv_header_dlfcn_h+set}" = set; then 6613 echo $ECHO_N "(cached) $ECHO_C" >&6 6614fi 6615{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6616echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6617else 6618 # Is the header compilable? 6619{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6620echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6621cat >conftest.$ac_ext <<_ACEOF 6622/* confdefs.h. */ 6623_ACEOF 6624cat confdefs.h >>conftest.$ac_ext 6625cat >>conftest.$ac_ext <<_ACEOF 6626/* end confdefs.h. */ 6627$ac_includes_default 6628#include <dlfcn.h> 6629_ACEOF 6630rm -f conftest.$ac_objext 6631if { (ac_try="$ac_compile" 6632case "(($ac_try" in 6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6634 *) ac_try_echo=$ac_try;; 6635esac 6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6637 (eval "$ac_compile") 2>conftest.er1 6638 ac_status=$? 6639 grep -v '^ *+' conftest.er1 >conftest.err 6640 rm -f conftest.er1 6641 cat conftest.err >&5 6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6643 (exit $ac_status); } && { 6644 test -z "$ac_c_werror_flag" || 6645 test ! -s conftest.err 6646 } && test -s conftest.$ac_objext; then 6647 ac_header_compiler=yes 6648else 6649 echo "$as_me: failed program was:" >&5 6650sed 's/^/| /' conftest.$ac_ext >&5 6651 6652 ac_header_compiler=no 6653fi 6654 6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6657echo "${ECHO_T}$ac_header_compiler" >&6; } 6658 6659# Is the header present? 6660{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6661echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6662cat >conftest.$ac_ext <<_ACEOF 6663/* confdefs.h. */ 6664_ACEOF 6665cat confdefs.h >>conftest.$ac_ext 6666cat >>conftest.$ac_ext <<_ACEOF 6667/* end confdefs.h. */ 6668#include <dlfcn.h> 6669_ACEOF 6670if { (ac_try="$ac_cpp conftest.$ac_ext" 6671case "(($ac_try" in 6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6673 *) ac_try_echo=$ac_try;; 6674esac 6675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6677 ac_status=$? 6678 grep -v '^ *+' conftest.er1 >conftest.err 6679 rm -f conftest.er1 6680 cat conftest.err >&5 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } >/dev/null && { 6683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6684 test ! -s conftest.err 6685 }; then 6686 ac_header_preproc=yes 6687else 6688 echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691 ac_header_preproc=no 6692fi 6693 6694rm -f conftest.err conftest.$ac_ext 6695{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6696echo "${ECHO_T}$ac_header_preproc" >&6; } 6697 6698# So? What about this header? 6699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6700 yes:no: ) 6701 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6702echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6703 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6704echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6705 ac_header_preproc=yes 6706 ;; 6707 no:yes:* ) 6708 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6709echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6710 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6711echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6712 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6713echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6714 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6715echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6716 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6717echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6718 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6719echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6720 6721 ;; 6722esac 6723{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6724echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6725if test "${ac_cv_header_dlfcn_h+set}" = set; then 6726 echo $ECHO_N "(cached) $ECHO_C" >&6 6727else 6728 ac_cv_header_dlfcn_h=$ac_header_preproc 6729fi 6730{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6731echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6732 6733fi 6734if test $ac_cv_header_dlfcn_h = yes; then 6735 : 6736else 6737 6738cat >>confdefs.h <<\_ACEOF 6739#define NO_DLFCN_H 1 6740_ACEOF 6741 6742fi 6743 6744 6745 6746 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6747 6748for ac_header in sys/param.h 6749do 6750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6752 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6755 echo $ECHO_N "(cached) $ECHO_C" >&6 6756fi 6757ac_res=`eval echo '${'$as_ac_Header'}'` 6758 { echo "$as_me:$LINENO: result: $ac_res" >&5 6759echo "${ECHO_T}$ac_res" >&6; } 6760else 6761 # Is the header compilable? 6762{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6764cat >conftest.$ac_ext <<_ACEOF 6765/* confdefs.h. */ 6766_ACEOF 6767cat confdefs.h >>conftest.$ac_ext 6768cat >>conftest.$ac_ext <<_ACEOF 6769/* end confdefs.h. */ 6770$ac_includes_default 6771#include <$ac_header> 6772_ACEOF 6773rm -f conftest.$ac_objext 6774if { (ac_try="$ac_compile" 6775case "(($ac_try" in 6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6777 *) ac_try_echo=$ac_try;; 6778esac 6779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6780 (eval "$ac_compile") 2>conftest.er1 6781 ac_status=$? 6782 grep -v '^ *+' conftest.er1 >conftest.err 6783 rm -f conftest.er1 6784 cat conftest.err >&5 6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6786 (exit $ac_status); } && { 6787 test -z "$ac_c_werror_flag" || 6788 test ! -s conftest.err 6789 } && test -s conftest.$ac_objext; then 6790 ac_header_compiler=yes 6791else 6792 echo "$as_me: failed program was:" >&5 6793sed 's/^/| /' conftest.$ac_ext >&5 6794 6795 ac_header_compiler=no 6796fi 6797 6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6800echo "${ECHO_T}$ac_header_compiler" >&6; } 6801 6802# Is the header present? 6803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6805cat >conftest.$ac_ext <<_ACEOF 6806/* confdefs.h. */ 6807_ACEOF 6808cat confdefs.h >>conftest.$ac_ext 6809cat >>conftest.$ac_ext <<_ACEOF 6810/* end confdefs.h. */ 6811#include <$ac_header> 6812_ACEOF 6813if { (ac_try="$ac_cpp conftest.$ac_ext" 6814case "(($ac_try" in 6815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6816 *) ac_try_echo=$ac_try;; 6817esac 6818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6820 ac_status=$? 6821 grep -v '^ *+' conftest.er1 >conftest.err 6822 rm -f conftest.er1 6823 cat conftest.err >&5 6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6825 (exit $ac_status); } >/dev/null && { 6826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6827 test ! -s conftest.err 6828 }; then 6829 ac_header_preproc=yes 6830else 6831 echo "$as_me: failed program was:" >&5 6832sed 's/^/| /' conftest.$ac_ext >&5 6833 6834 ac_header_preproc=no 6835fi 6836 6837rm -f conftest.err conftest.$ac_ext 6838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6839echo "${ECHO_T}$ac_header_preproc" >&6; } 6840 6841# So? What about this header? 6842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6843 yes:no: ) 6844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6848 ac_header_preproc=yes 6849 ;; 6850 no:yes:* ) 6851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6863 6864 ;; 6865esac 6866{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6869 echo $ECHO_N "(cached) $ECHO_C" >&6 6870else 6871 eval "$as_ac_Header=\$ac_header_preproc" 6872fi 6873ac_res=`eval echo '${'$as_ac_Header'}'` 6874 { echo "$as_me:$LINENO: result: $ac_res" >&5 6875echo "${ECHO_T}$ac_res" >&6; } 6876 6877fi 6878if test `eval echo '${'$as_ac_Header'}'` = yes; then 6879 cat >>confdefs.h <<_ACEOF 6880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6881_ACEOF 6882 6883fi 6884 6885done 6886 6887 6888 # Let the user call this, because if it triggers, they will 6889 # need a compat/strtod.c that is correct. Users can also 6890 # use Tcl_GetDouble(FromObj) instead. 6891 #TEA_BUGGY_STRTOD 6892 fi 6893 6894 6895#----------------------------------------------------------------------- 6896# Specify the C source files to compile in TEA_ADD_SOURCES, 6897# public headers that need to be installed in TEA_ADD_HEADERS, 6898# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6899# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6900# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6901# and PKG_TCL_SOURCES. 6902#----------------------------------------------------------------------- 6903 6904 6905 vars="zlib.c bz2lib.c loadman.c init.c registry.c unstack.c load.c crypt.c" 6906 for i in $vars; do 6907 case $i in 6908 \$*) 6909 # allow $-var names 6910 PKG_SOURCES="$PKG_SOURCES $i" 6911 PKG_OBJECTS="$PKG_OBJECTS $i" 6912 ;; 6913 *) 6914 # check for existence - allows for generic/win/unix VPATH 6915 # To add more dirs here (like 'src'), you have to update VPATH 6916 # in Makefile.in as well 6917 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6918 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6919 -a ! -f "${srcdir}/macosx/$i" \ 6920 ; then 6921 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6922echo "$as_me: error: could not find source file '$i'" >&2;} 6923 { (exit 1); exit 1; }; } 6924 fi 6925 PKG_SOURCES="$PKG_SOURCES $i" 6926 # this assumes it is in a VPATH dir 6927 i=`basename $i` 6928 # handle user calling this before or after TEA_SETUP_COMPILER 6929 if test x"${OBJEXT}" != x ; then 6930 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6931 else 6932 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6933 fi 6934 PKG_OBJECTS="$PKG_OBJECTS $j" 6935 ;; 6936 esac 6937 done 6938 6939 6940 6941 6942 6943 vars="convert.c util.c ref_opt.c" 6944 for i in $vars; do 6945 case $i in 6946 \$*) 6947 # allow $-var names 6948 PKG_SOURCES="$PKG_SOURCES $i" 6949 PKG_OBJECTS="$PKG_OBJECTS $i" 6950 ;; 6951 *) 6952 # check for existence - allows for generic/win/unix VPATH 6953 # To add more dirs here (like 'src'), you have to update VPATH 6954 # in Makefile.in as well 6955 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6956 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6957 -a ! -f "${srcdir}/macosx/$i" \ 6958 ; then 6959 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6960echo "$as_me: error: could not find source file '$i'" >&2;} 6961 { (exit 1); exit 1; }; } 6962 fi 6963 PKG_SOURCES="$PKG_SOURCES $i" 6964 # this assumes it is in a VPATH dir 6965 i=`basename $i` 6966 # handle user calling this before or after TEA_SETUP_COMPILER 6967 if test x"${OBJEXT}" != x ; then 6968 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6969 else 6970 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6971 fi 6972 PKG_OBJECTS="$PKG_OBJECTS $j" 6973 ;; 6974 esac 6975 done 6976 6977 6978 6979 6980 vars="bincode.c hexcode.c octcode.c" 6981 for i in $vars; do 6982 case $i in 6983 \$*) 6984 # allow $-var names 6985 PKG_SOURCES="$PKG_SOURCES $i" 6986 PKG_OBJECTS="$PKG_OBJECTS $i" 6987 ;; 6988 *) 6989 # check for existence - allows for generic/win/unix VPATH 6990 # To add more dirs here (like 'src'), you have to update VPATH 6991 # in Makefile.in as well 6992 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6993 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6994 -a ! -f "${srcdir}/macosx/$i" \ 6995 ; then 6996 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6997echo "$as_me: error: could not find source file '$i'" >&2;} 6998 { (exit 1); exit 1; }; } 6999 fi 7000 PKG_SOURCES="$PKG_SOURCES $i" 7001 # this assumes it is in a VPATH dir 7002 i=`basename $i` 7003 # handle user calling this before or after TEA_SETUP_COMPILER 7004 if test x"${OBJEXT}" != x ; then 7005 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7006 else 7007 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7008 fi 7009 PKG_OBJECTS="$PKG_OBJECTS $j" 7010 ;; 7011 esac 7012 done 7013 7014 7015 7016 7017 vars="uucode.c b64code.c asc85code.c" 7018 for i in $vars; do 7019 case $i in 7020 \$*) 7021 # allow $-var names 7022 PKG_SOURCES="$PKG_SOURCES $i" 7023 PKG_OBJECTS="$PKG_OBJECTS $i" 7024 ;; 7025 *) 7026 # check for existence - allows for generic/win/unix VPATH 7027 # To add more dirs here (like 'src'), you have to update VPATH 7028 # in Makefile.in as well 7029 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7030 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7031 -a ! -f "${srcdir}/macosx/$i" \ 7032 ; then 7033 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7034echo "$as_me: error: could not find source file '$i'" >&2;} 7035 { (exit 1); exit 1; }; } 7036 fi 7037 PKG_SOURCES="$PKG_SOURCES $i" 7038 # this assumes it is in a VPATH dir 7039 i=`basename $i` 7040 # handle user calling this before or after TEA_SETUP_COMPILER 7041 if test x"${OBJEXT}" != x ; then 7042 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7043 else 7044 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7045 fi 7046 PKG_OBJECTS="$PKG_OBJECTS $j" 7047 ;; 7048 esac 7049 done 7050 7051 7052 7053 7054 vars="otpcode.c qpcode.c reflect.c" 7055 for i in $vars; do 7056 case $i in 7057 \$*) 7058 # allow $-var names 7059 PKG_SOURCES="$PKG_SOURCES $i" 7060 PKG_OBJECTS="$PKG_OBJECTS $i" 7061 ;; 7062 *) 7063 # check for existence - allows for generic/win/unix VPATH 7064 # To add more dirs here (like 'src'), you have to update VPATH 7065 # in Makefile.in as well 7066 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7067 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7068 -a ! -f "${srcdir}/macosx/$i" \ 7069 ; then 7070 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7071echo "$as_me: error: could not find source file '$i'" >&2;} 7072 { (exit 1); exit 1; }; } 7073 fi 7074 PKG_SOURCES="$PKG_SOURCES $i" 7075 # this assumes it is in a VPATH dir 7076 i=`basename $i` 7077 # handle user calling this before or after TEA_SETUP_COMPILER 7078 if test x"${OBJEXT}" != x ; then 7079 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7080 else 7081 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7082 fi 7083 PKG_OBJECTS="$PKG_OBJECTS $j" 7084 ;; 7085 esac 7086 done 7087 7088 7089 7090 7091 7092 vars="dig_opt.c digest.c" 7093 for i in $vars; do 7094 case $i in 7095 \$*) 7096 # allow $-var names 7097 PKG_SOURCES="$PKG_SOURCES $i" 7098 PKG_OBJECTS="$PKG_OBJECTS $i" 7099 ;; 7100 *) 7101 # check for existence - allows for generic/win/unix VPATH 7102 # To add more dirs here (like 'src'), you have to update VPATH 7103 # in Makefile.in as well 7104 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7105 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7106 -a ! -f "${srcdir}/macosx/$i" \ 7107 ; then 7108 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7109echo "$as_me: error: could not find source file '$i'" >&2;} 7110 { (exit 1); exit 1; }; } 7111 fi 7112 PKG_SOURCES="$PKG_SOURCES $i" 7113 # this assumes it is in a VPATH dir 7114 i=`basename $i` 7115 # handle user calling this before or after TEA_SETUP_COMPILER 7116 if test x"${OBJEXT}" != x ; then 7117 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7118 else 7119 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7120 fi 7121 PKG_OBJECTS="$PKG_OBJECTS $j" 7122 ;; 7123 esac 7124 done 7125 7126 7127 7128 7129 vars="crc.c crc_zlib.c adler.c" 7130 for i in $vars; do 7131 case $i in 7132 \$*) 7133 # allow $-var names 7134 PKG_SOURCES="$PKG_SOURCES $i" 7135 PKG_OBJECTS="$PKG_OBJECTS $i" 7136 ;; 7137 *) 7138 # check for existence - allows for generic/win/unix VPATH 7139 # To add more dirs here (like 'src'), you have to update VPATH 7140 # in Makefile.in as well 7141 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7142 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7143 -a ! -f "${srcdir}/macosx/$i" \ 7144 ; then 7145 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7146echo "$as_me: error: could not find source file '$i'" >&2;} 7147 { (exit 1); exit 1; }; } 7148 fi 7149 PKG_SOURCES="$PKG_SOURCES $i" 7150 # this assumes it is in a VPATH dir 7151 i=`basename $i` 7152 # handle user calling this before or after TEA_SETUP_COMPILER 7153 if test x"${OBJEXT}" != x ; then 7154 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7155 else 7156 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7157 fi 7158 PKG_OBJECTS="$PKG_OBJECTS $j" 7159 ;; 7160 esac 7161 done 7162 7163 7164 7165 7166 vars="md5dig.c haval.c sha.c md2.c sha1.c" 7167 for i in $vars; do 7168 case $i in 7169 \$*) 7170 # allow $-var names 7171 PKG_SOURCES="$PKG_SOURCES $i" 7172 PKG_OBJECTS="$PKG_OBJECTS $i" 7173 ;; 7174 *) 7175 # check for existence - allows for generic/win/unix VPATH 7176 # To add more dirs here (like 'src'), you have to update VPATH 7177 # in Makefile.in as well 7178 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7179 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7180 -a ! -f "${srcdir}/macosx/$i" \ 7181 ; then 7182 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7183echo "$as_me: error: could not find source file '$i'" >&2;} 7184 { (exit 1); exit 1; }; } 7185 fi 7186 PKG_SOURCES="$PKG_SOURCES $i" 7187 # this assumes it is in a VPATH dir 7188 i=`basename $i` 7189 # handle user calling this before or after TEA_SETUP_COMPILER 7190 if test x"${OBJEXT}" != x ; then 7191 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7192 else 7193 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7194 fi 7195 PKG_OBJECTS="$PKG_OBJECTS $j" 7196 ;; 7197 esac 7198 done 7199 7200 7201 7202 7203 vars="rmd160.c rmd128.c" 7204 for i in $vars; do 7205 case $i in 7206 \$*) 7207 # allow $-var names 7208 PKG_SOURCES="$PKG_SOURCES $i" 7209 PKG_OBJECTS="$PKG_OBJECTS $i" 7210 ;; 7211 *) 7212 # check for existence - allows for generic/win/unix VPATH 7213 # To add more dirs here (like 'src'), you have to update VPATH 7214 # in Makefile.in as well 7215 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7216 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7217 -a ! -f "${srcdir}/macosx/$i" \ 7218 ; then 7219 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7220echo "$as_me: error: could not find source file '$i'" >&2;} 7221 { (exit 1); exit 1; }; } 7222 fi 7223 PKG_SOURCES="$PKG_SOURCES $i" 7224 # this assumes it is in a VPATH dir 7225 i=`basename $i` 7226 # handle user calling this before or after TEA_SETUP_COMPILER 7227 if test x"${OBJEXT}" != x ; then 7228 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7229 else 7230 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7231 fi 7232 PKG_OBJECTS="$PKG_OBJECTS $j" 7233 ;; 7234 esac 7235 done 7236 7237 7238 7239 7240 vars="otpmd5.c otpsha1.c" 7241 for i in $vars; do 7242 case $i in 7243 \$*) 7244 # allow $-var names 7245 PKG_SOURCES="$PKG_SOURCES $i" 7246 PKG_OBJECTS="$PKG_OBJECTS $i" 7247 ;; 7248 *) 7249 # check for existence - allows for generic/win/unix VPATH 7250 # To add more dirs here (like 'src'), you have to update VPATH 7251 # in Makefile.in as well 7252 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7253 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7254 -a ! -f "${srcdir}/macosx/$i" \ 7255 ; then 7256 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7257echo "$as_me: error: could not find source file '$i'" >&2;} 7258 { (exit 1); exit 1; }; } 7259 fi 7260 PKG_SOURCES="$PKG_SOURCES $i" 7261 # this assumes it is in a VPATH dir 7262 i=`basename $i` 7263 # handle user calling this before or after TEA_SETUP_COMPILER 7264 if test x"${OBJEXT}" != x ; then 7265 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7266 else 7267 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7268 fi 7269 PKG_OBJECTS="$PKG_OBJECTS $j" 7270 ;; 7271 esac 7272 done 7273 7274 7275 7276 7277 7278 vars="rs_ecc.c" 7279 for i in $vars; do 7280 case $i in 7281 \$*) 7282 # allow $-var names 7283 PKG_SOURCES="$PKG_SOURCES $i" 7284 PKG_OBJECTS="$PKG_OBJECTS $i" 7285 ;; 7286 *) 7287 # check for existence - allows for generic/win/unix VPATH 7288 # To add more dirs here (like 'src'), you have to update VPATH 7289 # in Makefile.in as well 7290 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7291 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7292 -a ! -f "${srcdir}/macosx/$i" \ 7293 ; then 7294 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7295echo "$as_me: error: could not find source file '$i'" >&2;} 7296 { (exit 1); exit 1; }; } 7297 fi 7298 PKG_SOURCES="$PKG_SOURCES $i" 7299 # this assumes it is in a VPATH dir 7300 i=`basename $i` 7301 # handle user calling this before or after TEA_SETUP_COMPILER 7302 if test x"${OBJEXT}" != x ; then 7303 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7304 else 7305 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7306 fi 7307 PKG_OBJECTS="$PKG_OBJECTS $j" 7308 ;; 7309 esac 7310 done 7311 7312 7313 7314 7315 vars="zip_opt.c zip.c bz2_opt.c bz2.c" 7316 for i in $vars; do 7317 case $i in 7318 \$*) 7319 # allow $-var names 7320 PKG_SOURCES="$PKG_SOURCES $i" 7321 PKG_OBJECTS="$PKG_OBJECTS $i" 7322 ;; 7323 *) 7324 # check for existence - allows for generic/win/unix VPATH 7325 # To add more dirs here (like 'src'), you have to update VPATH 7326 # in Makefile.in as well 7327 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7328 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7329 -a ! -f "${srcdir}/macosx/$i" \ 7330 ; then 7331 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7332echo "$as_me: error: could not find source file '$i'" >&2;} 7333 { (exit 1); exit 1; }; } 7334 fi 7335 PKG_SOURCES="$PKG_SOURCES $i" 7336 # this assumes it is in a VPATH dir 7337 i=`basename $i` 7338 # handle user calling this before or after TEA_SETUP_COMPILER 7339 if test x"${OBJEXT}" != x ; then 7340 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7341 else 7342 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7343 fi 7344 PKG_OBJECTS="$PKG_OBJECTS $j" 7345 ;; 7346 esac 7347 done 7348 7349 7350 7351 7352 7353 vars="trfStubInit.c" 7354 for i in $vars; do 7355 case $i in 7356 \$*) 7357 # allow $-var names 7358 PKG_SOURCES="$PKG_SOURCES $i" 7359 PKG_OBJECTS="$PKG_OBJECTS $i" 7360 ;; 7361 *) 7362 # check for existence - allows for generic/win/unix VPATH 7363 # To add more dirs here (like 'src'), you have to update VPATH 7364 # in Makefile.in as well 7365 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7366 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7367 -a ! -f "${srcdir}/macosx/$i" \ 7368 ; then 7369 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7370echo "$as_me: error: could not find source file '$i'" >&2;} 7371 { (exit 1); exit 1; }; } 7372 fi 7373 PKG_SOURCES="$PKG_SOURCES $i" 7374 # this assumes it is in a VPATH dir 7375 i=`basename $i` 7376 # handle user calling this before or after TEA_SETUP_COMPILER 7377 if test x"${OBJEXT}" != x ; then 7378 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7379 else 7380 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7381 fi 7382 PKG_OBJECTS="$PKG_OBJECTS $j" 7383 ;; 7384 esac 7385 done 7386 7387 7388 7389 7390 vars="generic/transform.h generic/trfDecls.h" 7391 for i in $vars; do 7392 # check for existence, be strict because it is installed 7393 if test ! -f "${srcdir}/$i" ; then 7394 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7395echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7396 { (exit 1); exit 1; }; } 7397 fi 7398 PKG_HEADERS="$PKG_HEADERS $i" 7399 done 7400 7401 7402 7403 7404 vars="-I\"\${srcdir}\"" 7405 for i in $vars; do 7406 PKG_INCLUDES="$PKG_INCLUDES $i" 7407 done 7408 7409 7410 7411 vars="-I\"\${srcdir}/generic\"" 7412 for i in $vars; do 7413 PKG_INCLUDES="$PKG_INCLUDES $i" 7414 done 7415 7416 7417 7418 vars="-I\"\${zlibtcl_SRC_PATH}\"" 7419 for i in $vars; do 7420 PKG_INCLUDES="$PKG_INCLUDES $i" 7421 done 7422 7423 7424 7425 vars="-I\"\${zlibtcl_BUILD_PATH}\"" 7426 for i in $vars; do 7427 PKG_INCLUDES="$PKG_INCLUDES $i" 7428 done 7429 7430 7431 7432 vars="-I\${ZLIB_INCLUDE_DIR}" 7433 for i in $vars; do 7434 PKG_INCLUDES="$PKG_INCLUDES $i" 7435 done 7436 7437 7438 7439 vars="-I\${SSL_INCLUDE_DIR}" 7440 for i in $vars; do 7441 PKG_INCLUDES="$PKG_INCLUDES $i" 7442 done 7443 7444 7445 7446 vars="-DLIBZ_DEFAULTNAME=\\\"libz\${SHLIB_SUFFIX}\\\"" 7447 for i in $vars; do 7448 PKG_INCLUDES="$PKG_INCLUDES $i" 7449 done 7450 7451 7452 7453 7454 7455 7456 vars="" 7457 for i in $vars; do 7458 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7459 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7460 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7461 fi 7462 PKG_LIBS="$PKG_LIBS $i" 7463 done 7464 7465 7466 7467 PKG_CFLAGS="$PKG_CFLAGS " 7468 7469 7470 7471 PKG_CFLAGS="$PKG_CFLAGS -DZLIBTCL_VERSION=\\\"${zlibtcl_VERSION}\\\"" 7472 7473 7474 7475 7476 vars="trfStubLib.c" 7477 for i in $vars; do 7478 # check for existence - allows for generic/win/unix VPATH 7479 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7480 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7481 -a ! -f "${srcdir}/macosx/$i" \ 7482 ; then 7483 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7484echo "$as_me: error: could not find stub source file '$i'" >&2;} 7485 { (exit 1); exit 1; }; } 7486 fi 7487 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7488 # this assumes it is in a VPATH dir 7489 i=`basename $i` 7490 # handle user calling this before or after TEA_SETUP_COMPILER 7491 if test x"${OBJEXT}" != x ; then 7492 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7493 else 7494 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7495 fi 7496 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7497 done 7498 7499 7500 7501 7502 vars="" 7503 for i in $vars; do 7504 # check for existence, be strict because it is installed 7505 if test ! -f "${srcdir}/$i" ; then 7506 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7507echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7508 { (exit 1); exit 1; }; } 7509 fi 7510 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7511 done 7512 7513 7514 7515#-------------------------------------------------------------------- 7516# If ltoa is present, use it to convert integer values into strings. 7517# If not, sprintf is used, which is slower and requires more code. 7518#-------------------------------------------------------------------- 7519 7520{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 7521echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 7522if test "${ac_cv_c_bigendian+set}" = set; then 7523 echo $ECHO_N "(cached) $ECHO_C" >&6 7524else 7525 # See if sys/param.h defines the BYTE_ORDER macro. 7526cat >conftest.$ac_ext <<_ACEOF 7527/* confdefs.h. */ 7528_ACEOF 7529cat confdefs.h >>conftest.$ac_ext 7530cat >>conftest.$ac_ext <<_ACEOF 7531/* end confdefs.h. */ 7532#include <sys/types.h> 7533#include <sys/param.h> 7534 7535int 7536main () 7537{ 7538#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 7539 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 7540 bogus endian macros 7541#endif 7542 7543 ; 7544 return 0; 7545} 7546_ACEOF 7547rm -f conftest.$ac_objext 7548if { (ac_try="$ac_compile" 7549case "(($ac_try" in 7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7551 *) ac_try_echo=$ac_try;; 7552esac 7553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7554 (eval "$ac_compile") 2>conftest.er1 7555 ac_status=$? 7556 grep -v '^ *+' conftest.er1 >conftest.err 7557 rm -f conftest.er1 7558 cat conftest.err >&5 7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7560 (exit $ac_status); } && { 7561 test -z "$ac_c_werror_flag" || 7562 test ! -s conftest.err 7563 } && test -s conftest.$ac_objext; then 7564 # It does; now see whether it defined to BIG_ENDIAN or not. 7565cat >conftest.$ac_ext <<_ACEOF 7566/* confdefs.h. */ 7567_ACEOF 7568cat confdefs.h >>conftest.$ac_ext 7569cat >>conftest.$ac_ext <<_ACEOF 7570/* end confdefs.h. */ 7571#include <sys/types.h> 7572#include <sys/param.h> 7573 7574int 7575main () 7576{ 7577#if BYTE_ORDER != BIG_ENDIAN 7578 not big endian 7579#endif 7580 7581 ; 7582 return 0; 7583} 7584_ACEOF 7585rm -f conftest.$ac_objext 7586if { (ac_try="$ac_compile" 7587case "(($ac_try" in 7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7589 *) ac_try_echo=$ac_try;; 7590esac 7591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7592 (eval "$ac_compile") 2>conftest.er1 7593 ac_status=$? 7594 grep -v '^ *+' conftest.er1 >conftest.err 7595 rm -f conftest.er1 7596 cat conftest.err >&5 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); } && { 7599 test -z "$ac_c_werror_flag" || 7600 test ! -s conftest.err 7601 } && test -s conftest.$ac_objext; then 7602 ac_cv_c_bigendian=yes 7603else 7604 echo "$as_me: failed program was:" >&5 7605sed 's/^/| /' conftest.$ac_ext >&5 7606 7607 ac_cv_c_bigendian=no 7608fi 7609 7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7611else 7612 echo "$as_me: failed program was:" >&5 7613sed 's/^/| /' conftest.$ac_ext >&5 7614 7615 # It does not; compile a test program. 7616if test "$cross_compiling" = yes; then 7617 # try to guess the endianness by grepping values into an object file 7618 ac_cv_c_bigendian=unknown 7619 cat >conftest.$ac_ext <<_ACEOF 7620/* confdefs.h. */ 7621_ACEOF 7622cat confdefs.h >>conftest.$ac_ext 7623cat >>conftest.$ac_ext <<_ACEOF 7624/* end confdefs.h. */ 7625short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7626short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7627void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 7628short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7629short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7630void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 7631int 7632main () 7633{ 7634 _ascii (); _ebcdic (); 7635 ; 7636 return 0; 7637} 7638_ACEOF 7639rm -f conftest.$ac_objext 7640if { (ac_try="$ac_compile" 7641case "(($ac_try" in 7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7643 *) ac_try_echo=$ac_try;; 7644esac 7645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7646 (eval "$ac_compile") 2>conftest.er1 7647 ac_status=$? 7648 grep -v '^ *+' conftest.er1 >conftest.err 7649 rm -f conftest.er1 7650 cat conftest.err >&5 7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7652 (exit $ac_status); } && { 7653 test -z "$ac_c_werror_flag" || 7654 test ! -s conftest.err 7655 } && test -s conftest.$ac_objext; then 7656 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 7657 ac_cv_c_bigendian=yes 7658fi 7659if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7660 if test "$ac_cv_c_bigendian" = unknown; then 7661 ac_cv_c_bigendian=no 7662 else 7663 # finding both strings is unlikely to happen, but who knows? 7664 ac_cv_c_bigendian=unknown 7665 fi 7666fi 7667else 7668 echo "$as_me: failed program was:" >&5 7669sed 's/^/| /' conftest.$ac_ext >&5 7670 7671 7672fi 7673 7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7675else 7676 cat >conftest.$ac_ext <<_ACEOF 7677/* confdefs.h. */ 7678_ACEOF 7679cat confdefs.h >>conftest.$ac_ext 7680cat >>conftest.$ac_ext <<_ACEOF 7681/* end confdefs.h. */ 7682$ac_includes_default 7683int 7684main () 7685{ 7686 7687 /* Are we little or big endian? From Harbison&Steele. */ 7688 union 7689 { 7690 long int l; 7691 char c[sizeof (long int)]; 7692 } u; 7693 u.l = 1; 7694 return u.c[sizeof (long int) - 1] == 1; 7695 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700rm -f conftest$ac_exeext 7701if { (ac_try="$ac_link" 7702case "(($ac_try" in 7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7704 *) ac_try_echo=$ac_try;; 7705esac 7706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7707 (eval "$ac_link") 2>&5 7708 ac_status=$? 7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7711 { (case "(($ac_try" in 7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7713 *) ac_try_echo=$ac_try;; 7714esac 7715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7716 (eval "$ac_try") 2>&5 7717 ac_status=$? 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); }; }; then 7720 ac_cv_c_bigendian=no 7721else 7722 echo "$as_me: program exited with status $ac_status" >&5 7723echo "$as_me: failed program was:" >&5 7724sed 's/^/| /' conftest.$ac_ext >&5 7725 7726( exit $ac_status ) 7727ac_cv_c_bigendian=yes 7728fi 7729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7730fi 7731 7732 7733fi 7734 7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7736fi 7737{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 7738echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 7739case $ac_cv_c_bigendian in 7740 yes) 7741 7742cat >>confdefs.h <<\_ACEOF 7743#define WORDS_BIGENDIAN 1 7744_ACEOF 7745 ;; 7746 no) 7747 ;; 7748 *) 7749 { { echo "$as_me:$LINENO: error: unknown endianness 7750presetting ac_cv_c_bigendian=no (or yes) will help" >&5 7751echo "$as_me: error: unknown endianness 7752presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 7753 { (exit 1); exit 1; }; } ;; 7754esac 7755 7756{ echo "$as_me:$LINENO: checking for int" >&5 7757echo $ECHO_N "checking for int... $ECHO_C" >&6; } 7758if test "${ac_cv_type_int+set}" = set; then 7759 echo $ECHO_N "(cached) $ECHO_C" >&6 7760else 7761 cat >conftest.$ac_ext <<_ACEOF 7762/* confdefs.h. */ 7763_ACEOF 7764cat confdefs.h >>conftest.$ac_ext 7765cat >>conftest.$ac_ext <<_ACEOF 7766/* end confdefs.h. */ 7767$ac_includes_default 7768typedef int ac__type_new_; 7769int 7770main () 7771{ 7772if ((ac__type_new_ *) 0) 7773 return 0; 7774if (sizeof (ac__type_new_)) 7775 return 0; 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780rm -f conftest.$ac_objext 7781if { (ac_try="$ac_compile" 7782case "(($ac_try" in 7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7784 *) ac_try_echo=$ac_try;; 7785esac 7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7787 (eval "$ac_compile") 2>conftest.er1 7788 ac_status=$? 7789 grep -v '^ *+' conftest.er1 >conftest.err 7790 rm -f conftest.er1 7791 cat conftest.err >&5 7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7793 (exit $ac_status); } && { 7794 test -z "$ac_c_werror_flag" || 7795 test ! -s conftest.err 7796 } && test -s conftest.$ac_objext; then 7797 ac_cv_type_int=yes 7798else 7799 echo "$as_me: failed program was:" >&5 7800sed 's/^/| /' conftest.$ac_ext >&5 7801 7802 ac_cv_type_int=no 7803fi 7804 7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7806fi 7807{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7808echo "${ECHO_T}$ac_cv_type_int" >&6; } 7809 7810# The cast to long int works around a bug in the HP C Compiler 7811# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7812# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7813# This bug is HP SR number 8606223364. 7814{ echo "$as_me:$LINENO: checking size of int" >&5 7815echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 7816if test "${ac_cv_sizeof_int+set}" = set; then 7817 echo $ECHO_N "(cached) $ECHO_C" >&6 7818else 7819 if test "$cross_compiling" = yes; then 7820 # Depending upon the size, compute the lo and hi bounds. 7821cat >conftest.$ac_ext <<_ACEOF 7822/* confdefs.h. */ 7823_ACEOF 7824cat confdefs.h >>conftest.$ac_ext 7825cat >>conftest.$ac_ext <<_ACEOF 7826/* end confdefs.h. */ 7827$ac_includes_default 7828 typedef int ac__type_sizeof_; 7829int 7830main () 7831{ 7832static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7833test_array [0] = 0 7834 7835 ; 7836 return 0; 7837} 7838_ACEOF 7839rm -f conftest.$ac_objext 7840if { (ac_try="$ac_compile" 7841case "(($ac_try" in 7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7843 *) ac_try_echo=$ac_try;; 7844esac 7845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7846 (eval "$ac_compile") 2>conftest.er1 7847 ac_status=$? 7848 grep -v '^ *+' conftest.er1 >conftest.err 7849 rm -f conftest.er1 7850 cat conftest.err >&5 7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 (exit $ac_status); } && { 7853 test -z "$ac_c_werror_flag" || 7854 test ! -s conftest.err 7855 } && test -s conftest.$ac_objext; then 7856 ac_lo=0 ac_mid=0 7857 while :; do 7858 cat >conftest.$ac_ext <<_ACEOF 7859/* confdefs.h. */ 7860_ACEOF 7861cat confdefs.h >>conftest.$ac_ext 7862cat >>conftest.$ac_ext <<_ACEOF 7863/* end confdefs.h. */ 7864$ac_includes_default 7865 typedef int ac__type_sizeof_; 7866int 7867main () 7868{ 7869static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7870test_array [0] = 0 7871 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876rm -f conftest.$ac_objext 7877if { (ac_try="$ac_compile" 7878case "(($ac_try" in 7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7880 *) ac_try_echo=$ac_try;; 7881esac 7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7883 (eval "$ac_compile") 2>conftest.er1 7884 ac_status=$? 7885 grep -v '^ *+' conftest.er1 >conftest.err 7886 rm -f conftest.er1 7887 cat conftest.err >&5 7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7889 (exit $ac_status); } && { 7890 test -z "$ac_c_werror_flag" || 7891 test ! -s conftest.err 7892 } && test -s conftest.$ac_objext; then 7893 ac_hi=$ac_mid; break 7894else 7895 echo "$as_me: failed program was:" >&5 7896sed 's/^/| /' conftest.$ac_ext >&5 7897 7898 ac_lo=`expr $ac_mid + 1` 7899 if test $ac_lo -le $ac_mid; then 7900 ac_lo= ac_hi= 7901 break 7902 fi 7903 ac_mid=`expr 2 '*' $ac_mid + 1` 7904fi 7905 7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7907 done 7908else 7909 echo "$as_me: failed program was:" >&5 7910sed 's/^/| /' conftest.$ac_ext >&5 7911 7912 cat >conftest.$ac_ext <<_ACEOF 7913/* confdefs.h. */ 7914_ACEOF 7915cat confdefs.h >>conftest.$ac_ext 7916cat >>conftest.$ac_ext <<_ACEOF 7917/* end confdefs.h. */ 7918$ac_includes_default 7919 typedef int ac__type_sizeof_; 7920int 7921main () 7922{ 7923static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7924test_array [0] = 0 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930rm -f conftest.$ac_objext 7931if { (ac_try="$ac_compile" 7932case "(($ac_try" in 7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7934 *) ac_try_echo=$ac_try;; 7935esac 7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7937 (eval "$ac_compile") 2>conftest.er1 7938 ac_status=$? 7939 grep -v '^ *+' conftest.er1 >conftest.err 7940 rm -f conftest.er1 7941 cat conftest.err >&5 7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7943 (exit $ac_status); } && { 7944 test -z "$ac_c_werror_flag" || 7945 test ! -s conftest.err 7946 } && test -s conftest.$ac_objext; then 7947 ac_hi=-1 ac_mid=-1 7948 while :; do 7949 cat >conftest.$ac_ext <<_ACEOF 7950/* confdefs.h. */ 7951_ACEOF 7952cat confdefs.h >>conftest.$ac_ext 7953cat >>conftest.$ac_ext <<_ACEOF 7954/* end confdefs.h. */ 7955$ac_includes_default 7956 typedef int ac__type_sizeof_; 7957int 7958main () 7959{ 7960static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7961test_array [0] = 0 7962 7963 ; 7964 return 0; 7965} 7966_ACEOF 7967rm -f conftest.$ac_objext 7968if { (ac_try="$ac_compile" 7969case "(($ac_try" in 7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7971 *) ac_try_echo=$ac_try;; 7972esac 7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7974 (eval "$ac_compile") 2>conftest.er1 7975 ac_status=$? 7976 grep -v '^ *+' conftest.er1 >conftest.err 7977 rm -f conftest.er1 7978 cat conftest.err >&5 7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7980 (exit $ac_status); } && { 7981 test -z "$ac_c_werror_flag" || 7982 test ! -s conftest.err 7983 } && test -s conftest.$ac_objext; then 7984 ac_lo=$ac_mid; break 7985else 7986 echo "$as_me: failed program was:" >&5 7987sed 's/^/| /' conftest.$ac_ext >&5 7988 7989 ac_hi=`expr '(' $ac_mid ')' - 1` 7990 if test $ac_mid -le $ac_hi; then 7991 ac_lo= ac_hi= 7992 break 7993 fi 7994 ac_mid=`expr 2 '*' $ac_mid` 7995fi 7996 7997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7998 done 7999else 8000 echo "$as_me: failed program was:" >&5 8001sed 's/^/| /' conftest.$ac_ext >&5 8002 8003 ac_lo= ac_hi= 8004fi 8005 8006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8007fi 8008 8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8010# Binary search between lo and hi bounds. 8011while test "x$ac_lo" != "x$ac_hi"; do 8012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8013 cat >conftest.$ac_ext <<_ACEOF 8014/* confdefs.h. */ 8015_ACEOF 8016cat confdefs.h >>conftest.$ac_ext 8017cat >>conftest.$ac_ext <<_ACEOF 8018/* end confdefs.h. */ 8019$ac_includes_default 8020 typedef int ac__type_sizeof_; 8021int 8022main () 8023{ 8024static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8025test_array [0] = 0 8026 8027 ; 8028 return 0; 8029} 8030_ACEOF 8031rm -f conftest.$ac_objext 8032if { (ac_try="$ac_compile" 8033case "(($ac_try" in 8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8035 *) ac_try_echo=$ac_try;; 8036esac 8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8038 (eval "$ac_compile") 2>conftest.er1 8039 ac_status=$? 8040 grep -v '^ *+' conftest.er1 >conftest.err 8041 rm -f conftest.er1 8042 cat conftest.err >&5 8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8044 (exit $ac_status); } && { 8045 test -z "$ac_c_werror_flag" || 8046 test ! -s conftest.err 8047 } && test -s conftest.$ac_objext; then 8048 ac_hi=$ac_mid 8049else 8050 echo "$as_me: failed program was:" >&5 8051sed 's/^/| /' conftest.$ac_ext >&5 8052 8053 ac_lo=`expr '(' $ac_mid ')' + 1` 8054fi 8055 8056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8057done 8058case $ac_lo in 8059?*) ac_cv_sizeof_int=$ac_lo;; 8060'') if test "$ac_cv_type_int" = yes; then 8061 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 8062See \`config.log' for more details." >&5 8063echo "$as_me: error: cannot compute sizeof (int) 8064See \`config.log' for more details." >&2;} 8065 { (exit 77); exit 77; }; } 8066 else 8067 ac_cv_sizeof_int=0 8068 fi ;; 8069esac 8070else 8071 cat >conftest.$ac_ext <<_ACEOF 8072/* confdefs.h. */ 8073_ACEOF 8074cat confdefs.h >>conftest.$ac_ext 8075cat >>conftest.$ac_ext <<_ACEOF 8076/* end confdefs.h. */ 8077$ac_includes_default 8078 typedef int ac__type_sizeof_; 8079static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8080static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8081#include <stdio.h> 8082#include <stdlib.h> 8083int 8084main () 8085{ 8086 8087 FILE *f = fopen ("conftest.val", "w"); 8088 if (! f) 8089 return 1; 8090 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8091 { 8092 long int i = longval (); 8093 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8094 return 1; 8095 fprintf (f, "%ld\n", i); 8096 } 8097 else 8098 { 8099 unsigned long int i = ulongval (); 8100 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8101 return 1; 8102 fprintf (f, "%lu\n", i); 8103 } 8104 return ferror (f) || fclose (f) != 0; 8105 8106 ; 8107 return 0; 8108} 8109_ACEOF 8110rm -f conftest$ac_exeext 8111if { (ac_try="$ac_link" 8112case "(($ac_try" in 8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8114 *) ac_try_echo=$ac_try;; 8115esac 8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8117 (eval "$ac_link") 2>&5 8118 ac_status=$? 8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8121 { (case "(($ac_try" in 8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8123 *) ac_try_echo=$ac_try;; 8124esac 8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8126 (eval "$ac_try") 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); }; }; then 8130 ac_cv_sizeof_int=`cat conftest.val` 8131else 8132 echo "$as_me: program exited with status $ac_status" >&5 8133echo "$as_me: failed program was:" >&5 8134sed 's/^/| /' conftest.$ac_ext >&5 8135 8136( exit $ac_status ) 8137if test "$ac_cv_type_int" = yes; then 8138 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 8139See \`config.log' for more details." >&5 8140echo "$as_me: error: cannot compute sizeof (int) 8141See \`config.log' for more details." >&2;} 8142 { (exit 77); exit 77; }; } 8143 else 8144 ac_cv_sizeof_int=0 8145 fi 8146fi 8147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8148fi 8149rm -f conftest.val 8150fi 8151{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8152echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 8153 8154 8155 8156cat >>confdefs.h <<_ACEOF 8157#define SIZEOF_INT $ac_cv_sizeof_int 8158_ACEOF 8159 8160 8161{ echo "$as_me:$LINENO: checking for long int" >&5 8162echo $ECHO_N "checking for long int... $ECHO_C" >&6; } 8163if test "${ac_cv_type_long_int+set}" = set; then 8164 echo $ECHO_N "(cached) $ECHO_C" >&6 8165else 8166 cat >conftest.$ac_ext <<_ACEOF 8167/* confdefs.h. */ 8168_ACEOF 8169cat confdefs.h >>conftest.$ac_ext 8170cat >>conftest.$ac_ext <<_ACEOF 8171/* end confdefs.h. */ 8172$ac_includes_default 8173typedef long int ac__type_new_; 8174int 8175main () 8176{ 8177if ((ac__type_new_ *) 0) 8178 return 0; 8179if (sizeof (ac__type_new_)) 8180 return 0; 8181 ; 8182 return 0; 8183} 8184_ACEOF 8185rm -f conftest.$ac_objext 8186if { (ac_try="$ac_compile" 8187case "(($ac_try" in 8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8189 *) ac_try_echo=$ac_try;; 8190esac 8191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8192 (eval "$ac_compile") 2>conftest.er1 8193 ac_status=$? 8194 grep -v '^ *+' conftest.er1 >conftest.err 8195 rm -f conftest.er1 8196 cat conftest.err >&5 8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8198 (exit $ac_status); } && { 8199 test -z "$ac_c_werror_flag" || 8200 test ! -s conftest.err 8201 } && test -s conftest.$ac_objext; then 8202 ac_cv_type_long_int=yes 8203else 8204 echo "$as_me: failed program was:" >&5 8205sed 's/^/| /' conftest.$ac_ext >&5 8206 8207 ac_cv_type_long_int=no 8208fi 8209 8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211fi 8212{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 8213echo "${ECHO_T}$ac_cv_type_long_int" >&6; } 8214 8215# The cast to long int works around a bug in the HP C Compiler 8216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8218# This bug is HP SR number 8606223364. 8219{ echo "$as_me:$LINENO: checking size of long int" >&5 8220echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } 8221if test "${ac_cv_sizeof_long_int+set}" = set; then 8222 echo $ECHO_N "(cached) $ECHO_C" >&6 8223else 8224 if test "$cross_compiling" = yes; then 8225 # Depending upon the size, compute the lo and hi bounds. 8226cat >conftest.$ac_ext <<_ACEOF 8227/* confdefs.h. */ 8228_ACEOF 8229cat confdefs.h >>conftest.$ac_ext 8230cat >>conftest.$ac_ext <<_ACEOF 8231/* end confdefs.h. */ 8232$ac_includes_default 8233 typedef long int ac__type_sizeof_; 8234int 8235main () 8236{ 8237static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8238test_array [0] = 0 8239 8240 ; 8241 return 0; 8242} 8243_ACEOF 8244rm -f conftest.$ac_objext 8245if { (ac_try="$ac_compile" 8246case "(($ac_try" in 8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8248 *) ac_try_echo=$ac_try;; 8249esac 8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8251 (eval "$ac_compile") 2>conftest.er1 8252 ac_status=$? 8253 grep -v '^ *+' conftest.er1 >conftest.err 8254 rm -f conftest.er1 8255 cat conftest.err >&5 8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8257 (exit $ac_status); } && { 8258 test -z "$ac_c_werror_flag" || 8259 test ! -s conftest.err 8260 } && test -s conftest.$ac_objext; then 8261 ac_lo=0 ac_mid=0 8262 while :; do 8263 cat >conftest.$ac_ext <<_ACEOF 8264/* confdefs.h. */ 8265_ACEOF 8266cat confdefs.h >>conftest.$ac_ext 8267cat >>conftest.$ac_ext <<_ACEOF 8268/* end confdefs.h. */ 8269$ac_includes_default 8270 typedef long int ac__type_sizeof_; 8271int 8272main () 8273{ 8274static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8275test_array [0] = 0 8276 8277 ; 8278 return 0; 8279} 8280_ACEOF 8281rm -f conftest.$ac_objext 8282if { (ac_try="$ac_compile" 8283case "(($ac_try" in 8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8285 *) ac_try_echo=$ac_try;; 8286esac 8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8288 (eval "$ac_compile") 2>conftest.er1 8289 ac_status=$? 8290 grep -v '^ *+' conftest.er1 >conftest.err 8291 rm -f conftest.er1 8292 cat conftest.err >&5 8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8294 (exit $ac_status); } && { 8295 test -z "$ac_c_werror_flag" || 8296 test ! -s conftest.err 8297 } && test -s conftest.$ac_objext; then 8298 ac_hi=$ac_mid; break 8299else 8300 echo "$as_me: failed program was:" >&5 8301sed 's/^/| /' conftest.$ac_ext >&5 8302 8303 ac_lo=`expr $ac_mid + 1` 8304 if test $ac_lo -le $ac_mid; then 8305 ac_lo= ac_hi= 8306 break 8307 fi 8308 ac_mid=`expr 2 '*' $ac_mid + 1` 8309fi 8310 8311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8312 done 8313else 8314 echo "$as_me: failed program was:" >&5 8315sed 's/^/| /' conftest.$ac_ext >&5 8316 8317 cat >conftest.$ac_ext <<_ACEOF 8318/* confdefs.h. */ 8319_ACEOF 8320cat confdefs.h >>conftest.$ac_ext 8321cat >>conftest.$ac_ext <<_ACEOF 8322/* end confdefs.h. */ 8323$ac_includes_default 8324 typedef long int ac__type_sizeof_; 8325int 8326main () 8327{ 8328static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8329test_array [0] = 0 8330 8331 ; 8332 return 0; 8333} 8334_ACEOF 8335rm -f conftest.$ac_objext 8336if { (ac_try="$ac_compile" 8337case "(($ac_try" in 8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8339 *) ac_try_echo=$ac_try;; 8340esac 8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8342 (eval "$ac_compile") 2>conftest.er1 8343 ac_status=$? 8344 grep -v '^ *+' conftest.er1 >conftest.err 8345 rm -f conftest.er1 8346 cat conftest.err >&5 8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8348 (exit $ac_status); } && { 8349 test -z "$ac_c_werror_flag" || 8350 test ! -s conftest.err 8351 } && test -s conftest.$ac_objext; then 8352 ac_hi=-1 ac_mid=-1 8353 while :; do 8354 cat >conftest.$ac_ext <<_ACEOF 8355/* confdefs.h. */ 8356_ACEOF 8357cat confdefs.h >>conftest.$ac_ext 8358cat >>conftest.$ac_ext <<_ACEOF 8359/* end confdefs.h. */ 8360$ac_includes_default 8361 typedef long int ac__type_sizeof_; 8362int 8363main () 8364{ 8365static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8366test_array [0] = 0 8367 8368 ; 8369 return 0; 8370} 8371_ACEOF 8372rm -f conftest.$ac_objext 8373if { (ac_try="$ac_compile" 8374case "(($ac_try" in 8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8376 *) ac_try_echo=$ac_try;; 8377esac 8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8379 (eval "$ac_compile") 2>conftest.er1 8380 ac_status=$? 8381 grep -v '^ *+' conftest.er1 >conftest.err 8382 rm -f conftest.er1 8383 cat conftest.err >&5 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8385 (exit $ac_status); } && { 8386 test -z "$ac_c_werror_flag" || 8387 test ! -s conftest.err 8388 } && test -s conftest.$ac_objext; then 8389 ac_lo=$ac_mid; break 8390else 8391 echo "$as_me: failed program was:" >&5 8392sed 's/^/| /' conftest.$ac_ext >&5 8393 8394 ac_hi=`expr '(' $ac_mid ')' - 1` 8395 if test $ac_mid -le $ac_hi; then 8396 ac_lo= ac_hi= 8397 break 8398 fi 8399 ac_mid=`expr 2 '*' $ac_mid` 8400fi 8401 8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403 done 8404else 8405 echo "$as_me: failed program was:" >&5 8406sed 's/^/| /' conftest.$ac_ext >&5 8407 8408 ac_lo= ac_hi= 8409fi 8410 8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8412fi 8413 8414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8415# Binary search between lo and hi bounds. 8416while test "x$ac_lo" != "x$ac_hi"; do 8417 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8418 cat >conftest.$ac_ext <<_ACEOF 8419/* confdefs.h. */ 8420_ACEOF 8421cat confdefs.h >>conftest.$ac_ext 8422cat >>conftest.$ac_ext <<_ACEOF 8423/* end confdefs.h. */ 8424$ac_includes_default 8425 typedef long int ac__type_sizeof_; 8426int 8427main () 8428{ 8429static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8430test_array [0] = 0 8431 8432 ; 8433 return 0; 8434} 8435_ACEOF 8436rm -f conftest.$ac_objext 8437if { (ac_try="$ac_compile" 8438case "(($ac_try" in 8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8440 *) ac_try_echo=$ac_try;; 8441esac 8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8443 (eval "$ac_compile") 2>conftest.er1 8444 ac_status=$? 8445 grep -v '^ *+' conftest.er1 >conftest.err 8446 rm -f conftest.er1 8447 cat conftest.err >&5 8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8449 (exit $ac_status); } && { 8450 test -z "$ac_c_werror_flag" || 8451 test ! -s conftest.err 8452 } && test -s conftest.$ac_objext; then 8453 ac_hi=$ac_mid 8454else 8455 echo "$as_me: failed program was:" >&5 8456sed 's/^/| /' conftest.$ac_ext >&5 8457 8458 ac_lo=`expr '(' $ac_mid ')' + 1` 8459fi 8460 8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8462done 8463case $ac_lo in 8464?*) ac_cv_sizeof_long_int=$ac_lo;; 8465'') if test "$ac_cv_type_long_int" = yes; then 8466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 8467See \`config.log' for more details." >&5 8468echo "$as_me: error: cannot compute sizeof (long int) 8469See \`config.log' for more details." >&2;} 8470 { (exit 77); exit 77; }; } 8471 else 8472 ac_cv_sizeof_long_int=0 8473 fi ;; 8474esac 8475else 8476 cat >conftest.$ac_ext <<_ACEOF 8477/* confdefs.h. */ 8478_ACEOF 8479cat confdefs.h >>conftest.$ac_ext 8480cat >>conftest.$ac_ext <<_ACEOF 8481/* end confdefs.h. */ 8482$ac_includes_default 8483 typedef long int ac__type_sizeof_; 8484static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8485static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8486#include <stdio.h> 8487#include <stdlib.h> 8488int 8489main () 8490{ 8491 8492 FILE *f = fopen ("conftest.val", "w"); 8493 if (! f) 8494 return 1; 8495 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8496 { 8497 long int i = longval (); 8498 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8499 return 1; 8500 fprintf (f, "%ld\n", i); 8501 } 8502 else 8503 { 8504 unsigned long int i = ulongval (); 8505 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8506 return 1; 8507 fprintf (f, "%lu\n", i); 8508 } 8509 return ferror (f) || fclose (f) != 0; 8510 8511 ; 8512 return 0; 8513} 8514_ACEOF 8515rm -f conftest$ac_exeext 8516if { (ac_try="$ac_link" 8517case "(($ac_try" in 8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8519 *) ac_try_echo=$ac_try;; 8520esac 8521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8522 (eval "$ac_link") 2>&5 8523 ac_status=$? 8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8526 { (case "(($ac_try" in 8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8528 *) ac_try_echo=$ac_try;; 8529esac 8530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8531 (eval "$ac_try") 2>&5 8532 ac_status=$? 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 (exit $ac_status); }; }; then 8535 ac_cv_sizeof_long_int=`cat conftest.val` 8536else 8537 echo "$as_me: program exited with status $ac_status" >&5 8538echo "$as_me: failed program was:" >&5 8539sed 's/^/| /' conftest.$ac_ext >&5 8540 8541( exit $ac_status ) 8542if test "$ac_cv_type_long_int" = yes; then 8543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 8544See \`config.log' for more details." >&5 8545echo "$as_me: error: cannot compute sizeof (long int) 8546See \`config.log' for more details." >&2;} 8547 { (exit 77); exit 77; }; } 8548 else 8549 ac_cv_sizeof_long_int=0 8550 fi 8551fi 8552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8553fi 8554rm -f conftest.val 8555fi 8556{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 8557echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } 8558 8559 8560 8561cat >>confdefs.h <<_ACEOF 8562#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 8563_ACEOF 8564 8565 8566 8567for ac_func in ltoa 8568do 8569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8570{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8573 echo $ECHO_N "(cached) $ECHO_C" >&6 8574else 8575 cat >conftest.$ac_ext <<_ACEOF 8576/* confdefs.h. */ 8577_ACEOF 8578cat confdefs.h >>conftest.$ac_ext 8579cat >>conftest.$ac_ext <<_ACEOF 8580/* end confdefs.h. */ 8581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8582 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8583#define $ac_func innocuous_$ac_func 8584 8585/* System header to define __stub macros and hopefully few prototypes, 8586 which can conflict with char $ac_func (); below. 8587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8588 <limits.h> exists even on freestanding compilers. */ 8589 8590#ifdef __STDC__ 8591# include <limits.h> 8592#else 8593# include <assert.h> 8594#endif 8595 8596#undef $ac_func 8597 8598/* Override any GCC internal prototype to avoid an error. 8599 Use char because int might match the return type of a GCC 8600 builtin and then its argument prototype would still apply. */ 8601#ifdef __cplusplus 8602extern "C" 8603#endif 8604char $ac_func (); 8605/* The GNU C library defines this for functions which it implements 8606 to always fail with ENOSYS. Some functions are actually named 8607 something starting with __ and the normal name is an alias. */ 8608#if defined __stub_$ac_func || defined __stub___$ac_func 8609choke me 8610#endif 8611 8612int 8613main () 8614{ 8615return $ac_func (); 8616 ; 8617 return 0; 8618} 8619_ACEOF 8620rm -f conftest.$ac_objext conftest$ac_exeext 8621if { (ac_try="$ac_link" 8622case "(($ac_try" in 8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8624 *) ac_try_echo=$ac_try;; 8625esac 8626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8627 (eval "$ac_link") 2>conftest.er1 8628 ac_status=$? 8629 grep -v '^ *+' conftest.er1 >conftest.err 8630 rm -f conftest.er1 8631 cat conftest.err >&5 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); } && { 8634 test -z "$ac_c_werror_flag" || 8635 test ! -s conftest.err 8636 } && test -s conftest$ac_exeext && 8637 $as_test_x conftest$ac_exeext; then 8638 eval "$as_ac_var=yes" 8639else 8640 echo "$as_me: failed program was:" >&5 8641sed 's/^/| /' conftest.$ac_ext >&5 8642 8643 eval "$as_ac_var=no" 8644fi 8645 8646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8647 conftest$ac_exeext conftest.$ac_ext 8648fi 8649ac_res=`eval echo '${'$as_ac_var'}'` 8650 { echo "$as_me:$LINENO: result: $ac_res" >&5 8651echo "${ECHO_T}$ac_res" >&6; } 8652if test `eval echo '${'$as_ac_var'}'` = yes; then 8653 cat >>confdefs.h <<_ACEOF 8654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8655_ACEOF 8656 8657fi 8658done 8659 8660if test "${TEA_PLATFORM}" = "windows" ; then 8661 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5 8662echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; } 8663 { echo "$as_me:$LINENO: result: no (Windows)" >&5 8664echo "${ECHO_T}no (Windows)" >&6; } 8665 HAS_LIBCRYPT=0 8666elif test "`uname -s`" = "Darwin"; then 8667 { echo "$as_me:$LINENO: checking for crypt in -lSystem" >&5 8668echo $ECHO_N "checking for crypt in -lSystem... $ECHO_C" >&6; } 8669if test "${ac_cv_lib_System_crypt+set}" = set; then 8670 echo $ECHO_N "(cached) $ECHO_C" >&6 8671else 8672 ac_check_lib_save_LIBS=$LIBS 8673LIBS="-lSystem $LIBS" 8674cat >conftest.$ac_ext <<_ACEOF 8675/* confdefs.h. */ 8676_ACEOF 8677cat confdefs.h >>conftest.$ac_ext 8678cat >>conftest.$ac_ext <<_ACEOF 8679/* end confdefs.h. */ 8680 8681/* Override any GCC internal prototype to avoid an error. 8682 Use char because int might match the return type of a GCC 8683 builtin and then its argument prototype would still apply. */ 8684#ifdef __cplusplus 8685extern "C" 8686#endif 8687char crypt (); 8688int 8689main () 8690{ 8691return crypt (); 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696rm -f conftest.$ac_objext conftest$ac_exeext 8697if { (ac_try="$ac_link" 8698case "(($ac_try" in 8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8700 *) ac_try_echo=$ac_try;; 8701esac 8702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8703 (eval "$ac_link") 2>conftest.er1 8704 ac_status=$? 8705 grep -v '^ *+' conftest.er1 >conftest.err 8706 rm -f conftest.er1 8707 cat conftest.err >&5 8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8709 (exit $ac_status); } && { 8710 test -z "$ac_c_werror_flag" || 8711 test ! -s conftest.err 8712 } && test -s conftest$ac_exeext && 8713 $as_test_x conftest$ac_exeext; then 8714 ac_cv_lib_System_crypt=yes 8715else 8716 echo "$as_me: failed program was:" >&5 8717sed 's/^/| /' conftest.$ac_ext >&5 8718 8719 ac_cv_lib_System_crypt=no 8720fi 8721 8722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8723 conftest$ac_exeext conftest.$ac_ext 8724LIBS=$ac_check_lib_save_LIBS 8725fi 8726{ echo "$as_me:$LINENO: result: $ac_cv_lib_System_crypt" >&5 8727echo "${ECHO_T}$ac_cv_lib_System_crypt" >&6; } 8728if test $ac_cv_lib_System_crypt = yes; then 8729 HAS_LIBCRYPT=1 8730else 8731 HAS_LIBCRYPT=0 8732fi 8733 8734else 8735 { echo "$as_me:$LINENO: checking for main in -lcrypt" >&5 8736echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6; } 8737if test "${ac_cv_lib_crypt_main+set}" = set; then 8738 echo $ECHO_N "(cached) $ECHO_C" >&6 8739else 8740 ac_check_lib_save_LIBS=$LIBS 8741LIBS="-lcrypt $LIBS" 8742cat >conftest.$ac_ext <<_ACEOF 8743/* confdefs.h. */ 8744_ACEOF 8745cat confdefs.h >>conftest.$ac_ext 8746cat >>conftest.$ac_ext <<_ACEOF 8747/* end confdefs.h. */ 8748 8749 8750int 8751main () 8752{ 8753return main (); 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758rm -f conftest.$ac_objext conftest$ac_exeext 8759if { (ac_try="$ac_link" 8760case "(($ac_try" in 8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8762 *) ac_try_echo=$ac_try;; 8763esac 8764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8765 (eval "$ac_link") 2>conftest.er1 8766 ac_status=$? 8767 grep -v '^ *+' conftest.er1 >conftest.err 8768 rm -f conftest.er1 8769 cat conftest.err >&5 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 (exit $ac_status); } && { 8772 test -z "$ac_c_werror_flag" || 8773 test ! -s conftest.err 8774 } && test -s conftest$ac_exeext && 8775 $as_test_x conftest$ac_exeext; then 8776 ac_cv_lib_crypt_main=yes 8777else 8778 echo "$as_me: failed program was:" >&5 8779sed 's/^/| /' conftest.$ac_ext >&5 8780 8781 ac_cv_lib_crypt_main=no 8782fi 8783 8784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8785 conftest$ac_exeext conftest.$ac_ext 8786LIBS=$ac_check_lib_save_LIBS 8787fi 8788{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5 8789echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6; } 8790if test $ac_cv_lib_crypt_main = yes; then 8791 HAS_LIBCRYPT=1 8792else 8793 HAS_LIBCRYPT=0 8794fi 8795 8796 { echo "$as_me:$LINENO: checking for md5_init_ctx in -lcrypt" >&5 8797echo $ECHO_N "checking for md5_init_ctx in -lcrypt... $ECHO_C" >&6; } 8798if test "${ac_cv_lib_crypt_md5_init_ctx+set}" = set; then 8799 echo $ECHO_N "(cached) $ECHO_C" >&6 8800else 8801 ac_check_lib_save_LIBS=$LIBS 8802LIBS="-lcrypt $LIBS" 8803cat >conftest.$ac_ext <<_ACEOF 8804/* confdefs.h. */ 8805_ACEOF 8806cat confdefs.h >>conftest.$ac_ext 8807cat >>conftest.$ac_ext <<_ACEOF 8808/* end confdefs.h. */ 8809 8810/* Override any GCC internal prototype to avoid an error. 8811 Use char because int might match the return type of a GCC 8812 builtin and then its argument prototype would still apply. */ 8813#ifdef __cplusplus 8814extern "C" 8815#endif 8816char md5_init_ctx (); 8817int 8818main () 8819{ 8820return md5_init_ctx (); 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 ac_cv_lib_crypt_md5_init_ctx=yes 8844else 8845 echo "$as_me: failed program was:" >&5 8846sed 's/^/| /' conftest.$ac_ext >&5 8847 8848 ac_cv_lib_crypt_md5_init_ctx=no 8849fi 8850 8851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8852 conftest$ac_exeext conftest.$ac_ext 8853LIBS=$ac_check_lib_save_LIBS 8854fi 8855{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_md5_init_ctx" >&5 8856echo "${ECHO_T}$ac_cv_lib_crypt_md5_init_ctx" >&6; } 8857if test $ac_cv_lib_crypt_md5_init_ctx = yes; then 8858 HAS_LIBCRYPT_MD5=1 8859else 8860 HAS_LIBCRYPT_MD5=0 8861fi 8862 8863fi 8864 8865 8866 8867# ----------------------------------------------------------------------- 8868{ echo "$as_me:$LINENO: checking if assert needs __eprintf" >&5 8869echo $ECHO_N "checking if assert needs __eprintf... $ECHO_C" >&6; } 8870cat > conftest.$ac_ext <<EOF 8871#include "confdefs.h" 8872#include "assert.h" 8873int main(argc) 8874 int argc; 8875{ 8876assert(argc); 8877; return 0; } 8878EOF 8879${TCL_CC-cc} -c $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext 1>&5 8880if test "x`nm conftest.o |grep __eprintf`" != "x"; then 8881 { echo "$as_me:$LINENO: result: yes" >&5 8882echo "${ECHO_T}yes" >&6; } 8883 8884 8885 vars="compat/_eprintf.c" 8886 for i in $vars; do 8887 case $i in 8888 \$*) 8889 # allow $-var names 8890 PKG_SOURCES="$PKG_SOURCES $i" 8891 PKG_OBJECTS="$PKG_OBJECTS $i" 8892 ;; 8893 *) 8894 # check for existence - allows for generic/win/unix VPATH 8895 # To add more dirs here (like 'src'), you have to update VPATH 8896 # in Makefile.in as well 8897 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 8898 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 8899 -a ! -f "${srcdir}/macosx/$i" \ 8900 ; then 8901 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 8902echo "$as_me: error: could not find source file '$i'" >&2;} 8903 { (exit 1); exit 1; }; } 8904 fi 8905 PKG_SOURCES="$PKG_SOURCES $i" 8906 # this assumes it is in a VPATH dir 8907 i=`basename $i` 8908 # handle user calling this before or after TEA_SETUP_COMPILER 8909 if test x"${OBJEXT}" != x ; then 8910 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 8911 else 8912 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 8913 fi 8914 PKG_OBJECTS="$PKG_OBJECTS $j" 8915 ;; 8916 esac 8917 done 8918 8919 8920 8921else 8922 { echo "$as_me:$LINENO: result: no" >&5 8923echo "${ECHO_T}no" >&6; } 8924fi 8925 8926#-------------------------------------------------------------------- 8927# __CHANGE__ 8928# Choose which headers you need. Extension authors should try very 8929# hard to only rely on the Tcl public header files. Internal headers 8930# contain private data structures and are subject to change without 8931# notice. 8932# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 8933#-------------------------------------------------------------------- 8934 8935case "`uname -s`" in 8936 *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95* | MINGW32_NT*) 8937 # On windows tclLoadWin.c depends on internal headers. Darn. 8938 8939 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 8940echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 8941 8942 8943# Check whether --with-tclinclude was given. 8944if test "${with_tclinclude+set}" = set; then 8945 withval=$with_tclinclude; with_tclinclude=${withval} 8946fi 8947 8948 8949 if test "${ac_cv_c_tclh+set}" = set; then 8950 echo $ECHO_N "(cached) $ECHO_C" >&6 8951else 8952 8953 # Use the value from --with-tclinclude, if it was given 8954 8955 if test x"${with_tclinclude}" != x ; then 8956 if test -f "${with_tclinclude}/tcl.h" ; then 8957 ac_cv_c_tclh=${with_tclinclude} 8958 else 8959 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 8960echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 8961 { (exit 1); exit 1; }; } 8962 fi 8963 else 8964 list="" 8965 if test "`uname -s`" = "Darwin"; then 8966 # If Tcl was built as a framework, attempt to use 8967 # the framework's Headers directory 8968 case ${TCL_DEFS} in 8969 *TCL_FRAMEWORK*) 8970 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 8971 ;; 8972 esac 8973 fi 8974 8975 # Look in the source dir only if Tcl is not installed, 8976 # and in that situation, look there before installed locations. 8977 if test -f "${TCL_BIN_DIR}/Makefile" ; then 8978 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 8979 fi 8980 8981 # Check order: pkg --prefix location, Tcl's --prefix location, 8982 # relative to directory of tclConfig.sh. 8983 8984 eval "temp_includedir=${includedir}" 8985 list="$list \ 8986 `ls -d ${temp_includedir} 2>/dev/null` \ 8987 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 8988 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 8989 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 8990 list="$list /usr/local/include /usr/include" 8991 if test x"${TCL_INCLUDE_SPEC}" != x ; then 8992 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 8993 list="$list `ls -d ${d} 2>/dev/null`" 8994 fi 8995 fi 8996 for i in $list ; do 8997 if test -f "$i/tcl.h" ; then 8998 ac_cv_c_tclh=$i 8999 break 9000 fi 9001 done 9002 fi 9003 9004fi 9005 9006 9007 # Print a message based on how we determined the include path 9008 9009 if test x"${ac_cv_c_tclh}" = x ; then 9010 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 9011echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 9012 { (exit 1); exit 1; }; } 9013 else 9014 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 9015echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 9016 fi 9017 9018 # Convert to a native path and substitute into the output files. 9019 9020 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 9021 9022 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 9023 9024 9025 9026 9027 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 9028 9029 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 9030echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 9031 9032 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 9033 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 9034 9035 # Check to see if tcl<Plat>Port.h isn't already with the public headers 9036 # Don't look for tclInt.h because that resides with tcl.h in the core 9037 # sources, but the <plat>Port headers are in a different directory 9038 if test "${TEA_PLATFORM}" = "windows" -a \ 9039 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 9040 result="private headers found with public headers" 9041 elif test "${TEA_PLATFORM}" = "unix" -a \ 9042 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 9043 result="private headers found with public headers" 9044 else 9045 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 9046 if test "${TEA_PLATFORM}" = "windows"; then 9047 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 9048 else 9049 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 9050 fi 9051 # Overwrite the previous TCL_INCLUDES as this should capture both 9052 # public and private headers in the same set. 9053 # We want to ensure these are substituted so as not to require 9054 # any *_NATIVE vars be defined in the Makefile 9055 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 9056 if test "`uname -s`" = "Darwin"; then 9057 # If Tcl was built as a framework, attempt to use 9058 # the framework's Headers and PrivateHeaders directories 9059 case ${TCL_DEFS} in 9060 *TCL_FRAMEWORK*) 9061 if test -d "${TCL_BIN_DIR}/Headers" -a \ 9062 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 9063 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 9064 else 9065 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 9066 fi 9067 ;; 9068 esac 9069 result="Using ${TCL_INCLUDES}" 9070 else 9071 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 9072 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 9073echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 9074 { (exit 1); exit 1; }; } 9075 fi 9076 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 9077 fi 9078 fi 9079 9080 9081 9082 9083 { echo "$as_me:$LINENO: result: ${result}" >&5 9084echo "${ECHO_T}${result}" >&6; } 9085 9086 ;; 9087 *) 9088 # Everywhere else we can stick with the public ones. 9089 9090 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 9091echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 9092 9093 9094# Check whether --with-tclinclude was given. 9095if test "${with_tclinclude+set}" = set; then 9096 withval=$with_tclinclude; with_tclinclude=${withval} 9097fi 9098 9099 9100 if test "${ac_cv_c_tclh+set}" = set; then 9101 echo $ECHO_N "(cached) $ECHO_C" >&6 9102else 9103 9104 # Use the value from --with-tclinclude, if it was given 9105 9106 if test x"${with_tclinclude}" != x ; then 9107 if test -f "${with_tclinclude}/tcl.h" ; then 9108 ac_cv_c_tclh=${with_tclinclude} 9109 else 9110 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 9111echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 9112 { (exit 1); exit 1; }; } 9113 fi 9114 else 9115 list="" 9116 if test "`uname -s`" = "Darwin"; then 9117 # If Tcl was built as a framework, attempt to use 9118 # the framework's Headers directory 9119 case ${TCL_DEFS} in 9120 *TCL_FRAMEWORK*) 9121 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 9122 ;; 9123 esac 9124 fi 9125 9126 # Look in the source dir only if Tcl is not installed, 9127 # and in that situation, look there before installed locations. 9128 if test -f "${TCL_BIN_DIR}/Makefile" ; then 9129 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 9130 fi 9131 9132 # Check order: pkg --prefix location, Tcl's --prefix location, 9133 # relative to directory of tclConfig.sh. 9134 9135 eval "temp_includedir=${includedir}" 9136 list="$list \ 9137 `ls -d ${temp_includedir} 2>/dev/null` \ 9138 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 9139 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 9140 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 9141 list="$list /usr/local/include /usr/include" 9142 if test x"${TCL_INCLUDE_SPEC}" != x ; then 9143 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 9144 list="$list `ls -d ${d} 2>/dev/null`" 9145 fi 9146 fi 9147 for i in $list ; do 9148 if test -f "$i/tcl.h" ; then 9149 ac_cv_c_tclh=$i 9150 break 9151 fi 9152 done 9153 fi 9154 9155fi 9156 9157 9158 # Print a message based on how we determined the include path 9159 9160 if test x"${ac_cv_c_tclh}" = x ; then 9161 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 9162echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 9163 { (exit 1); exit 1; }; } 9164 else 9165 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 9166echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 9167 fi 9168 9169 # Convert to a native path and substitute into the output files. 9170 9171 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 9172 9173 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 9174 9175 9176 9177 ;; 9178esac 9179 9180#TEA_PUBLIC_TCL_HEADERS 9181#TEA_PRIVATE_TCL_HEADERS 9182 9183#-------------------------------------------------------------------- 9184# A few miscellaneous platform-specific items: 9185# 9186# We have to define a special symbol for Windows (BUILD_Trf in this 9187# case) so that we create the export library with the dll. 9188# 9189# Windows creates a few extra files that need to be cleaned up. 9190# We can add more files to clean if our extension creates any extra 9191# files in the future. 9192# 9193# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 9194# These will be appended to the current set of compiler flags for 9195# your system. 9196#-------------------------------------------------------------------- 9197 9198if test "${TEA_PLATFORM}" = "windows" ; then 9199 cat >>confdefs.h <<\_ACEOF 9200#define BUILD_Trf 1 9201_ACEOF 9202 9203 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 9204else 9205 CLEANFILES="pkgIndex.tcl" 9206fi 9207 9208 9209#-------------------------------------------------------------------- 9210# Check whether --enable-threads or --disable-threads was given. 9211# So far only Tcl responds to this one. 9212#-------------------------------------------------------------------- 9213 9214 9215 # Check whether --enable-threads was given. 9216if test "${enable_threads+set}" = set; then 9217 enableval=$enable_threads; tcl_ok=$enableval 9218else 9219 tcl_ok=yes 9220fi 9221 9222 9223 if test "${enable_threads+set}" = set; then 9224 enableval="$enable_threads" 9225 tcl_ok=$enableval 9226 else 9227 tcl_ok=yes 9228 fi 9229 9230 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 9231 TCL_THREADS=1 9232 9233 if test "${TEA_PLATFORM}" != "windows" ; then 9234 # We are always OK on Windows, so check what this platform wants: 9235 9236 # USE_THREAD_ALLOC tells us to try the special thread-based 9237 # allocator that significantly reduces lock contention 9238 9239cat >>confdefs.h <<\_ACEOF 9240#define USE_THREAD_ALLOC 1 9241_ACEOF 9242 9243 9244cat >>confdefs.h <<\_ACEOF 9245#define _REENTRANT 1 9246_ACEOF 9247 9248 if test "`uname -s`" = "SunOS" ; then 9249 9250cat >>confdefs.h <<\_ACEOF 9251#define _POSIX_PTHREAD_SEMANTICS 1 9252_ACEOF 9253 9254 fi 9255 9256cat >>confdefs.h <<\_ACEOF 9257#define _THREAD_SAFE 1 9258_ACEOF 9259 9260 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 9261echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 9262if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 9263 echo $ECHO_N "(cached) $ECHO_C" >&6 9264else 9265 ac_check_lib_save_LIBS=$LIBS 9266LIBS="-lpthread $LIBS" 9267cat >conftest.$ac_ext <<_ACEOF 9268/* confdefs.h. */ 9269_ACEOF 9270cat confdefs.h >>conftest.$ac_ext 9271cat >>conftest.$ac_ext <<_ACEOF 9272/* end confdefs.h. */ 9273 9274/* Override any GCC internal prototype to avoid an error. 9275 Use char because int might match the return type of a GCC 9276 builtin and then its argument prototype would still apply. */ 9277#ifdef __cplusplus 9278extern "C" 9279#endif 9280char pthread_mutex_init (); 9281int 9282main () 9283{ 9284return pthread_mutex_init (); 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289rm -f conftest.$ac_objext conftest$ac_exeext 9290if { (ac_try="$ac_link" 9291case "(($ac_try" in 9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9293 *) ac_try_echo=$ac_try;; 9294esac 9295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9296 (eval "$ac_link") 2>conftest.er1 9297 ac_status=$? 9298 grep -v '^ *+' conftest.er1 >conftest.err 9299 rm -f conftest.er1 9300 cat conftest.err >&5 9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9302 (exit $ac_status); } && { 9303 test -z "$ac_c_werror_flag" || 9304 test ! -s conftest.err 9305 } && test -s conftest$ac_exeext && 9306 $as_test_x conftest$ac_exeext; then 9307 ac_cv_lib_pthread_pthread_mutex_init=yes 9308else 9309 echo "$as_me: failed program was:" >&5 9310sed 's/^/| /' conftest.$ac_ext >&5 9311 9312 ac_cv_lib_pthread_pthread_mutex_init=no 9313fi 9314 9315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9316 conftest$ac_exeext conftest.$ac_ext 9317LIBS=$ac_check_lib_save_LIBS 9318fi 9319{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 9320echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 9321if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 9322 tcl_ok=yes 9323else 9324 tcl_ok=no 9325fi 9326 9327 if test "$tcl_ok" = "no"; then 9328 # Check a little harder for __pthread_mutex_init in the same 9329 # library, as some systems hide it there until pthread.h is 9330 # defined. We could alternatively do an AC_TRY_COMPILE with 9331 # pthread.h, but that will work with libpthread really doesn't 9332 # exist, like AIX 4.2. [Bug: 4359] 9333 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 9334echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 9335if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 9336 echo $ECHO_N "(cached) $ECHO_C" >&6 9337else 9338 ac_check_lib_save_LIBS=$LIBS 9339LIBS="-lpthread $LIBS" 9340cat >conftest.$ac_ext <<_ACEOF 9341/* confdefs.h. */ 9342_ACEOF 9343cat confdefs.h >>conftest.$ac_ext 9344cat >>conftest.$ac_ext <<_ACEOF 9345/* end confdefs.h. */ 9346 9347/* Override any GCC internal prototype to avoid an error. 9348 Use char because int might match the return type of a GCC 9349 builtin and then its argument prototype would still apply. */ 9350#ifdef __cplusplus 9351extern "C" 9352#endif 9353char __pthread_mutex_init (); 9354int 9355main () 9356{ 9357return __pthread_mutex_init (); 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362rm -f conftest.$ac_objext conftest$ac_exeext 9363if { (ac_try="$ac_link" 9364case "(($ac_try" in 9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9366 *) ac_try_echo=$ac_try;; 9367esac 9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9369 (eval "$ac_link") 2>conftest.er1 9370 ac_status=$? 9371 grep -v '^ *+' conftest.er1 >conftest.err 9372 rm -f conftest.er1 9373 cat conftest.err >&5 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375 (exit $ac_status); } && { 9376 test -z "$ac_c_werror_flag" || 9377 test ! -s conftest.err 9378 } && test -s conftest$ac_exeext && 9379 $as_test_x conftest$ac_exeext; then 9380 ac_cv_lib_pthread___pthread_mutex_init=yes 9381else 9382 echo "$as_me: failed program was:" >&5 9383sed 's/^/| /' conftest.$ac_ext >&5 9384 9385 ac_cv_lib_pthread___pthread_mutex_init=no 9386fi 9387 9388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9389 conftest$ac_exeext conftest.$ac_ext 9390LIBS=$ac_check_lib_save_LIBS 9391fi 9392{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 9393echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 9394if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 9395 tcl_ok=yes 9396else 9397 tcl_ok=no 9398fi 9399 9400 fi 9401 9402 if test "$tcl_ok" = "yes"; then 9403 # The space is needed 9404 THREADS_LIBS=" -lpthread" 9405 else 9406 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 9407echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 9408if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 9409 echo $ECHO_N "(cached) $ECHO_C" >&6 9410else 9411 ac_check_lib_save_LIBS=$LIBS 9412LIBS="-lpthreads $LIBS" 9413cat >conftest.$ac_ext <<_ACEOF 9414/* confdefs.h. */ 9415_ACEOF 9416cat confdefs.h >>conftest.$ac_ext 9417cat >>conftest.$ac_ext <<_ACEOF 9418/* end confdefs.h. */ 9419 9420/* Override any GCC internal prototype to avoid an error. 9421 Use char because int might match the return type of a GCC 9422 builtin and then its argument prototype would still apply. */ 9423#ifdef __cplusplus 9424extern "C" 9425#endif 9426char pthread_mutex_init (); 9427int 9428main () 9429{ 9430return pthread_mutex_init (); 9431 ; 9432 return 0; 9433} 9434_ACEOF 9435rm -f conftest.$ac_objext conftest$ac_exeext 9436if { (ac_try="$ac_link" 9437case "(($ac_try" in 9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9439 *) ac_try_echo=$ac_try;; 9440esac 9441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9442 (eval "$ac_link") 2>conftest.er1 9443 ac_status=$? 9444 grep -v '^ *+' conftest.er1 >conftest.err 9445 rm -f conftest.er1 9446 cat conftest.err >&5 9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9448 (exit $ac_status); } && { 9449 test -z "$ac_c_werror_flag" || 9450 test ! -s conftest.err 9451 } && test -s conftest$ac_exeext && 9452 $as_test_x conftest$ac_exeext; then 9453 ac_cv_lib_pthreads_pthread_mutex_init=yes 9454else 9455 echo "$as_me: failed program was:" >&5 9456sed 's/^/| /' conftest.$ac_ext >&5 9457 9458 ac_cv_lib_pthreads_pthread_mutex_init=no 9459fi 9460 9461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9462 conftest$ac_exeext conftest.$ac_ext 9463LIBS=$ac_check_lib_save_LIBS 9464fi 9465{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 9466echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 9467if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 9468 tcl_ok=yes 9469else 9470 tcl_ok=no 9471fi 9472 9473 if test "$tcl_ok" = "yes"; then 9474 # The space is needed 9475 THREADS_LIBS=" -lpthreads" 9476 else 9477 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 9478echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 9479if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 9480 echo $ECHO_N "(cached) $ECHO_C" >&6 9481else 9482 ac_check_lib_save_LIBS=$LIBS 9483LIBS="-lc $LIBS" 9484cat >conftest.$ac_ext <<_ACEOF 9485/* confdefs.h. */ 9486_ACEOF 9487cat confdefs.h >>conftest.$ac_ext 9488cat >>conftest.$ac_ext <<_ACEOF 9489/* end confdefs.h. */ 9490 9491/* Override any GCC internal prototype to avoid an error. 9492 Use char because int might match the return type of a GCC 9493 builtin and then its argument prototype would still apply. */ 9494#ifdef __cplusplus 9495extern "C" 9496#endif 9497char pthread_mutex_init (); 9498int 9499main () 9500{ 9501return pthread_mutex_init (); 9502 ; 9503 return 0; 9504} 9505_ACEOF 9506rm -f conftest.$ac_objext conftest$ac_exeext 9507if { (ac_try="$ac_link" 9508case "(($ac_try" in 9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9510 *) ac_try_echo=$ac_try;; 9511esac 9512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9513 (eval "$ac_link") 2>conftest.er1 9514 ac_status=$? 9515 grep -v '^ *+' conftest.er1 >conftest.err 9516 rm -f conftest.er1 9517 cat conftest.err >&5 9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 (exit $ac_status); } && { 9520 test -z "$ac_c_werror_flag" || 9521 test ! -s conftest.err 9522 } && test -s conftest$ac_exeext && 9523 $as_test_x conftest$ac_exeext; then 9524 ac_cv_lib_c_pthread_mutex_init=yes 9525else 9526 echo "$as_me: failed program was:" >&5 9527sed 's/^/| /' conftest.$ac_ext >&5 9528 9529 ac_cv_lib_c_pthread_mutex_init=no 9530fi 9531 9532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9533 conftest$ac_exeext conftest.$ac_ext 9534LIBS=$ac_check_lib_save_LIBS 9535fi 9536{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 9537echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 9538if test $ac_cv_lib_c_pthread_mutex_init = yes; then 9539 tcl_ok=yes 9540else 9541 tcl_ok=no 9542fi 9543 9544 if test "$tcl_ok" = "no"; then 9545 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 9546echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 9547if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 9548 echo $ECHO_N "(cached) $ECHO_C" >&6 9549else 9550 ac_check_lib_save_LIBS=$LIBS 9551LIBS="-lc_r $LIBS" 9552cat >conftest.$ac_ext <<_ACEOF 9553/* confdefs.h. */ 9554_ACEOF 9555cat confdefs.h >>conftest.$ac_ext 9556cat >>conftest.$ac_ext <<_ACEOF 9557/* end confdefs.h. */ 9558 9559/* Override any GCC internal prototype to avoid an error. 9560 Use char because int might match the return type of a GCC 9561 builtin and then its argument prototype would still apply. */ 9562#ifdef __cplusplus 9563extern "C" 9564#endif 9565char pthread_mutex_init (); 9566int 9567main () 9568{ 9569return pthread_mutex_init (); 9570 ; 9571 return 0; 9572} 9573_ACEOF 9574rm -f conftest.$ac_objext conftest$ac_exeext 9575if { (ac_try="$ac_link" 9576case "(($ac_try" in 9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9578 *) ac_try_echo=$ac_try;; 9579esac 9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9581 (eval "$ac_link") 2>conftest.er1 9582 ac_status=$? 9583 grep -v '^ *+' conftest.er1 >conftest.err 9584 rm -f conftest.er1 9585 cat conftest.err >&5 9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 (exit $ac_status); } && { 9588 test -z "$ac_c_werror_flag" || 9589 test ! -s conftest.err 9590 } && test -s conftest$ac_exeext && 9591 $as_test_x conftest$ac_exeext; then 9592 ac_cv_lib_c_r_pthread_mutex_init=yes 9593else 9594 echo "$as_me: failed program was:" >&5 9595sed 's/^/| /' conftest.$ac_ext >&5 9596 9597 ac_cv_lib_c_r_pthread_mutex_init=no 9598fi 9599 9600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9601 conftest$ac_exeext conftest.$ac_ext 9602LIBS=$ac_check_lib_save_LIBS 9603fi 9604{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 9605echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 9606if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 9607 tcl_ok=yes 9608else 9609 tcl_ok=no 9610fi 9611 9612 if test "$tcl_ok" = "yes"; then 9613 # The space is needed 9614 THREADS_LIBS=" -pthread" 9615 else 9616 TCL_THREADS=0 9617 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 9618echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 9619 fi 9620 fi 9621 fi 9622 fi 9623 fi 9624 else 9625 TCL_THREADS=0 9626 fi 9627 # Do checking message here to not mess up interleaved configure output 9628 { echo "$as_me:$LINENO: checking for building with threads" >&5 9629echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 9630 if test "${TCL_THREADS}" = 1; then 9631 9632cat >>confdefs.h <<\_ACEOF 9633#define TCL_THREADS 1 9634_ACEOF 9635 9636 { echo "$as_me:$LINENO: result: yes (default)" >&5 9637echo "${ECHO_T}yes (default)" >&6; } 9638 else 9639 { echo "$as_me:$LINENO: result: no" >&5 9640echo "${ECHO_T}no" >&6; } 9641 fi 9642 # TCL_THREADS sanity checking. See if our request for building with 9643 # threads is the same as the way Tcl was built. If not, warn the user. 9644 case ${TCL_DEFS} in 9645 *THREADS=1*) 9646 if test "${TCL_THREADS}" = "0"; then 9647 { echo "$as_me:$LINENO: WARNING: 9648 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 9649 that IS thread-enabled. It is recommended to use --enable-threads." >&5 9650echo "$as_me: WARNING: 9651 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 9652 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 9653 fi 9654 ;; 9655 *) 9656 if test "${TCL_THREADS}" = "1"; then 9657 { echo "$as_me:$LINENO: WARNING: 9658 --enable-threads requested, but building against a Tcl that is NOT 9659 thread-enabled. This is an OK configuration that will also run in 9660 a thread-enabled core." >&5 9661echo "$as_me: WARNING: 9662 --enable-threads requested, but building against a Tcl that is NOT 9663 thread-enabled. This is an OK configuration that will also run in 9664 a thread-enabled core." >&2;} 9665 fi 9666 ;; 9667 esac 9668 9669 9670 9671#-------------------------------------------------------------------- 9672# The statement below defines a collection of symbols related to 9673# building as a shared library instead of a static library. 9674#-------------------------------------------------------------------- 9675 9676 9677 { echo "$as_me:$LINENO: checking how to build libraries" >&5 9678echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 9679 # Check whether --enable-shared was given. 9680if test "${enable_shared+set}" = set; then 9681 enableval=$enable_shared; tcl_ok=$enableval 9682else 9683 tcl_ok=yes 9684fi 9685 9686 9687 if test "${enable_shared+set}" = set; then 9688 enableval="$enable_shared" 9689 tcl_ok=$enableval 9690 else 9691 tcl_ok=yes 9692 fi 9693 9694 if test "$tcl_ok" = "yes" ; then 9695 { echo "$as_me:$LINENO: result: shared" >&5 9696echo "${ECHO_T}shared" >&6; } 9697 SHARED_BUILD=1 9698 else 9699 { echo "$as_me:$LINENO: result: static" >&5 9700echo "${ECHO_T}static" >&6; } 9701 SHARED_BUILD=0 9702 9703cat >>confdefs.h <<\_ACEOF 9704#define STATIC_BUILD 1 9705_ACEOF 9706 9707 fi 9708 9709 9710 9711#-------------------------------------------------------------------- 9712# This macro figures out what flags to use with the compiler/linker 9713# when building shared/static debug/optimized objects. This information 9714# can be taken from the tclConfig.sh file, but this figures it all out. 9715#-------------------------------------------------------------------- 9716 9717 9718 9719 9720 # Step 0.a: Enable 64 bit support? 9721 9722 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 9723echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 9724 # Check whether --enable-64bit was given. 9725if test "${enable_64bit+set}" = set; then 9726 enableval=$enable_64bit; do64bit=$enableval 9727else 9728 do64bit=no 9729fi 9730 9731 { echo "$as_me:$LINENO: result: $do64bit" >&5 9732echo "${ECHO_T}$do64bit" >&6; } 9733 9734 # Step 0.b: Enable Solaris 64 bit VIS support? 9735 9736 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 9737echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 9738 # Check whether --enable-64bit-vis was given. 9739if test "${enable_64bit_vis+set}" = set; then 9740 enableval=$enable_64bit_vis; do64bitVIS=$enableval 9741else 9742 do64bitVIS=no 9743fi 9744 9745 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 9746echo "${ECHO_T}$do64bitVIS" >&6; } 9747 # Force 64bit on with VIS 9748 if test "$do64bitVIS" = "yes"; then 9749 do64bit=yes 9750fi 9751 9752 9753 # Step 0.c: Check if visibility support is available. Do this here so 9754 # that platform specific alternatives can be used below if this fails. 9755 9756 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 9757echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 9758if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 9759 echo $ECHO_N "(cached) $ECHO_C" >&6 9760else 9761 9762 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9763 cat >conftest.$ac_ext <<_ACEOF 9764/* confdefs.h. */ 9765_ACEOF 9766cat confdefs.h >>conftest.$ac_ext 9767cat >>conftest.$ac_ext <<_ACEOF 9768/* end confdefs.h. */ 9769 9770 extern __attribute__((__visibility__("hidden"))) void f(void); 9771 void f(void) {} 9772int 9773main () 9774{ 9775f(); 9776 ; 9777 return 0; 9778} 9779_ACEOF 9780rm -f conftest.$ac_objext conftest$ac_exeext 9781if { (ac_try="$ac_link" 9782case "(($ac_try" in 9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9784 *) ac_try_echo=$ac_try;; 9785esac 9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9787 (eval "$ac_link") 2>conftest.er1 9788 ac_status=$? 9789 grep -v '^ *+' conftest.er1 >conftest.err 9790 rm -f conftest.er1 9791 cat conftest.err >&5 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); } && { 9794 test -z "$ac_c_werror_flag" || 9795 test ! -s conftest.err 9796 } && test -s conftest$ac_exeext && 9797 $as_test_x conftest$ac_exeext; then 9798 tcl_cv_cc_visibility_hidden=yes 9799else 9800 echo "$as_me: failed program was:" >&5 9801sed 's/^/| /' conftest.$ac_ext >&5 9802 9803 tcl_cv_cc_visibility_hidden=no 9804fi 9805 9806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9807 conftest$ac_exeext conftest.$ac_ext 9808 CFLAGS=$hold_cflags 9809fi 9810{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 9811echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 9812 if test $tcl_cv_cc_visibility_hidden = yes; then 9813 9814 9815cat >>confdefs.h <<\_ACEOF 9816#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 9817_ACEOF 9818 9819 9820fi 9821 9822 9823 # Step 0.d: Disable -rpath support? 9824 9825 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 9826echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 9827 # Check whether --enable-rpath was given. 9828if test "${enable_rpath+set}" = set; then 9829 enableval=$enable_rpath; doRpath=$enableval 9830else 9831 doRpath=yes 9832fi 9833 9834 { echo "$as_me:$LINENO: result: $doRpath" >&5 9835echo "${ECHO_T}$doRpath" >&6; } 9836 9837 # TEA specific: Cross-compiling options for Windows/CE builds? 9838 9839 if test "${TEA_PLATFORM}" = windows; then 9840 9841 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 9842echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 9843 # Check whether --enable-wince was given. 9844if test "${enable_wince+set}" = set; then 9845 enableval=$enable_wince; doWince=$enableval 9846else 9847 doWince=no 9848fi 9849 9850 { echo "$as_me:$LINENO: result: $doWince" >&5 9851echo "${ECHO_T}$doWince" >&6; } 9852 9853fi 9854 9855 9856 # Set the variable "system" to hold the name and version number 9857 # for the system. 9858 9859 9860 { echo "$as_me:$LINENO: checking system version" >&5 9861echo $ECHO_N "checking system version... $ECHO_C" >&6; } 9862if test "${tcl_cv_sys_version+set}" = set; then 9863 echo $ECHO_N "(cached) $ECHO_C" >&6 9864else 9865 9866 # TEA specific: 9867 if test "${TEA_PLATFORM}" = "windows" ; then 9868 tcl_cv_sys_version=windows 9869 else 9870 tcl_cv_sys_version=`uname -s`-`uname -r` 9871 if test "$?" -ne 0 ; then 9872 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 9873echo "$as_me: WARNING: can't find uname command" >&2;} 9874 tcl_cv_sys_version=unknown 9875 else 9876 if test "`uname -s`" = "AIX" ; then 9877 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 9878 fi 9879 fi 9880 fi 9881 9882fi 9883{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 9884echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 9885 system=$tcl_cv_sys_version 9886 9887 9888 # Require ranlib early so we can override it in special cases below. 9889 9890 9891 9892 # Set configuration options based on system name and version. 9893 # This is similar to Tcl's unix/tcl.m4 except that we've added a 9894 # "windows" case and removed some core-only vars. 9895 9896 do64bit_ok=no 9897 # default to '{$LIBS}' and set to "" on per-platform necessary basis 9898 SHLIB_LD_LIBS='${LIBS}' 9899 # When ld needs options to work in 64-bit mode, put them in 9900 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 9901 # is disabled by the user. [Bug 1016796] 9902 LDFLAGS_ARCH="" 9903 UNSHARED_LIB_SUFFIX="" 9904 # TEA specific: use PACKAGE_VERSION instead of VERSION 9905 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 9906 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 9907 TCL_LIB_VERSIONS_OK=ok 9908 CFLAGS_DEBUG=-g 9909 CFLAGS_OPTIMIZE=-O 9910 if test "$GCC" = yes; then 9911 9912 # TEA specific: 9913 CFLAGS_OPTIMIZE=-O2 9914 CFLAGS_WARNING="-Wall" 9915 9916else 9917 CFLAGS_WARNING="" 9918fi 9919 9920 # Extract the first word of "ar", so it can be a program name with args. 9921set dummy ar; ac_word=$2 9922{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9924if test "${ac_cv_prog_AR+set}" = set; then 9925 echo $ECHO_N "(cached) $ECHO_C" >&6 9926else 9927 if test -n "$AR"; then 9928 ac_cv_prog_AR="$AR" # Let the user override the test. 9929else 9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9931for as_dir in $PATH 9932do 9933 IFS=$as_save_IFS 9934 test -z "$as_dir" && as_dir=. 9935 for ac_exec_ext in '' $ac_executable_extensions; do 9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9937 ac_cv_prog_AR="ar" 9938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9939 break 2 9940 fi 9941done 9942done 9943IFS=$as_save_IFS 9944 9945fi 9946fi 9947AR=$ac_cv_prog_AR 9948if test -n "$AR"; then 9949 { echo "$as_me:$LINENO: result: $AR" >&5 9950echo "${ECHO_T}$AR" >&6; } 9951else 9952 { echo "$as_me:$LINENO: result: no" >&5 9953echo "${ECHO_T}no" >&6; } 9954fi 9955 9956 9957 STLIB_LD='${AR} cr' 9958 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 9959 if test "x$SHLIB_VERSION" = x; then 9960 SHLIB_VERSION="1.0" 9961fi 9962 9963 case $system in 9964 # TEA specific: 9965 windows) 9966 # This is a 2-stage check to make sure we have the 64-bit SDK 9967 # We have to know where the SDK is installed. 9968 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 9969 # MACHINE is IX86 for LINK, but this is used by the manifest, 9970 # which requires x86|amd64|ia64. 9971 MACHINE="X86" 9972 if test "$do64bit" != "no" ; then 9973 if test "x${MSSDK}x" = "xx" ; then 9974 MSSDK="C:/Progra~1/Microsoft Platform SDK" 9975 fi 9976 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 9977 PATH64="" 9978 case "$do64bit" in 9979 amd64|x64|yes) 9980 MACHINE="AMD64" ; # default to AMD64 64-bit build 9981 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 9982 ;; 9983 ia64) 9984 MACHINE="IA64" 9985 PATH64="${MSSDK}/Bin/Win64" 9986 ;; 9987 esac 9988 if test ! -d "${PATH64}" ; then 9989 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 9990echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 9991 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 9992echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 9993 do64bit="no" 9994 else 9995 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 9996echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 9997 do64bit_ok="yes" 9998 fi 9999 fi 10000 10001 if test "$doWince" != "no" ; then 10002 if test "$do64bit" != "no" ; then 10003 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 10004echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 10005 { (exit 1); exit 1; }; } 10006 fi 10007 if test "$GCC" = "yes" ; then 10008 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 10009echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 10010 { (exit 1); exit 1; }; } 10011 fi 10012 10013 # First, look for one uninstalled. 10014 # the alternative search directory is invoked by --with-celib 10015 10016 if test x"${no_celib}" = x ; then 10017 # we reset no_celib in case something fails here 10018 no_celib=true 10019 10020# Check whether --with-celib was given. 10021if test "${with_celib+set}" = set; then 10022 withval=$with_celib; with_celibconfig=${withval} 10023fi 10024 10025 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 10026echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 10027 if test "${ac_cv_c_celibconfig+set}" = set; then 10028 echo $ECHO_N "(cached) $ECHO_C" >&6 10029else 10030 10031 # First check to see if --with-celibconfig was specified. 10032 if test x"${with_celibconfig}" != x ; then 10033 if test -d "${with_celibconfig}/inc" ; then 10034 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 10035 else 10036 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 10037echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 10038 { (exit 1); exit 1; }; } 10039 fi 10040 fi 10041 10042 # then check for a celib library 10043 if test x"${ac_cv_c_celibconfig}" = x ; then 10044 for i in \ 10045 ../celib-palm-3.0 \ 10046 ../celib \ 10047 ../../celib-palm-3.0 \ 10048 ../../celib \ 10049 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 10050 ${srcdir}/../celib-palm-3.0 \ 10051 ${srcdir}/../celib \ 10052 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 10053 ; do 10054 if test -d "$i/inc" ; then 10055 ac_cv_c_celibconfig=`(cd $i; pwd)` 10056 break 10057 fi 10058 done 10059 fi 10060 10061fi 10062 10063 if test x"${ac_cv_c_celibconfig}" = x ; then 10064 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 10065echo "$as_me: error: Cannot find celib support library directory" >&2;} 10066 { (exit 1); exit 1; }; } 10067 else 10068 no_celib= 10069 CELIB_DIR=${ac_cv_c_celibconfig} 10070 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 10071 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 10072echo "${ECHO_T}found $CELIB_DIR" >&6; } 10073 fi 10074 fi 10075 10076 # Set defaults for common evc4/PPC2003 setup 10077 # Currently Tcl requires 300+, possibly 420+ for sockets 10078 CEVERSION=420; # could be 211 300 301 400 420 ... 10079 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 10080 ARCH=ARM; # could be ARM MIPS X86EM ... 10081 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 10082 if test "$doWince" != "yes"; then 10083 # If !yes then the user specified something 10084 # Reset ARCH to allow user to skip specifying it 10085 ARCH= 10086 eval `echo $doWince | awk -F, '{ \ 10087 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 10088 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 10089 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 10090 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 10091 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 10092 }'` 10093 if test "x${ARCH}" = "x" ; then 10094 ARCH=$TARGETCPU; 10095 fi 10096 fi 10097 OSVERSION=WCE$CEVERSION; 10098 if test "x${WCEROOT}" = "x" ; then 10099 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 10100 if test ! -d "${WCEROOT}" ; then 10101 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 10102 fi 10103 fi 10104 if test "x${SDKROOT}" = "x" ; then 10105 SDKROOT="C:/Program Files/Windows CE Tools" 10106 if test ! -d "${SDKROOT}" ; then 10107 SDKROOT="C:/Windows CE Tools" 10108 fi 10109 fi 10110 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 10111 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 10112 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 10113 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 10114 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 10115echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 10116 { (exit 1); exit 1; }; } 10117 doWince="no" 10118 else 10119 # We could PATH_NOSPACE these, but that's not important, 10120 # as long as we quote them when used. 10121 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 10122 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 10123 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 10124 fi 10125 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 10126 fi 10127 fi 10128 10129 if test "$GCC" != "yes" ; then 10130 if test "${SHARED_BUILD}" = "0" ; then 10131 runtime=-MT 10132 else 10133 runtime=-MD 10134 fi 10135 10136 if test "$do64bit" != "no" ; then 10137 # All this magic is necessary for the Win64 SDK RC1 - hobbs 10138 CC="\"${PATH64}/cl.exe\"" 10139 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 10140 RC="\"${MSSDK}/bin/rc.exe\"" 10141 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 10142 LINKBIN="\"${PATH64}/link.exe\"" 10143 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 10144 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 10145 # Avoid 'unresolved external symbol __security_cookie' 10146 # errors, c.f. http://support.microsoft.com/?id=894573 10147 10148 vars="bufferoverflowU.lib" 10149 for i in $vars; do 10150 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 10151 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 10152 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 10153 fi 10154 PKG_LIBS="$PKG_LIBS $i" 10155 done 10156 10157 10158 elif test "$doWince" != "no" ; then 10159 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 10160 if test "${TARGETCPU}" = "X86"; then 10161 CC="\"${CEBINROOT}/cl.exe\"" 10162 else 10163 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 10164 fi 10165 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 10166 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 10167 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 10168 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 10169 if test "${SHARED_BUILD}" = "1" ; then 10170 # Static CE builds require static celib as well 10171 defs="${defs} _DLL" 10172 fi 10173 for i in $defs ; do 10174 10175cat >>confdefs.h <<_ACEOF 10176#define $i 1 10177_ACEOF 10178 10179 done 10180 10181cat >>confdefs.h <<_ACEOF 10182#define _WIN32_WCE $CEVERSION 10183_ACEOF 10184 10185 10186cat >>confdefs.h <<_ACEOF 10187#define UNDER_CE $CEVERSION 10188_ACEOF 10189 10190 CFLAGS_DEBUG="-nologo -Zi -Od" 10191 CFLAGS_OPTIMIZE="-nologo -Ox" 10192 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 10193 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 10194 LINKBIN="\"${CEBINROOT}/link.exe\"" 10195 10196 else 10197 RC="rc" 10198 lflags="-nologo" 10199 LINKBIN="link" 10200 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 10201 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 10202 fi 10203 fi 10204 10205 if test "$GCC" = "yes"; then 10206 # mingw gcc mode 10207 RC="windres" 10208 CFLAGS_DEBUG="-g" 10209 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 10210 SHLIB_LD="$CC -shared" 10211 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10212 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 10213 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 10214 else 10215 SHLIB_LD="${LINKBIN} -dll ${lflags}" 10216 # link -lib only works when -lib is the first arg 10217 STLIB_LD="${LINKBIN} -lib ${lflags}" 10218 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 10219 PATHTYPE=-w 10220 # For information on what debugtype is most useful, see: 10221 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 10222 # and also 10223 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 10224 # This essentially turns it all on. 10225 LDFLAGS_DEBUG="-debug -debugtype:cv" 10226 LDFLAGS_OPTIMIZE="-release" 10227 if test "$doWince" != "no" ; then 10228 LDFLAGS_CONSOLE="-link ${lflags}" 10229 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 10230 else 10231 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 10232 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 10233 fi 10234 fi 10235 10236 SHLIB_SUFFIX=".dll" 10237 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 10238 10239 TCL_LIB_VERSIONS_OK=nodots 10240 ;; 10241 AIX-*) 10242 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 10243 10244 # AIX requires the _r compiler when gcc isn't being used 10245 case "${CC}" in 10246 *_r|*_r\ *) 10247 # ok ... 10248 ;; 10249 *) 10250 # Make sure only first arg gets _r 10251 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 10252 ;; 10253 esac 10254 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 10255echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 10256 10257fi 10258 10259 LIBS="$LIBS -lc" 10260 SHLIB_CFLAGS="" 10261 SHLIB_SUFFIX=".so" 10262 10263 LD_LIBRARY_PATH_VAR="LIBPATH" 10264 10265 # Check to enable 64-bit flags for compiler/linker 10266 if test "$do64bit" = yes; then 10267 10268 if test "$GCC" = yes; then 10269 10270 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10271echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 10272 10273else 10274 10275 do64bit_ok=yes 10276 CFLAGS="$CFLAGS -q64" 10277 LDFLAGS_ARCH="-q64" 10278 RANLIB="${RANLIB} -X64" 10279 AR="${AR} -X64" 10280 SHLIB_LD_FLAGS="-b64" 10281 10282fi 10283 10284 10285fi 10286 10287 10288 if test "`uname -m`" = ia64; then 10289 10290 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 10291 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 10292 if test "$GCC" = yes; then 10293 10294 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10295 10296else 10297 10298 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 10299 10300fi 10301 10302 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10303 10304else 10305 10306 if test "$GCC" = yes; then 10307 10308 SHLIB_LD='${CC} -shared -Wl,-bexpall' 10309 10310else 10311 10312 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 10313 LDFLAGS="$LDFLAGS -brtl" 10314 10315fi 10316 10317 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 10318 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 10319 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10320 10321fi 10322 10323 ;; 10324 BeOS*) 10325 SHLIB_CFLAGS="-fPIC" 10326 SHLIB_LD='${CC} -nostart' 10327 SHLIB_SUFFIX=".so" 10328 10329 #----------------------------------------------------------- 10330 # Check for inet_ntoa in -lbind, for BeOS (which also needs 10331 # -lsocket, even if the network functions are in -lnet which 10332 # is always linked to, for compatibility. 10333 #----------------------------------------------------------- 10334 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 10335echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 10336if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 10337 echo $ECHO_N "(cached) $ECHO_C" >&6 10338else 10339 ac_check_lib_save_LIBS=$LIBS 10340LIBS="-lbind $LIBS" 10341cat >conftest.$ac_ext <<_ACEOF 10342/* confdefs.h. */ 10343_ACEOF 10344cat confdefs.h >>conftest.$ac_ext 10345cat >>conftest.$ac_ext <<_ACEOF 10346/* end confdefs.h. */ 10347 10348/* Override any GCC internal prototype to avoid an error. 10349 Use char because int might match the return type of a GCC 10350 builtin and then its argument prototype would still apply. */ 10351#ifdef __cplusplus 10352extern "C" 10353#endif 10354char inet_ntoa (); 10355int 10356main () 10357{ 10358return inet_ntoa (); 10359 ; 10360 return 0; 10361} 10362_ACEOF 10363rm -f conftest.$ac_objext conftest$ac_exeext 10364if { (ac_try="$ac_link" 10365case "(($ac_try" in 10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10367 *) ac_try_echo=$ac_try;; 10368esac 10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10370 (eval "$ac_link") 2>conftest.er1 10371 ac_status=$? 10372 grep -v '^ *+' conftest.er1 >conftest.err 10373 rm -f conftest.er1 10374 cat conftest.err >&5 10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10376 (exit $ac_status); } && { 10377 test -z "$ac_c_werror_flag" || 10378 test ! -s conftest.err 10379 } && test -s conftest$ac_exeext && 10380 $as_test_x conftest$ac_exeext; then 10381 ac_cv_lib_bind_inet_ntoa=yes 10382else 10383 echo "$as_me: failed program was:" >&5 10384sed 's/^/| /' conftest.$ac_ext >&5 10385 10386 ac_cv_lib_bind_inet_ntoa=no 10387fi 10388 10389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10390 conftest$ac_exeext conftest.$ac_ext 10391LIBS=$ac_check_lib_save_LIBS 10392fi 10393{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 10394echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 10395if test $ac_cv_lib_bind_inet_ntoa = yes; then 10396 LIBS="$LIBS -lbind -lsocket" 10397fi 10398 10399 ;; 10400 BSD/OS-4.*) 10401 SHLIB_CFLAGS="-export-dynamic -fPIC" 10402 SHLIB_LD='${CC} -shared' 10403 SHLIB_SUFFIX=".so" 10404 LDFLAGS="$LDFLAGS -export-dynamic" 10405 CC_SEARCH_FLAGS="" 10406 LD_SEARCH_FLAGS="" 10407 ;; 10408 CYGWIN_*) 10409 SHLIB_CFLAGS="" 10410 SHLIB_LD='${CC} -shared' 10411 SHLIB_SUFFIX=".dll" 10412 EXE_SUFFIX=".exe" 10413 CC_SEARCH_FLAGS="" 10414 LD_SEARCH_FLAGS="" 10415 ;; 10416 Haiku*) 10417 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 10418 SHLIB_CFLAGS="-fPIC" 10419 SHLIB_SUFFIX=".so" 10420 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 10421 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 10422echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 10423if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 10424 echo $ECHO_N "(cached) $ECHO_C" >&6 10425else 10426 ac_check_lib_save_LIBS=$LIBS 10427LIBS="-lnetwork $LIBS" 10428cat >conftest.$ac_ext <<_ACEOF 10429/* confdefs.h. */ 10430_ACEOF 10431cat confdefs.h >>conftest.$ac_ext 10432cat >>conftest.$ac_ext <<_ACEOF 10433/* end confdefs.h. */ 10434 10435/* Override any GCC internal prototype to avoid an error. 10436 Use char because int might match the return type of a GCC 10437 builtin and then its argument prototype would still apply. */ 10438#ifdef __cplusplus 10439extern "C" 10440#endif 10441char inet_ntoa (); 10442int 10443main () 10444{ 10445return inet_ntoa (); 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450rm -f conftest.$ac_objext conftest$ac_exeext 10451if { (ac_try="$ac_link" 10452case "(($ac_try" in 10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10454 *) ac_try_echo=$ac_try;; 10455esac 10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10457 (eval "$ac_link") 2>conftest.er1 10458 ac_status=$? 10459 grep -v '^ *+' conftest.er1 >conftest.err 10460 rm -f conftest.er1 10461 cat conftest.err >&5 10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10463 (exit $ac_status); } && { 10464 test -z "$ac_c_werror_flag" || 10465 test ! -s conftest.err 10466 } && test -s conftest$ac_exeext && 10467 $as_test_x conftest$ac_exeext; then 10468 ac_cv_lib_network_inet_ntoa=yes 10469else 10470 echo "$as_me: failed program was:" >&5 10471sed 's/^/| /' conftest.$ac_ext >&5 10472 10473 ac_cv_lib_network_inet_ntoa=no 10474fi 10475 10476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10477 conftest$ac_exeext conftest.$ac_ext 10478LIBS=$ac_check_lib_save_LIBS 10479fi 10480{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 10481echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 10482if test $ac_cv_lib_network_inet_ntoa = yes; then 10483 LIBS="$LIBS -lnetwork" 10484fi 10485 10486 ;; 10487 HP-UX-*.11.*) 10488 # Use updated header definitions where possible 10489 10490cat >>confdefs.h <<\_ACEOF 10491#define _XOPEN_SOURCE_EXTENDED 1 10492_ACEOF 10493 10494 # TEA specific: Needed by Tcl, but not most extensions 10495 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 10496 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 10497 10498 if test "`uname -m`" = ia64; then 10499 10500 SHLIB_SUFFIX=".so" 10501 # Use newer C++ library for C++ extensions 10502 #if test "$GCC" != "yes" ; then 10503 # CPPFLAGS="-AA" 10504 #fi 10505 10506else 10507 10508 SHLIB_SUFFIX=".sl" 10509 10510fi 10511 10512 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10513echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10514if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10515 echo $ECHO_N "(cached) $ECHO_C" >&6 10516else 10517 ac_check_lib_save_LIBS=$LIBS 10518LIBS="-ldld $LIBS" 10519cat >conftest.$ac_ext <<_ACEOF 10520/* confdefs.h. */ 10521_ACEOF 10522cat confdefs.h >>conftest.$ac_ext 10523cat >>conftest.$ac_ext <<_ACEOF 10524/* end confdefs.h. */ 10525 10526/* Override any GCC internal prototype to avoid an error. 10527 Use char because int might match the return type of a GCC 10528 builtin and then its argument prototype would still apply. */ 10529#ifdef __cplusplus 10530extern "C" 10531#endif 10532char shl_load (); 10533int 10534main () 10535{ 10536return shl_load (); 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541rm -f conftest.$ac_objext conftest$ac_exeext 10542if { (ac_try="$ac_link" 10543case "(($ac_try" in 10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10545 *) ac_try_echo=$ac_try;; 10546esac 10547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10548 (eval "$ac_link") 2>conftest.er1 10549 ac_status=$? 10550 grep -v '^ *+' conftest.er1 >conftest.err 10551 rm -f conftest.er1 10552 cat conftest.err >&5 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 (exit $ac_status); } && { 10555 test -z "$ac_c_werror_flag" || 10556 test ! -s conftest.err 10557 } && test -s conftest$ac_exeext && 10558 $as_test_x conftest$ac_exeext; then 10559 ac_cv_lib_dld_shl_load=yes 10560else 10561 echo "$as_me: failed program was:" >&5 10562sed 's/^/| /' conftest.$ac_ext >&5 10563 10564 ac_cv_lib_dld_shl_load=no 10565fi 10566 10567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10568 conftest$ac_exeext conftest.$ac_ext 10569LIBS=$ac_check_lib_save_LIBS 10570fi 10571{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10572echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10573if test $ac_cv_lib_dld_shl_load = yes; then 10574 tcl_ok=yes 10575else 10576 tcl_ok=no 10577fi 10578 10579 if test "$tcl_ok" = yes; then 10580 10581 LDFLAGS="$LDFLAGS -E" 10582 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 10583 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 10584 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 10585 10586fi 10587 10588 if test "$GCC" = yes; then 10589 10590 SHLIB_LD='${CC} -shared' 10591 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10592 10593else 10594 10595 CFLAGS="$CFLAGS -z" 10596 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 10597 #CFLAGS="$CFLAGS +DAportable" 10598 SHLIB_CFLAGS="+z" 10599 SHLIB_LD="ld -b" 10600 10601fi 10602 10603 10604 # Check to enable 64-bit flags for compiler/linker 10605 if test "$do64bit" = "yes"; then 10606 10607 if test "$GCC" = yes; then 10608 10609 case `${CC} -dumpmachine` in 10610 hppa64*) 10611 # 64-bit gcc in use. Fix flags for GNU ld. 10612 do64bit_ok=yes 10613 SHLIB_LD='${CC} -shared' 10614 if test $doRpath = yes; then 10615 10616 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10617fi 10618 10619 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10620 ;; 10621 *) 10622 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10623echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 10624 ;; 10625 esac 10626 10627else 10628 10629 do64bit_ok=yes 10630 CFLAGS="$CFLAGS +DD64" 10631 LDFLAGS_ARCH="+DD64" 10632 10633fi 10634 10635 10636fi 10637 ;; 10638 IRIX-6.*) 10639 SHLIB_CFLAGS="" 10640 SHLIB_LD="ld -n32 -shared -rdata_shared" 10641 SHLIB_SUFFIX=".so" 10642 if test $doRpath = yes; then 10643 10644 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10645 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10646fi 10647 10648 if test "$GCC" = yes; then 10649 10650 CFLAGS="$CFLAGS -mabi=n32" 10651 LDFLAGS="$LDFLAGS -mabi=n32" 10652 10653else 10654 10655 case $system in 10656 IRIX-6.3) 10657 # Use to build 6.2 compatible binaries on 6.3. 10658 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 10659 ;; 10660 *) 10661 CFLAGS="$CFLAGS -n32" 10662 ;; 10663 esac 10664 LDFLAGS="$LDFLAGS -n32" 10665 10666fi 10667 10668 ;; 10669 IRIX64-6.*) 10670 SHLIB_CFLAGS="" 10671 SHLIB_LD="ld -n32 -shared -rdata_shared" 10672 SHLIB_SUFFIX=".so" 10673 if test $doRpath = yes; then 10674 10675 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10676 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10677fi 10678 10679 10680 # Check to enable 64-bit flags for compiler/linker 10681 10682 if test "$do64bit" = yes; then 10683 10684 if test "$GCC" = yes; then 10685 10686 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 10687echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 10688 10689else 10690 10691 do64bit_ok=yes 10692 SHLIB_LD="ld -64 -shared -rdata_shared" 10693 CFLAGS="$CFLAGS -64" 10694 LDFLAGS_ARCH="-64" 10695 10696fi 10697 10698 10699fi 10700 10701 ;; 10702 Linux*) 10703 SHLIB_CFLAGS="-fPIC" 10704 SHLIB_SUFFIX=".so" 10705 10706 # TEA specific: 10707 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 10708 10709 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10710 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 10711 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 10712 if test $doRpath = yes; then 10713 10714 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10715fi 10716 10717 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10718 if test "`uname -m`" = "alpha"; then 10719 CFLAGS="$CFLAGS -mieee" 10720fi 10721 10722 if test $do64bit = yes; then 10723 10724 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 10725echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 10726if test "${tcl_cv_cc_m64+set}" = set; then 10727 echo $ECHO_N "(cached) $ECHO_C" >&6 10728else 10729 10730 hold_cflags=$CFLAGS 10731 CFLAGS="$CFLAGS -m64" 10732 cat >conftest.$ac_ext <<_ACEOF 10733/* confdefs.h. */ 10734_ACEOF 10735cat confdefs.h >>conftest.$ac_ext 10736cat >>conftest.$ac_ext <<_ACEOF 10737/* end confdefs.h. */ 10738 10739int 10740main () 10741{ 10742 10743 ; 10744 return 0; 10745} 10746_ACEOF 10747rm -f conftest.$ac_objext conftest$ac_exeext 10748if { (ac_try="$ac_link" 10749case "(($ac_try" in 10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10751 *) ac_try_echo=$ac_try;; 10752esac 10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10754 (eval "$ac_link") 2>conftest.er1 10755 ac_status=$? 10756 grep -v '^ *+' conftest.er1 >conftest.err 10757 rm -f conftest.er1 10758 cat conftest.err >&5 10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10760 (exit $ac_status); } && { 10761 test -z "$ac_c_werror_flag" || 10762 test ! -s conftest.err 10763 } && test -s conftest$ac_exeext && 10764 $as_test_x conftest$ac_exeext; then 10765 tcl_cv_cc_m64=yes 10766else 10767 echo "$as_me: failed program was:" >&5 10768sed 's/^/| /' conftest.$ac_ext >&5 10769 10770 tcl_cv_cc_m64=no 10771fi 10772 10773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10774 conftest$ac_exeext conftest.$ac_ext 10775 CFLAGS=$hold_cflags 10776fi 10777{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 10778echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 10779 if test $tcl_cv_cc_m64 = yes; then 10780 10781 CFLAGS="$CFLAGS -m64" 10782 do64bit_ok=yes 10783 10784fi 10785 10786 10787fi 10788 10789 10790 # The combo of gcc + glibc has a bug related to inlining of 10791 # functions like strtod(). The -fno-builtin flag should address 10792 # this problem but it does not work. The -fno-inline flag is kind 10793 # of overkill but it works. Disable inlining only when one of the 10794 # files in compat/*.c is being linked in. 10795 10796 if test x"${USE_COMPAT}" != x; then 10797 CFLAGS="$CFLAGS -fno-inline" 10798fi 10799 10800 10801 ;; 10802 GNU*) 10803 SHLIB_CFLAGS="-fPIC" 10804 SHLIB_SUFFIX=".so" 10805 10806 SHLIB_LD='${CC} -shared' 10807 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 10808 CC_SEARCH_FLAGS="" 10809 LD_SEARCH_FLAGS="" 10810 if test "`uname -m`" = "alpha"; then 10811 CFLAGS="$CFLAGS -mieee" 10812fi 10813 10814 ;; 10815 Lynx*) 10816 SHLIB_CFLAGS="-fPIC" 10817 SHLIB_SUFFIX=".so" 10818 CFLAGS_OPTIMIZE=-02 10819 SHLIB_LD='${CC} -shared' 10820 LD_FLAGS="-Wl,--export-dynamic" 10821 if test $doRpath = yes; then 10822 10823 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10824 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10825fi 10826 10827 ;; 10828 OpenBSD-*) 10829 SHLIB_CFLAGS="-fPIC" 10830 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 10831 SHLIB_SUFFIX=".so" 10832 if test $doRpath = yes; then 10833 10834 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10835fi 10836 10837 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10838 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 10839 { echo "$as_me:$LINENO: checking for ELF" >&5 10840echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 10841if test "${tcl_cv_ld_elf+set}" = set; then 10842 echo $ECHO_N "(cached) $ECHO_C" >&6 10843else 10844 10845 cat >conftest.$ac_ext <<_ACEOF 10846/* confdefs.h. */ 10847_ACEOF 10848cat confdefs.h >>conftest.$ac_ext 10849cat >>conftest.$ac_ext <<_ACEOF 10850/* end confdefs.h. */ 10851 10852#ifdef __ELF__ 10853 yes 10854#endif 10855 10856_ACEOF 10857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10858 $EGREP "yes" >/dev/null 2>&1; then 10859 tcl_cv_ld_elf=yes 10860else 10861 tcl_cv_ld_elf=no 10862fi 10863rm -f -r conftest* 10864 10865fi 10866{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 10867echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 10868 if test $tcl_cv_ld_elf = yes; then 10869 10870 LDFLAGS=-Wl,-export-dynamic 10871 10872else 10873 LDFLAGS="" 10874fi 10875 10876 if test "${TCL_THREADS}" = "1"; then 10877 10878 # OpenBSD builds and links with -pthread, never -lpthread. 10879 LIBS=`echo $LIBS | sed s/-lpthread//` 10880 CFLAGS="$CFLAGS -pthread" 10881 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 10882 10883fi 10884 10885 # OpenBSD doesn't do version numbers with dots. 10886 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10887 TCL_LIB_VERSIONS_OK=nodots 10888 ;; 10889 NetBSD-*|FreeBSD-[3-4].*) 10890 # FreeBSD 3.* and greater have ELF. 10891 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 10892 SHLIB_CFLAGS="-fPIC" 10893 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 10894 SHLIB_SUFFIX=".so" 10895 LDFLAGS="$LDFLAGS -export-dynamic" 10896 if test $doRpath = yes; then 10897 10898 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10899fi 10900 10901 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10902 if test "${TCL_THREADS}" = "1"; then 10903 10904 # The -pthread needs to go in the CFLAGS, not LIBS 10905 LIBS=`echo $LIBS | sed s/-pthread//` 10906 CFLAGS="$CFLAGS -pthread" 10907 LDFLAGS="$LDFLAGS -pthread" 10908 10909fi 10910 10911 case $system in 10912 FreeBSD-3.*) 10913 # FreeBSD-3 doesn't handle version numbers with dots. 10914 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10915 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 10916 TCL_LIB_VERSIONS_OK=nodots 10917 ;; 10918 esac 10919 ;; 10920 FreeBSD-*) 10921 # This configuration from FreeBSD Ports. 10922 SHLIB_CFLAGS="-fPIC" 10923 SHLIB_LD="${CC} -shared" 10924 TCL_SHLIB_LD_EXTRAS="-soname \$@" 10925 SHLIB_SUFFIX=".so" 10926 LDFLAGS="" 10927 if test $doRpath = yes; then 10928 10929 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 10930 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 10931fi 10932 10933 if test "${TCL_THREADS}" = "1"; then 10934 10935 # The -pthread needs to go in the LDFLAGS, not LIBS 10936 LIBS=`echo $LIBS | sed s/-pthread//` 10937 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10938 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 10939fi 10940 10941 # Version numbers are dot-stripped by system policy. 10942 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 10943 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 10944 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 10945 TCL_LIB_VERSIONS_OK=nodots 10946 ;; 10947 Darwin-*) 10948 CFLAGS_OPTIMIZE="-Os" 10949 SHLIB_CFLAGS="-fno-common" 10950 # To avoid discrepancies between what headers configure sees during 10951 # preprocessing tests and compiling tests, move any -isysroot and 10952 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 10953 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 10954 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 10955 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 10956 CFLAGS="`echo " ${CFLAGS}" | \ 10957 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 10958 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 10959 if test $do64bit = yes; then 10960 10961 case `arch` in 10962 ppc) 10963 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 10964echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 10965if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 10966 echo $ECHO_N "(cached) $ECHO_C" >&6 10967else 10968 10969 hold_cflags=$CFLAGS 10970 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 10971 cat >conftest.$ac_ext <<_ACEOF 10972/* confdefs.h. */ 10973_ACEOF 10974cat confdefs.h >>conftest.$ac_ext 10975cat >>conftest.$ac_ext <<_ACEOF 10976/* end confdefs.h. */ 10977 10978int 10979main () 10980{ 10981 10982 ; 10983 return 0; 10984} 10985_ACEOF 10986rm -f conftest.$ac_objext conftest$ac_exeext 10987if { (ac_try="$ac_link" 10988case "(($ac_try" in 10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10990 *) ac_try_echo=$ac_try;; 10991esac 10992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10993 (eval "$ac_link") 2>conftest.er1 10994 ac_status=$? 10995 grep -v '^ *+' conftest.er1 >conftest.err 10996 rm -f conftest.er1 10997 cat conftest.err >&5 10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10999 (exit $ac_status); } && { 11000 test -z "$ac_c_werror_flag" || 11001 test ! -s conftest.err 11002 } && test -s conftest$ac_exeext && 11003 $as_test_x conftest$ac_exeext; then 11004 tcl_cv_cc_arch_ppc64=yes 11005else 11006 echo "$as_me: failed program was:" >&5 11007sed 's/^/| /' conftest.$ac_ext >&5 11008 11009 tcl_cv_cc_arch_ppc64=no 11010fi 11011 11012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11013 conftest$ac_exeext conftest.$ac_ext 11014 CFLAGS=$hold_cflags 11015fi 11016{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 11017echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 11018 if test $tcl_cv_cc_arch_ppc64 = yes; then 11019 11020 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 11021 do64bit_ok=yes 11022 11023fi 11024;; 11025 i386) 11026 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 11027echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 11028if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 11029 echo $ECHO_N "(cached) $ECHO_C" >&6 11030else 11031 11032 hold_cflags=$CFLAGS 11033 CFLAGS="$CFLAGS -arch x86_64" 11034 cat >conftest.$ac_ext <<_ACEOF 11035/* confdefs.h. */ 11036_ACEOF 11037cat confdefs.h >>conftest.$ac_ext 11038cat >>conftest.$ac_ext <<_ACEOF 11039/* end confdefs.h. */ 11040 11041int 11042main () 11043{ 11044 11045 ; 11046 return 0; 11047} 11048_ACEOF 11049rm -f conftest.$ac_objext conftest$ac_exeext 11050if { (ac_try="$ac_link" 11051case "(($ac_try" in 11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11053 *) ac_try_echo=$ac_try;; 11054esac 11055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11056 (eval "$ac_link") 2>conftest.er1 11057 ac_status=$? 11058 grep -v '^ *+' conftest.er1 >conftest.err 11059 rm -f conftest.er1 11060 cat conftest.err >&5 11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11062 (exit $ac_status); } && { 11063 test -z "$ac_c_werror_flag" || 11064 test ! -s conftest.err 11065 } && test -s conftest$ac_exeext && 11066 $as_test_x conftest$ac_exeext; then 11067 tcl_cv_cc_arch_x86_64=yes 11068else 11069 echo "$as_me: failed program was:" >&5 11070sed 's/^/| /' conftest.$ac_ext >&5 11071 11072 tcl_cv_cc_arch_x86_64=no 11073fi 11074 11075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11076 conftest$ac_exeext conftest.$ac_ext 11077 CFLAGS=$hold_cflags 11078fi 11079{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 11080echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 11081 if test $tcl_cv_cc_arch_x86_64 = yes; then 11082 11083 CFLAGS="$CFLAGS -arch x86_64" 11084 do64bit_ok=yes 11085 11086fi 11087;; 11088 *) 11089 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 11090echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 11091 esac 11092 11093else 11094 11095 # Check for combined 32-bit and 64-bit fat build 11096 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 11097 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 11098 11099 fat_32_64=yes 11100fi 11101 11102 11103fi 11104 11105 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 11106 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 11107 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 11108echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 11109if test "${tcl_cv_ld_single_module+set}" = set; then 11110 echo $ECHO_N "(cached) $ECHO_C" >&6 11111else 11112 11113 hold_ldflags=$LDFLAGS 11114 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 11115 cat >conftest.$ac_ext <<_ACEOF 11116/* confdefs.h. */ 11117_ACEOF 11118cat confdefs.h >>conftest.$ac_ext 11119cat >>conftest.$ac_ext <<_ACEOF 11120/* end confdefs.h. */ 11121 11122int 11123main () 11124{ 11125int i; 11126 ; 11127 return 0; 11128} 11129_ACEOF 11130rm -f conftest.$ac_objext conftest$ac_exeext 11131if { (ac_try="$ac_link" 11132case "(($ac_try" in 11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11134 *) ac_try_echo=$ac_try;; 11135esac 11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11137 (eval "$ac_link") 2>conftest.er1 11138 ac_status=$? 11139 grep -v '^ *+' conftest.er1 >conftest.err 11140 rm -f conftest.er1 11141 cat conftest.err >&5 11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11143 (exit $ac_status); } && { 11144 test -z "$ac_c_werror_flag" || 11145 test ! -s conftest.err 11146 } && test -s conftest$ac_exeext && 11147 $as_test_x conftest$ac_exeext; then 11148 tcl_cv_ld_single_module=yes 11149else 11150 echo "$as_me: failed program was:" >&5 11151sed 's/^/| /' conftest.$ac_ext >&5 11152 11153 tcl_cv_ld_single_module=no 11154fi 11155 11156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11157 conftest$ac_exeext conftest.$ac_ext 11158 LDFLAGS=$hold_ldflags 11159fi 11160{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 11161echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 11162 if test $tcl_cv_ld_single_module = yes; then 11163 11164 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 11165 11166fi 11167 11168 # TEA specific: link shlib with current and compatiblity version flags 11169 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 11170 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 11171 SHLIB_SUFFIX=".dylib" 11172 # Don't use -prebind when building for Mac OS X 10.4 or later only: 11173 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 11174 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 11175 11176 LDFLAGS="$LDFLAGS -prebind" 11177fi 11178 11179 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 11180 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 11181echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 11182if test "${tcl_cv_ld_search_paths_first+set}" = set; then 11183 echo $ECHO_N "(cached) $ECHO_C" >&6 11184else 11185 11186 hold_ldflags=$LDFLAGS 11187 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 11188 cat >conftest.$ac_ext <<_ACEOF 11189/* confdefs.h. */ 11190_ACEOF 11191cat confdefs.h >>conftest.$ac_ext 11192cat >>conftest.$ac_ext <<_ACEOF 11193/* end confdefs.h. */ 11194 11195int 11196main () 11197{ 11198int i; 11199 ; 11200 return 0; 11201} 11202_ACEOF 11203rm -f conftest.$ac_objext conftest$ac_exeext 11204if { (ac_try="$ac_link" 11205case "(($ac_try" in 11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11207 *) ac_try_echo=$ac_try;; 11208esac 11209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11210 (eval "$ac_link") 2>conftest.er1 11211 ac_status=$? 11212 grep -v '^ *+' conftest.er1 >conftest.err 11213 rm -f conftest.er1 11214 cat conftest.err >&5 11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11216 (exit $ac_status); } && { 11217 test -z "$ac_c_werror_flag" || 11218 test ! -s conftest.err 11219 } && test -s conftest$ac_exeext && 11220 $as_test_x conftest$ac_exeext; then 11221 tcl_cv_ld_search_paths_first=yes 11222else 11223 echo "$as_me: failed program was:" >&5 11224sed 's/^/| /' conftest.$ac_ext >&5 11225 11226 tcl_cv_ld_search_paths_first=no 11227fi 11228 11229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11230 conftest$ac_exeext conftest.$ac_ext 11231 LDFLAGS=$hold_ldflags 11232fi 11233{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 11234echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 11235 if test $tcl_cv_ld_search_paths_first = yes; then 11236 11237 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 11238 11239fi 11240 11241 if test "$tcl_cv_cc_visibility_hidden" != yes; then 11242 11243 11244cat >>confdefs.h <<\_ACEOF 11245#define MODULE_SCOPE __private_extern__ 11246_ACEOF 11247 11248 tcl_cv_cc_visibility_hidden=yes 11249 11250fi 11251 11252 CC_SEARCH_FLAGS="" 11253 LD_SEARCH_FLAGS="" 11254 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 11255 # TEA specific: for combined 32 & 64 bit fat builds of Tk 11256 # extensions, verify that 64-bit build is possible. 11257 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 11258 11259 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 11260 11261 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 11262echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 11263if test "${tcl_cv_lib_x11_64+set}" = set; then 11264 echo $ECHO_N "(cached) $ECHO_C" >&6 11265else 11266 11267 for v in CFLAGS CPPFLAGS LDFLAGS; do 11268 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 11269 done 11270 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 11271 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 11272 cat >conftest.$ac_ext <<_ACEOF 11273/* confdefs.h. */ 11274_ACEOF 11275cat confdefs.h >>conftest.$ac_ext 11276cat >>conftest.$ac_ext <<_ACEOF 11277/* end confdefs.h. */ 11278#include <X11/Xlib.h> 11279int 11280main () 11281{ 11282XrmInitialize(); 11283 ; 11284 return 0; 11285} 11286_ACEOF 11287rm -f conftest.$ac_objext conftest$ac_exeext 11288if { (ac_try="$ac_link" 11289case "(($ac_try" in 11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11291 *) ac_try_echo=$ac_try;; 11292esac 11293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11294 (eval "$ac_link") 2>conftest.er1 11295 ac_status=$? 11296 grep -v '^ *+' conftest.er1 >conftest.err 11297 rm -f conftest.er1 11298 cat conftest.err >&5 11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11300 (exit $ac_status); } && { 11301 test -z "$ac_c_werror_flag" || 11302 test ! -s conftest.err 11303 } && test -s conftest$ac_exeext && 11304 $as_test_x conftest$ac_exeext; then 11305 tcl_cv_lib_x11_64=yes 11306else 11307 echo "$as_me: failed program was:" >&5 11308sed 's/^/| /' conftest.$ac_ext >&5 11309 11310 tcl_cv_lib_x11_64=no 11311fi 11312 11313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11314 conftest$ac_exeext conftest.$ac_ext 11315 for v in CFLAGS CPPFLAGS LDFLAGS; do 11316 eval $v'="$hold_'$v'"' 11317 done 11318fi 11319{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 11320echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 11321 11322fi 11323 11324 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 11325 11326 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 11327echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 11328if test "${tcl_cv_lib_tk_64+set}" = set; then 11329 echo $ECHO_N "(cached) $ECHO_C" >&6 11330else 11331 11332 for v in CFLAGS CPPFLAGS LDFLAGS; do 11333 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 11334 done 11335 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 11336 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 11337 cat >conftest.$ac_ext <<_ACEOF 11338/* confdefs.h. */ 11339_ACEOF 11340cat confdefs.h >>conftest.$ac_ext 11341cat >>conftest.$ac_ext <<_ACEOF 11342/* end confdefs.h. */ 11343#include <tk.h> 11344int 11345main () 11346{ 11347Tk_InitStubs(NULL, "", 0); 11348 ; 11349 return 0; 11350} 11351_ACEOF 11352rm -f conftest.$ac_objext conftest$ac_exeext 11353if { (ac_try="$ac_link" 11354case "(($ac_try" in 11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11356 *) ac_try_echo=$ac_try;; 11357esac 11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11359 (eval "$ac_link") 2>conftest.er1 11360 ac_status=$? 11361 grep -v '^ *+' conftest.er1 >conftest.err 11362 rm -f conftest.er1 11363 cat conftest.err >&5 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); } && { 11366 test -z "$ac_c_werror_flag" || 11367 test ! -s conftest.err 11368 } && test -s conftest$ac_exeext && 11369 $as_test_x conftest$ac_exeext; then 11370 tcl_cv_lib_tk_64=yes 11371else 11372 echo "$as_me: failed program was:" >&5 11373sed 's/^/| /' conftest.$ac_ext >&5 11374 11375 tcl_cv_lib_tk_64=no 11376fi 11377 11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11379 conftest$ac_exeext conftest.$ac_ext 11380 for v in CFLAGS CPPFLAGS LDFLAGS; do 11381 eval $v'="$hold_'$v'"' 11382 done 11383fi 11384{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 11385echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 11386 11387fi 11388 11389 # remove 64-bit arch flags from CFLAGS et al. if configuration 11390 # does not support 64-bit. 11391 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 11392 11393 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 11394echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 11395 for v in CFLAGS CPPFLAGS LDFLAGS; do 11396 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 11397 done 11398fi 11399 11400 11401fi 11402 11403 ;; 11404 OS/390-*) 11405 CFLAGS_OPTIMIZE="" # Optimizer is buggy 11406 11407cat >>confdefs.h <<\_ACEOF 11408#define _OE_SOCKETS 1 11409_ACEOF 11410 11411 ;; 11412 OSF1-V*) 11413 # Digital OSF/1 11414 SHLIB_CFLAGS="" 11415 if test "$SHARED_BUILD" = 1; then 11416 11417 SHLIB_LD='ld -shared -expect_unresolved "*"' 11418 11419else 11420 11421 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 11422 11423fi 11424 11425 SHLIB_SUFFIX=".so" 11426 if test $doRpath = yes; then 11427 11428 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 11429 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 11430fi 11431 11432 if test "$GCC" = yes; then 11433 CFLAGS="$CFLAGS -mieee" 11434else 11435 11436 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 11437fi 11438 11439 # see pthread_intro(3) for pthread support on osf1, k.furukawa 11440 if test "${TCL_THREADS}" = 1; then 11441 11442 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 11443 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 11444 LIBS=`echo $LIBS | sed s/-lpthreads//` 11445 if test "$GCC" = yes; then 11446 11447 LIBS="$LIBS -lpthread -lmach -lexc" 11448 11449else 11450 11451 CFLAGS="$CFLAGS -pthread" 11452 LDFLAGS="$LDFLAGS -pthread" 11453 11454fi 11455 11456 11457fi 11458 11459 ;; 11460 QNX-6*) 11461 # QNX RTP 11462 # This may work for all QNX, but it was only reported for v6. 11463 SHLIB_CFLAGS="-fPIC" 11464 SHLIB_LD="ld -Bshareable -x" 11465 SHLIB_LD_LIBS="" 11466 SHLIB_SUFFIX=".so" 11467 CC_SEARCH_FLAGS="" 11468 LD_SEARCH_FLAGS="" 11469 ;; 11470 SCO_SV-3.2*) 11471 if test "$GCC" = yes; then 11472 11473 SHLIB_CFLAGS="-fPIC -melf" 11474 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 11475 11476else 11477 11478 SHLIB_CFLAGS="-Kpic -belf" 11479 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 11480 11481fi 11482 11483 SHLIB_LD="ld -G" 11484 SHLIB_LD_LIBS="" 11485 SHLIB_SUFFIX=".so" 11486 CC_SEARCH_FLAGS="" 11487 LD_SEARCH_FLAGS="" 11488 ;; 11489 SunOS-5.[0-6]) 11490 # Careful to not let 5.10+ fall into this case 11491 11492 # Note: If _REENTRANT isn't defined, then Solaris 11493 # won't define thread-safe library routines. 11494 11495 11496cat >>confdefs.h <<\_ACEOF 11497#define _REENTRANT 1 11498_ACEOF 11499 11500 11501cat >>confdefs.h <<\_ACEOF 11502#define _POSIX_PTHREAD_SEMANTICS 1 11503_ACEOF 11504 11505 11506 SHLIB_CFLAGS="-KPIC" 11507 SHLIB_SUFFIX=".so" 11508 if test "$GCC" = yes; then 11509 11510 SHLIB_LD='${CC} -shared' 11511 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 11512 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11513 11514else 11515 11516 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 11517 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 11518 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11519 11520fi 11521 11522 ;; 11523 SunOS-5*) 11524 # Note: If _REENTRANT isn't defined, then Solaris 11525 # won't define thread-safe library routines. 11526 11527 11528cat >>confdefs.h <<\_ACEOF 11529#define _REENTRANT 1 11530_ACEOF 11531 11532 11533cat >>confdefs.h <<\_ACEOF 11534#define _POSIX_PTHREAD_SEMANTICS 1 11535_ACEOF 11536 11537 11538 SHLIB_CFLAGS="-KPIC" 11539 11540 # Check to enable 64-bit flags for compiler/linker 11541 if test "$do64bit" = yes; then 11542 11543 arch=`isainfo` 11544 if test "$arch" = "sparcv9 sparc"; then 11545 11546 if test "$GCC" = yes; then 11547 11548 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 11549 11550 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 11551echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 11552 11553else 11554 11555 do64bit_ok=yes 11556 CFLAGS="$CFLAGS -m64 -mcpu=v9" 11557 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 11558 SHLIB_CFLAGS="-fPIC" 11559 11560fi 11561 11562 11563else 11564 11565 do64bit_ok=yes 11566 if test "$do64bitVIS" = yes; then 11567 11568 CFLAGS="$CFLAGS -xarch=v9a" 11569 LDFLAGS_ARCH="-xarch=v9a" 11570 11571else 11572 11573 CFLAGS="$CFLAGS -xarch=v9" 11574 LDFLAGS_ARCH="-xarch=v9" 11575 11576fi 11577 11578 # Solaris 64 uses this as well 11579 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 11580 11581fi 11582 11583 11584else 11585 if test "$arch" = "amd64 i386"; then 11586 11587 if test "$GCC" = yes; then 11588 11589 case $system in 11590 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 11591 do64bit_ok=yes 11592 CFLAGS="$CFLAGS -m64" 11593 LDFLAGS="$LDFLAGS -m64";; 11594 *) 11595 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 11596echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 11597 esac 11598 11599else 11600 11601 do64bit_ok=yes 11602 case $system in 11603 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 11604 CFLAGS="$CFLAGS -m64" 11605 LDFLAGS="$LDFLAGS -m64";; 11606 *) 11607 CFLAGS="$CFLAGS -xarch=amd64" 11608 LDFLAGS="$LDFLAGS -xarch=amd64";; 11609 esac 11610 11611fi 11612 11613 11614else 11615 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 11616echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 11617fi 11618 11619fi 11620 11621 11622fi 11623 11624 11625 SHLIB_SUFFIX=".so" 11626 if test "$GCC" = yes; then 11627 11628 SHLIB_LD='${CC} -shared' 11629 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 11630 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 11631 if test "$do64bit_ok" = yes; then 11632 11633 if test "$arch" = "sparcv9 sparc"; then 11634 11635 # We need to specify -static-libgcc or we need to 11636 # add the path to the sparv9 libgcc. 11637 # JH: static-libgcc is necessary for core Tcl, but may 11638 # not be necessary for extensions. 11639 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 11640 # for finding sparcv9 libgcc, get the regular libgcc 11641 # path, remove so name and append 'sparcv9' 11642 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 11643 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 11644 11645else 11646 if test "$arch" = "amd64 i386"; then 11647 11648 # JH: static-libgcc is necessary for core Tcl, but may 11649 # not be necessary for extensions. 11650 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 11651 11652fi 11653 11654fi 11655 11656 11657fi 11658 11659 11660else 11661 11662 case $system in 11663 SunOS-5.[1-9][0-9]*) 11664 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 11665 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 11666 *) 11667 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 11668 esac 11669 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 11670 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 11671 11672fi 11673 11674 ;; 11675 esac 11676 11677 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 11678 11679 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 11680echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 11681 11682fi 11683 11684 11685 11686 11687 # Add in the arch flags late to ensure it wasn't removed. 11688 # Not necessary in TEA, but this is aligned with core 11689 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 11690 11691 # If we're running gcc, then change the C flags for compiling shared 11692 # libraries to the right flags for gcc, instead of those for the 11693 # standard manufacturer compiler. 11694 11695 if test "$GCC" = yes; then 11696 11697 case $system in 11698 AIX-*) ;; 11699 BSD/OS*) ;; 11700 CYGWIN_*) ;; 11701 IRIX*) ;; 11702 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 11703 Darwin-*) ;; 11704 SCO_SV-3.2*) ;; 11705 windows) ;; 11706 *) SHLIB_CFLAGS="-fPIC" ;; 11707 esac 11708fi 11709 11710 11711 if test "$tcl_cv_cc_visibility_hidden" != yes; then 11712 11713 11714cat >>confdefs.h <<\_ACEOF 11715#define MODULE_SCOPE extern 11716_ACEOF 11717 11718 11719cat >>confdefs.h <<\_ACEOF 11720#define NO_VIZ 11721_ACEOF 11722 11723 11724fi 11725 11726 11727 if test "$SHARED_LIB_SUFFIX" = ""; then 11728 11729 # TEA specific: use PACKAGE_VERSION instead of VERSION 11730 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 11731fi 11732 11733 if test "$UNSHARED_LIB_SUFFIX" = ""; then 11734 11735 # TEA specific: use PACKAGE_VERSION instead of VERSION 11736 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 11737fi 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 # These must be called after we do the basic CFLAGS checks and 11753 # verify any possible 64-bit or similar switches are necessary 11754 11755 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 11756echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 11757 tcl_flags="" 11758 11759 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 11760 echo $ECHO_N "(cached) $ECHO_C" >&6 11761else 11762 cat >conftest.$ac_ext <<_ACEOF 11763/* confdefs.h. */ 11764_ACEOF 11765cat confdefs.h >>conftest.$ac_ext 11766cat >>conftest.$ac_ext <<_ACEOF 11767/* end confdefs.h. */ 11768#include <stdlib.h> 11769int 11770main () 11771{ 11772char *p = (char *)strtoll; char *q = (char *)strtoull; 11773 ; 11774 return 0; 11775} 11776_ACEOF 11777rm -f conftest.$ac_objext 11778if { (ac_try="$ac_compile" 11779case "(($ac_try" in 11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11781 *) ac_try_echo=$ac_try;; 11782esac 11783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11784 (eval "$ac_compile") 2>conftest.er1 11785 ac_status=$? 11786 grep -v '^ *+' conftest.er1 >conftest.err 11787 rm -f conftest.er1 11788 cat conftest.err >&5 11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11790 (exit $ac_status); } && { 11791 test -z "$ac_c_werror_flag" || 11792 test ! -s conftest.err 11793 } && test -s conftest.$ac_objext; then 11794 tcl_cv_flag__isoc99_source=no 11795else 11796 echo "$as_me: failed program was:" >&5 11797sed 's/^/| /' conftest.$ac_ext >&5 11798 11799 cat >conftest.$ac_ext <<_ACEOF 11800/* confdefs.h. */ 11801_ACEOF 11802cat confdefs.h >>conftest.$ac_ext 11803cat >>conftest.$ac_ext <<_ACEOF 11804/* end confdefs.h. */ 11805#define _ISOC99_SOURCE 1 11806#include <stdlib.h> 11807int 11808main () 11809{ 11810char *p = (char *)strtoll; char *q = (char *)strtoull; 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815rm -f conftest.$ac_objext 11816if { (ac_try="$ac_compile" 11817case "(($ac_try" in 11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11819 *) ac_try_echo=$ac_try;; 11820esac 11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11822 (eval "$ac_compile") 2>conftest.er1 11823 ac_status=$? 11824 grep -v '^ *+' conftest.er1 >conftest.err 11825 rm -f conftest.er1 11826 cat conftest.err >&5 11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11828 (exit $ac_status); } && { 11829 test -z "$ac_c_werror_flag" || 11830 test ! -s conftest.err 11831 } && test -s conftest.$ac_objext; then 11832 tcl_cv_flag__isoc99_source=yes 11833else 11834 echo "$as_me: failed program was:" >&5 11835sed 's/^/| /' conftest.$ac_ext >&5 11836 11837 tcl_cv_flag__isoc99_source=no 11838fi 11839 11840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11841fi 11842 11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11844fi 11845 11846 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 11847 11848cat >>confdefs.h <<\_ACEOF 11849#define _ISOC99_SOURCE 1 11850_ACEOF 11851 11852 tcl_flags="$tcl_flags _ISOC99_SOURCE" 11853 fi 11854 11855 11856 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 11857 echo $ECHO_N "(cached) $ECHO_C" >&6 11858else 11859 cat >conftest.$ac_ext <<_ACEOF 11860/* confdefs.h. */ 11861_ACEOF 11862cat confdefs.h >>conftest.$ac_ext 11863cat >>conftest.$ac_ext <<_ACEOF 11864/* end confdefs.h. */ 11865#include <sys/stat.h> 11866int 11867main () 11868{ 11869struct stat64 buf; int i = stat64("/", &buf); 11870 ; 11871 return 0; 11872} 11873_ACEOF 11874rm -f conftest.$ac_objext 11875if { (ac_try="$ac_compile" 11876case "(($ac_try" in 11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11878 *) ac_try_echo=$ac_try;; 11879esac 11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11881 (eval "$ac_compile") 2>conftest.er1 11882 ac_status=$? 11883 grep -v '^ *+' conftest.er1 >conftest.err 11884 rm -f conftest.er1 11885 cat conftest.err >&5 11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11887 (exit $ac_status); } && { 11888 test -z "$ac_c_werror_flag" || 11889 test ! -s conftest.err 11890 } && test -s conftest.$ac_objext; then 11891 tcl_cv_flag__largefile64_source=no 11892else 11893 echo "$as_me: failed program was:" >&5 11894sed 's/^/| /' conftest.$ac_ext >&5 11895 11896 cat >conftest.$ac_ext <<_ACEOF 11897/* confdefs.h. */ 11898_ACEOF 11899cat confdefs.h >>conftest.$ac_ext 11900cat >>conftest.$ac_ext <<_ACEOF 11901/* end confdefs.h. */ 11902#define _LARGEFILE64_SOURCE 1 11903#include <sys/stat.h> 11904int 11905main () 11906{ 11907struct stat64 buf; int i = stat64("/", &buf); 11908 ; 11909 return 0; 11910} 11911_ACEOF 11912rm -f conftest.$ac_objext 11913if { (ac_try="$ac_compile" 11914case "(($ac_try" in 11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11916 *) ac_try_echo=$ac_try;; 11917esac 11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11919 (eval "$ac_compile") 2>conftest.er1 11920 ac_status=$? 11921 grep -v '^ *+' conftest.er1 >conftest.err 11922 rm -f conftest.er1 11923 cat conftest.err >&5 11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11925 (exit $ac_status); } && { 11926 test -z "$ac_c_werror_flag" || 11927 test ! -s conftest.err 11928 } && test -s conftest.$ac_objext; then 11929 tcl_cv_flag__largefile64_source=yes 11930else 11931 echo "$as_me: failed program was:" >&5 11932sed 's/^/| /' conftest.$ac_ext >&5 11933 11934 tcl_cv_flag__largefile64_source=no 11935fi 11936 11937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11938fi 11939 11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11941fi 11942 11943 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 11944 11945cat >>confdefs.h <<\_ACEOF 11946#define _LARGEFILE64_SOURCE 1 11947_ACEOF 11948 11949 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 11950 fi 11951 11952 11953 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 11954 echo $ECHO_N "(cached) $ECHO_C" >&6 11955else 11956 cat >conftest.$ac_ext <<_ACEOF 11957/* confdefs.h. */ 11958_ACEOF 11959cat confdefs.h >>conftest.$ac_ext 11960cat >>conftest.$ac_ext <<_ACEOF 11961/* end confdefs.h. */ 11962#include <sys/stat.h> 11963int 11964main () 11965{ 11966char *p = (char *)open64; 11967 ; 11968 return 0; 11969} 11970_ACEOF 11971rm -f conftest.$ac_objext 11972if { (ac_try="$ac_compile" 11973case "(($ac_try" in 11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11975 *) ac_try_echo=$ac_try;; 11976esac 11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11978 (eval "$ac_compile") 2>conftest.er1 11979 ac_status=$? 11980 grep -v '^ *+' conftest.er1 >conftest.err 11981 rm -f conftest.er1 11982 cat conftest.err >&5 11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11984 (exit $ac_status); } && { 11985 test -z "$ac_c_werror_flag" || 11986 test ! -s conftest.err 11987 } && test -s conftest.$ac_objext; then 11988 tcl_cv_flag__largefile_source64=no 11989else 11990 echo "$as_me: failed program was:" >&5 11991sed 's/^/| /' conftest.$ac_ext >&5 11992 11993 cat >conftest.$ac_ext <<_ACEOF 11994/* confdefs.h. */ 11995_ACEOF 11996cat confdefs.h >>conftest.$ac_ext 11997cat >>conftest.$ac_ext <<_ACEOF 11998/* end confdefs.h. */ 11999#define _LARGEFILE_SOURCE64 1 12000#include <sys/stat.h> 12001int 12002main () 12003{ 12004char *p = (char *)open64; 12005 ; 12006 return 0; 12007} 12008_ACEOF 12009rm -f conftest.$ac_objext 12010if { (ac_try="$ac_compile" 12011case "(($ac_try" in 12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12013 *) ac_try_echo=$ac_try;; 12014esac 12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12016 (eval "$ac_compile") 2>conftest.er1 12017 ac_status=$? 12018 grep -v '^ *+' conftest.er1 >conftest.err 12019 rm -f conftest.er1 12020 cat conftest.err >&5 12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12022 (exit $ac_status); } && { 12023 test -z "$ac_c_werror_flag" || 12024 test ! -s conftest.err 12025 } && test -s conftest.$ac_objext; then 12026 tcl_cv_flag__largefile_source64=yes 12027else 12028 echo "$as_me: failed program was:" >&5 12029sed 's/^/| /' conftest.$ac_ext >&5 12030 12031 tcl_cv_flag__largefile_source64=no 12032fi 12033 12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12035fi 12036 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038fi 12039 12040 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 12041 12042cat >>confdefs.h <<\_ACEOF 12043#define _LARGEFILE_SOURCE64 1 12044_ACEOF 12045 12046 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 12047 fi 12048 12049 if test "x${tcl_flags}" = "x" ; then 12050 { echo "$as_me:$LINENO: result: none" >&5 12051echo "${ECHO_T}none" >&6; } 12052 else 12053 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 12054echo "${ECHO_T}${tcl_flags}" >&6; } 12055 fi 12056 12057 12058 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 12059echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 12060 if test "${tcl_cv_type_64bit+set}" = set; then 12061 echo $ECHO_N "(cached) $ECHO_C" >&6 12062else 12063 12064 tcl_cv_type_64bit=none 12065 # See if the compiler knows natively about __int64 12066 cat >conftest.$ac_ext <<_ACEOF 12067/* confdefs.h. */ 12068_ACEOF 12069cat confdefs.h >>conftest.$ac_ext 12070cat >>conftest.$ac_ext <<_ACEOF 12071/* end confdefs.h. */ 12072 12073int 12074main () 12075{ 12076__int64 value = (__int64) 0; 12077 ; 12078 return 0; 12079} 12080_ACEOF 12081rm -f conftest.$ac_objext 12082if { (ac_try="$ac_compile" 12083case "(($ac_try" in 12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12085 *) ac_try_echo=$ac_try;; 12086esac 12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12088 (eval "$ac_compile") 2>conftest.er1 12089 ac_status=$? 12090 grep -v '^ *+' conftest.er1 >conftest.err 12091 rm -f conftest.er1 12092 cat conftest.err >&5 12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12094 (exit $ac_status); } && { 12095 test -z "$ac_c_werror_flag" || 12096 test ! -s conftest.err 12097 } && test -s conftest.$ac_objext; then 12098 tcl_type_64bit=__int64 12099else 12100 echo "$as_me: failed program was:" >&5 12101sed 's/^/| /' conftest.$ac_ext >&5 12102 12103 tcl_type_64bit="long long" 12104fi 12105 12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12107 # See if we should use long anyway Note that we substitute in the 12108 # type that is our current guess for a 64-bit type inside this check 12109 # program, so it should be modified only carefully... 12110 cat >conftest.$ac_ext <<_ACEOF 12111/* confdefs.h. */ 12112_ACEOF 12113cat confdefs.h >>conftest.$ac_ext 12114cat >>conftest.$ac_ext <<_ACEOF 12115/* end confdefs.h. */ 12116 12117int 12118main () 12119{ 12120switch (0) { 12121 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 12122 } 12123 ; 12124 return 0; 12125} 12126_ACEOF 12127rm -f conftest.$ac_objext 12128if { (ac_try="$ac_compile" 12129case "(($ac_try" in 12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12131 *) ac_try_echo=$ac_try;; 12132esac 12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12134 (eval "$ac_compile") 2>conftest.er1 12135 ac_status=$? 12136 grep -v '^ *+' conftest.er1 >conftest.err 12137 rm -f conftest.er1 12138 cat conftest.err >&5 12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12140 (exit $ac_status); } && { 12141 test -z "$ac_c_werror_flag" || 12142 test ! -s conftest.err 12143 } && test -s conftest.$ac_objext; then 12144 tcl_cv_type_64bit=${tcl_type_64bit} 12145else 12146 echo "$as_me: failed program was:" >&5 12147sed 's/^/| /' conftest.$ac_ext >&5 12148 12149 12150fi 12151 12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12153fi 12154 12155 if test "${tcl_cv_type_64bit}" = none ; then 12156 12157cat >>confdefs.h <<\_ACEOF 12158#define TCL_WIDE_INT_IS_LONG 1 12159_ACEOF 12160 12161 { echo "$as_me:$LINENO: result: using long" >&5 12162echo "${ECHO_T}using long" >&6; } 12163 elif test "${tcl_cv_type_64bit}" = "__int64" \ 12164 -a "${TEA_PLATFORM}" = "windows" ; then 12165 # TEA specific: We actually want to use the default tcl.h checks in 12166 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 12167 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 12168echo "${ECHO_T}using Tcl header defaults" >&6; } 12169 else 12170 12171cat >>confdefs.h <<_ACEOF 12172#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 12173_ACEOF 12174 12175 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 12176echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 12177 12178 # Now check for auxiliary declarations 12179 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 12180echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 12181if test "${tcl_cv_struct_dirent64+set}" = set; then 12182 echo $ECHO_N "(cached) $ECHO_C" >&6 12183else 12184 12185 cat >conftest.$ac_ext <<_ACEOF 12186/* confdefs.h. */ 12187_ACEOF 12188cat confdefs.h >>conftest.$ac_ext 12189cat >>conftest.$ac_ext <<_ACEOF 12190/* end confdefs.h. */ 12191#include <sys/types.h> 12192#include <sys/dirent.h> 12193int 12194main () 12195{ 12196struct dirent64 p; 12197 ; 12198 return 0; 12199} 12200_ACEOF 12201rm -f conftest.$ac_objext 12202if { (ac_try="$ac_compile" 12203case "(($ac_try" in 12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12205 *) ac_try_echo=$ac_try;; 12206esac 12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12208 (eval "$ac_compile") 2>conftest.er1 12209 ac_status=$? 12210 grep -v '^ *+' conftest.er1 >conftest.err 12211 rm -f conftest.er1 12212 cat conftest.err >&5 12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12214 (exit $ac_status); } && { 12215 test -z "$ac_c_werror_flag" || 12216 test ! -s conftest.err 12217 } && test -s conftest.$ac_objext; then 12218 tcl_cv_struct_dirent64=yes 12219else 12220 echo "$as_me: failed program was:" >&5 12221sed 's/^/| /' conftest.$ac_ext >&5 12222 12223 tcl_cv_struct_dirent64=no 12224fi 12225 12226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12227fi 12228{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 12229echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 12230 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 12231 12232cat >>confdefs.h <<\_ACEOF 12233#define HAVE_STRUCT_DIRENT64 1 12234_ACEOF 12235 12236 fi 12237 12238 { echo "$as_me:$LINENO: checking for struct stat64" >&5 12239echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 12240if test "${tcl_cv_struct_stat64+set}" = set; then 12241 echo $ECHO_N "(cached) $ECHO_C" >&6 12242else 12243 12244 cat >conftest.$ac_ext <<_ACEOF 12245/* confdefs.h. */ 12246_ACEOF 12247cat confdefs.h >>conftest.$ac_ext 12248cat >>conftest.$ac_ext <<_ACEOF 12249/* end confdefs.h. */ 12250#include <sys/stat.h> 12251int 12252main () 12253{ 12254struct stat64 p; 12255 12256 ; 12257 return 0; 12258} 12259_ACEOF 12260rm -f conftest.$ac_objext 12261if { (ac_try="$ac_compile" 12262case "(($ac_try" in 12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12264 *) ac_try_echo=$ac_try;; 12265esac 12266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12267 (eval "$ac_compile") 2>conftest.er1 12268 ac_status=$? 12269 grep -v '^ *+' conftest.er1 >conftest.err 12270 rm -f conftest.er1 12271 cat conftest.err >&5 12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12273 (exit $ac_status); } && { 12274 test -z "$ac_c_werror_flag" || 12275 test ! -s conftest.err 12276 } && test -s conftest.$ac_objext; then 12277 tcl_cv_struct_stat64=yes 12278else 12279 echo "$as_me: failed program was:" >&5 12280sed 's/^/| /' conftest.$ac_ext >&5 12281 12282 tcl_cv_struct_stat64=no 12283fi 12284 12285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12286fi 12287{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 12288echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 12289 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 12290 12291cat >>confdefs.h <<\_ACEOF 12292#define HAVE_STRUCT_STAT64 1 12293_ACEOF 12294 12295 fi 12296 12297 12298 12299for ac_func in open64 lseek64 12300do 12301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12302{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12305 echo $ECHO_N "(cached) $ECHO_C" >&6 12306else 12307 cat >conftest.$ac_ext <<_ACEOF 12308/* confdefs.h. */ 12309_ACEOF 12310cat confdefs.h >>conftest.$ac_ext 12311cat >>conftest.$ac_ext <<_ACEOF 12312/* end confdefs.h. */ 12313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12315#define $ac_func innocuous_$ac_func 12316 12317/* System header to define __stub macros and hopefully few prototypes, 12318 which can conflict with char $ac_func (); below. 12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12320 <limits.h> exists even on freestanding compilers. */ 12321 12322#ifdef __STDC__ 12323# include <limits.h> 12324#else 12325# include <assert.h> 12326#endif 12327 12328#undef $ac_func 12329 12330/* Override any GCC internal prototype to avoid an error. 12331 Use char because int might match the return type of a GCC 12332 builtin and then its argument prototype would still apply. */ 12333#ifdef __cplusplus 12334extern "C" 12335#endif 12336char $ac_func (); 12337/* The GNU C library defines this for functions which it implements 12338 to always fail with ENOSYS. Some functions are actually named 12339 something starting with __ and the normal name is an alias. */ 12340#if defined __stub_$ac_func || defined __stub___$ac_func 12341choke me 12342#endif 12343 12344int 12345main () 12346{ 12347return $ac_func (); 12348 ; 12349 return 0; 12350} 12351_ACEOF 12352rm -f conftest.$ac_objext conftest$ac_exeext 12353if { (ac_try="$ac_link" 12354case "(($ac_try" in 12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12356 *) ac_try_echo=$ac_try;; 12357esac 12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12359 (eval "$ac_link") 2>conftest.er1 12360 ac_status=$? 12361 grep -v '^ *+' conftest.er1 >conftest.err 12362 rm -f conftest.er1 12363 cat conftest.err >&5 12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12365 (exit $ac_status); } && { 12366 test -z "$ac_c_werror_flag" || 12367 test ! -s conftest.err 12368 } && test -s conftest$ac_exeext && 12369 $as_test_x conftest$ac_exeext; then 12370 eval "$as_ac_var=yes" 12371else 12372 echo "$as_me: failed program was:" >&5 12373sed 's/^/| /' conftest.$ac_ext >&5 12374 12375 eval "$as_ac_var=no" 12376fi 12377 12378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12379 conftest$ac_exeext conftest.$ac_ext 12380fi 12381ac_res=`eval echo '${'$as_ac_var'}'` 12382 { echo "$as_me:$LINENO: result: $ac_res" >&5 12383echo "${ECHO_T}$ac_res" >&6; } 12384if test `eval echo '${'$as_ac_var'}'` = yes; then 12385 cat >>confdefs.h <<_ACEOF 12386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12387_ACEOF 12388 12389fi 12390done 12391 12392 { echo "$as_me:$LINENO: checking for off64_t" >&5 12393echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 12394 if test "${tcl_cv_type_off64_t+set}" = set; then 12395 echo $ECHO_N "(cached) $ECHO_C" >&6 12396else 12397 12398 cat >conftest.$ac_ext <<_ACEOF 12399/* confdefs.h. */ 12400_ACEOF 12401cat confdefs.h >>conftest.$ac_ext 12402cat >>conftest.$ac_ext <<_ACEOF 12403/* end confdefs.h. */ 12404#include <sys/types.h> 12405int 12406main () 12407{ 12408off64_t offset; 12409 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414rm -f conftest.$ac_objext 12415if { (ac_try="$ac_compile" 12416case "(($ac_try" in 12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12418 *) ac_try_echo=$ac_try;; 12419esac 12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12421 (eval "$ac_compile") 2>conftest.er1 12422 ac_status=$? 12423 grep -v '^ *+' conftest.er1 >conftest.err 12424 rm -f conftest.er1 12425 cat conftest.err >&5 12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12427 (exit $ac_status); } && { 12428 test -z "$ac_c_werror_flag" || 12429 test ! -s conftest.err 12430 } && test -s conftest.$ac_objext; then 12431 tcl_cv_type_off64_t=yes 12432else 12433 echo "$as_me: failed program was:" >&5 12434sed 's/^/| /' conftest.$ac_ext >&5 12435 12436 tcl_cv_type_off64_t=no 12437fi 12438 12439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12440fi 12441 12442 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 12443 test "x${ac_cv_func_lseek64}" = "xyes" && \ 12444 test "x${ac_cv_func_open64}" = "xyes" ; then 12445 12446cat >>confdefs.h <<\_ACEOF 12447#define HAVE_TYPE_OFF64_T 1 12448_ACEOF 12449 12450 { echo "$as_me:$LINENO: result: yes" >&5 12451echo "${ECHO_T}yes" >&6; } 12452 else 12453 { echo "$as_me:$LINENO: result: no" >&5 12454echo "${ECHO_T}no" >&6; } 12455 fi 12456 fi 12457 12458 12459 12460#-------------------------------------------------------------------- 12461# Set the default compiler switches based on the --enable-symbols option. 12462#-------------------------------------------------------------------- 12463 12464 12465 12466 { echo "$as_me:$LINENO: checking for build with symbols" >&5 12467echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 12468 # Check whether --enable-symbols was given. 12469if test "${enable_symbols+set}" = set; then 12470 enableval=$enable_symbols; tcl_ok=$enableval 12471else 12472 tcl_ok=no 12473fi 12474 12475 DBGX="" 12476 if test "$tcl_ok" = "no"; then 12477 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 12478 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 12479 { echo "$as_me:$LINENO: result: no" >&5 12480echo "${ECHO_T}no" >&6; } 12481 else 12482 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 12483 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 12484 if test "$tcl_ok" = "yes"; then 12485 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 12486echo "${ECHO_T}yes (standard debugging)" >&6; } 12487 fi 12488 fi 12489 # TEA specific: 12490 if test "${TEA_PLATFORM}" != "windows" ; then 12491 LDFLAGS_DEFAULT="${LDFLAGS}" 12492 fi 12493 12494 12495 12496 12497 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 12498 12499cat >>confdefs.h <<\_ACEOF 12500#define TCL_MEM_DEBUG 1 12501_ACEOF 12502 12503 fi 12504 12505 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 12506 if test "$tcl_ok" = "all"; then 12507 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 12508echo "${ECHO_T}enabled symbols mem debugging" >&6; } 12509 else 12510 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 12511echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 12512 fi 12513 fi 12514 12515 12516#-------------------------------------------------------------------- 12517# Everyone should be linking against the Tcl stub library. If you 12518# can't for some reason, remove this definition. If you aren't using 12519# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 12520# link against the non-stubbed Tcl library. 12521#-------------------------------------------------------------------- 12522 12523cat >>confdefs.h <<\_ACEOF 12524#define USE_TCL_STUBS 1 12525_ACEOF 12526 12527cat >>confdefs.h <<\_ACEOF 12528#define USE_ZLIBTCL_STUBS 1 12529_ACEOF 12530 12531 12532#-------------------------------------------------------------------- 12533# This macro generates a line to use when building a library. It 12534# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 12535# and TEA_LOAD_TCLCONFIG macros above. 12536#-------------------------------------------------------------------- 12537 12538 12539 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 12540 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 12541 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 12542 cat >conftest.$ac_ext <<_ACEOF 12543/* confdefs.h. */ 12544_ACEOF 12545cat confdefs.h >>conftest.$ac_ext 12546cat >>conftest.$ac_ext <<_ACEOF 12547/* end confdefs.h. */ 12548 12549#if defined(_MSC_VER) && _MSC_VER >= 1400 12550print("manifest needed") 12551#endif 12552 12553_ACEOF 12554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12555 $EGREP "manifest needed" >/dev/null 2>&1; then 12556 12557 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 12558 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 12559 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 12560 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 12561 12562 CLEANFILES="$CLEANFILES *.manifest" 12563 12564 12565fi 12566rm -f -r conftest* 12567 12568 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 12569 else 12570 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 12571 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 12572 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 12573 fi 12574 12575 if test "${SHARED_BUILD}" = "1" ; then 12576 MAKE_LIB="${MAKE_SHARED_LIB} " 12577 else 12578 MAKE_LIB="${MAKE_STATIC_LIB} " 12579 fi 12580 12581 #-------------------------------------------------------------------- 12582 # Shared libraries and static libraries have different names. 12583 # Use the double eval to make sure any variables in the suffix is 12584 # substituted. (@@@ Might not be necessary anymore) 12585 #-------------------------------------------------------------------- 12586 12587 if test "${TEA_PLATFORM}" = "windows" ; then 12588 if test "${SHARED_BUILD}" = "1" ; then 12589 # We force the unresolved linking of symbols that are really in 12590 # the private libraries of Tcl and Tk. 12591 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 12592 if test x"${TK_BIN_DIR}" != x ; then 12593 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 12594 fi 12595 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 12596 else 12597 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 12598 fi 12599 # Some packages build their own stubs libraries 12600 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 12601 if test "$GCC" = "yes"; then 12602 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 12603 fi 12604 # These aren't needed on Windows (either MSVC or gcc) 12605 RANLIB=: 12606 RANLIB_STUB=: 12607 else 12608 RANLIB_STUB="${RANLIB}" 12609 if test "${SHARED_BUILD}" = "1" ; then 12610 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 12611 if test x"${TK_BIN_DIR}" != x ; then 12612 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 12613 fi 12614 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 12615 RANLIB=: 12616 else 12617 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 12618 fi 12619 # Some packages build their own stubs libraries 12620 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 12621 fi 12622 12623 # These are escaped so that only CFLAGS is picked up at configure time. 12624 # The other values will be substituted at make time. 12625 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 12626 if test "${SHARED_BUILD}" = "1" ; then 12627 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 12628 fi 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639#-------------------------------------------------------------------- 12640# __CHANGE__ 12641# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 12642#-------------------------------------------------------------------- 12643 12644if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 12645 12646 vars="\"`${CYGPATH} ${zlibtcl_STUB_LIB_PATH}`\"" 12647 for i in $vars; do 12648 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12649 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12650 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12651 fi 12652 PKG_LIBS="$PKG_LIBS $i" 12653 done 12654 12655 12656else 12657 12658 vars="${zlibtcl_STUB_LIB_SPEC}" 12659 for i in $vars; do 12660 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 12661 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 12662 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 12663 fi 12664 PKG_LIBS="$PKG_LIBS $i" 12665 done 12666 12667 12668fi 12669 12670#-------------------------------------------------------------------- 12671# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 12672# file during the install process. Don't run the TCLSH_PROG through 12673# ${CYGPATH} because it's being used directly by make. 12674# Require that we use a tclsh shell version 8.2 or later since earlier 12675# versions have bugs in the pkg_mkIndex routine. 12676# Add WISH as well if this is a Tk extension. 12677#-------------------------------------------------------------------- 12678 12679 12680 { echo "$as_me:$LINENO: checking for tclsh" >&5 12681echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 12682 if test -f "${TCL_BIN_DIR}/Makefile" ; then 12683 # tclConfig.sh is in Tcl build directory 12684 if test "${TEA_PLATFORM}" = "windows"; then 12685 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 12686 else 12687 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 12688 fi 12689 else 12690 # tclConfig.sh is in install location 12691 if test "${TEA_PLATFORM}" = "windows"; then 12692 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 12693 else 12694 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 12695 fi 12696 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 12697 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 12698 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 12699 for i in $list ; do 12700 if test -f "$i/${TCLSH_PROG}" ; then 12701 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 12702 break 12703 fi 12704 done 12705 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 12706 fi 12707 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 12708echo "${ECHO_T}${TCLSH_PROG}" >&6; } 12709 12710 12711 12712#-------------------------------------------------------------------- 12713# Propagate the information about the required loader file. 12714#-------------------------------------------------------------------- 12715 12716case "`uname -s`" in 12717 *win32* | *WIN32* | *CYGWIN_NT* | *CYGWIN_98* | *CYGWIN_95* | MINGW32_NT*) 12718 12719 vars="compat/tclLoadWin.c" 12720 for i in $vars; do 12721 case $i in 12722 \$*) 12723 # allow $-var names 12724 PKG_SOURCES="$PKG_SOURCES $i" 12725 PKG_OBJECTS="$PKG_OBJECTS $i" 12726 ;; 12727 *) 12728 # check for existence - allows for generic/win/unix VPATH 12729 # To add more dirs here (like 'src'), you have to update VPATH 12730 # in Makefile.in as well 12731 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 12732 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 12733 -a ! -f "${srcdir}/macosx/$i" \ 12734 ; then 12735 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 12736echo "$as_me: error: could not find source file '$i'" >&2;} 12737 { (exit 1); exit 1; }; } 12738 fi 12739 PKG_SOURCES="$PKG_SOURCES $i" 12740 # this assumes it is in a VPATH dir 12741 i=`basename $i` 12742 # handle user calling this before or after TEA_SETUP_COMPILER 12743 if test x"${OBJEXT}" != x ; then 12744 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 12745 else 12746 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 12747 fi 12748 PKG_OBJECTS="$PKG_OBJECTS $j" 12749 ;; 12750 esac 12751 done 12752 12753 12754 12755 ;; 12756 *Darwin) 12757 ;; 12758 *) 12759 if test "x${DL_OBJS}" != "xtclLoadDl.o" 12760 then 12761 12762 vars="compat/`basename ${DL_OBJS} .o`.c" 12763 for i in $vars; do 12764 case $i in 12765 \$*) 12766 # allow $-var names 12767 PKG_SOURCES="$PKG_SOURCES $i" 12768 PKG_OBJECTS="$PKG_OBJECTS $i" 12769 ;; 12770 *) 12771 # check for existence - allows for generic/win/unix VPATH 12772 # To add more dirs here (like 'src'), you have to update VPATH 12773 # in Makefile.in as well 12774 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 12775 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 12776 -a ! -f "${srcdir}/macosx/$i" \ 12777 ; then 12778 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 12779echo "$as_me: error: could not find source file '$i'" >&2;} 12780 { (exit 1); exit 1; }; } 12781 fi 12782 PKG_SOURCES="$PKG_SOURCES $i" 12783 # this assumes it is in a VPATH dir 12784 i=`basename $i` 12785 # handle user calling this before or after TEA_SETUP_COMPILER 12786 if test x"${OBJEXT}" != x ; then 12787 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 12788 else 12789 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 12790 fi 12791 PKG_OBJECTS="$PKG_OBJECTS $j" 12792 ;; 12793 esac 12794 done 12795 12796 12797 12798 fi 12799 ;; 12800esac 12801 12802#-------------------------------------------------------------------- 12803# Locate supporting libraries 12804#-------------------------------------------------------------------- 12805 12806 12807 12808 12809# Check whether --with-zlib was given. 12810if test "${with_zlib+set}" = set; then 12811 withval=$with_zlib; ZLIB_LIB_DIR=$withval/lib; ZLIB_INCLUDE_DIR=$withval/include 12812fi 12813 12814 12815# Check whether --with-zlib-include-dir was given. 12816if test "${with_zlib_include_dir+set}" = set; then 12817 withval=$with_zlib_include_dir; ZLIB_INCLUDE_DIR=$withval 12818fi 12819 12820 12821# Check whether --with-zlib-lib-dir was given. 12822if test "${with_zlib_lib_dir+set}" = set; then 12823 withval=$with_zlib_lib_dir; ZLIB_LIB_DIR=$withval 12824fi 12825 12826 12827 12828# Check whether --with-ssl was given. 12829if test "${with_ssl+set}" = set; then 12830 withval=$with_ssl; SSL_LIB_DIR=$withval/lib; SSL_INCLUDE_DIR=$withval/include 12831fi 12832 12833 12834# Check whether --with-ssl-include-dir was given. 12835if test "${with_ssl_include_dir+set}" = set; then 12836 withval=$with_ssl_include_dir; SSL_INCLUDE_DIR=$withval 12837fi 12838 12839 12840# Check whether --with-ssl-lib-dir was given. 12841if test "${with_ssl_lib_dir+set}" = set; then 12842 withval=$with_ssl_lib_dir; SSL_LIB_DIR=$withval 12843fi 12844 12845 12846 12847# Check whether --with-bz2 was given. 12848if test "${with_bz2+set}" = set; then 12849 withval=$with_bz2; BZ2_LIB_DIR=$withval/lib; BZ2_INCLUDE_DIR=$withval/include 12850fi 12851 12852 12853# Check whether --with-bz2-include-dir was given. 12854if test "${with_bz2_include_dir+set}" = set; then 12855 withval=$with_bz2_include_dir; BZ2_INCLUDE_DIR=$withval 12856fi 12857 12858 12859# Check whether --with-bz2-lib-dir was given. 12860if test "${with_bz2_lib_dir+set}" = set; then 12861 withval=$with_bz2_lib_dir; BZ2_LIB_DIR=$withval 12862fi 12863 12864 12865# Check whether --enable-static-zlib was given. 12866if test "${enable_static_zlib+set}" = set; then 12867 enableval=$enable_static_zlib; STATIC_ZLIB=$enableval 12868else 12869 STATIC_ZLIB=no 12870fi 12871 12872 12873# Check whether --enable-static-bzlib was given. 12874if test "${enable_static_bzlib+set}" = set; then 12875 enableval=$enable_static_bzlib; STATIC_BZLIB=$enableval 12876else 12877 STATIC_BZLIB=no 12878fi 12879 12880 12881# Check whether --enable-static-md5 was given. 12882if test "${enable_static_md5+set}" = set; then 12883 enableval=$enable_static_md5; STATIC_MD5=$enableval 12884else 12885 STATIC_MD5=no 12886fi 12887 12888 12889# Check whether --enable-trf_debug was given. 12890if test "${enable_trf_debug+set}" = set; then 12891 enableval=$enable_trf_debug; trf_debug=$enableval 12892else 12893 trf_debug=no 12894fi 12895 12896 12897# Check whether --enable-stream_debug was given. 12898if test "${enable_stream_debug+set}" = set; then 12899 enableval=$enable_stream_debug; stream_debug=$enableval 12900else 12901 stream_debug=no 12902fi 12903 12904 12905 12906 12907if test "X" = "X$ZLIB_LIB_DIR" -a "X" != "X$ZLIB_INCLUDE_DIR" 12908then 12909 ZLIB_LIB_DIR="$ZLIB_INCLUDE_DIR/../lib" 12910fi 12911 12912if test "X" = "X$ZLIB_INCLUDE_DIR" -a "X" != "X$ZLIB_LIB_DIR" 12913then 12914 ZLIB_INCLUDE_DIR="$ZLIB_LIB_DIR/../include" 12915fi 12916 12917 12918 12919if test "X" = "X$BZ2_LIB_DIR" -a "X" != "X$BZ2_INCLUDE_DIR" 12920then 12921 BZ2_LIB_DIR="$BZ2_INCLUDE_DIR/../lib" 12922fi 12923 12924if test "X" = "X$BZ2_INCLUDE_DIR" -a "X" != "X$BZ2_LIB_DIR" 12925then 12926 BZ2_INCLUDE_DIR="$BZ2_LIB_DIR/../include" 12927fi 12928 12929 12930 12931if test "X" = "X$SSL_LIB_DIR" -a "X" != "X$SSL_INCLUDE_DIR" 12932then 12933 SSL_LIB_DIR="$SSL_INCLUDE_DIR/../lib" 12934fi 12935 12936if test "X" = "X$SSL_INCLUDE_DIR" -a "X" != "X$SSL_LIB_DIR" 12937then 12938 SSL_INCLUDE_DIR="$SSL_LIB_DIR/../include" 12939fi 12940 12941 12942{ echo "$as_me:$LINENO: checking for directory with zlib.h" >&5 12943echo $ECHO_N "checking for directory with zlib.h... $ECHO_C" >&6; } 12944if test "${trf_cv_path_ZLIB_INCLUDE_DIR+set}" = set; then 12945 echo $ECHO_N "(cached) $ECHO_C" >&6 12946else 12947 trf_cv_path_ZLIB_INCLUDE_DIR="" 12948 places="$ZLIB_INCLUDE_DIR \ 12949 $TCL_INCLUDE_DIR \ 12950 $prefix/include \ 12951 /usr/local/include \ 12952 /usr/include" 12953 for dir in $places; do 12954 if test -r $dir/zlib.h ; then 12955 trf_cv_path_ZLIB_INCLUDE_DIR=$dir 12956 break 12957 fi 12958 done 12959fi 12960{ echo "$as_me:$LINENO: result: $trf_cv_path_ZLIB_INCLUDE_DIR" >&5 12961echo "${ECHO_T}$trf_cv_path_ZLIB_INCLUDE_DIR" >&6; } 12962 12963if test -z "$trf_cv_path_ZLIB_INCLUDE_DIR" ; then 12964 { { echo "$as_me:$LINENO: error: not found; falling back to compat/ headers; use --with-zlib=DIR or --with-zlib-include-dir=DIR" >&5 12965echo "$as_me: error: not found; falling back to compat/ headers; use --with-zlib=DIR or --with-zlib-include-dir=DIR" >&2;} 12966 { (exit 1); exit 1; }; } 12967 ZLIB_INCLUDE_DIR="\".\"" 12968else 12969 ZLIB_INCLUDE_DIR="\"`${CYGPATH} $trf_cv_path_ZLIB_INCLUDE_DIR`\"" 12970 12971 eval cat >>confdefs.h <<_ACEOF 12972#define HAVE_ZLIB_H 1 12973_ACEOF 12974 12975 TRF_TESTS="$TRF_TESTS hasZlib" 12976fi 12977 12978 12979 12980 12981{ echo "$as_me:$LINENO: checking for libz library" >&5 12982echo $ECHO_N "checking for libz library... $ECHO_C" >&6; } 12983if test "${trf_cv_lib_ZLIB_LIB_DIR+set}" = set; then 12984 echo $ECHO_N "(cached) $ECHO_C" >&6 12985else 12986 trf_cv_lib_ZLIB_LIB_DIR="" 12987 places="$ZLIB_LIB_DIR \ 12988 $TCL_LIB_DIR \ 12989 $exec_prefix/lib \ 12990 $prefix/lib \ 12991 /usr/local/lib \ 12992 /usr/lib" 12993 for dir in $places; do 12994 if test -n "$trf_cv_lib_ZLIB_LIB_DIR"; then 12995 break 12996 fi 12997 12998 for libsuff in .so ".so.*" .sl .a .dylib; do 12999 if test -n "$trf_cv_lib_ZLIB_LIB_DIR"; then 13000 break 13001 fi 13002 if test -f "$dir/libz$libsuff"; then 13003 trf_cv_lib_ZLIB_LIB_DIR="$dir" 13004 ZLIB_LIB_DIR="$dir" 13005 fi 13006 done 13007 done 13008fi 13009{ echo "$as_me:$LINENO: result: $trf_cv_lib_ZLIB_LIB_DIR" >&5 13010echo "${ECHO_T}$trf_cv_lib_ZLIB_LIB_DIR" >&6; } 13011 13012if test -z "$trf_cv_lib_ZLIB_LIB_DIR" ; then 13013 { echo "$as_me:$LINENO: WARNING: not found; use --with-zlib-lib-dir=path" >&5 13014echo "$as_me: WARNING: not found; use --with-zlib-lib-dir=path" >&2;} 13015 ZLIB_LIB_DIR="\".\"" 13016else 13017 ZLIB_LIB_DIR="`${CYGPATH} $trf_cv_lib_ZLIB_LIB_DIR`" 13018fi 13019 13020 13021 13022 13023{ echo "$as_me:$LINENO: checking for directory with ssl.h" >&5 13024echo $ECHO_N "checking for directory with ssl.h... $ECHO_C" >&6; } 13025if test "${trf_cv_path_SSL_INCLUDE_DIR+set}" = set; then 13026 echo $ECHO_N "(cached) $ECHO_C" >&6 13027else 13028 trf_cv_path_SSL_INCLUDE_DIR="" 13029 places="$SSL_INCLUDE_DIR \ 13030 $TCL_INCLUDE_DIR \ 13031 $prefix/include \ 13032 /usr/local/ssl/include \ 13033 /usr/local/include \ 13034 /usr/include" 13035 for dir in $places; do 13036 if test -r $dir/openssl/md2.h ; then 13037 trf_cv_path_SSL_INCLUDE_DIR=$dir 13038 TRF_DEFS="$TRF_DEFS -DOPENSSL_SUB" 13039 break 13040 fi 13041 if test -r $dir/openssl/sha1.h ; then 13042 trf_cv_path_SSL_INCLUDE_DIR=$dir 13043 TRF_DEFS="$TRF_DEFS -DOPENSSL_SUB" 13044 break 13045 fi 13046 if test -r $dir/md2.h ; then 13047 trf_cv_path_SSL_INCLUDE_DIR=$dir 13048 break 13049 fi 13050 if test -r $dir/sha1.h ; then 13051 trf_cv_path_SSL_INCLUDE_DIR=$dir 13052 break 13053 fi 13054 done 13055fi 13056{ echo "$as_me:$LINENO: result: $trf_cv_path_SSL_INCLUDE_DIR" >&5 13057echo "${ECHO_T}$trf_cv_path_SSL_INCLUDE_DIR" >&6; } 13058 13059if echo "$TRF_DEFS" | grep -q OPENSSL_SUB; then 13060 cat >>confdefs.h <<_ACEOF 13061#define OPENSSL_SUB 1 13062_ACEOF 13063 13064fi 13065 13066if test -z "$trf_cv_path_SSL_INCLUDE_DIR" ; then 13067 { echo "$as_me:$LINENO: WARNING: not found; falling back compat/ headers; use --with-ssl=DIR or --with-ssl-include-dir=DIR" >&5 13068echo "$as_me: WARNING: not found; falling back compat/ headers; use --with-ssl=DIR or --with-ssl-include-dir=DIR" >&2;} 13069 SSL_INCLUDE_DIR="\".\"" 13070else 13071 SSL_INCLUDE_DIR="\"`${CYGPATH} $trf_cv_path_SSL_INCLUDE_DIR`\"" 13072 13073 if test "${TEA_PLATFORM}" = "windows" ; then 13074 { echo "$as_me:$LINENO: WARNING: Squashing SSL / Windows" >&5 13075echo "$as_me: WARNING: Squashing SSL / Windows" >&2;} 13076 SSL_INCLUDE_DIR="\".\"" 13077 else 13078 eval cat >>confdefs.h <<_ACEOF 13079#define HAVE_SSL_H 1 13080_ACEOF 13081 13082 eval cat >>confdefs.h <<_ACEOF 13083#define HAVE_MD2_H 1 13084_ACEOF 13085 13086 eval cat >>confdefs.h <<_ACEOF 13087#define HAVE_MD5_H 1 13088_ACEOF 13089 13090 eval cat >>confdefs.h <<_ACEOF 13091#define HAVE_SHA_H 1 13092_ACEOF 13093 13094 #DEFS="$DEFS -DHAVE_SSL_H -DHAVE_MD2_H -DHAVE_SHA_H" 13095 TRF_TESTS="$TRF_TESTS hasSSL" 13096 fi 13097fi 13098 13099 13100 13101 13102{ echo "$as_me:$LINENO: checking for ssl libcrypto library (for message digests)" >&5 13103echo $ECHO_N "checking for ssl libcrypto library (for message digests)... $ECHO_C" >&6; } 13104if test "${trf_cv_lib_SSL_LIB_DIR+set}" = set; then 13105 echo $ECHO_N "(cached) $ECHO_C" >&6 13106else 13107 trf_cv_lib_SSL_LIB_DIR="" 13108 places="$SSL_LIB_DIR \ 13109 $TCL_LIB_DIR \ 13110 $exec_prefix/lib \ 13111 $prefix/lib \ 13112 /usr/local/ssl/lib \ 13113 /usr/local/lib \ 13114 /usr/lib" 13115 for dir in $places; do 13116 if test -n "$trf_cv_lib_SSL_LIB_DIR"; then 13117 break 13118 fi 13119 13120 for libsuff in .so ".so.*" .sl .a .dylib; do 13121 if test -n "$trf_cv_lib_SSL_LIB_DIR"; then 13122 break 13123 fi 13124 if test -f $dir/libcrypto$libsuff; then 13125 trf_cv_lib_SSL_LIB_DIR="$dir" 13126 SSL_LIB_DIR="$dir" 13127 fi 13128 done 13129 done 13130fi 13131{ echo "$as_me:$LINENO: result: $trf_cv_lib_SSL_LIB_DIR" >&5 13132echo "${ECHO_T}$trf_cv_lib_SSL_LIB_DIR" >&6; } 13133 13134if test -z "$trf_cv_lib_SSL_LIB_DIR" ; then 13135 { echo "$as_me:$LINENO: WARNING: not found; use --with-ssl-lib-dir=path" >&5 13136echo "$as_me: WARNING: not found; use --with-ssl-lib-dir=path" >&2;} 13137 SSL_LIB_DIR="\".\"" 13138else 13139 SSL_LIB_DIR="`${CYGPATH} $trf_cv_lib_SSL_LIB_DIR`" 13140fi 13141 13142 13143 13144 13145{ echo "$as_me:$LINENO: checking for directory with bzlib.h" >&5 13146echo $ECHO_N "checking for directory with bzlib.h... $ECHO_C" >&6; } 13147if test "${trf_cv_path_BZ2_INCLUDE_DIR+set}" = set; then 13148 echo $ECHO_N "(cached) $ECHO_C" >&6 13149else 13150 trf_cv_path_BZ2_INCLUDE_DIR="" 13151 places="$BZ2_INCLUDE_DIR \ 13152 $TCL_INCLUDE_DIR \ 13153 $prefix/include \ 13154 /usr/local/include \ 13155 /usr/include" 13156 for dir in $places; do 13157 if test -r $dir/bzlib.h ; then 13158 trf_cv_path_BZ2_INCLUDE_DIR=$dir 13159 break 13160 fi 13161 done 13162fi 13163{ echo "$as_me:$LINENO: result: $trf_cv_path_BZ2_INCLUDE_DIR" >&5 13164echo "${ECHO_T}$trf_cv_path_BZ2_INCLUDE_DIR" >&6; } 13165 13166if test -z "$trf_cv_path_BZ2_INCLUDE_DIR" ; then 13167 { echo "$as_me:$LINENO: WARNING: not found; falling back to compat/ headers; use --with-bz2=DIR or --with-bz2-include-dir=DIR" >&5 13168echo "$as_me: WARNING: not found; falling back to compat/ headers; use --with-bz2=DIR or --with-bz2-include-dir=DIR" >&2;} 13169 BZ2_INCLUDE_DIR="\".\"" 13170else 13171 BZ2_INCLUDE_DIR="\"`${CYGPATH} $trf_cv_path_BZ2_INCLUDE_DIR`\"" 13172 eval cat >>confdefs.h <<_ACEOF 13173#define HAVE_BZ2_H 1 13174_ACEOF 13175 13176fi 13177 13178 13179 13180{ echo "$as_me:$LINENO: checking for bz2 compressor library" >&5 13181echo $ECHO_N "checking for bz2 compressor library... $ECHO_C" >&6; } 13182if test "${trf_cv_lib_BZ2_LIB_DIR+set}" = set; then 13183 echo $ECHO_N "(cached) $ECHO_C" >&6 13184else 13185 trf_cv_lib_BZ2_LIB_DIR="" 13186 places="$BZ2_LIB_DIR \ 13187 $TCL_LIB_DIR \ 13188 $exec_prefix/lib \ 13189 $prefix/lib \ 13190 /usr/local/bz2/lib \ 13191 /usr/local/lib \ 13192 /usr/lib \ 13193 /lib" 13194 for dir in $places; do 13195 if test -n "$trf_cv_lib_BZ2_LIB_DIR"; then 13196 break 13197 fi 13198 13199 for libsuff in .so ".so.*" .sl .a .dylib; do 13200 if test -n "$trf_cv_lib_BZ2_LIB_DIR"; then 13201 break 13202 fi 13203 if test -f $dir/libbz2$libsuff; then 13204 trf_cv_lib_BZ2_LIB_DIR="$dir" 13205 BZ2_LIB_DIR="$dir" 13206 fi 13207 done 13208 done 13209fi 13210{ echo "$as_me:$LINENO: result: $trf_cv_lib_BZ2_LIB_DIR" >&5 13211echo "${ECHO_T}$trf_cv_lib_BZ2_LIB_DIR" >&6; } 13212 13213if test -z "$trf_cv_lib_BZ2_LIB_DIR" ; then 13214 { echo "$as_me:$LINENO: WARNING: not found; use --with-bz2-lib-dir=path" >&5 13215echo "$as_me: WARNING: not found; use --with-bz2-lib-dir=path" >&2;} 13216 BZ2_LIB_DIR=. 13217else 13218 TRF_TESTS="$TRF_TESTS hasBz" 13219 BZ2_LIB_DIR="`${CYGPATH} $trf_cv_lib_BZ2_LIB_DIR`" 13220fi 13221 13222 13223 13224 13225if test "x$ZLIB_STATIC" = "xyes" 13226then 13227 eval cat >>confdefs.h <<_ACEOF 13228#define ZLIB_STATIC_BUILD 1 13229_ACEOF 13230 13231fi 13232 13233if test "x$BZLIB_STATIC" = "xyes" 13234then 13235 eval cat >>confdefs.h <<_ACEOF 13236#define BZLIB_STATIC_BUILD 1 13237_ACEOF 13238 13239fi 13240 13241if test "x$MD5_STATIC" = "xyes" 13242then 13243 eval cat >>confdefs.h <<_ACEOF 13244#define MD5_STATIC_BUILD 1 13245_ACEOF 13246 13247fi 13248 13249if test "x$trf_debug" = "xyes" 13250then 13251 eval cat >>confdefs.h <<_ACEOF 13252#define TRF_DEBUG 1 13253_ACEOF 13254 13255fi 13256 13257if test "x$stream_debug" = "xyes" 13258then 13259 eval cat >>confdefs.h <<_ACEOF 13260#define TRF_STREAM_DEBUG 1 13261_ACEOF 13262 13263fi 13264 13265 13266 13267 13268 13269 13270 13271for ac_header in dlfcn.h stdlib.h features.h 13272do 13273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13275 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13278 echo $ECHO_N "(cached) $ECHO_C" >&6 13279fi 13280ac_res=`eval echo '${'$as_ac_Header'}'` 13281 { echo "$as_me:$LINENO: result: $ac_res" >&5 13282echo "${ECHO_T}$ac_res" >&6; } 13283else 13284 # Is the header compilable? 13285{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13287cat >conftest.$ac_ext <<_ACEOF 13288/* confdefs.h. */ 13289_ACEOF 13290cat confdefs.h >>conftest.$ac_ext 13291cat >>conftest.$ac_ext <<_ACEOF 13292/* end confdefs.h. */ 13293$ac_includes_default 13294#include <$ac_header> 13295_ACEOF 13296rm -f conftest.$ac_objext 13297if { (ac_try="$ac_compile" 13298case "(($ac_try" in 13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13300 *) ac_try_echo=$ac_try;; 13301esac 13302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13303 (eval "$ac_compile") 2>conftest.er1 13304 ac_status=$? 13305 grep -v '^ *+' conftest.er1 >conftest.err 13306 rm -f conftest.er1 13307 cat conftest.err >&5 13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13309 (exit $ac_status); } && { 13310 test -z "$ac_c_werror_flag" || 13311 test ! -s conftest.err 13312 } && test -s conftest.$ac_objext; then 13313 ac_header_compiler=yes 13314else 13315 echo "$as_me: failed program was:" >&5 13316sed 's/^/| /' conftest.$ac_ext >&5 13317 13318 ac_header_compiler=no 13319fi 13320 13321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13322{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13323echo "${ECHO_T}$ac_header_compiler" >&6; } 13324 13325# Is the header present? 13326{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13328cat >conftest.$ac_ext <<_ACEOF 13329/* confdefs.h. */ 13330_ACEOF 13331cat confdefs.h >>conftest.$ac_ext 13332cat >>conftest.$ac_ext <<_ACEOF 13333/* end confdefs.h. */ 13334#include <$ac_header> 13335_ACEOF 13336if { (ac_try="$ac_cpp conftest.$ac_ext" 13337case "(($ac_try" in 13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13339 *) ac_try_echo=$ac_try;; 13340esac 13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13343 ac_status=$? 13344 grep -v '^ *+' conftest.er1 >conftest.err 13345 rm -f conftest.er1 13346 cat conftest.err >&5 13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13348 (exit $ac_status); } >/dev/null && { 13349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13350 test ! -s conftest.err 13351 }; then 13352 ac_header_preproc=yes 13353else 13354 echo "$as_me: failed program was:" >&5 13355sed 's/^/| /' conftest.$ac_ext >&5 13356 13357 ac_header_preproc=no 13358fi 13359 13360rm -f conftest.err conftest.$ac_ext 13361{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13362echo "${ECHO_T}$ac_header_preproc" >&6; } 13363 13364# So? What about this header? 13365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13366 yes:no: ) 13367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13371 ac_header_preproc=yes 13372 ;; 13373 no:yes:* ) 13374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13386 13387 ;; 13388esac 13389{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13392 echo $ECHO_N "(cached) $ECHO_C" >&6 13393else 13394 eval "$as_ac_Header=\$ac_header_preproc" 13395fi 13396ac_res=`eval echo '${'$as_ac_Header'}'` 13397 { echo "$as_me:$LINENO: result: $ac_res" >&5 13398echo "${ECHO_T}$ac_res" >&6; } 13399 13400fi 13401if test `eval echo '${'$as_ac_Header'}'` = yes; then 13402 cat >>confdefs.h <<_ACEOF 13403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13404_ACEOF 13405 13406fi 13407 13408done 13409 13410 13411 13412#-------------------------------------------------------------------- 13413# MD5 handling... 13414# Cases: 13415# (1) libcrypt not present => compile, use that name. 13416# (2) libcrypt present, contains Md5 => nothing to do 13417# (3) libcrypt present, no Md5 => compile, name = libmd5crypt 13418#-------------------------------------------------------------------- 13419 13420MD5_LIB_FILE="" 13421if test \( $HAS_LIBCRYPT -eq 0 \) 13422then 13423 # (1) 13424 ## MD5_LIB_FILE=libcrypt$TCL_SHLIB_SUFFIX 13425 ## TRF_DEFS="$TRF_DEFS -DCRYPT_LIB_NAME=\\\"NONE\\\"" 13426 eval cat >>confdefs.h <<_ACEOF 13427#define MD5_STATIC_BUILD 1 13428_ACEOF 13429 13430 13431 13432 vars="md5-crypt/crypt-entry.c md5-crypt/md5-crypt.c md5-crypt/md5.c compat/stpncpy.c" 13433 for i in $vars; do 13434 case $i in 13435 \$*) 13436 # allow $-var names 13437 PKG_SOURCES="$PKG_SOURCES $i" 13438 PKG_OBJECTS="$PKG_OBJECTS $i" 13439 ;; 13440 *) 13441 # check for existence - allows for generic/win/unix VPATH 13442 # To add more dirs here (like 'src'), you have to update VPATH 13443 # in Makefile.in as well 13444 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 13445 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 13446 -a ! -f "${srcdir}/macosx/$i" \ 13447 ; then 13448 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 13449echo "$as_me: error: could not find source file '$i'" >&2;} 13450 { (exit 1); exit 1; }; } 13451 fi 13452 PKG_SOURCES="$PKG_SOURCES $i" 13453 # this assumes it is in a VPATH dir 13454 i=`basename $i` 13455 # handle user calling this before or after TEA_SETUP_COMPILER 13456 if test x"${OBJEXT}" != x ; then 13457 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 13458 else 13459 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 13460 fi 13461 PKG_OBJECTS="$PKG_OBJECTS $j" 13462 ;; 13463 esac 13464 done 13465 13466 13467 13468elif test "`uname -s`" != "Darwin"; then 13469 # (2,3) 13470 if test \( $HAS_LIBCRYPT_MD5 -eq 0 \) 13471 then 13472 # (3) 13473 ## MD5_LIB_FILE=libmd5crypt$TCL_SHLIB_SUFFIX 13474 ## TRF_DEFS="$TRF_DEFS -DCRYPT_LIB_NAME=\\\"NONE\\\"" 13475 13476 # Sun Solaris is special, we may not use -lcrypt ! 13477 # Verified for: SunOS 5.5.1 (Solaris 2.5) 13478 # SunOS 5.6 (Solaris 2.6) 13479 13480 ## case "`uname -s`" in 13481 ## SunOS*) ;; 13482 ## *) LIBS="-lcrypt $LIBS" 13483 ## SHLIB_LD_LIBS="-lcrypt $SHLIB_LD_LIBS" 13484 ## ;; 13485 ## esac 13486 13487 eval cat >>confdefs.h <<_ACEOF 13488#define MD5_STATIC_BUILD 1 13489_ACEOF 13490 13491 13492 13493 vars="md5-crypt/crypt-entry.c md5-crypt/md5-crypt.c md5-crypt/md5.c compat/stpncpy.c" 13494 for i in $vars; do 13495 case $i in 13496 \$*) 13497 # allow $-var names 13498 PKG_SOURCES="$PKG_SOURCES $i" 13499 PKG_OBJECTS="$PKG_OBJECTS $i" 13500 ;; 13501 *) 13502 # check for existence - allows for generic/win/unix VPATH 13503 # To add more dirs here (like 'src'), you have to update VPATH 13504 # in Makefile.in as well 13505 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 13506 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 13507 -a ! -f "${srcdir}/macosx/$i" \ 13508 ; then 13509 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 13510echo "$as_me: error: could not find source file '$i'" >&2;} 13511 { (exit 1); exit 1; }; } 13512 fi 13513 PKG_SOURCES="$PKG_SOURCES $i" 13514 # this assumes it is in a VPATH dir 13515 i=`basename $i` 13516 # handle user calling this before or after TEA_SETUP_COMPILER 13517 if test x"${OBJEXT}" != x ; then 13518 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 13519 else 13520 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 13521 fi 13522 PKG_OBJECTS="$PKG_OBJECTS $j" 13523 ;; 13524 esac 13525 done 13526 13527 13528 13529 fi 13530fi 13531 13532 13533 13534#-------------------------------------------------------------------- 13535# Finally, substitute all of the various values into the Makefile. 13536# You may alternatively have a special pkgIndex.tcl.in or other files 13537# which require substituting th AC variables in. Include these here. 13538#-------------------------------------------------------------------- 13539 13540ac_config_files="$ac_config_files Makefile test.setup" 13541 13542cat >confcache <<\_ACEOF 13543# This file is a shell script that caches the results of configure 13544# tests run on this system so they can be shared between configure 13545# scripts and configure runs, see configure's option --config-cache. 13546# It is not useful on other systems. If it contains results you don't 13547# want to keep, you may remove or edit it. 13548# 13549# config.status only pays attention to the cache file if you give it 13550# the --recheck option to rerun configure. 13551# 13552# `ac_cv_env_foo' variables (set or unset) will be overridden when 13553# loading this file, other *unset* `ac_cv_foo' will be assigned the 13554# following values. 13555 13556_ACEOF 13557 13558# The following way of writing the cache mishandles newlines in values, 13559# but we know of no workaround that is simple, portable, and efficient. 13560# So, we kill variables containing newlines. 13561# Ultrix sh set writes to stderr and can't be redirected directly, 13562# and sets the high bit in the cache file unless we assign to the vars. 13563( 13564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13565 eval ac_val=\$$ac_var 13566 case $ac_val in #( 13567 *${as_nl}*) 13568 case $ac_var in #( 13569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13570echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13571 esac 13572 case $ac_var in #( 13573 _ | IFS | as_nl) ;; #( 13574 *) $as_unset $ac_var ;; 13575 esac ;; 13576 esac 13577 done 13578 13579 (set) 2>&1 | 13580 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13581 *${as_nl}ac_space=\ *) 13582 # `set' does not quote correctly, so add quotes (double-quote 13583 # substitution turns \\\\ into \\, and sed turns \\ into \). 13584 sed -n \ 13585 "s/'/'\\\\''/g; 13586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13587 ;; #( 13588 *) 13589 # `set' quotes correctly as required by POSIX, so do not add quotes. 13590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13591 ;; 13592 esac | 13593 sort 13594) | 13595 sed ' 13596 /^ac_cv_env_/b end 13597 t clear 13598 :clear 13599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13600 t end 13601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13602 :end' >>confcache 13603if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13604 if test -w "$cache_file"; then 13605 test "x$cache_file" != "x/dev/null" && 13606 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 13607echo "$as_me: updating cache $cache_file" >&6;} 13608 cat confcache >$cache_file 13609 else 13610 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13611echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13612 fi 13613fi 13614rm -f confcache 13615 13616test "x$prefix" = xNONE && prefix=$ac_default_prefix 13617# Let make expand exec_prefix. 13618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13619 13620# Transform confdefs.h into DEFS. 13621# Protect against shell expansion while executing Makefile rules. 13622# Protect against Makefile macro expansion. 13623# 13624# If the first sed substitution is executed (which looks for macros that 13625# take arguments), then branch to the quote section. Otherwise, 13626# look for a macro that doesn't take arguments. 13627ac_script=' 13628t clear 13629:clear 13630s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13631t quote 13632s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13633t quote 13634b any 13635:quote 13636s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13637s/\[/\\&/g 13638s/\]/\\&/g 13639s/\$/$$/g 13640H 13641:any 13642${ 13643 g 13644 s/^\n// 13645 s/\n/ /g 13646 p 13647} 13648' 13649DEFS=`sed -n "$ac_script" confdefs.h` 13650 13651 13652ac_libobjs= 13653ac_ltlibobjs= 13654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13655 # 1. Remove the extension, and $U if already installed. 13656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13657 ac_i=`echo "$ac_i" | sed "$ac_script"` 13658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13659 # will be set to the directory where LIBOBJS objects are built. 13660 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13661 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13662done 13663LIBOBJS=$ac_libobjs 13664 13665LTLIBOBJS=$ac_ltlibobjs 13666 13667 13668CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 13669 13670: ${CONFIG_STATUS=./config.status} 13671ac_clean_files_save=$ac_clean_files 13672ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13673{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13674echo "$as_me: creating $CONFIG_STATUS" >&6;} 13675cat >$CONFIG_STATUS <<_ACEOF 13676#! $SHELL 13677# Generated by $as_me. 13678# Run this file to recreate the current configuration. 13679# Compiler output produced by configure, useful for debugging 13680# configure, is in config.log if it exists. 13681 13682debug=false 13683ac_cs_recheck=false 13684ac_cs_silent=false 13685SHELL=\${CONFIG_SHELL-$SHELL} 13686_ACEOF 13687 13688cat >>$CONFIG_STATUS <<\_ACEOF 13689## --------------------- ## 13690## M4sh Initialization. ## 13691## --------------------- ## 13692 13693# Be more Bourne compatible 13694DUALCASE=1; export DUALCASE # for MKS sh 13695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13696 emulate sh 13697 NULLCMD=: 13698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13699 # is contrary to our usage. Disable this feature. 13700 alias -g '${1+"$@"}'='"$@"' 13701 setopt NO_GLOB_SUBST 13702else 13703 case `(set -o) 2>/dev/null` in 13704 *posix*) set -o posix ;; 13705esac 13706 13707fi 13708 13709 13710 13711 13712# PATH needs CR 13713# Avoid depending upon Character Ranges. 13714as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13715as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13716as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13717as_cr_digits='0123456789' 13718as_cr_alnum=$as_cr_Letters$as_cr_digits 13719 13720# The user is always right. 13721if test "${PATH_SEPARATOR+set}" != set; then 13722 echo "#! /bin/sh" >conf$$.sh 13723 echo "exit 0" >>conf$$.sh 13724 chmod +x conf$$.sh 13725 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13726 PATH_SEPARATOR=';' 13727 else 13728 PATH_SEPARATOR=: 13729 fi 13730 rm -f conf$$.sh 13731fi 13732 13733# Support unset when possible. 13734if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13735 as_unset=unset 13736else 13737 as_unset=false 13738fi 13739 13740 13741# IFS 13742# We need space, tab and new line, in precisely that order. Quoting is 13743# there to prevent editors from complaining about space-tab. 13744# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13745# splitting by setting IFS to empty value.) 13746as_nl=' 13747' 13748IFS=" "" $as_nl" 13749 13750# Find who we are. Look in the path if we contain no directory separator. 13751case $0 in 13752 *[\\/]* ) as_myself=$0 ;; 13753 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13754for as_dir in $PATH 13755do 13756 IFS=$as_save_IFS 13757 test -z "$as_dir" && as_dir=. 13758 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13759done 13760IFS=$as_save_IFS 13761 13762 ;; 13763esac 13764# We did not find ourselves, most probably we were run as `sh COMMAND' 13765# in which case we are not to be found in the path. 13766if test "x$as_myself" = x; then 13767 as_myself=$0 13768fi 13769if test ! -f "$as_myself"; then 13770 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13771 { (exit 1); exit 1; } 13772fi 13773 13774# Work around bugs in pre-3.0 UWIN ksh. 13775for as_var in ENV MAIL MAILPATH 13776do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13777done 13778PS1='$ ' 13779PS2='> ' 13780PS4='+ ' 13781 13782# NLS nuisances. 13783for as_var in \ 13784 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13785 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13786 LC_TELEPHONE LC_TIME 13787do 13788 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13789 eval $as_var=C; export $as_var 13790 else 13791 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13792 fi 13793done 13794 13795# Required to use basename. 13796if expr a : '\(a\)' >/dev/null 2>&1 && 13797 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13798 as_expr=expr 13799else 13800 as_expr=false 13801fi 13802 13803if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13804 as_basename=basename 13805else 13806 as_basename=false 13807fi 13808 13809 13810# Name of the executable. 13811as_me=`$as_basename -- "$0" || 13812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13813 X"$0" : 'X\(//\)$' \| \ 13814 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13815echo X/"$0" | 13816 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13817 s//\1/ 13818 q 13819 } 13820 /^X\/\(\/\/\)$/{ 13821 s//\1/ 13822 q 13823 } 13824 /^X\/\(\/\).*/{ 13825 s//\1/ 13826 q 13827 } 13828 s/.*/./; q'` 13829 13830# CDPATH. 13831$as_unset CDPATH 13832 13833 13834 13835 as_lineno_1=$LINENO 13836 as_lineno_2=$LINENO 13837 test "x$as_lineno_1" != "x$as_lineno_2" && 13838 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 13839 13840 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13841 # uniformly replaced by the line number. The first 'sed' inserts a 13842 # line-number line after each line using $LINENO; the second 'sed' 13843 # does the real work. The second script uses 'N' to pair each 13844 # line-number line with the line containing $LINENO, and appends 13845 # trailing '-' during substitution so that $LINENO is not a special 13846 # case at line end. 13847 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13848 # scripts with optimization help from Paolo Bonzini. Blame Lee 13849 # E. McMahon (1931-1989) for sed's syntax. :-) 13850 sed -n ' 13851 p 13852 /[$]LINENO/= 13853 ' <$as_myself | 13854 sed ' 13855 s/[$]LINENO.*/&-/ 13856 t lineno 13857 b 13858 :lineno 13859 N 13860 :loop 13861 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 13862 t loop 13863 s/-\n.*// 13864 ' >$as_me.lineno && 13865 chmod +x "$as_me.lineno" || 13866 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 13867 { (exit 1); exit 1; }; } 13868 13869 # Don't try to exec as it changes $[0], causing all sort of problems 13870 # (the dirname of $[0] is not the place where we might find the 13871 # original and so on. Autoconf is especially sensitive to this). 13872 . "./$as_me.lineno" 13873 # Exit status is that of the last command. 13874 exit 13875} 13876 13877 13878if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13879 as_dirname=dirname 13880else 13881 as_dirname=false 13882fi 13883 13884ECHO_C= ECHO_N= ECHO_T= 13885case `echo -n x` in 13886-n*) 13887 case `echo 'x\c'` in 13888 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13889 *) ECHO_C='\c';; 13890 esac;; 13891*) 13892 ECHO_N='-n';; 13893esac 13894 13895if expr a : '\(a\)' >/dev/null 2>&1 && 13896 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13897 as_expr=expr 13898else 13899 as_expr=false 13900fi 13901 13902rm -f conf$$ conf$$.exe conf$$.file 13903if test -d conf$$.dir; then 13904 rm -f conf$$.dir/conf$$.file 13905else 13906 rm -f conf$$.dir 13907 mkdir conf$$.dir 13908fi 13909echo >conf$$.file 13910if ln -s conf$$.file conf$$ 2>/dev/null; then 13911 as_ln_s='ln -s' 13912 # ... but there are two gotchas: 13913 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13914 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13915 # In both cases, we have to default to `cp -p'. 13916 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13917 as_ln_s='cp -p' 13918elif ln conf$$.file conf$$ 2>/dev/null; then 13919 as_ln_s=ln 13920else 13921 as_ln_s='cp -p' 13922fi 13923rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13924rmdir conf$$.dir 2>/dev/null 13925 13926if mkdir -p . 2>/dev/null; then 13927 as_mkdir_p=: 13928else 13929 test -d ./-p && rmdir ./-p 13930 as_mkdir_p=false 13931fi 13932 13933if test -x / >/dev/null 2>&1; then 13934 as_test_x='test -x' 13935else 13936 if ls -dL / >/dev/null 2>&1; then 13937 as_ls_L_option=L 13938 else 13939 as_ls_L_option= 13940 fi 13941 as_test_x=' 13942 eval sh -c '\'' 13943 if test -d "$1"; then 13944 test -d "$1/."; 13945 else 13946 case $1 in 13947 -*)set "./$1";; 13948 esac; 13949 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 13950 ???[sx]*):;;*)false;;esac;fi 13951 '\'' sh 13952 ' 13953fi 13954as_executable_p=$as_test_x 13955 13956# Sed expression to map a string onto a valid CPP name. 13957as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13958 13959# Sed expression to map a string onto a valid variable name. 13960as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13961 13962 13963exec 6>&1 13964 13965# Save the log message, to keep $[0] and so on meaningful, and to 13966# report actual input values of CONFIG_FILES etc. instead of their 13967# values after options handling. 13968ac_log=" 13969This file was extended by Trf $as_me 2.1.4, which was 13970generated by GNU Autoconf 2.61. Invocation command line was 13971 13972 CONFIG_FILES = $CONFIG_FILES 13973 CONFIG_HEADERS = $CONFIG_HEADERS 13974 CONFIG_LINKS = $CONFIG_LINKS 13975 CONFIG_COMMANDS = $CONFIG_COMMANDS 13976 $ $0 $@ 13977 13978on `(hostname || uname -n) 2>/dev/null | sed 1q` 13979" 13980 13981_ACEOF 13982 13983cat >>$CONFIG_STATUS <<_ACEOF 13984# Files that config.status was made for. 13985config_files="$ac_config_files" 13986 13987_ACEOF 13988 13989cat >>$CONFIG_STATUS <<\_ACEOF 13990ac_cs_usage="\ 13991\`$as_me' instantiates files from templates according to the 13992current configuration. 13993 13994Usage: $0 [OPTIONS] [FILE]... 13995 13996 -h, --help print this help, then exit 13997 -V, --version print version number and configuration settings, then exit 13998 -q, --quiet do not print progress messages 13999 -d, --debug don't remove temporary files 14000 --recheck update $as_me by reconfiguring in the same conditions 14001 --file=FILE[:TEMPLATE] 14002 instantiate the configuration file FILE 14003 14004Configuration files: 14005$config_files 14006 14007Report bugs to <bug-autoconf@gnu.org>." 14008 14009_ACEOF 14010cat >>$CONFIG_STATUS <<_ACEOF 14011ac_cs_version="\\ 14012Trf config.status 2.1.4 14013configured by $0, generated by GNU Autoconf 2.61, 14014 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14015 14016Copyright (C) 2006 Free Software Foundation, Inc. 14017This config.status script is free software; the Free Software Foundation 14018gives unlimited permission to copy, distribute and modify it." 14019 14020ac_pwd='$ac_pwd' 14021srcdir='$srcdir' 14022INSTALL='$INSTALL' 14023_ACEOF 14024 14025cat >>$CONFIG_STATUS <<\_ACEOF 14026# If no file are specified by the user, then we need to provide default 14027# value. By we need to know if files were specified by the user. 14028ac_need_defaults=: 14029while test $# != 0 14030do 14031 case $1 in 14032 --*=*) 14033 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14035 ac_shift=: 14036 ;; 14037 *) 14038 ac_option=$1 14039 ac_optarg=$2 14040 ac_shift=shift 14041 ;; 14042 esac 14043 14044 case $ac_option in 14045 # Handling of the options. 14046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14047 ac_cs_recheck=: ;; 14048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14049 echo "$ac_cs_version"; exit ;; 14050 --debug | --debu | --deb | --de | --d | -d ) 14051 debug=: ;; 14052 --file | --fil | --fi | --f ) 14053 $ac_shift 14054 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14055 ac_need_defaults=false;; 14056 --he | --h | --help | --hel | -h ) 14057 echo "$ac_cs_usage"; exit ;; 14058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14059 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14060 ac_cs_silent=: ;; 14061 14062 # This is an error. 14063 -*) { echo "$as_me: error: unrecognized option: $1 14064Try \`$0 --help' for more information." >&2 14065 { (exit 1); exit 1; }; } ;; 14066 14067 *) ac_config_targets="$ac_config_targets $1" 14068 ac_need_defaults=false ;; 14069 14070 esac 14071 shift 14072done 14073 14074ac_configure_extra_args= 14075 14076if $ac_cs_silent; then 14077 exec 6>/dev/null 14078 ac_configure_extra_args="$ac_configure_extra_args --silent" 14079fi 14080 14081_ACEOF 14082cat >>$CONFIG_STATUS <<_ACEOF 14083if \$ac_cs_recheck; then 14084 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14085 CONFIG_SHELL=$SHELL 14086 export CONFIG_SHELL 14087 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14088fi 14089 14090_ACEOF 14091cat >>$CONFIG_STATUS <<\_ACEOF 14092exec 5>>config.log 14093{ 14094 echo 14095 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14096## Running $as_me. ## 14097_ASBOX 14098 echo "$ac_log" 14099} >&5 14100 14101_ACEOF 14102cat >>$CONFIG_STATUS <<_ACEOF 14103_ACEOF 14104 14105cat >>$CONFIG_STATUS <<\_ACEOF 14106 14107# Handling of arguments. 14108for ac_config_target in $ac_config_targets 14109do 14110 case $ac_config_target in 14111 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14112 "test.setup") CONFIG_FILES="$CONFIG_FILES test.setup" ;; 14113 14114 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14115echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14116 { (exit 1); exit 1; }; };; 14117 esac 14118done 14119 14120 14121# If the user did not use the arguments to specify the items to instantiate, 14122# then the envvar interface is used. Set only those that are not. 14123# We use the long form for the default assignment because of an extremely 14124# bizarre bug on SunOS 4.1.3. 14125if $ac_need_defaults; then 14126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14127fi 14128 14129# Have a temporary directory for convenience. Make it in the build tree 14130# simply because there is no reason against having it here, and in addition, 14131# creating and moving files from /tmp can sometimes cause problems. 14132# Hook for its removal unless debugging. 14133# Note that there is a small window in which the directory will not be cleaned: 14134# after its creation but before its name has been assigned to `$tmp'. 14135$debug || 14136{ 14137 tmp= 14138 trap 'exit_status=$? 14139 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14140' 0 14141 trap '{ (exit 1); exit 1; }' 1 2 13 15 14142} 14143# Create a (secure) tmp directory for tmp files. 14144 14145{ 14146 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14147 test -n "$tmp" && test -d "$tmp" 14148} || 14149{ 14150 tmp=./conf$$-$RANDOM 14151 (umask 077 && mkdir "$tmp") 14152} || 14153{ 14154 echo "$me: cannot create a temporary directory in ." >&2 14155 { (exit 1); exit 1; } 14156} 14157 14158# 14159# Set up the sed scripts for CONFIG_FILES section. 14160# 14161 14162# No need to generate the scripts if there are no CONFIG_FILES. 14163# This happens for instance when ./config.status config.h 14164if test -n "$CONFIG_FILES"; then 14165 14166_ACEOF 14167 14168 14169 14170ac_delim='%!_!# ' 14171for ac_last_try in false false false false false :; do 14172 cat >conf$$subs.sed <<_ACEOF 14173SHELL!$SHELL$ac_delim 14174PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 14175PACKAGE_NAME!$PACKAGE_NAME$ac_delim 14176PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 14177PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 14178PACKAGE_STRING!$PACKAGE_STRING$ac_delim 14179PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 14180exec_prefix!$exec_prefix$ac_delim 14181prefix!$prefix$ac_delim 14182program_transform_name!$program_transform_name$ac_delim 14183bindir!$bindir$ac_delim 14184sbindir!$sbindir$ac_delim 14185libexecdir!$libexecdir$ac_delim 14186datarootdir!$datarootdir$ac_delim 14187datadir!$datadir$ac_delim 14188sysconfdir!$sysconfdir$ac_delim 14189sharedstatedir!$sharedstatedir$ac_delim 14190localstatedir!$localstatedir$ac_delim 14191includedir!$includedir$ac_delim 14192oldincludedir!$oldincludedir$ac_delim 14193docdir!$docdir$ac_delim 14194infodir!$infodir$ac_delim 14195htmldir!$htmldir$ac_delim 14196dvidir!$dvidir$ac_delim 14197pdfdir!$pdfdir$ac_delim 14198psdir!$psdir$ac_delim 14199libdir!$libdir$ac_delim 14200localedir!$localedir$ac_delim 14201mandir!$mandir$ac_delim 14202DEFS!$DEFS$ac_delim 14203ECHO_C!$ECHO_C$ac_delim 14204ECHO_N!$ECHO_N$ac_delim 14205ECHO_T!$ECHO_T$ac_delim 14206LIBS!$LIBS$ac_delim 14207build_alias!$build_alias$ac_delim 14208host_alias!$host_alias$ac_delim 14209target_alias!$target_alias$ac_delim 14210CYGPATH!$CYGPATH$ac_delim 14211EXEEXT!$EXEEXT$ac_delim 14212PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 14213PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 14214PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 14215PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 14216PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 14217PKG_HEADERS!$PKG_HEADERS$ac_delim 14218PKG_INCLUDES!$PKG_INCLUDES$ac_delim 14219PKG_LIBS!$PKG_LIBS$ac_delim 14220PKG_CFLAGS!$PKG_CFLAGS$ac_delim 14221TCL_VERSION!$TCL_VERSION$ac_delim 14222TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 14223TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 14224TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 14225TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 14226TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 14227TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 14228TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 14229TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 14230TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 14231CLEANFILES!$CLEANFILES$ac_delim 14232TCL_LIBS!$TCL_LIBS$ac_delim 14233TCL_DEFS!$TCL_DEFS$ac_delim 14234TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 14235TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 14236TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 14237zlibtcl_VERSION!$zlibtcl_VERSION$ac_delim 14238zlibtcl_BIN_DIR!$zlibtcl_BIN_DIR$ac_delim 14239zlibtcl_SRC_DIR!$zlibtcl_SRC_DIR$ac_delim 14240zlibtcl_LIB_FILE!$zlibtcl_LIB_FILE$ac_delim 14241zlibtcl_LIB_SPEC!$zlibtcl_LIB_SPEC$ac_delim 14242zlibtcl_STUB_LIB_FILE!$zlibtcl_STUB_LIB_FILE$ac_delim 14243zlibtcl_STUB_LIB_SPEC!$zlibtcl_STUB_LIB_SPEC$ac_delim 14244zlibtcl_STUB_LIB_PATH!$zlibtcl_STUB_LIB_PATH$ac_delim 14245zlibtcl_SRC_PATH!$zlibtcl_SRC_PATH$ac_delim 14246zlibtcl_BUILD_PATH!$zlibtcl_BUILD_PATH$ac_delim 14247CC!$CC$ac_delim 14248CFLAGS!$CFLAGS$ac_delim 14249LDFLAGS!$LDFLAGS$ac_delim 14250CPPFLAGS!$CPPFLAGS$ac_delim 14251ac_ct_CC!$ac_ct_CC$ac_delim 14252OBJEXT!$OBJEXT$ac_delim 14253CPP!$CPP$ac_delim 14254INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 14255INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14256INSTALL_DATA!$INSTALL_DATA$ac_delim 14257SET_MAKE!$SET_MAKE$ac_delim 14258RANLIB!$RANLIB$ac_delim 14259GREP!$GREP$ac_delim 14260EGREP!$EGREP$ac_delim 14261MATH_LIBS!$MATH_LIBS$ac_delim 14262PKG_SOURCES!$PKG_SOURCES$ac_delim 14263PKG_OBJECTS!$PKG_OBJECTS$ac_delim 14264SHLIB_SUFFIX!$SHLIB_SUFFIX$ac_delim 14265TCL_INCLUDES!$TCL_INCLUDES$ac_delim 14266TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 14267TCL_THREADS!$TCL_THREADS$ac_delim 14268SHARED_BUILD!$SHARED_BUILD$ac_delim 14269AR!$AR$ac_delim 14270_ACEOF 14271 14272 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 14273 break 14274 elif $ac_last_try; then 14275 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14276echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14277 { (exit 1); exit 1; }; } 14278 else 14279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14280 fi 14281done 14282 14283ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14284if test -n "$ac_eof"; then 14285 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14286 ac_eof=`expr $ac_eof + 1` 14287fi 14288 14289cat >>$CONFIG_STATUS <<_ACEOF 14290cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 14291/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14292_ACEOF 14293sed ' 14294s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14295s/^/s,@/; s/!/@,|#_!!_#|/ 14296:n 14297t n 14298s/'"$ac_delim"'$/,g/; t 14299s/$/\\/; p 14300N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14301' >>$CONFIG_STATUS <conf$$subs.sed 14302rm -f conf$$subs.sed 14303cat >>$CONFIG_STATUS <<_ACEOF 14304CEOF$ac_eof 14305_ACEOF 14306 14307 14308ac_delim='%!_!# ' 14309for ac_last_try in false false false false false :; do 14310 cat >conf$$subs.sed <<_ACEOF 14311CELIB_DIR!$CELIB_DIR$ac_delim 14312CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 14313CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 14314CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 14315STLIB_LD!$STLIB_LD$ac_delim 14316SHLIB_LD!$SHLIB_LD$ac_delim 14317SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 14318SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 14319LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 14320CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 14321LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 14322TCL_DBGX!$TCL_DBGX$ac_delim 14323MAKE_LIB!$MAKE_LIB$ac_delim 14324MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 14325MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 14326MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 14327RANLIB_STUB!$RANLIB_STUB$ac_delim 14328VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 14329VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 14330TCLSH_PROG!$TCLSH_PROG$ac_delim 14331ZLIB_INCLUDE_DIR!$ZLIB_INCLUDE_DIR$ac_delim 14332ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim 14333SSL_INCLUDE_DIR!$SSL_INCLUDE_DIR$ac_delim 14334SSL_LIB_DIR!$SSL_LIB_DIR$ac_delim 14335BZ2_INCLUDE_DIR!$BZ2_INCLUDE_DIR$ac_delim 14336BZ2_LIB_DIR!$BZ2_LIB_DIR$ac_delim 14337TRF_TESTS!$TRF_TESTS$ac_delim 14338MD5_LIB_FILE!$MD5_LIB_FILE$ac_delim 14339LIBOBJS!$LIBOBJS$ac_delim 14340LTLIBOBJS!$LTLIBOBJS$ac_delim 14341_ACEOF 14342 14343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then 14344 break 14345 elif $ac_last_try; then 14346 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14347echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14348 { (exit 1); exit 1; }; } 14349 else 14350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14351 fi 14352done 14353 14354ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 14355if test -n "$ac_eof"; then 14356 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 14357 ac_eof=`expr $ac_eof + 1` 14358fi 14359 14360cat >>$CONFIG_STATUS <<_ACEOF 14361cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 14362/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 14363_ACEOF 14364sed ' 14365s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 14366s/^/s,@/; s/!/@,|#_!!_#|/ 14367:n 14368t n 14369s/'"$ac_delim"'$/,g/; t 14370s/$/\\/; p 14371N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 14372' >>$CONFIG_STATUS <conf$$subs.sed 14373rm -f conf$$subs.sed 14374cat >>$CONFIG_STATUS <<_ACEOF 14375:end 14376s/|#_!!_#|//g 14377CEOF$ac_eof 14378_ACEOF 14379 14380 14381# VPATH may cause trouble with some makes, so we remove $(srcdir), 14382# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14383# trailing colons and then remove the whole line if VPATH becomes empty 14384# (actually we leave an empty line to preserve line numbers). 14385if test "x$srcdir" = x.; then 14386 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14387s/:*\$(srcdir):*/:/ 14388s/:*\${srcdir}:*/:/ 14389s/:*@srcdir@:*/:/ 14390s/^\([^=]*=[ ]*\):*/\1/ 14391s/:*$// 14392s/^[^=]*=[ ]*$// 14393}' 14394fi 14395 14396cat >>$CONFIG_STATUS <<\_ACEOF 14397fi # test -n "$CONFIG_FILES" 14398 14399 14400for ac_tag in :F $CONFIG_FILES 14401do 14402 case $ac_tag in 14403 :[FHLC]) ac_mode=$ac_tag; continue;; 14404 esac 14405 case $ac_mode$ac_tag in 14406 :[FHL]*:*);; 14407 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14408echo "$as_me: error: Invalid tag $ac_tag." >&2;} 14409 { (exit 1); exit 1; }; };; 14410 :[FH]-) ac_tag=-:-;; 14411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14412 esac 14413 ac_save_IFS=$IFS 14414 IFS=: 14415 set x $ac_tag 14416 IFS=$ac_save_IFS 14417 shift 14418 ac_file=$1 14419 shift 14420 14421 case $ac_mode in 14422 :L) ac_source=$1;; 14423 :[FH]) 14424 ac_file_inputs= 14425 for ac_f 14426 do 14427 case $ac_f in 14428 -) ac_f="$tmp/stdin";; 14429 *) # Look for the file first in the build tree, then in the source tree 14430 # (if the path is not absolute). The absolute path cannot be DOS-style, 14431 # because $ac_f cannot contain `:'. 14432 test -f "$ac_f" || 14433 case $ac_f in 14434 [\\/$]*) false;; 14435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14436 esac || 14437 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14438echo "$as_me: error: cannot find input file: $ac_f" >&2;} 14439 { (exit 1); exit 1; }; };; 14440 esac 14441 ac_file_inputs="$ac_file_inputs $ac_f" 14442 done 14443 14444 # Let's still pretend it is `configure' which instantiates (i.e., don't 14445 # use $as_me), people would be surprised to read: 14446 # /* config.h. Generated by config.status. */ 14447 configure_input="Generated from "`IFS=: 14448 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 14449 if test x"$ac_file" != x-; then 14450 configure_input="$ac_file. $configure_input" 14451 { echo "$as_me:$LINENO: creating $ac_file" >&5 14452echo "$as_me: creating $ac_file" >&6;} 14453 fi 14454 14455 case $ac_tag in 14456 *:-:* | *:-) cat >"$tmp/stdin";; 14457 esac 14458 ;; 14459 esac 14460 14461 ac_dir=`$as_dirname -- "$ac_file" || 14462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14463 X"$ac_file" : 'X\(//\)[^/]' \| \ 14464 X"$ac_file" : 'X\(//\)$' \| \ 14465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14466echo X"$ac_file" | 14467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14468 s//\1/ 14469 q 14470 } 14471 /^X\(\/\/\)[^/].*/{ 14472 s//\1/ 14473 q 14474 } 14475 /^X\(\/\/\)$/{ 14476 s//\1/ 14477 q 14478 } 14479 /^X\(\/\).*/{ 14480 s//\1/ 14481 q 14482 } 14483 s/.*/./; q'` 14484 { as_dir="$ac_dir" 14485 case $as_dir in #( 14486 -*) as_dir=./$as_dir;; 14487 esac 14488 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 14489 as_dirs= 14490 while :; do 14491 case $as_dir in #( 14492 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 14493 *) as_qdir=$as_dir;; 14494 esac 14495 as_dirs="'$as_qdir' $as_dirs" 14496 as_dir=`$as_dirname -- "$as_dir" || 14497$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14498 X"$as_dir" : 'X\(//\)[^/]' \| \ 14499 X"$as_dir" : 'X\(//\)$' \| \ 14500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14501echo X"$as_dir" | 14502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14503 s//\1/ 14504 q 14505 } 14506 /^X\(\/\/\)[^/].*/{ 14507 s//\1/ 14508 q 14509 } 14510 /^X\(\/\/\)$/{ 14511 s//\1/ 14512 q 14513 } 14514 /^X\(\/\).*/{ 14515 s//\1/ 14516 q 14517 } 14518 s/.*/./; q'` 14519 test -d "$as_dir" && break 14520 done 14521 test -z "$as_dirs" || eval "mkdir $as_dirs" 14522 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 14523echo "$as_me: error: cannot create directory $as_dir" >&2;} 14524 { (exit 1); exit 1; }; }; } 14525 ac_builddir=. 14526 14527case "$ac_dir" in 14528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14529*) 14530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14531 # A ".." for each directory in $ac_dir_suffix. 14532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 14533 case $ac_top_builddir_sub in 14534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14536 esac ;; 14537esac 14538ac_abs_top_builddir=$ac_pwd 14539ac_abs_builddir=$ac_pwd$ac_dir_suffix 14540# for backward compatibility: 14541ac_top_builddir=$ac_top_build_prefix 14542 14543case $srcdir in 14544 .) # We are building in place. 14545 ac_srcdir=. 14546 ac_top_srcdir=$ac_top_builddir_sub 14547 ac_abs_top_srcdir=$ac_pwd ;; 14548 [\\/]* | ?:[\\/]* ) # Absolute name. 14549 ac_srcdir=$srcdir$ac_dir_suffix; 14550 ac_top_srcdir=$srcdir 14551 ac_abs_top_srcdir=$srcdir ;; 14552 *) # Relative name. 14553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14554 ac_top_srcdir=$ac_top_build_prefix$srcdir 14555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14556esac 14557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14558 14559 14560 case $ac_mode in 14561 :F) 14562 # 14563 # CONFIG_FILE 14564 # 14565 14566 case $INSTALL in 14567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14569 esac 14570_ACEOF 14571 14572cat >>$CONFIG_STATUS <<\_ACEOF 14573# If the template does not know about datarootdir, expand it. 14574# FIXME: This hack should be removed a few years after 2.60. 14575ac_datarootdir_hack=; ac_datarootdir_seen= 14576 14577case `sed -n '/datarootdir/ { 14578 p 14579 q 14580} 14581/@datadir@/p 14582/@docdir@/p 14583/@infodir@/p 14584/@localedir@/p 14585/@mandir@/p 14586' $ac_file_inputs` in 14587*datarootdir*) ac_datarootdir_seen=yes;; 14588*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14589 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14590echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14591_ACEOF 14592cat >>$CONFIG_STATUS <<_ACEOF 14593 ac_datarootdir_hack=' 14594 s&@datadir@&$datadir&g 14595 s&@docdir@&$docdir&g 14596 s&@infodir@&$infodir&g 14597 s&@localedir@&$localedir&g 14598 s&@mandir@&$mandir&g 14599 s&\\\${datarootdir}&$datarootdir&g' ;; 14600esac 14601_ACEOF 14602 14603# Neutralize VPATH when `$srcdir' = `.'. 14604# Shell code in configure.ac might set extrasub. 14605# FIXME: do we really want to maintain this feature? 14606cat >>$CONFIG_STATUS <<_ACEOF 14607 sed "$ac_vpsub 14608$extrasub 14609_ACEOF 14610cat >>$CONFIG_STATUS <<\_ACEOF 14611:t 14612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14613s&@configure_input@&$configure_input&;t t 14614s&@top_builddir@&$ac_top_builddir_sub&;t t 14615s&@srcdir@&$ac_srcdir&;t t 14616s&@abs_srcdir@&$ac_abs_srcdir&;t t 14617s&@top_srcdir@&$ac_top_srcdir&;t t 14618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14619s&@builddir@&$ac_builddir&;t t 14620s&@abs_builddir@&$ac_abs_builddir&;t t 14621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14622s&@INSTALL@&$ac_INSTALL&;t t 14623$ac_datarootdir_hack 14624" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 14625 14626test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14627 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14629 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14630which seems to be undefined. Please make sure it is defined." >&5 14631echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14632which seems to be undefined. Please make sure it is defined." >&2;} 14633 14634 rm -f "$tmp/stdin" 14635 case $ac_file in 14636 -) cat "$tmp/out"; rm -f "$tmp/out";; 14637 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 14638 esac 14639 ;; 14640 14641 14642 14643 esac 14644 14645done # for ac_tag 14646 14647 14648{ (exit 0); exit 0; } 14649_ACEOF 14650chmod +x $CONFIG_STATUS 14651ac_clean_files=$ac_clean_files_save 14652 14653 14654# configure is writing to config.log, and then calls config.status. 14655# config.status does its own redirection, appending to config.log. 14656# Unfortunately, on DOS this fails, as config.log is still kept open 14657# by configure, so config.status won't be able to write to it; its 14658# output is simply discarded. So we exec the FD to /dev/null, 14659# effectively closing config.log, so it can be properly (re)opened and 14660# appended to by config.status. When coming back to configure, we 14661# need to make the FD available again. 14662if test "$no_create" != yes; then 14663 ac_cs_success=: 14664 ac_config_status_args= 14665 test "$silent" = yes && 14666 ac_config_status_args="$ac_config_status_args --quiet" 14667 exec 5>/dev/null 14668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14669 exec 5>>config.log 14670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14671 # would make configure fail if this is the last instruction. 14672 $ac_cs_success || { (exit 1); exit 1; } 14673fi 14674 14675 14676#-------------------------------------------------------------------- 14677