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 Tclexpat 2.6. 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='Tclexpat' 575PACKAGE_TARNAME='tclexpat' 576PACKAGE_VERSION='2.6' 577PACKAGE_STRING='Tclexpat 2.6' 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 653CONFIGDIR 654PACKAGE 655VERSION 656TCLEXPAT_VERSION 657Tclexpat_LIB_FILE 658Tclexpatstub_LIB_FILE 659CYGPATH 660EXEEXT 661PKG_LIB_FILE 662PKG_STUB_LIB_FILE 663PKG_STUB_SOURCES 664PKG_STUB_OBJECTS 665PKG_TCL_SOURCES 666PKG_HEADERS 667PKG_INCLUDES 668PKG_LIBS 669PKG_CFLAGS 670TCL_VERSION 671TCL_PATCH_LEVEL 672TCL_BIN_DIR 673TCL_SRC_DIR 674TCL_LIB_FILE 675TCL_LIB_FLAG 676TCL_LIB_SPEC 677TCL_STUB_LIB_FILE 678TCL_STUB_LIB_FLAG 679TCL_STUB_LIB_SPEC 680CLEANFILES 681TCL_LIBS 682TCL_DEFS 683TCL_EXTRA_CFLAGS 684TCL_LD_FLAGS 685TCL_SHLIB_LD_LIBS 686CC 687CFLAGS 688LDFLAGS 689CPPFLAGS 690ac_ct_CC 691OBJEXT 692CPP 693INSTALL_PROGRAM 694INSTALL_SCRIPT 695INSTALL_DATA 696SET_MAKE 697RANLIB 698GREP 699EGREP 700MATH_LIBS 701Tclxml_VERSION 702Tclxml_BIN_DIR 703Tclxml_SRC_DIR 704Tclxml_LIB_FILE 705Tclxml_LIB_SPEC 706Tclxml_STUB_LIB_FILE 707Tclxml_STUB_LIB_SPEC 708Tclxml_STUB_LIB_PATH 709TCL_INCLUDES 710EXTRA_SOURCES 711TCL_THREADS 712SHARED_BUILD 713AR 714CELIB_DIR 715CFLAGS_DEBUG 716CFLAGS_OPTIMIZE 717CFLAGS_WARNING 718STLIB_LD 719SHLIB_LD 720SHLIB_LD_LIBS 721SHLIB_CFLAGS 722LD_LIBRARY_PATH_VAR 723CFLAGS_DEFAULT 724LDFLAGS_DEFAULT 725TCL_DBGX 726MAKE_LIB 727MAKE_SHARED_LIB 728MAKE_STATIC_LIB 729MAKE_STUB_LIB 730RANLIB_STUB 731VC_MANIFEST_EMBED_DLL 732VC_MANIFEST_EMBED_EXE 733TCLSH_PROG 734FILEMAP 735LIBOBJS 736LTLIBOBJS' 737ac_subst_files='' 738 ac_precious_vars='build_alias 739host_alias 740target_alias 741CC 742CFLAGS 743LDFLAGS 744LIBS 745CPPFLAGS 746CPP' 747 748 749# Initialize some variables set by options. 750ac_init_help= 751ac_init_version=false 752# The variables have the same names as the options, with 753# dashes changed to underlines. 754cache_file=/dev/null 755exec_prefix=NONE 756no_create= 757no_recursion= 758prefix=NONE 759program_prefix=NONE 760program_suffix=NONE 761program_transform_name=s,x,x, 762silent= 763site= 764srcdir= 765verbose= 766x_includes=NONE 767x_libraries=NONE 768 769# Installation directory options. 770# These are left unexpanded so users can "make install exec_prefix=/foo" 771# and all the variables that are supposed to be based on exec_prefix 772# by default will actually change. 773# Use braces instead of parens because sh, perl, etc. also accept them. 774# (The list follows the same order as the GNU Coding Standards.) 775bindir='${exec_prefix}/bin' 776sbindir='${exec_prefix}/sbin' 777libexecdir='${exec_prefix}/libexec' 778datarootdir='${prefix}/share' 779datadir='${datarootdir}' 780sysconfdir='${prefix}/etc' 781sharedstatedir='${prefix}/com' 782localstatedir='${prefix}/var' 783includedir='${prefix}/include' 784oldincludedir='/usr/include' 785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 786infodir='${datarootdir}/info' 787htmldir='${docdir}' 788dvidir='${docdir}' 789pdfdir='${docdir}' 790psdir='${docdir}' 791libdir='${exec_prefix}/lib' 792localedir='${datarootdir}/locale' 793mandir='${datarootdir}/man' 794 795ac_prev= 796ac_dashdash= 797for ac_option 798do 799 # If the previous option needs an argument, assign it. 800 if test -n "$ac_prev"; then 801 eval $ac_prev=\$ac_option 802 ac_prev= 803 continue 804 fi 805 806 case $ac_option in 807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 808 *) ac_optarg=yes ;; 809 esac 810 811 # Accept the important Cygnus configure options, so we can diagnose typos. 812 813 case $ac_dashdash$ac_option in 814 --) 815 ac_dashdash=yes ;; 816 817 -bindir | --bindir | --bindi | --bind | --bin | --bi) 818 ac_prev=bindir ;; 819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 820 bindir=$ac_optarg ;; 821 822 -build | --build | --buil | --bui | --bu) 823 ac_prev=build_alias ;; 824 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 825 build_alias=$ac_optarg ;; 826 827 -cache-file | --cache-file | --cache-fil | --cache-fi \ 828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 829 ac_prev=cache_file ;; 830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 832 cache_file=$ac_optarg ;; 833 834 --config-cache | -C) 835 cache_file=config.cache ;; 836 837 -datadir | --datadir | --datadi | --datad) 838 ac_prev=datadir ;; 839 -datadir=* | --datadir=* | --datadi=* | --datad=*) 840 datadir=$ac_optarg ;; 841 842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 843 | --dataroo | --dataro | --datar) 844 ac_prev=datarootdir ;; 845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 847 datarootdir=$ac_optarg ;; 848 849 -disable-* | --disable-*) 850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 851 # Reject names that are not valid shell variable names. 852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 854 { (exit 1); exit 1; }; } 855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 856 eval enable_$ac_feature=no ;; 857 858 -docdir | --docdir | --docdi | --doc | --do) 859 ac_prev=docdir ;; 860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 861 docdir=$ac_optarg ;; 862 863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 864 ac_prev=dvidir ;; 865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 866 dvidir=$ac_optarg ;; 867 868 -enable-* | --enable-*) 869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 870 # Reject names that are not valid shell variable names. 871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 873 { (exit 1); exit 1; }; } 874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 875 eval enable_$ac_feature=\$ac_optarg ;; 876 877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 879 | --exec | --exe | --ex) 880 ac_prev=exec_prefix ;; 881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 883 | --exec=* | --exe=* | --ex=*) 884 exec_prefix=$ac_optarg ;; 885 886 -gas | --gas | --ga | --g) 887 # Obsolete; use --with-gas. 888 with_gas=yes ;; 889 890 -help | --help | --hel | --he | -h) 891 ac_init_help=long ;; 892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 893 ac_init_help=recursive ;; 894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 895 ac_init_help=short ;; 896 897 -host | --host | --hos | --ho) 898 ac_prev=host_alias ;; 899 -host=* | --host=* | --hos=* | --ho=*) 900 host_alias=$ac_optarg ;; 901 902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 903 ac_prev=htmldir ;; 904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 905 | --ht=*) 906 htmldir=$ac_optarg ;; 907 908 -includedir | --includedir | --includedi | --included | --include \ 909 | --includ | --inclu | --incl | --inc) 910 ac_prev=includedir ;; 911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 912 | --includ=* | --inclu=* | --incl=* | --inc=*) 913 includedir=$ac_optarg ;; 914 915 -infodir | --infodir | --infodi | --infod | --info | --inf) 916 ac_prev=infodir ;; 917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 918 infodir=$ac_optarg ;; 919 920 -libdir | --libdir | --libdi | --libd) 921 ac_prev=libdir ;; 922 -libdir=* | --libdir=* | --libdi=* | --libd=*) 923 libdir=$ac_optarg ;; 924 925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 926 | --libexe | --libex | --libe) 927 ac_prev=libexecdir ;; 928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 929 | --libexe=* | --libex=* | --libe=*) 930 libexecdir=$ac_optarg ;; 931 932 -localedir | --localedir | --localedi | --localed | --locale) 933 ac_prev=localedir ;; 934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 935 localedir=$ac_optarg ;; 936 937 -localstatedir | --localstatedir | --localstatedi | --localstated \ 938 | --localstate | --localstat | --localsta | --localst | --locals) 939 ac_prev=localstatedir ;; 940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 942 localstatedir=$ac_optarg ;; 943 944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 945 ac_prev=mandir ;; 946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 947 mandir=$ac_optarg ;; 948 949 -nfp | --nfp | --nf) 950 # Obsolete; use --without-fp. 951 with_fp=no ;; 952 953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 954 | --no-cr | --no-c | -n) 955 no_create=yes ;; 956 957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 959 no_recursion=yes ;; 960 961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 963 | --oldin | --oldi | --old | --ol | --o) 964 ac_prev=oldincludedir ;; 965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 968 oldincludedir=$ac_optarg ;; 969 970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 971 ac_prev=prefix ;; 972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 973 prefix=$ac_optarg ;; 974 975 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 976 | --program-pre | --program-pr | --program-p) 977 ac_prev=program_prefix ;; 978 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 980 program_prefix=$ac_optarg ;; 981 982 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 983 | --program-suf | --program-su | --program-s) 984 ac_prev=program_suffix ;; 985 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 987 program_suffix=$ac_optarg ;; 988 989 -program-transform-name | --program-transform-name \ 990 | --program-transform-nam | --program-transform-na \ 991 | --program-transform-n | --program-transform- \ 992 | --program-transform | --program-transfor \ 993 | --program-transfo | --program-transf \ 994 | --program-trans | --program-tran \ 995 | --progr-tra | --program-tr | --program-t) 996 ac_prev=program_transform_name ;; 997 -program-transform-name=* | --program-transform-name=* \ 998 | --program-transform-nam=* | --program-transform-na=* \ 999 | --program-transform-n=* | --program-transform-=* \ 1000 | --program-transform=* | --program-transfor=* \ 1001 | --program-transfo=* | --program-transf=* \ 1002 | --program-trans=* | --program-tran=* \ 1003 | --progr-tra=* | --program-tr=* | --program-t=*) 1004 program_transform_name=$ac_optarg ;; 1005 1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1007 ac_prev=pdfdir ;; 1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1009 pdfdir=$ac_optarg ;; 1010 1011 -psdir | --psdir | --psdi | --psd | --ps) 1012 ac_prev=psdir ;; 1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1014 psdir=$ac_optarg ;; 1015 1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1017 | -silent | --silent | --silen | --sile | --sil) 1018 silent=yes ;; 1019 1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1021 ac_prev=sbindir ;; 1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1023 | --sbi=* | --sb=*) 1024 sbindir=$ac_optarg ;; 1025 1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1028 | --sharedst | --shareds | --shared | --share | --shar \ 1029 | --sha | --sh) 1030 ac_prev=sharedstatedir ;; 1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1034 | --sha=* | --sh=*) 1035 sharedstatedir=$ac_optarg ;; 1036 1037 -site | --site | --sit) 1038 ac_prev=site ;; 1039 -site=* | --site=* | --sit=*) 1040 site=$ac_optarg ;; 1041 1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1043 ac_prev=srcdir ;; 1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1045 srcdir=$ac_optarg ;; 1046 1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1048 | --syscon | --sysco | --sysc | --sys | --sy) 1049 ac_prev=sysconfdir ;; 1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1052 sysconfdir=$ac_optarg ;; 1053 1054 -target | --target | --targe | --targ | --tar | --ta | --t) 1055 ac_prev=target_alias ;; 1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1057 target_alias=$ac_optarg ;; 1058 1059 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1060 verbose=yes ;; 1061 1062 -version | --version | --versio | --versi | --vers | -V) 1063 ac_init_version=: ;; 1064 1065 -with-* | --with-*) 1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1072 eval with_$ac_package=\$ac_optarg ;; 1073 1074 -without-* | --without-*) 1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1079 { (exit 1); exit 1; }; } 1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1081 eval with_$ac_package=no ;; 1082 1083 --x) 1084 # Obsolete; use --with-x. 1085 with_x=yes ;; 1086 1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1088 | --x-incl | --x-inc | --x-in | --x-i) 1089 ac_prev=x_includes ;; 1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1092 x_includes=$ac_optarg ;; 1093 1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1096 ac_prev=x_libraries ;; 1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1099 x_libraries=$ac_optarg ;; 1100 1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1102Try \`$0 --help' for more information." >&2 1103 { (exit 1); exit 1; }; } 1104 ;; 1105 1106 *=*) 1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1111 { (exit 1); exit 1; }; } 1112 eval $ac_envvar=\$ac_optarg 1113 export $ac_envvar ;; 1114 1115 *) 1116 # FIXME: should be removed in autoconf 3.0. 1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1121 ;; 1122 1123 esac 1124done 1125 1126if test -n "$ac_prev"; then 1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1129 { (exit 1); exit 1; }; } 1130fi 1131 1132# Be sure to have absolute directory names. 1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1136 libdir localedir mandir 1137do 1138 eval ac_val=\$$ac_var 1139 case $ac_val in 1140 [\\/$]* | ?:[\\/]* ) continue;; 1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1142 esac 1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1144 { (exit 1); exit 1; }; } 1145done 1146 1147# There might be people who depend on the old broken behavior: `$host' 1148# used to hold the argument of --host etc. 1149# FIXME: To remove some day. 1150build=$build_alias 1151host=$host_alias 1152target=$target_alias 1153 1154# FIXME: To remove some day. 1155if test "x$host_alias" != x; then 1156 if test "x$build_alias" = x; then 1157 cross_compiling=maybe 1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1159 If a cross compiler is detected then cross compile mode will be used." >&2 1160 elif test "x$build_alias" != "x$host_alias"; then 1161 cross_compiling=yes 1162 fi 1163fi 1164 1165ac_tool_prefix= 1166test -n "$host_alias" && ac_tool_prefix=$host_alias- 1167 1168test "$silent" = yes && exec 6>/dev/null 1169 1170 1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1172ac_ls_di=`ls -di .` && 1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1175 { (exit 1); exit 1; }; } 1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1178 { (exit 1); exit 1; }; } 1179 1180 1181# Find the source files, if location was not specified. 1182if test -z "$srcdir"; then 1183 ac_srcdir_defaulted=yes 1184 # Try the directory containing this script, then the parent directory. 1185 ac_confdir=`$as_dirname -- "$0" || 1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1187 X"$0" : 'X\(//\)[^/]' \| \ 1188 X"$0" : 'X\(//\)$' \| \ 1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1190echo X"$0" | 1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1192 s//\1/ 1193 q 1194 } 1195 /^X\(\/\/\)[^/].*/{ 1196 s//\1/ 1197 q 1198 } 1199 /^X\(\/\/\)$/{ 1200 s//\1/ 1201 q 1202 } 1203 /^X\(\/\).*/{ 1204 s//\1/ 1205 q 1206 } 1207 s/.*/./; q'` 1208 srcdir=$ac_confdir 1209 if test ! -r "$srcdir/$ac_unique_file"; then 1210 srcdir=.. 1211 fi 1212else 1213 ac_srcdir_defaulted=no 1214fi 1215if test ! -r "$srcdir/$ac_unique_file"; then 1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1218 { (exit 1); exit 1; }; } 1219fi 1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1221ac_abs_confdir=`( 1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1223 { (exit 1); exit 1; }; } 1224 pwd)` 1225# When building in place, set srcdir=. 1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1227 srcdir=. 1228fi 1229# Remove unnecessary trailing slashes from srcdir. 1230# Double slashes in file names in object file debugging info 1231# mess up M-x gdb in Emacs. 1232case $srcdir in 1233*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1234esac 1235for ac_var in $ac_precious_vars; do 1236 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1237 eval ac_env_${ac_var}_value=\$${ac_var} 1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1239 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1240done 1241 1242# 1243# Report the --help message. 1244# 1245if test "$ac_init_help" = "long"; then 1246 # Omit some internal or obsolete options to make the list less imposing. 1247 # This message is too long to be a string in the A/UX 3.1 sh. 1248 cat <<_ACEOF 1249\`configure' configures Tclexpat 2.6 to adapt to many kinds of systems. 1250 1251Usage: $0 [OPTION]... [VAR=VALUE]... 1252 1253To assign environment variables (e.g., CC, CFLAGS...), specify them as 1254VAR=VALUE. See below for descriptions of some of the useful variables. 1255 1256Defaults for the options are specified in brackets. 1257 1258Configuration: 1259 -h, --help display this help and exit 1260 --help=short display options specific to this package 1261 --help=recursive display the short help of all the included packages 1262 -V, --version display version information and exit 1263 -q, --quiet, --silent do not print \`checking...' messages 1264 --cache-file=FILE cache test results in FILE [disabled] 1265 -C, --config-cache alias for \`--cache-file=config.cache' 1266 -n, --no-create do not create output files 1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1268 1269Installation directories: 1270 --prefix=PREFIX install architecture-independent files in PREFIX 1271 [$ac_default_prefix] 1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1273 [PREFIX] 1274 1275By default, \`make install' will install all the files in 1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1278for instance \`--prefix=\$HOME'. 1279 1280For better control, use the options below. 1281 1282Fine tuning of the installation directories: 1283 --bindir=DIR user executables [EPREFIX/bin] 1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1289 --libdir=DIR object code libraries [EPREFIX/lib] 1290 --includedir=DIR C header files [PREFIX/include] 1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1297 --docdir=DIR documentation root [DATAROOTDIR/doc/tclexpat] 1298 --htmldir=DIR html documentation [DOCDIR] 1299 --dvidir=DIR dvi documentation [DOCDIR] 1300 --pdfdir=DIR pdf documentation [DOCDIR] 1301 --psdir=DIR ps documentation [DOCDIR] 1302_ACEOF 1303 1304 cat <<\_ACEOF 1305_ACEOF 1306fi 1307 1308if test -n "$ac_init_help"; then 1309 case $ac_init_help in 1310 short | recursive ) echo "Configuration of Tclexpat 2.6:";; 1311 esac 1312 cat <<\_ACEOF 1313 1314Optional Features: 1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1317 --enable-threads build with threads 1318 --enable-shared build and link with shared libraries (default: on) 1319 --enable-64bit enable 64bit support (default: off) 1320 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1321 --disable-rpath disable rpath support (default: on) 1322 --enable-wince enable Win/CE support (where applicable) 1323 --enable-symbols build with debugging symbols (default: off) 1324 1325Optional Packages: 1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1328 --with-tcl directory containing tcl configuration 1329 (tclConfig.sh) 1330 --with-Tclxml directory containing Tclxml configuration (TclxmlConfig.sh) 1331 --with-tclinclude directory containing the public Tcl header files 1332 --with-celib=DIR use Windows/CE support library from DIR 1333 1334Some influential environment variables: 1335 CC C compiler command 1336 CFLAGS C compiler flags 1337 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1338 nonstandard directory <lib dir> 1339 LIBS libraries to pass to the linker, e.g. -l<library> 1340 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1341 you have headers in a nonstandard directory <include dir> 1342 CPP C preprocessor 1343 1344Use these variables to override the choices made by `configure' or to help 1345it to find libraries and programs with nonstandard names/locations. 1346 1347_ACEOF 1348ac_status=$? 1349fi 1350 1351if test "$ac_init_help" = "recursive"; then 1352 # If there are subdirs, report their specific --help. 1353 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1354 test -d "$ac_dir" || continue 1355 ac_builddir=. 1356 1357case "$ac_dir" in 1358.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1359*) 1360 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1361 # A ".." for each directory in $ac_dir_suffix. 1362 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1363 case $ac_top_builddir_sub in 1364 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1365 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1366 esac ;; 1367esac 1368ac_abs_top_builddir=$ac_pwd 1369ac_abs_builddir=$ac_pwd$ac_dir_suffix 1370# for backward compatibility: 1371ac_top_builddir=$ac_top_build_prefix 1372 1373case $srcdir in 1374 .) # We are building in place. 1375 ac_srcdir=. 1376 ac_top_srcdir=$ac_top_builddir_sub 1377 ac_abs_top_srcdir=$ac_pwd ;; 1378 [\\/]* | ?:[\\/]* ) # Absolute name. 1379 ac_srcdir=$srcdir$ac_dir_suffix; 1380 ac_top_srcdir=$srcdir 1381 ac_abs_top_srcdir=$srcdir ;; 1382 *) # Relative name. 1383 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1384 ac_top_srcdir=$ac_top_build_prefix$srcdir 1385 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1386esac 1387ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1388 1389 cd "$ac_dir" || { ac_status=$?; continue; } 1390 # Check for guested configure. 1391 if test -f "$ac_srcdir/configure.gnu"; then 1392 echo && 1393 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1394 elif test -f "$ac_srcdir/configure"; then 1395 echo && 1396 $SHELL "$ac_srcdir/configure" --help=recursive 1397 else 1398 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1399 fi || ac_status=$? 1400 cd "$ac_pwd" || { ac_status=$?; break; } 1401 done 1402fi 1403 1404test -n "$ac_init_help" && exit $ac_status 1405if $ac_init_version; then 1406 cat <<\_ACEOF 1407Tclexpat configure 2.6 1408generated by GNU Autoconf 2.61 1409 1410Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14112002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1412This configure script is free software; the Free Software Foundation 1413gives unlimited permission to copy, distribute and modify it. 1414_ACEOF 1415 exit 1416fi 1417cat >config.log <<_ACEOF 1418This file contains any messages produced by compilers while 1419running configure, to aid debugging if configure makes a mistake. 1420 1421It was created by Tclexpat $as_me 2.6, which was 1422generated by GNU Autoconf 2.61. Invocation command line was 1423 1424 $ $0 $@ 1425 1426_ACEOF 1427exec 5>>config.log 1428{ 1429cat <<_ASUNAME 1430## --------- ## 1431## Platform. ## 1432## --------- ## 1433 1434hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1435uname -m = `(uname -m) 2>/dev/null || echo unknown` 1436uname -r = `(uname -r) 2>/dev/null || echo unknown` 1437uname -s = `(uname -s) 2>/dev/null || echo unknown` 1438uname -v = `(uname -v) 2>/dev/null || echo unknown` 1439 1440/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1441/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1442 1443/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1444/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1445/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1446/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1447/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1448/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1449/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1450 1451_ASUNAME 1452 1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1454for as_dir in $PATH 1455do 1456 IFS=$as_save_IFS 1457 test -z "$as_dir" && as_dir=. 1458 echo "PATH: $as_dir" 1459done 1460IFS=$as_save_IFS 1461 1462} >&5 1463 1464cat >&5 <<_ACEOF 1465 1466 1467## ----------- ## 1468## Core tests. ## 1469## ----------- ## 1470 1471_ACEOF 1472 1473 1474# Keep a trace of the command line. 1475# Strip out --no-create and --no-recursion so they do not pile up. 1476# Strip out --silent because we don't want to record it for future runs. 1477# Also quote any args containing shell meta-characters. 1478# Make two passes to allow for proper duplicate-argument suppression. 1479ac_configure_args= 1480ac_configure_args0= 1481ac_configure_args1= 1482ac_must_keep_next=false 1483for ac_pass in 1 2 1484do 1485 for ac_arg 1486 do 1487 case $ac_arg in 1488 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1490 | -silent | --silent | --silen | --sile | --sil) 1491 continue ;; 1492 *\'*) 1493 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1494 esac 1495 case $ac_pass in 1496 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1497 2) 1498 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1499 if test $ac_must_keep_next = true; then 1500 ac_must_keep_next=false # Got value, back to normal. 1501 else 1502 case $ac_arg in 1503 *=* | --config-cache | -C | -disable-* | --disable-* \ 1504 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1505 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1506 | -with-* | --with-* | -without-* | --without-* | --x) 1507 case "$ac_configure_args0 " in 1508 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1509 esac 1510 ;; 1511 -* ) ac_must_keep_next=true ;; 1512 esac 1513 fi 1514 ac_configure_args="$ac_configure_args '$ac_arg'" 1515 ;; 1516 esac 1517 done 1518done 1519$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1520$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1521 1522# When interrupted or exit'd, cleanup temporary files, and complete 1523# config.log. We remove comments because anyway the quotes in there 1524# would cause problems or look ugly. 1525# WARNING: Use '\'' to represent an apostrophe within the trap. 1526# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1527trap 'exit_status=$? 1528 # Save into config.log some information that might help in debugging. 1529 { 1530 echo 1531 1532 cat <<\_ASBOX 1533## ---------------- ## 1534## Cache variables. ## 1535## ---------------- ## 1536_ASBOX 1537 echo 1538 # The following way of writing the cache mishandles newlines in values, 1539( 1540 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1541 eval ac_val=\$$ac_var 1542 case $ac_val in #( 1543 *${as_nl}*) 1544 case $ac_var in #( 1545 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1546echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1547 esac 1548 case $ac_var in #( 1549 _ | IFS | as_nl) ;; #( 1550 *) $as_unset $ac_var ;; 1551 esac ;; 1552 esac 1553 done 1554 (set) 2>&1 | 1555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1556 *${as_nl}ac_space=\ *) 1557 sed -n \ 1558 "s/'\''/'\''\\\\'\'''\''/g; 1559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1560 ;; #( 1561 *) 1562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1563 ;; 1564 esac | 1565 sort 1566) 1567 echo 1568 1569 cat <<\_ASBOX 1570## ----------------- ## 1571## Output variables. ## 1572## ----------------- ## 1573_ASBOX 1574 echo 1575 for ac_var in $ac_subst_vars 1576 do 1577 eval ac_val=\$$ac_var 1578 case $ac_val in 1579 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1580 esac 1581 echo "$ac_var='\''$ac_val'\''" 1582 done | sort 1583 echo 1584 1585 if test -n "$ac_subst_files"; then 1586 cat <<\_ASBOX 1587## ------------------- ## 1588## File substitutions. ## 1589## ------------------- ## 1590_ASBOX 1591 echo 1592 for ac_var in $ac_subst_files 1593 do 1594 eval ac_val=\$$ac_var 1595 case $ac_val in 1596 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1597 esac 1598 echo "$ac_var='\''$ac_val'\''" 1599 done | sort 1600 echo 1601 fi 1602 1603 if test -s confdefs.h; then 1604 cat <<\_ASBOX 1605## ----------- ## 1606## confdefs.h. ## 1607## ----------- ## 1608_ASBOX 1609 echo 1610 cat confdefs.h 1611 echo 1612 fi 1613 test "$ac_signal" != 0 && 1614 echo "$as_me: caught signal $ac_signal" 1615 echo "$as_me: exit $exit_status" 1616 } >&5 1617 rm -f core *.core core.conftest.* && 1618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1619 exit $exit_status 1620' 0 1621for ac_signal in 1 2 13 15; do 1622 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1623done 1624ac_signal=0 1625 1626# confdefs.h avoids OS command line length limits that DEFS can exceed. 1627rm -f -r conftest* confdefs.h 1628 1629# Predefined preprocessor variables. 1630 1631cat >>confdefs.h <<_ACEOF 1632#define PACKAGE_NAME "$PACKAGE_NAME" 1633_ACEOF 1634 1635 1636cat >>confdefs.h <<_ACEOF 1637#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1638_ACEOF 1639 1640 1641cat >>confdefs.h <<_ACEOF 1642#define PACKAGE_VERSION "$PACKAGE_VERSION" 1643_ACEOF 1644 1645 1646cat >>confdefs.h <<_ACEOF 1647#define PACKAGE_STRING "$PACKAGE_STRING" 1648_ACEOF 1649 1650 1651cat >>confdefs.h <<_ACEOF 1652#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1653_ACEOF 1654 1655 1656# Let the site file select an alternate cache file if it wants to. 1657# Prefer explicitly selected file to automatically selected ones. 1658if test -n "$CONFIG_SITE"; then 1659 set x "$CONFIG_SITE" 1660elif test "x$prefix" != xNONE; then 1661 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1662else 1663 set x "$ac_default_prefix/share/config.site" \ 1664 "$ac_default_prefix/etc/config.site" 1665fi 1666shift 1667for ac_site_file 1668do 1669 if test -r "$ac_site_file"; then 1670 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1671echo "$as_me: loading site script $ac_site_file" >&6;} 1672 sed 's/^/| /' "$ac_site_file" >&5 1673 . "$ac_site_file" 1674 fi 1675done 1676 1677if test -r "$cache_file"; then 1678 # Some versions of bash will fail to source /dev/null (special 1679 # files actually), so we avoid doing that. 1680 if test -f "$cache_file"; then 1681 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1682echo "$as_me: loading cache $cache_file" >&6;} 1683 case $cache_file in 1684 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1685 *) . "./$cache_file";; 1686 esac 1687 fi 1688else 1689 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1690echo "$as_me: creating cache $cache_file" >&6;} 1691 >$cache_file 1692fi 1693 1694# Check that the precious variables saved in the cache have kept the same 1695# value. 1696ac_cache_corrupted=false 1697for ac_var in $ac_precious_vars; do 1698 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1699 eval ac_new_set=\$ac_env_${ac_var}_set 1700 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1701 eval ac_new_val=\$ac_env_${ac_var}_value 1702 case $ac_old_set,$ac_new_set in 1703 set,) 1704 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1705echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1706 ac_cache_corrupted=: ;; 1707 ,set) 1708 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1709echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1710 ac_cache_corrupted=: ;; 1711 ,);; 1712 *) 1713 if test "x$ac_old_val" != "x$ac_new_val"; then 1714 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1715echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1716 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1717echo "$as_me: former value: $ac_old_val" >&2;} 1718 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1719echo "$as_me: current value: $ac_new_val" >&2;} 1720 ac_cache_corrupted=: 1721 fi;; 1722 esac 1723 # Pass precious variables to config.status. 1724 if test "$ac_new_set" = set; then 1725 case $ac_new_val in 1726 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1727 *) ac_arg=$ac_var=$ac_new_val ;; 1728 esac 1729 case " $ac_configure_args " in 1730 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1731 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1732 esac 1733 fi 1734done 1735if $ac_cache_corrupted; then 1736 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1737echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1738 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1739echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1740 { (exit 1); exit 1; }; } 1741fi 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767ac_ext=c 1768ac_cpp='$CPP $CPPFLAGS' 1769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1771ac_compiler_gnu=$ac_cv_c_compiler_gnu 1772 1773 1774 1775ac_aux_dir= 1776for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1777 if test -f "$ac_dir/install-sh"; then 1778 ac_aux_dir=$ac_dir 1779 ac_install_sh="$ac_aux_dir/install-sh -c" 1780 break 1781 elif test -f "$ac_dir/install.sh"; then 1782 ac_aux_dir=$ac_dir 1783 ac_install_sh="$ac_aux_dir/install.sh -c" 1784 break 1785 elif test -f "$ac_dir/shtool"; then 1786 ac_aux_dir=$ac_dir 1787 ac_install_sh="$ac_aux_dir/shtool install -c" 1788 break 1789 fi 1790done 1791if test -z "$ac_aux_dir"; then 1792 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1793echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1794 { (exit 1); exit 1; }; } 1795fi 1796 1797# These three variables are undocumented and unsupported, 1798# and are intended to be withdrawn in a future Autoconf release. 1799# They can cause serious problems if a builder's source tree is in a directory 1800# whose full name contains unusual characters. 1801ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1802ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1803ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1804 1805 1806CONFIGDIR=${srcdir}/../tclconfig 1807 1808 1809#-------------------------------------------------------------------- 1810# Setting our package name and version numbers. The NODOT_VERSION is 1811# required for constructing the library name on systems that don't like 1812# dots in library names (Windows). The VERSION variable is used on the 1813# other systems. 1814#-------------------------------------------------------------------- 1815 1816PACKAGE=Tclexpat 1817 1818MAJOR_VERSION=2 1819MINOR_VERSION=6 1820#MAJOR_VERSION=10 1821#MINOR_VERSION=0 1822PATCHLEVEL= 1823 1824VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL} 1825NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION} 1826TCLEXPAT_VERSION=${VERSION} 1827 1828 1829 1830 1831 1832# This package name must be replaced statically for AC_SUBST to work 1833 1834# Substitute stub_LIB_FILE if your package creates a stub library too. 1835 1836 1837#-------------------------------------------------------------------- 1838# This was placed here so that we can compile with -DVERSION="1.2" to 1839# encode the package version directly into the source files. 1840#-------------------------------------------------------------------- 1841 1842eval cat >>confdefs.h <<_ACEOF 1843#define VERSION "${VERSION}" 1844_ACEOF 1845 1846eval cat >>confdefs.h <<_ACEOF 1847#define TCLEXPAT_VERSION "${TCLEXPAT_VERSION}" 1848_ACEOF 1849 1850 1851#-------------------------------------------------------------------- 1852# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1853# This will define a ${TEA_PLATFORM} variable == "unix" or "windows". 1854#-------------------------------------------------------------------- 1855 1856 1857 # TEA extensions pass this us the version of TEA they think they 1858 # are compatible with. 1859 TEA_VERSION="3.9" 1860 1861 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1862echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1863 if test x"${PACKAGE_NAME}" = x ; then 1864 { { echo "$as_me:$LINENO: error: 1865The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1866echo "$as_me: error: 1867The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1868 { (exit 1); exit 1; }; } 1869 fi 1870 if test x"3.9" = x ; then 1871 { { echo "$as_me:$LINENO: error: 1872TEA version not specified." >&5 1873echo "$as_me: error: 1874TEA version not specified." >&2;} 1875 { (exit 1); exit 1; }; } 1876 elif test "3.9" != "${TEA_VERSION}" ; then 1877 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1878echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1879 else 1880 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1881echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1882 fi 1883 case "`uname -s`" in 1884 *win32*|*WIN32*|*MINGW32_*) 1885 # Extract the first word of "cygpath", so it can be a program name with args. 1886set dummy cygpath; ac_word=$2 1887{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1889if test "${ac_cv_prog_CYGPATH+set}" = set; then 1890 echo $ECHO_N "(cached) $ECHO_C" >&6 1891else 1892 if test -n "$CYGPATH"; then 1893 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1894else 1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1896for as_dir in $PATH 1897do 1898 IFS=$as_save_IFS 1899 test -z "$as_dir" && as_dir=. 1900 for ac_exec_ext in '' $ac_executable_extensions; do 1901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1902 ac_cv_prog_CYGPATH="cygpath -w" 1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1904 break 2 1905 fi 1906done 1907done 1908IFS=$as_save_IFS 1909 1910 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1911fi 1912fi 1913CYGPATH=$ac_cv_prog_CYGPATH 1914if test -n "$CYGPATH"; then 1915 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1916echo "${ECHO_T}$CYGPATH" >&6; } 1917else 1918 { echo "$as_me:$LINENO: result: no" >&5 1919echo "${ECHO_T}no" >&6; } 1920fi 1921 1922 1923 EXEEXT=".exe" 1924 TEA_PLATFORM="windows" 1925 ;; 1926 *CYGWIN_*) 1927 CYGPATH=echo 1928 EXEEXT=".exe" 1929 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1930 ;; 1931 *) 1932 CYGPATH=echo 1933 EXEEXT="" 1934 TEA_PLATFORM="unix" 1935 ;; 1936 esac 1937 1938 # Check if exec_prefix is set. If not use fall back to prefix. 1939 # Note when adjusted, so that TEA_PREFIX can correct for this. 1940 # This is needed for recursive configures, since autoconf propagates 1941 # $prefix, but not $exec_prefix (doh!). 1942 if test x$exec_prefix = xNONE ; then 1943 exec_prefix_default=yes 1944 exec_prefix=$prefix 1945 fi 1946 1947 1948 1949 1950 # This package name must be replaced statically for AC_SUBST to work 1951 1952 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1953 1954 1955 # We AC_SUBST these here to ensure they are subst'ed, 1956 # in case the user doesn't call TEA_ADD_... 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966#-------------------------------------------------------------------- 1967# Load the tclConfig.sh file 1968#-------------------------------------------------------------------- 1969 1970 1971 1972 # 1973 # Ok, lets find the tcl configuration 1974 # First, look for one uninstalled. 1975 # the alternative search directory is invoked by --with-tcl 1976 # 1977 1978 if test x"${no_tcl}" = x ; then 1979 # we reset no_tcl in case something fails here 1980 no_tcl=true 1981 1982# Check whether --with-tcl was given. 1983if test "${with_tcl+set}" = set; then 1984 withval=$with_tcl; with_tclconfig="${withval}" 1985fi 1986 1987 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1988echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1989 if test "${ac_cv_c_tclconfig+set}" = set; then 1990 echo $ECHO_N "(cached) $ECHO_C" >&6 1991else 1992 1993 1994 # First check to see if --with-tcl was specified. 1995 if test x"${with_tclconfig}" != x ; then 1996 case "${with_tclconfig}" in 1997 */tclConfig.sh ) 1998 if test -f "${with_tclconfig}"; then 1999 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2000echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2001 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2002 fi ;; 2003 esac 2004 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2005 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2006 else 2007 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 2008echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 2009 { (exit 1); exit 1; }; } 2010 fi 2011 fi 2012 2013 # then check for a private Tcl installation 2014 if test x"${ac_cv_c_tclconfig}" = x ; then 2015 for i in \ 2016 ../tcl \ 2017 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2018 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2019 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2020 ../../tcl \ 2021 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2022 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2023 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2024 ../../../tcl \ 2025 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2026 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2027 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2028 if test "${TEA_PLATFORM}" = "windows" \ 2029 -a -f "$i/win/tclConfig.sh" ; then 2030 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2031 break 2032 fi 2033 if test -f "$i/unix/tclConfig.sh" ; then 2034 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2035 break 2036 fi 2037 done 2038 fi 2039 2040 # on Darwin, check in Framework installation locations 2041 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2042 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2043 `ls -d /Library/Frameworks 2>/dev/null` \ 2044 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2045 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2046 ; do 2047 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2048 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2049 break 2050 fi 2051 done 2052 fi 2053 2054 # TEA specific: on Windows, check in common installation locations 2055 if test "${TEA_PLATFORM}" = "windows" \ 2056 -a x"${ac_cv_c_tclconfig}" = x ; then 2057 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2058 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2059 ; do 2060 if test -f "$i/tclConfig.sh" ; then 2061 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2062 break 2063 fi 2064 done 2065 fi 2066 2067 # check in a few common install locations 2068 if test x"${ac_cv_c_tclconfig}" = x ; then 2069 for i in `ls -d ${libdir} 2>/dev/null` \ 2070 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2071 `ls -d ${prefix}/lib 2>/dev/null` \ 2072 `ls -d /usr/local/lib 2>/dev/null` \ 2073 `ls -d /usr/contrib/lib 2>/dev/null` \ 2074 `ls -d /usr/lib 2>/dev/null` \ 2075 `ls -d /usr/lib64 2>/dev/null` \ 2076 ; do 2077 if test -f "$i/tclConfig.sh" ; then 2078 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2079 break 2080 fi 2081 done 2082 fi 2083 2084 # check in a few other private locations 2085 if test x"${ac_cv_c_tclconfig}" = x ; then 2086 for i in \ 2087 ${srcdir}/../tcl \ 2088 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2089 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2090 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2091 if test "${TEA_PLATFORM}" = "windows" \ 2092 -a -f "$i/win/tclConfig.sh" ; then 2093 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2094 break 2095 fi 2096 if test -f "$i/unix/tclConfig.sh" ; then 2097 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2098 break 2099 fi 2100 done 2101 fi 2102 2103fi 2104 2105 2106 if test x"${ac_cv_c_tclconfig}" = x ; then 2107 TCL_BIN_DIR="# no Tcl configs found" 2108 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2109echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2110 { (exit 1); exit 1; }; } 2111 else 2112 no_tcl= 2113 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2114 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2115echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2116 fi 2117 fi 2118 2119 2120 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2121echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2122 2123 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2124 { echo "$as_me:$LINENO: result: loading" >&5 2125echo "${ECHO_T}loading" >&6; } 2126 . "${TCL_BIN_DIR}/tclConfig.sh" 2127 else 2128 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2129echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2130 fi 2131 2132 # eval is required to do the TCL_DBGX substitution 2133 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2134 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2135 2136 # If the TCL_BIN_DIR is the build directory (not the install directory), 2137 # then set the common variable name to the value of the build variables. 2138 # For example, the variable TCL_LIB_SPEC will be set to the value 2139 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2140 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2141 # installed and uninstalled version of Tcl. 2142 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2143 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2144 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2145 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2146 elif test "`uname -s`" = "Darwin"; then 2147 # If Tcl was built as a framework, attempt to use the libraries 2148 # from the framework at the given location so that linking works 2149 # against Tcl.framework installed in an arbitrary location. 2150 case ${TCL_DEFS} in 2151 *TCL_FRAMEWORK*) 2152 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2153 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2154 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2155 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2156 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2157 break 2158 fi 2159 done 2160 fi 2161 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2162 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2163 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2164 fi 2165 ;; 2166 esac 2167 fi 2168 2169 # eval is required to do the TCL_DBGX substitution 2170 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2171 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2172 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2173 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 case "`uname -s`" in 2189 *CYGWIN_*) 2190 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2191echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2192 case ${TCL_EXTRA_CFLAGS} in 2193 *-mwin32*|*-mno-cygwin*) 2194 TEA_PLATFORM="windows" 2195 CFLAGS="$CFLAGS -mwin32" 2196 { echo "$as_me:$LINENO: result: win32" >&5 2197echo "${ECHO_T}win32" >&6; } 2198 ;; 2199 *) 2200 TEA_PLATFORM="unix" 2201 { echo "$as_me:$LINENO: result: unix" >&5 2202echo "${ECHO_T}unix" >&6; } 2203 ;; 2204 esac 2205 EXEEXT=".exe" 2206 ;; 2207 *) 2208 ;; 2209 esac 2210 2211 # Do this here as we have fully defined TEA_PLATFORM now 2212 if test "${TEA_PLATFORM}" = "windows" ; then 2213 # The BUILD_$pkg is to define the correct extern storage class 2214 # handling when making this package 2215 2216cat >>confdefs.h <<_ACEOF 2217#define BUILD_${PACKAGE_NAME} 2218_ACEOF 2219 2220 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2221 fi 2222 2223 # TEA specific: 2224 2225 2226 2227 2228 2229 2230 2231 2232#----------------------------------------------------------------------- 2233# Handle the --prefix=... option by defaulting to what Tcl gave. 2234# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2235#----------------------------------------------------------------------- 2236 2237 2238 if test "${prefix}" = "NONE"; then 2239 prefix_default=yes 2240 if test x"${TCL_PREFIX}" != x; then 2241 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2242echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2243 prefix=${TCL_PREFIX} 2244 else 2245 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2246echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2247 prefix=/usr/local 2248 fi 2249 fi 2250 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2251 -o x"${exec_prefix_default}" = x"yes" ; then 2252 if test x"${TCL_EXEC_PREFIX}" != x; then 2253 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2254echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2255 exec_prefix=${TCL_EXEC_PREFIX} 2256 else 2257 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2258echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2259 exec_prefix=$prefix 2260 fi 2261 fi 2262 2263 2264#----------------------------------------------------------------------- 2265# Standard compiler checks. 2266# This sets up CC by using the CC env var, or looks for gcc otherwise. 2267# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2268# the basic setup necessary to compile executables. 2269#----------------------------------------------------------------------- 2270 2271 2272 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2273 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2274 2275 # If the user did not set CFLAGS, set it now to keep 2276 # the AC_PROG_CC macro from adding "-g -O2". 2277 if test "${CFLAGS+set}" != "set" ; then 2278 CFLAGS="" 2279 fi 2280 2281 ac_ext=c 2282ac_cpp='$CPP $CPPFLAGS' 2283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2285ac_compiler_gnu=$ac_cv_c_compiler_gnu 2286if test -n "$ac_tool_prefix"; then 2287 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2288set dummy ${ac_tool_prefix}gcc; ac_word=$2 2289{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2291if test "${ac_cv_prog_CC+set}" = set; then 2292 echo $ECHO_N "(cached) $ECHO_C" >&6 2293else 2294 if test -n "$CC"; then 2295 ac_cv_prog_CC="$CC" # Let the user override the test. 2296else 2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2298for as_dir in $PATH 2299do 2300 IFS=$as_save_IFS 2301 test -z "$as_dir" && as_dir=. 2302 for ac_exec_ext in '' $ac_executable_extensions; do 2303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2304 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2306 break 2 2307 fi 2308done 2309done 2310IFS=$as_save_IFS 2311 2312fi 2313fi 2314CC=$ac_cv_prog_CC 2315if test -n "$CC"; then 2316 { echo "$as_me:$LINENO: result: $CC" >&5 2317echo "${ECHO_T}$CC" >&6; } 2318else 2319 { echo "$as_me:$LINENO: result: no" >&5 2320echo "${ECHO_T}no" >&6; } 2321fi 2322 2323 2324fi 2325if test -z "$ac_cv_prog_CC"; then 2326 ac_ct_CC=$CC 2327 # Extract the first word of "gcc", so it can be a program name with args. 2328set dummy gcc; ac_word=$2 2329{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2331if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2332 echo $ECHO_N "(cached) $ECHO_C" >&6 2333else 2334 if test -n "$ac_ct_CC"; then 2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2336else 2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2344 ac_cv_prog_ac_ct_CC="gcc" 2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2346 break 2 2347 fi 2348done 2349done 2350IFS=$as_save_IFS 2351 2352fi 2353fi 2354ac_ct_CC=$ac_cv_prog_ac_ct_CC 2355if test -n "$ac_ct_CC"; then 2356 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2357echo "${ECHO_T}$ac_ct_CC" >&6; } 2358else 2359 { echo "$as_me:$LINENO: result: no" >&5 2360echo "${ECHO_T}no" >&6; } 2361fi 2362 2363 if test "x$ac_ct_CC" = x; then 2364 CC="" 2365 else 2366 case $cross_compiling:$ac_tool_warned in 2367yes:) 2368{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2369whose name does not start with the host triplet. If you think this 2370configuration is useful to you, please write to autoconf@gnu.org." >&5 2371echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2372whose name does not start with the host triplet. If you think this 2373configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2374ac_tool_warned=yes ;; 2375esac 2376 CC=$ac_ct_CC 2377 fi 2378else 2379 CC="$ac_cv_prog_CC" 2380fi 2381 2382if test -z "$CC"; then 2383 if test -n "$ac_tool_prefix"; then 2384 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2385set dummy ${ac_tool_prefix}cc; ac_word=$2 2386{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2388if test "${ac_cv_prog_CC+set}" = set; then 2389 echo $ECHO_N "(cached) $ECHO_C" >&6 2390else 2391 if test -n "$CC"; then 2392 ac_cv_prog_CC="$CC" # Let the user override the test. 2393else 2394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2395for as_dir in $PATH 2396do 2397 IFS=$as_save_IFS 2398 test -z "$as_dir" && as_dir=. 2399 for ac_exec_ext in '' $ac_executable_extensions; do 2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2401 ac_cv_prog_CC="${ac_tool_prefix}cc" 2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2403 break 2 2404 fi 2405done 2406done 2407IFS=$as_save_IFS 2408 2409fi 2410fi 2411CC=$ac_cv_prog_CC 2412if test -n "$CC"; then 2413 { echo "$as_me:$LINENO: result: $CC" >&5 2414echo "${ECHO_T}$CC" >&6; } 2415else 2416 { echo "$as_me:$LINENO: result: no" >&5 2417echo "${ECHO_T}no" >&6; } 2418fi 2419 2420 2421 fi 2422fi 2423if test -z "$CC"; then 2424 # Extract the first word of "cc", so it can be a program name with args. 2425set dummy cc; ac_word=$2 2426{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2428if test "${ac_cv_prog_CC+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430else 2431 if test -n "$CC"; then 2432 ac_cv_prog_CC="$CC" # Let the user override the test. 2433else 2434 ac_prog_rejected=no 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436for as_dir in $PATH 2437do 2438 IFS=$as_save_IFS 2439 test -z "$as_dir" && as_dir=. 2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2442 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2443 ac_prog_rejected=yes 2444 continue 2445 fi 2446 ac_cv_prog_CC="cc" 2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451done 2452IFS=$as_save_IFS 2453 2454if test $ac_prog_rejected = yes; then 2455 # We found a bogon in the path, so make sure we never use it. 2456 set dummy $ac_cv_prog_CC 2457 shift 2458 if test $# != 0; then 2459 # We chose a different compiler from the bogus one. 2460 # However, it has the same basename, so the bogon will be chosen 2461 # first if we set CC to just the basename; use the full file name. 2462 shift 2463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2464 fi 2465fi 2466fi 2467fi 2468CC=$ac_cv_prog_CC 2469if test -n "$CC"; then 2470 { echo "$as_me:$LINENO: result: $CC" >&5 2471echo "${ECHO_T}$CC" >&6; } 2472else 2473 { echo "$as_me:$LINENO: result: no" >&5 2474echo "${ECHO_T}no" >&6; } 2475fi 2476 2477 2478fi 2479if test -z "$CC"; then 2480 if test -n "$ac_tool_prefix"; then 2481 for ac_prog in cl.exe 2482 do 2483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2484set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2485{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2487if test "${ac_cv_prog_CC+set}" = set; then 2488 echo $ECHO_N "(cached) $ECHO_C" >&6 2489else 2490 if test -n "$CC"; then 2491 ac_cv_prog_CC="$CC" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510CC=$ac_cv_prog_CC 2511if test -n "$CC"; then 2512 { echo "$as_me:$LINENO: result: $CC" >&5 2513echo "${ECHO_T}$CC" >&6; } 2514else 2515 { echo "$as_me:$LINENO: result: no" >&5 2516echo "${ECHO_T}no" >&6; } 2517fi 2518 2519 2520 test -n "$CC" && break 2521 done 2522fi 2523if test -z "$CC"; then 2524 ac_ct_CC=$CC 2525 for ac_prog in cl.exe 2526do 2527 # Extract the first word of "$ac_prog", so it can be a program name with args. 2528set dummy $ac_prog; ac_word=$2 2529{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2531if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 if test -n "$ac_ct_CC"; then 2535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2536else 2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538for as_dir in $PATH 2539do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 for ac_exec_ext in '' $ac_executable_extensions; do 2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2544 ac_cv_prog_ac_ct_CC="$ac_prog" 2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2546 break 2 2547 fi 2548done 2549done 2550IFS=$as_save_IFS 2551 2552fi 2553fi 2554ac_ct_CC=$ac_cv_prog_ac_ct_CC 2555if test -n "$ac_ct_CC"; then 2556 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2557echo "${ECHO_T}$ac_ct_CC" >&6; } 2558else 2559 { echo "$as_me:$LINENO: result: no" >&5 2560echo "${ECHO_T}no" >&6; } 2561fi 2562 2563 2564 test -n "$ac_ct_CC" && break 2565done 2566 2567 if test "x$ac_ct_CC" = x; then 2568 CC="" 2569 else 2570 case $cross_compiling:$ac_tool_warned in 2571yes:) 2572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2573whose name does not start with the host triplet. If you think this 2574configuration is useful to you, please write to autoconf@gnu.org." >&5 2575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2576whose name does not start with the host triplet. If you think this 2577configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2578ac_tool_warned=yes ;; 2579esac 2580 CC=$ac_ct_CC 2581 fi 2582fi 2583 2584fi 2585 2586 2587test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2588See \`config.log' for more details." >&5 2589echo "$as_me: error: no acceptable C compiler found in \$PATH 2590See \`config.log' for more details." >&2;} 2591 { (exit 1); exit 1; }; } 2592 2593# Provide some information about the compiler. 2594echo "$as_me:$LINENO: checking for C compiler version" >&5 2595ac_compiler=`set X $ac_compile; echo $2` 2596{ (ac_try="$ac_compiler --version >&5" 2597case "(($ac_try" in 2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2599 *) ac_try_echo=$ac_try;; 2600esac 2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2602 (eval "$ac_compiler --version >&5") 2>&5 2603 ac_status=$? 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2605 (exit $ac_status); } 2606{ (ac_try="$ac_compiler -v >&5" 2607case "(($ac_try" in 2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2609 *) ac_try_echo=$ac_try;; 2610esac 2611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2612 (eval "$ac_compiler -v >&5") 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); } 2616{ (ac_try="$ac_compiler -V >&5" 2617case "(($ac_try" in 2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2619 *) ac_try_echo=$ac_try;; 2620esac 2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2622 (eval "$ac_compiler -V >&5") 2>&5 2623 ac_status=$? 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); } 2626 2627cat >conftest.$ac_ext <<_ACEOF 2628/* confdefs.h. */ 2629_ACEOF 2630cat confdefs.h >>conftest.$ac_ext 2631cat >>conftest.$ac_ext <<_ACEOF 2632/* end confdefs.h. */ 2633 2634int 2635main () 2636{ 2637 2638 ; 2639 return 0; 2640} 2641_ACEOF 2642ac_clean_files_save=$ac_clean_files 2643ac_clean_files="$ac_clean_files a.out a.exe b.out" 2644# Try to create an executable without -o first, disregard a.out. 2645# It will help us diagnose broken compilers, and finding out an intuition 2646# of exeext. 2647{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2648echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2649ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2650# 2651# List of possible output files, starting from the most likely. 2652# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2653# only as a last resort. b.out is created by i960 compilers. 2654ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2655# 2656# The IRIX 6 linker writes into existing files which may not be 2657# executable, retaining their permissions. Remove them first so a 2658# subsequent execution test works. 2659ac_rmfiles= 2660for ac_file in $ac_files 2661do 2662 case $ac_file in 2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2664 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2665 esac 2666done 2667rm -f $ac_rmfiles 2668 2669if { (ac_try="$ac_link_default" 2670case "(($ac_try" in 2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2672 *) ac_try_echo=$ac_try;; 2673esac 2674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2675 (eval "$ac_link_default") 2>&5 2676 ac_status=$? 2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2678 (exit $ac_status); }; then 2679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2680# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2681# in a Makefile. We should not override ac_cv_exeext if it was cached, 2682# so that the user can short-circuit this test for compilers unknown to 2683# Autoconf. 2684for ac_file in $ac_files '' 2685do 2686 test -f "$ac_file" || continue 2687 case $ac_file in 2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2689 ;; 2690 [ab].out ) 2691 # We found the default executable, but exeext='' is most 2692 # certainly right. 2693 break;; 2694 *.* ) 2695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2696 then :; else 2697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2698 fi 2699 # We set ac_cv_exeext here because the later test for it is not 2700 # safe: cross compilers may not add the suffix if given an `-o' 2701 # argument, so we may need to know it at that point already. 2702 # Even if this section looks crufty: it has the advantage of 2703 # actually working. 2704 break;; 2705 * ) 2706 break;; 2707 esac 2708done 2709test "$ac_cv_exeext" = no && ac_cv_exeext= 2710 2711else 2712 ac_file='' 2713fi 2714 2715{ echo "$as_me:$LINENO: result: $ac_file" >&5 2716echo "${ECHO_T}$ac_file" >&6; } 2717if test -z "$ac_file"; then 2718 echo "$as_me: failed program was:" >&5 2719sed 's/^/| /' conftest.$ac_ext >&5 2720 2721{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2722See \`config.log' for more details." >&5 2723echo "$as_me: error: C compiler cannot create executables 2724See \`config.log' for more details." >&2;} 2725 { (exit 77); exit 77; }; } 2726fi 2727 2728ac_exeext=$ac_cv_exeext 2729 2730# Check that the compiler produces executables we can run. If not, either 2731# the compiler is broken, or we cross compile. 2732{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2733echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2734# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2735# If not cross compiling, check that we can run a simple program. 2736if test "$cross_compiling" != yes; then 2737 if { ac_try='./$ac_file' 2738 { (case "(($ac_try" in 2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2740 *) ac_try_echo=$ac_try;; 2741esac 2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2743 (eval "$ac_try") 2>&5 2744 ac_status=$? 2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746 (exit $ac_status); }; }; then 2747 cross_compiling=no 2748 else 2749 if test "$cross_compiling" = maybe; then 2750 cross_compiling=yes 2751 else 2752 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2753If you meant to cross compile, use \`--host'. 2754See \`config.log' for more details." >&5 2755echo "$as_me: error: cannot run C compiled programs. 2756If you meant to cross compile, use \`--host'. 2757See \`config.log' for more details." >&2;} 2758 { (exit 1); exit 1; }; } 2759 fi 2760 fi 2761fi 2762{ echo "$as_me:$LINENO: result: yes" >&5 2763echo "${ECHO_T}yes" >&6; } 2764 2765rm -f a.out a.exe conftest$ac_cv_exeext b.out 2766ac_clean_files=$ac_clean_files_save 2767# Check that the compiler produces executables we can run. If not, either 2768# the compiler is broken, or we cross compile. 2769{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2770echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2771{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2772echo "${ECHO_T}$cross_compiling" >&6; } 2773 2774{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2775echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2776if { (ac_try="$ac_link" 2777case "(($ac_try" in 2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2779 *) ac_try_echo=$ac_try;; 2780esac 2781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2782 (eval "$ac_link") 2>&5 2783 ac_status=$? 2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2785 (exit $ac_status); }; then 2786 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2787# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2788# work properly (i.e., refer to `conftest.exe'), while it won't with 2789# `rm'. 2790for ac_file in conftest.exe conftest conftest.*; do 2791 test -f "$ac_file" || continue 2792 case $ac_file in 2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2794 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2795 break;; 2796 * ) break;; 2797 esac 2798done 2799else 2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2801See \`config.log' for more details." >&5 2802echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2803See \`config.log' for more details." >&2;} 2804 { (exit 1); exit 1; }; } 2805fi 2806 2807rm -f conftest$ac_cv_exeext 2808{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2809echo "${ECHO_T}$ac_cv_exeext" >&6; } 2810 2811rm -f conftest.$ac_ext 2812EXEEXT=$ac_cv_exeext 2813ac_exeext=$EXEEXT 2814{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2815echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2816if test "${ac_cv_objext+set}" = set; then 2817 echo $ECHO_N "(cached) $ECHO_C" >&6 2818else 2819 cat >conftest.$ac_ext <<_ACEOF 2820/* confdefs.h. */ 2821_ACEOF 2822cat confdefs.h >>conftest.$ac_ext 2823cat >>conftest.$ac_ext <<_ACEOF 2824/* end confdefs.h. */ 2825 2826int 2827main () 2828{ 2829 2830 ; 2831 return 0; 2832} 2833_ACEOF 2834rm -f conftest.o conftest.obj 2835if { (ac_try="$ac_compile" 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_compile") 2>&5 2842 ac_status=$? 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); }; then 2845 for ac_file in conftest.o conftest.obj conftest.*; do 2846 test -f "$ac_file" || continue; 2847 case $ac_file in 2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2849 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2850 break;; 2851 esac 2852done 2853else 2854 echo "$as_me: failed program was:" >&5 2855sed 's/^/| /' conftest.$ac_ext >&5 2856 2857{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2858See \`config.log' for more details." >&5 2859echo "$as_me: error: cannot compute suffix of object files: cannot compile 2860See \`config.log' for more details." >&2;} 2861 { (exit 1); exit 1; }; } 2862fi 2863 2864rm -f conftest.$ac_cv_objext conftest.$ac_ext 2865fi 2866{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2867echo "${ECHO_T}$ac_cv_objext" >&6; } 2868OBJEXT=$ac_cv_objext 2869ac_objext=$OBJEXT 2870{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2871echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2872if test "${ac_cv_c_compiler_gnu+set}" = set; then 2873 echo $ECHO_N "(cached) $ECHO_C" >&6 2874else 2875 cat >conftest.$ac_ext <<_ACEOF 2876/* confdefs.h. */ 2877_ACEOF 2878cat confdefs.h >>conftest.$ac_ext 2879cat >>conftest.$ac_ext <<_ACEOF 2880/* end confdefs.h. */ 2881 2882int 2883main () 2884{ 2885#ifndef __GNUC__ 2886 choke me 2887#endif 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893rm -f conftest.$ac_objext 2894if { (ac_try="$ac_compile" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_compile") 2>conftest.er1 2901 ac_status=$? 2902 grep -v '^ *+' conftest.er1 >conftest.err 2903 rm -f conftest.er1 2904 cat conftest.err >&5 2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); } && { 2907 test -z "$ac_c_werror_flag" || 2908 test ! -s conftest.err 2909 } && test -s conftest.$ac_objext; then 2910 ac_compiler_gnu=yes 2911else 2912 echo "$as_me: failed program was:" >&5 2913sed 's/^/| /' conftest.$ac_ext >&5 2914 2915 ac_compiler_gnu=no 2916fi 2917 2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2919ac_cv_c_compiler_gnu=$ac_compiler_gnu 2920 2921fi 2922{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2923echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2924GCC=`test $ac_compiler_gnu = yes && echo yes` 2925ac_test_CFLAGS=${CFLAGS+set} 2926ac_save_CFLAGS=$CFLAGS 2927{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2928echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2929if test "${ac_cv_prog_cc_g+set}" = set; then 2930 echo $ECHO_N "(cached) $ECHO_C" >&6 2931else 2932 ac_save_c_werror_flag=$ac_c_werror_flag 2933 ac_c_werror_flag=yes 2934 ac_cv_prog_cc_g=no 2935 CFLAGS="-g" 2936 cat >conftest.$ac_ext <<_ACEOF 2937/* confdefs.h. */ 2938_ACEOF 2939cat confdefs.h >>conftest.$ac_ext 2940cat >>conftest.$ac_ext <<_ACEOF 2941/* end confdefs.h. */ 2942 2943int 2944main () 2945{ 2946 2947 ; 2948 return 0; 2949} 2950_ACEOF 2951rm -f conftest.$ac_objext 2952if { (ac_try="$ac_compile" 2953case "(($ac_try" in 2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2955 *) ac_try_echo=$ac_try;; 2956esac 2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2958 (eval "$ac_compile") 2>conftest.er1 2959 ac_status=$? 2960 grep -v '^ *+' conftest.er1 >conftest.err 2961 rm -f conftest.er1 2962 cat conftest.err >&5 2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); } && { 2965 test -z "$ac_c_werror_flag" || 2966 test ! -s conftest.err 2967 } && test -s conftest.$ac_objext; then 2968 ac_cv_prog_cc_g=yes 2969else 2970 echo "$as_me: failed program was:" >&5 2971sed 's/^/| /' conftest.$ac_ext >&5 2972 2973 CFLAGS="" 2974 cat >conftest.$ac_ext <<_ACEOF 2975/* confdefs.h. */ 2976_ACEOF 2977cat confdefs.h >>conftest.$ac_ext 2978cat >>conftest.$ac_ext <<_ACEOF 2979/* end confdefs.h. */ 2980 2981int 2982main () 2983{ 2984 2985 ; 2986 return 0; 2987} 2988_ACEOF 2989rm -f conftest.$ac_objext 2990if { (ac_try="$ac_compile" 2991case "(($ac_try" in 2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2993 *) ac_try_echo=$ac_try;; 2994esac 2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2996 (eval "$ac_compile") 2>conftest.er1 2997 ac_status=$? 2998 grep -v '^ *+' conftest.er1 >conftest.err 2999 rm -f conftest.er1 3000 cat conftest.err >&5 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); } && { 3003 test -z "$ac_c_werror_flag" || 3004 test ! -s conftest.err 3005 } && test -s conftest.$ac_objext; then 3006 : 3007else 3008 echo "$as_me: failed program was:" >&5 3009sed 's/^/| /' conftest.$ac_ext >&5 3010 3011 ac_c_werror_flag=$ac_save_c_werror_flag 3012 CFLAGS="-g" 3013 cat >conftest.$ac_ext <<_ACEOF 3014/* confdefs.h. */ 3015_ACEOF 3016cat confdefs.h >>conftest.$ac_ext 3017cat >>conftest.$ac_ext <<_ACEOF 3018/* end confdefs.h. */ 3019 3020int 3021main () 3022{ 3023 3024 ; 3025 return 0; 3026} 3027_ACEOF 3028rm -f conftest.$ac_objext 3029if { (ac_try="$ac_compile" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_compile") 2>conftest.er1 3036 ac_status=$? 3037 grep -v '^ *+' conftest.er1 >conftest.err 3038 rm -f conftest.er1 3039 cat conftest.err >&5 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); } && { 3042 test -z "$ac_c_werror_flag" || 3043 test ! -s conftest.err 3044 } && test -s conftest.$ac_objext; then 3045 ac_cv_prog_cc_g=yes 3046else 3047 echo "$as_me: failed program was:" >&5 3048sed 's/^/| /' conftest.$ac_ext >&5 3049 3050 3051fi 3052 3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3054fi 3055 3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3057fi 3058 3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3060 ac_c_werror_flag=$ac_save_c_werror_flag 3061fi 3062{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3063echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3064if test "$ac_test_CFLAGS" = set; then 3065 CFLAGS=$ac_save_CFLAGS 3066elif test $ac_cv_prog_cc_g = yes; then 3067 if test "$GCC" = yes; then 3068 CFLAGS="-g -O2" 3069 else 3070 CFLAGS="-g" 3071 fi 3072else 3073 if test "$GCC" = yes; then 3074 CFLAGS="-O2" 3075 else 3076 CFLAGS= 3077 fi 3078fi 3079{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3080echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3081if test "${ac_cv_prog_cc_c89+set}" = set; then 3082 echo $ECHO_N "(cached) $ECHO_C" >&6 3083else 3084 ac_cv_prog_cc_c89=no 3085ac_save_CC=$CC 3086cat >conftest.$ac_ext <<_ACEOF 3087/* confdefs.h. */ 3088_ACEOF 3089cat confdefs.h >>conftest.$ac_ext 3090cat >>conftest.$ac_ext <<_ACEOF 3091/* end confdefs.h. */ 3092#include <stdarg.h> 3093#include <stdio.h> 3094#include <sys/types.h> 3095#include <sys/stat.h> 3096/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3097struct buf { int x; }; 3098FILE * (*rcsopen) (struct buf *, struct stat *, int); 3099static char *e (p, i) 3100 char **p; 3101 int i; 3102{ 3103 return p[i]; 3104} 3105static char *f (char * (*g) (char **, int), char **p, ...) 3106{ 3107 char *s; 3108 va_list v; 3109 va_start (v,p); 3110 s = g (p, va_arg (v,int)); 3111 va_end (v); 3112 return s; 3113} 3114 3115/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3116 function prototypes and stuff, but not '\xHH' hex character constants. 3117 These don't provoke an error unfortunately, instead are silently treated 3118 as 'x'. The following induces an error, until -std is added to get 3119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3120 array size at least. It's necessary to write '\x00'==0 to get something 3121 that's true only with -std. */ 3122int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3123 3124/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3125 inside strings and character constants. */ 3126#define FOO(x) 'x' 3127int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3128 3129int test (int i, double x); 3130struct s1 {int (*f) (int a);}; 3131struct s2 {int (*f) (double a);}; 3132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3133int argc; 3134char **argv; 3135int 3136main () 3137{ 3138return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3145do 3146 CC="$ac_save_CC $ac_arg" 3147 rm -f conftest.$ac_objext 3148if { (ac_try="$ac_compile" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3154 (eval "$ac_compile") 2>conftest.er1 3155 ac_status=$? 3156 grep -v '^ *+' conftest.er1 >conftest.err 3157 rm -f conftest.er1 3158 cat conftest.err >&5 3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); } && { 3161 test -z "$ac_c_werror_flag" || 3162 test ! -s conftest.err 3163 } && test -s conftest.$ac_objext; then 3164 ac_cv_prog_cc_c89=$ac_arg 3165else 3166 echo "$as_me: failed program was:" >&5 3167sed 's/^/| /' conftest.$ac_ext >&5 3168 3169 3170fi 3171 3172rm -f core conftest.err conftest.$ac_objext 3173 test "x$ac_cv_prog_cc_c89" != "xno" && break 3174done 3175rm -f conftest.$ac_ext 3176CC=$ac_save_CC 3177 3178fi 3179# AC_CACHE_VAL 3180case "x$ac_cv_prog_cc_c89" in 3181 x) 3182 { echo "$as_me:$LINENO: result: none needed" >&5 3183echo "${ECHO_T}none needed" >&6; } ;; 3184 xno) 3185 { echo "$as_me:$LINENO: result: unsupported" >&5 3186echo "${ECHO_T}unsupported" >&6; } ;; 3187 *) 3188 CC="$CC $ac_cv_prog_cc_c89" 3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3190echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3191esac 3192 3193 3194ac_ext=c 3195ac_cpp='$CPP $CPPFLAGS' 3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3198ac_compiler_gnu=$ac_cv_c_compiler_gnu 3199 3200 ac_ext=c 3201ac_cpp='$CPP $CPPFLAGS' 3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3204ac_compiler_gnu=$ac_cv_c_compiler_gnu 3205{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3206echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3207# On Suns, sometimes $CPP names a directory. 3208if test -n "$CPP" && test -d "$CPP"; then 3209 CPP= 3210fi 3211if test -z "$CPP"; then 3212 if test "${ac_cv_prog_CPP+set}" = set; then 3213 echo $ECHO_N "(cached) $ECHO_C" >&6 3214else 3215 # Double quotes because CPP needs to be expanded 3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3217 do 3218 ac_preproc_ok=false 3219for ac_c_preproc_warn_flag in '' yes 3220do 3221 # Use a header file that comes with gcc, so configuring glibc 3222 # with a fresh cross-compiler works. 3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3224 # <limits.h> exists even on freestanding compilers. 3225 # On the NeXT, cc -E runs the code through the compiler's parser, 3226 # not just through cpp. "Syntax error" is here to catch this case. 3227 cat >conftest.$ac_ext <<_ACEOF 3228/* confdefs.h. */ 3229_ACEOF 3230cat confdefs.h >>conftest.$ac_ext 3231cat >>conftest.$ac_ext <<_ACEOF 3232/* end confdefs.h. */ 3233#ifdef __STDC__ 3234# include <limits.h> 3235#else 3236# include <assert.h> 3237#endif 3238 Syntax error 3239_ACEOF 3240if { (ac_try="$ac_cpp conftest.$ac_ext" 3241case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } >/dev/null && { 3253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3254 test ! -s conftest.err 3255 }; then 3256 : 3257else 3258 echo "$as_me: failed program was:" >&5 3259sed 's/^/| /' conftest.$ac_ext >&5 3260 3261 # Broken: fails on valid input. 3262continue 3263fi 3264 3265rm -f conftest.err conftest.$ac_ext 3266 3267 # OK, works on sane cases. Now check whether nonexistent headers 3268 # can be detected and how. 3269 cat >conftest.$ac_ext <<_ACEOF 3270/* confdefs.h. */ 3271_ACEOF 3272cat confdefs.h >>conftest.$ac_ext 3273cat >>conftest.$ac_ext <<_ACEOF 3274/* end confdefs.h. */ 3275#include <ac_nonexistent.h> 3276_ACEOF 3277if { (ac_try="$ac_cpp conftest.$ac_ext" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3284 ac_status=$? 3285 grep -v '^ *+' conftest.er1 >conftest.err 3286 rm -f conftest.er1 3287 cat conftest.err >&5 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); } >/dev/null && { 3290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3291 test ! -s conftest.err 3292 }; then 3293 # Broken: success on invalid input. 3294continue 3295else 3296 echo "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 # Passes both tests. 3300ac_preproc_ok=: 3301break 3302fi 3303 3304rm -f conftest.err conftest.$ac_ext 3305 3306done 3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3308rm -f conftest.err conftest.$ac_ext 3309if $ac_preproc_ok; then 3310 break 3311fi 3312 3313 done 3314 ac_cv_prog_CPP=$CPP 3315 3316fi 3317 CPP=$ac_cv_prog_CPP 3318else 3319 ac_cv_prog_CPP=$CPP 3320fi 3321{ echo "$as_me:$LINENO: result: $CPP" >&5 3322echo "${ECHO_T}$CPP" >&6; } 3323ac_preproc_ok=false 3324for ac_c_preproc_warn_flag in '' yes 3325do 3326 # Use a header file that comes with gcc, so configuring glibc 3327 # with a fresh cross-compiler works. 3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3329 # <limits.h> exists even on freestanding compilers. 3330 # On the NeXT, cc -E runs the code through the compiler's parser, 3331 # not just through cpp. "Syntax error" is here to catch this case. 3332 cat >conftest.$ac_ext <<_ACEOF 3333/* confdefs.h. */ 3334_ACEOF 3335cat confdefs.h >>conftest.$ac_ext 3336cat >>conftest.$ac_ext <<_ACEOF 3337/* end confdefs.h. */ 3338#ifdef __STDC__ 3339# include <limits.h> 3340#else 3341# include <assert.h> 3342#endif 3343 Syntax error 3344_ACEOF 3345if { (ac_try="$ac_cpp conftest.$ac_ext" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3352 ac_status=$? 3353 grep -v '^ *+' conftest.er1 >conftest.err 3354 rm -f conftest.er1 3355 cat conftest.err >&5 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } >/dev/null && { 3358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3359 test ! -s conftest.err 3360 }; then 3361 : 3362else 3363 echo "$as_me: failed program was:" >&5 3364sed 's/^/| /' conftest.$ac_ext >&5 3365 3366 # Broken: fails on valid input. 3367continue 3368fi 3369 3370rm -f conftest.err conftest.$ac_ext 3371 3372 # OK, works on sane cases. Now check whether nonexistent headers 3373 # can be detected and how. 3374 cat >conftest.$ac_ext <<_ACEOF 3375/* confdefs.h. */ 3376_ACEOF 3377cat confdefs.h >>conftest.$ac_ext 3378cat >>conftest.$ac_ext <<_ACEOF 3379/* end confdefs.h. */ 3380#include <ac_nonexistent.h> 3381_ACEOF 3382if { (ac_try="$ac_cpp conftest.$ac_ext" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } >/dev/null && { 3395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3396 test ! -s conftest.err 3397 }; then 3398 # Broken: success on invalid input. 3399continue 3400else 3401 echo "$as_me: failed program was:" >&5 3402sed 's/^/| /' conftest.$ac_ext >&5 3403 3404 # Passes both tests. 3405ac_preproc_ok=: 3406break 3407fi 3408 3409rm -f conftest.err conftest.$ac_ext 3410 3411done 3412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3413rm -f conftest.err conftest.$ac_ext 3414if $ac_preproc_ok; then 3415 : 3416else 3417 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3418See \`config.log' for more details." >&5 3419echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3420See \`config.log' for more details." >&2;} 3421 { (exit 1); exit 1; }; } 3422fi 3423 3424ac_ext=c 3425ac_cpp='$CPP $CPPFLAGS' 3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3428ac_compiler_gnu=$ac_cv_c_compiler_gnu 3429 3430 3431 # Find a good install program. We prefer a C program (faster), 3432# so one script is as good as another. But avoid the broken or 3433# incompatible versions: 3434# SysV /etc/install, /usr/sbin/install 3435# SunOS /usr/etc/install 3436# IRIX /sbin/install 3437# AIX /bin/install 3438# AmigaOS /C/install, which installs bootblocks on floppy discs 3439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3440# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3442# OS/2's system install, which has a completely different semantic 3443# ./install, which can be erroneously created by make from ./install.sh. 3444{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3445echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3446if test -z "$INSTALL"; then 3447if test "${ac_cv_path_install+set}" = set; then 3448 echo $ECHO_N "(cached) $ECHO_C" >&6 3449else 3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3451for as_dir in $PATH 3452do 3453 IFS=$as_save_IFS 3454 test -z "$as_dir" && as_dir=. 3455 # Account for people who put trailing slashes in PATH elements. 3456case $as_dir/ in 3457 ./ | .// | /cC/* | \ 3458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3460 /usr/ucb/* ) ;; 3461 *) 3462 # OSF1 and SCO ODT 3.0 have their own names for install. 3463 # Don't use installbsd from OSF since it installs stuff as root 3464 # by default. 3465 for ac_prog in ginstall scoinst install; do 3466 for ac_exec_ext in '' $ac_executable_extensions; do 3467 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3468 if test $ac_prog = install && 3469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3470 # AIX install. It has an incompatible calling convention. 3471 : 3472 elif test $ac_prog = install && 3473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3474 # program-specific install script used by HP pwplus--don't use. 3475 : 3476 else 3477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3478 break 3 3479 fi 3480 fi 3481 done 3482 done 3483 ;; 3484esac 3485done 3486IFS=$as_save_IFS 3487 3488 3489fi 3490 if test "${ac_cv_path_install+set}" = set; then 3491 INSTALL=$ac_cv_path_install 3492 else 3493 # As a last resort, use the slow shell script. Don't cache a 3494 # value for INSTALL within a source directory, because that will 3495 # break other packages using the cache if that directory is 3496 # removed, or if the value is a relative name. 3497 INSTALL=$ac_install_sh 3498 fi 3499fi 3500{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3501echo "${ECHO_T}$INSTALL" >&6; } 3502 3503# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3504# It thinks the first close brace ends the variable substitution. 3505test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3506 3507test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3508 3509test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3510 3511 3512 #-------------------------------------------------------------------- 3513 # Checks to see if the make program sets the $MAKE variable. 3514 #-------------------------------------------------------------------- 3515 3516 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3517echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3518set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3519if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3520 echo $ECHO_N "(cached) $ECHO_C" >&6 3521else 3522 cat >conftest.make <<\_ACEOF 3523SHELL = /bin/sh 3524all: 3525 @echo '@@@%%%=$(MAKE)=@@@%%%' 3526_ACEOF 3527# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3528case `${MAKE-make} -f conftest.make 2>/dev/null` in 3529 *@@@%%%=?*=@@@%%%*) 3530 eval ac_cv_prog_make_${ac_make}_set=yes;; 3531 *) 3532 eval ac_cv_prog_make_${ac_make}_set=no;; 3533esac 3534rm -f conftest.make 3535fi 3536if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3537 { echo "$as_me:$LINENO: result: yes" >&5 3538echo "${ECHO_T}yes" >&6; } 3539 SET_MAKE= 3540else 3541 { echo "$as_me:$LINENO: result: no" >&5 3542echo "${ECHO_T}no" >&6; } 3543 SET_MAKE="MAKE=${MAKE-make}" 3544fi 3545 3546 3547 #-------------------------------------------------------------------- 3548 # Find ranlib 3549 #-------------------------------------------------------------------- 3550 3551 if test -n "$ac_tool_prefix"; then 3552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3553set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3554{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3556if test "${ac_cv_prog_RANLIB+set}" = set; then 3557 echo $ECHO_N "(cached) $ECHO_C" >&6 3558else 3559 if test -n "$RANLIB"; then 3560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3561else 3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3563for as_dir in $PATH 3564do 3565 IFS=$as_save_IFS 3566 test -z "$as_dir" && as_dir=. 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574done 3575IFS=$as_save_IFS 3576 3577fi 3578fi 3579RANLIB=$ac_cv_prog_RANLIB 3580if test -n "$RANLIB"; then 3581 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3582echo "${ECHO_T}$RANLIB" >&6; } 3583else 3584 { echo "$as_me:$LINENO: result: no" >&5 3585echo "${ECHO_T}no" >&6; } 3586fi 3587 3588 3589fi 3590if test -z "$ac_cv_prog_RANLIB"; then 3591 ac_ct_RANLIB=$RANLIB 3592 # Extract the first word of "ranlib", so it can be a program name with args. 3593set dummy ranlib; ac_word=$2 3594{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3596if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3597 echo $ECHO_N "(cached) $ECHO_C" >&6 3598else 3599 if test -n "$ac_ct_RANLIB"; then 3600 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3601else 3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3603for as_dir in $PATH 3604do 3605 IFS=$as_save_IFS 3606 test -z "$as_dir" && as_dir=. 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3609 ac_cv_prog_ac_ct_RANLIB="ranlib" 3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3611 break 2 3612 fi 3613done 3614done 3615IFS=$as_save_IFS 3616 3617fi 3618fi 3619ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3620if test -n "$ac_ct_RANLIB"; then 3621 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3622echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3623else 3624 { echo "$as_me:$LINENO: result: no" >&5 3625echo "${ECHO_T}no" >&6; } 3626fi 3627 3628 if test "x$ac_ct_RANLIB" = x; then 3629 RANLIB=":" 3630 else 3631 case $cross_compiling:$ac_tool_warned in 3632yes:) 3633{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3634whose name does not start with the host triplet. If you think this 3635configuration is useful to you, please write to autoconf@gnu.org." >&5 3636echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3637whose name does not start with the host triplet. If you think this 3638configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3639ac_tool_warned=yes ;; 3640esac 3641 RANLIB=$ac_ct_RANLIB 3642 fi 3643else 3644 RANLIB="$ac_cv_prog_RANLIB" 3645fi 3646 3647 3648 #-------------------------------------------------------------------- 3649 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3650 #-------------------------------------------------------------------- 3651 3652 3653 3654 3655 3656 3657{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3658echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3659if test "${ac_cv_path_GREP+set}" = set; then 3660 echo $ECHO_N "(cached) $ECHO_C" >&6 3661else 3662 # Extract the first word of "grep ggrep" to use in msg output 3663if test -z "$GREP"; then 3664set dummy grep ggrep; ac_prog_name=$2 3665if test "${ac_cv_path_GREP+set}" = set; then 3666 echo $ECHO_N "(cached) $ECHO_C" >&6 3667else 3668 ac_path_GREP_found=false 3669# Loop through the user's path and test for each of PROGNAME-LIST 3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3672do 3673 IFS=$as_save_IFS 3674 test -z "$as_dir" && as_dir=. 3675 for ac_prog in grep ggrep; do 3676 for ac_exec_ext in '' $ac_executable_extensions; do 3677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3679 # Check for GNU ac_path_GREP and select it if it is found. 3680 # Check for GNU $ac_path_GREP 3681case `"$ac_path_GREP" --version 2>&1` in 3682*GNU*) 3683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3684*) 3685 ac_count=0 3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3687 while : 3688 do 3689 cat "conftest.in" "conftest.in" >"conftest.tmp" 3690 mv "conftest.tmp" "conftest.in" 3691 cp "conftest.in" "conftest.nl" 3692 echo 'GREP' >> "conftest.nl" 3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3695 ac_count=`expr $ac_count + 1` 3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3697 # Best one so far, save it but keep looking for a better one 3698 ac_cv_path_GREP="$ac_path_GREP" 3699 ac_path_GREP_max=$ac_count 3700 fi 3701 # 10*(2^10) chars as input seems more than enough 3702 test $ac_count -gt 10 && break 3703 done 3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3705esac 3706 3707 3708 $ac_path_GREP_found && break 3 3709 done 3710done 3711 3712done 3713IFS=$as_save_IFS 3714 3715 3716fi 3717 3718GREP="$ac_cv_path_GREP" 3719if test -z "$GREP"; then 3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3721echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3722 { (exit 1); exit 1; }; } 3723fi 3724 3725else 3726 ac_cv_path_GREP=$GREP 3727fi 3728 3729 3730fi 3731{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3732echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3733 GREP="$ac_cv_path_GREP" 3734 3735 3736{ echo "$as_me:$LINENO: checking for egrep" >&5 3737echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3738if test "${ac_cv_path_EGREP+set}" = set; then 3739 echo $ECHO_N "(cached) $ECHO_C" >&6 3740else 3741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3742 then ac_cv_path_EGREP="$GREP -E" 3743 else 3744 # Extract the first word of "egrep" to use in msg output 3745if test -z "$EGREP"; then 3746set dummy egrep; ac_prog_name=$2 3747if test "${ac_cv_path_EGREP+set}" = set; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 ac_path_EGREP_found=false 3751# Loop through the user's path and test for each of PROGNAME-LIST 3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3754do 3755 IFS=$as_save_IFS 3756 test -z "$as_dir" && as_dir=. 3757 for ac_prog in egrep; do 3758 for ac_exec_ext in '' $ac_executable_extensions; do 3759 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3760 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3761 # Check for GNU ac_path_EGREP and select it if it is found. 3762 # Check for GNU $ac_path_EGREP 3763case `"$ac_path_EGREP" --version 2>&1` in 3764*GNU*) 3765 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3766*) 3767 ac_count=0 3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3769 while : 3770 do 3771 cat "conftest.in" "conftest.in" >"conftest.tmp" 3772 mv "conftest.tmp" "conftest.in" 3773 cp "conftest.in" "conftest.nl" 3774 echo 'EGREP' >> "conftest.nl" 3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3777 ac_count=`expr $ac_count + 1` 3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3779 # Best one so far, save it but keep looking for a better one 3780 ac_cv_path_EGREP="$ac_path_EGREP" 3781 ac_path_EGREP_max=$ac_count 3782 fi 3783 # 10*(2^10) chars as input seems more than enough 3784 test $ac_count -gt 10 && break 3785 done 3786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3787esac 3788 3789 3790 $ac_path_EGREP_found && break 3 3791 done 3792done 3793 3794done 3795IFS=$as_save_IFS 3796 3797 3798fi 3799 3800EGREP="$ac_cv_path_EGREP" 3801if test -z "$EGREP"; then 3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3803echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3804 { (exit 1); exit 1; }; } 3805fi 3806 3807else 3808 ac_cv_path_EGREP=$EGREP 3809fi 3810 3811 3812 fi 3813fi 3814{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3815echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3816 EGREP="$ac_cv_path_EGREP" 3817 3818 3819{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3820echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3821if test "${ac_cv_header_stdc+set}" = set; then 3822 echo $ECHO_N "(cached) $ECHO_C" >&6 3823else 3824 cat >conftest.$ac_ext <<_ACEOF 3825/* confdefs.h. */ 3826_ACEOF 3827cat confdefs.h >>conftest.$ac_ext 3828cat >>conftest.$ac_ext <<_ACEOF 3829/* end confdefs.h. */ 3830#include <stdlib.h> 3831#include <stdarg.h> 3832#include <string.h> 3833#include <float.h> 3834 3835int 3836main () 3837{ 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843rm -f conftest.$ac_objext 3844if { (ac_try="$ac_compile" 3845case "(($ac_try" in 3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3847 *) ac_try_echo=$ac_try;; 3848esac 3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3850 (eval "$ac_compile") 2>conftest.er1 3851 ac_status=$? 3852 grep -v '^ *+' conftest.er1 >conftest.err 3853 rm -f conftest.er1 3854 cat conftest.err >&5 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3856 (exit $ac_status); } && { 3857 test -z "$ac_c_werror_flag" || 3858 test ! -s conftest.err 3859 } && test -s conftest.$ac_objext; then 3860 ac_cv_header_stdc=yes 3861else 3862 echo "$as_me: failed program was:" >&5 3863sed 's/^/| /' conftest.$ac_ext >&5 3864 3865 ac_cv_header_stdc=no 3866fi 3867 3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3869 3870if test $ac_cv_header_stdc = yes; then 3871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3872 cat >conftest.$ac_ext <<_ACEOF 3873/* confdefs.h. */ 3874_ACEOF 3875cat confdefs.h >>conftest.$ac_ext 3876cat >>conftest.$ac_ext <<_ACEOF 3877/* end confdefs.h. */ 3878#include <string.h> 3879 3880_ACEOF 3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3882 $EGREP "memchr" >/dev/null 2>&1; then 3883 : 3884else 3885 ac_cv_header_stdc=no 3886fi 3887rm -f -r conftest* 3888 3889fi 3890 3891if test $ac_cv_header_stdc = yes; then 3892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3893 cat >conftest.$ac_ext <<_ACEOF 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899#include <stdlib.h> 3900 3901_ACEOF 3902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3903 $EGREP "free" >/dev/null 2>&1; then 3904 : 3905else 3906 ac_cv_header_stdc=no 3907fi 3908rm -f -r conftest* 3909 3910fi 3911 3912if test $ac_cv_header_stdc = yes; then 3913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3914 if test "$cross_compiling" = yes; then 3915 : 3916else 3917 cat >conftest.$ac_ext <<_ACEOF 3918/* confdefs.h. */ 3919_ACEOF 3920cat confdefs.h >>conftest.$ac_ext 3921cat >>conftest.$ac_ext <<_ACEOF 3922/* end confdefs.h. */ 3923#include <ctype.h> 3924#include <stdlib.h> 3925#if ((' ' & 0x0FF) == 0x020) 3926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3928#else 3929# define ISLOWER(c) \ 3930 (('a' <= (c) && (c) <= 'i') \ 3931 || ('j' <= (c) && (c) <= 'r') \ 3932 || ('s' <= (c) && (c) <= 'z')) 3933# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3934#endif 3935 3936#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3937int 3938main () 3939{ 3940 int i; 3941 for (i = 0; i < 256; i++) 3942 if (XOR (islower (i), ISLOWER (i)) 3943 || toupper (i) != TOUPPER (i)) 3944 return 2; 3945 return 0; 3946} 3947_ACEOF 3948rm -f conftest$ac_exeext 3949if { (ac_try="$ac_link" 3950case "(($ac_try" in 3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3952 *) ac_try_echo=$ac_try;; 3953esac 3954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3955 (eval "$ac_link") 2>&5 3956 ac_status=$? 3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3959 { (case "(($ac_try" in 3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3961 *) ac_try_echo=$ac_try;; 3962esac 3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3964 (eval "$ac_try") 2>&5 3965 ac_status=$? 3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3967 (exit $ac_status); }; }; then 3968 : 3969else 3970 echo "$as_me: program exited with status $ac_status" >&5 3971echo "$as_me: failed program was:" >&5 3972sed 's/^/| /' conftest.$ac_ext >&5 3973 3974( exit $ac_status ) 3975ac_cv_header_stdc=no 3976fi 3977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3978fi 3979 3980 3981fi 3982fi 3983{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3984echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3985if test $ac_cv_header_stdc = yes; then 3986 3987cat >>confdefs.h <<\_ACEOF 3988#define STDC_HEADERS 1 3989_ACEOF 3990 3991fi 3992 3993# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4004 inttypes.h stdint.h unistd.h 4005do 4006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4007{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4010 echo $ECHO_N "(cached) $ECHO_C" >&6 4011else 4012 cat >conftest.$ac_ext <<_ACEOF 4013/* confdefs.h. */ 4014_ACEOF 4015cat confdefs.h >>conftest.$ac_ext 4016cat >>conftest.$ac_ext <<_ACEOF 4017/* end confdefs.h. */ 4018$ac_includes_default 4019 4020#include <$ac_header> 4021_ACEOF 4022rm -f conftest.$ac_objext 4023if { (ac_try="$ac_compile" 4024case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027esac 4028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4029 (eval "$ac_compile") 2>conftest.er1 4030 ac_status=$? 4031 grep -v '^ *+' conftest.er1 >conftest.err 4032 rm -f conftest.er1 4033 cat conftest.err >&5 4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 (exit $ac_status); } && { 4036 test -z "$ac_c_werror_flag" || 4037 test ! -s conftest.err 4038 } && test -s conftest.$ac_objext; then 4039 eval "$as_ac_Header=yes" 4040else 4041 echo "$as_me: failed program was:" >&5 4042sed 's/^/| /' conftest.$ac_ext >&5 4043 4044 eval "$as_ac_Header=no" 4045fi 4046 4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4048fi 4049ac_res=`eval echo '${'$as_ac_Header'}'` 4050 { echo "$as_me:$LINENO: result: $ac_res" >&5 4051echo "${ECHO_T}$ac_res" >&6; } 4052if test `eval echo '${'$as_ac_Header'}'` = yes; then 4053 cat >>confdefs.h <<_ACEOF 4054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4055_ACEOF 4056 4057fi 4058 4059done 4060 4061 4062 4063 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4064 4065 4066 #------------------------------------------------------------------------ 4067 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4068 # It makes compiling go faster. (This is only a performance feature.) 4069 #------------------------------------------------------------------------ 4070 4071 if test -z "$no_pipe" -a -n "$GCC"; then 4072 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4073echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4074if test "${tcl_cv_cc_pipe+set}" = set; then 4075 echo $ECHO_N "(cached) $ECHO_C" >&6 4076else 4077 4078 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4079 cat >conftest.$ac_ext <<_ACEOF 4080/* confdefs.h. */ 4081_ACEOF 4082cat confdefs.h >>conftest.$ac_ext 4083cat >>conftest.$ac_ext <<_ACEOF 4084/* end confdefs.h. */ 4085 4086int 4087main () 4088{ 4089 4090 ; 4091 return 0; 4092} 4093_ACEOF 4094rm -f conftest.$ac_objext 4095if { (ac_try="$ac_compile" 4096case "(($ac_try" in 4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4098 *) ac_try_echo=$ac_try;; 4099esac 4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4101 (eval "$ac_compile") 2>conftest.er1 4102 ac_status=$? 4103 grep -v '^ *+' conftest.er1 >conftest.err 4104 rm -f conftest.er1 4105 cat conftest.err >&5 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } && { 4108 test -z "$ac_c_werror_flag" || 4109 test ! -s conftest.err 4110 } && test -s conftest.$ac_objext; then 4111 tcl_cv_cc_pipe=yes 4112else 4113 echo "$as_me: failed program was:" >&5 4114sed 's/^/| /' conftest.$ac_ext >&5 4115 4116 tcl_cv_cc_pipe=no 4117fi 4118 4119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4120 CFLAGS=$hold_cflags 4121fi 4122{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4123echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4124 if test $tcl_cv_cc_pipe = yes; then 4125 CFLAGS="$CFLAGS -pipe" 4126 fi 4127 fi 4128 4129 #-------------------------------------------------------------------- 4130 # Common compiler flag setup 4131 #-------------------------------------------------------------------- 4132 4133 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4134echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4135if test "${ac_cv_c_bigendian+set}" = set; then 4136 echo $ECHO_N "(cached) $ECHO_C" >&6 4137else 4138 # See if sys/param.h defines the BYTE_ORDER macro. 4139cat >conftest.$ac_ext <<_ACEOF 4140/* confdefs.h. */ 4141_ACEOF 4142cat confdefs.h >>conftest.$ac_ext 4143cat >>conftest.$ac_ext <<_ACEOF 4144/* end confdefs.h. */ 4145#include <sys/types.h> 4146#include <sys/param.h> 4147 4148int 4149main () 4150{ 4151#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4152 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4153 bogus endian macros 4154#endif 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160rm -f conftest.$ac_objext 4161if { (ac_try="$ac_compile" 4162case "(($ac_try" in 4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4164 *) ac_try_echo=$ac_try;; 4165esac 4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4167 (eval "$ac_compile") 2>conftest.er1 4168 ac_status=$? 4169 grep -v '^ *+' conftest.er1 >conftest.err 4170 rm -f conftest.er1 4171 cat conftest.err >&5 4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4173 (exit $ac_status); } && { 4174 test -z "$ac_c_werror_flag" || 4175 test ! -s conftest.err 4176 } && test -s conftest.$ac_objext; then 4177 # It does; now see whether it defined to BIG_ENDIAN or not. 4178cat >conftest.$ac_ext <<_ACEOF 4179/* confdefs.h. */ 4180_ACEOF 4181cat confdefs.h >>conftest.$ac_ext 4182cat >>conftest.$ac_ext <<_ACEOF 4183/* end confdefs.h. */ 4184#include <sys/types.h> 4185#include <sys/param.h> 4186 4187int 4188main () 4189{ 4190#if BYTE_ORDER != BIG_ENDIAN 4191 not big endian 4192#endif 4193 4194 ; 4195 return 0; 4196} 4197_ACEOF 4198rm -f conftest.$ac_objext 4199if { (ac_try="$ac_compile" 4200case "(($ac_try" in 4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4202 *) ac_try_echo=$ac_try;; 4203esac 4204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4205 (eval "$ac_compile") 2>conftest.er1 4206 ac_status=$? 4207 grep -v '^ *+' conftest.er1 >conftest.err 4208 rm -f conftest.er1 4209 cat conftest.err >&5 4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4211 (exit $ac_status); } && { 4212 test -z "$ac_c_werror_flag" || 4213 test ! -s conftest.err 4214 } && test -s conftest.$ac_objext; then 4215 ac_cv_c_bigendian=yes 4216else 4217 echo "$as_me: failed program was:" >&5 4218sed 's/^/| /' conftest.$ac_ext >&5 4219 4220 ac_cv_c_bigendian=no 4221fi 4222 4223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4224else 4225 echo "$as_me: failed program was:" >&5 4226sed 's/^/| /' conftest.$ac_ext >&5 4227 4228 # It does not; compile a test program. 4229if test "$cross_compiling" = yes; then 4230 # try to guess the endianness by grepping values into an object file 4231 ac_cv_c_bigendian=unknown 4232 cat >conftest.$ac_ext <<_ACEOF 4233/* confdefs.h. */ 4234_ACEOF 4235cat confdefs.h >>conftest.$ac_ext 4236cat >>conftest.$ac_ext <<_ACEOF 4237/* end confdefs.h. */ 4238short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4239short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4240void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4241short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4242short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4243void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4244int 4245main () 4246{ 4247 _ascii (); _ebcdic (); 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252rm -f conftest.$ac_objext 4253if { (ac_try="$ac_compile" 4254case "(($ac_try" in 4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4256 *) ac_try_echo=$ac_try;; 4257esac 4258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4259 (eval "$ac_compile") 2>conftest.er1 4260 ac_status=$? 4261 grep -v '^ *+' conftest.er1 >conftest.err 4262 rm -f conftest.er1 4263 cat conftest.err >&5 4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4265 (exit $ac_status); } && { 4266 test -z "$ac_c_werror_flag" || 4267 test ! -s conftest.err 4268 } && test -s conftest.$ac_objext; then 4269 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4270 ac_cv_c_bigendian=yes 4271fi 4272if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4273 if test "$ac_cv_c_bigendian" = unknown; then 4274 ac_cv_c_bigendian=no 4275 else 4276 # finding both strings is unlikely to happen, but who knows? 4277 ac_cv_c_bigendian=unknown 4278 fi 4279fi 4280else 4281 echo "$as_me: failed program was:" >&5 4282sed 's/^/| /' conftest.$ac_ext >&5 4283 4284 4285fi 4286 4287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4288else 4289 cat >conftest.$ac_ext <<_ACEOF 4290/* confdefs.h. */ 4291_ACEOF 4292cat confdefs.h >>conftest.$ac_ext 4293cat >>conftest.$ac_ext <<_ACEOF 4294/* end confdefs.h. */ 4295$ac_includes_default 4296int 4297main () 4298{ 4299 4300 /* Are we little or big endian? From Harbison&Steele. */ 4301 union 4302 { 4303 long int l; 4304 char c[sizeof (long int)]; 4305 } u; 4306 u.l = 1; 4307 return u.c[sizeof (long int) - 1] == 1; 4308 4309 ; 4310 return 0; 4311} 4312_ACEOF 4313rm -f conftest$ac_exeext 4314if { (ac_try="$ac_link" 4315case "(($ac_try" in 4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4317 *) ac_try_echo=$ac_try;; 4318esac 4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4320 (eval "$ac_link") 2>&5 4321 ac_status=$? 4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4324 { (case "(($ac_try" in 4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4326 *) ac_try_echo=$ac_try;; 4327esac 4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4329 (eval "$ac_try") 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); }; }; then 4333 ac_cv_c_bigendian=no 4334else 4335 echo "$as_me: program exited with status $ac_status" >&5 4336echo "$as_me: failed program was:" >&5 4337sed 's/^/| /' conftest.$ac_ext >&5 4338 4339( exit $ac_status ) 4340ac_cv_c_bigendian=yes 4341fi 4342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4343fi 4344 4345 4346fi 4347 4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349fi 4350{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4351echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4352case $ac_cv_c_bigendian in 4353 yes) 4354 4355cat >>confdefs.h <<\_ACEOF 4356#define WORDS_BIGENDIAN 1 4357_ACEOF 4358 ;; 4359 no) 4360 ;; 4361 *) 4362 { { echo "$as_me:$LINENO: error: unknown endianness 4363presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4364echo "$as_me: error: unknown endianness 4365presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4366 { (exit 1); exit 1; }; } ;; 4367esac 4368 4369 if test "${TEA_PLATFORM}" = "unix" ; then 4370 4371 #-------------------------------------------------------------------- 4372 # On a few very rare systems, all of the libm.a stuff is 4373 # already in libc.a. Set compiler flags accordingly. 4374 # Also, Linux requires the "ieee" library for math to work 4375 # right (and it must appear before "-lm"). 4376 #-------------------------------------------------------------------- 4377 4378 { echo "$as_me:$LINENO: checking for sin" >&5 4379echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4380if test "${ac_cv_func_sin+set}" = set; then 4381 echo $ECHO_N "(cached) $ECHO_C" >&6 4382else 4383 cat >conftest.$ac_ext <<_ACEOF 4384/* confdefs.h. */ 4385_ACEOF 4386cat confdefs.h >>conftest.$ac_ext 4387cat >>conftest.$ac_ext <<_ACEOF 4388/* end confdefs.h. */ 4389/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4391#define sin innocuous_sin 4392 4393/* System header to define __stub macros and hopefully few prototypes, 4394 which can conflict with char sin (); below. 4395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4396 <limits.h> exists even on freestanding compilers. */ 4397 4398#ifdef __STDC__ 4399# include <limits.h> 4400#else 4401# include <assert.h> 4402#endif 4403 4404#undef sin 4405 4406/* Override any GCC internal prototype to avoid an error. 4407 Use char because int might match the return type of a GCC 4408 builtin and then its argument prototype would still apply. */ 4409#ifdef __cplusplus 4410extern "C" 4411#endif 4412char sin (); 4413/* The GNU C library defines this for functions which it implements 4414 to always fail with ENOSYS. Some functions are actually named 4415 something starting with __ and the normal name is an alias. */ 4416#if defined __stub_sin || defined __stub___sin 4417choke me 4418#endif 4419 4420int 4421main () 4422{ 4423return sin (); 4424 ; 4425 return 0; 4426} 4427_ACEOF 4428rm -f conftest.$ac_objext conftest$ac_exeext 4429if { (ac_try="$ac_link" 4430case "(($ac_try" in 4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4432 *) ac_try_echo=$ac_try;; 4433esac 4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4435 (eval "$ac_link") 2>conftest.er1 4436 ac_status=$? 4437 grep -v '^ *+' conftest.er1 >conftest.err 4438 rm -f conftest.er1 4439 cat conftest.err >&5 4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4441 (exit $ac_status); } && { 4442 test -z "$ac_c_werror_flag" || 4443 test ! -s conftest.err 4444 } && test -s conftest$ac_exeext && 4445 $as_test_x conftest$ac_exeext; then 4446 ac_cv_func_sin=yes 4447else 4448 echo "$as_me: failed program was:" >&5 4449sed 's/^/| /' conftest.$ac_ext >&5 4450 4451 ac_cv_func_sin=no 4452fi 4453 4454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4455 conftest$ac_exeext conftest.$ac_ext 4456fi 4457{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4458echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4459if test $ac_cv_func_sin = yes; then 4460 MATH_LIBS="" 4461else 4462 MATH_LIBS="-lm" 4463fi 4464 4465 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4466echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4467if test "${ac_cv_lib_ieee_main+set}" = set; then 4468 echo $ECHO_N "(cached) $ECHO_C" >&6 4469else 4470 ac_check_lib_save_LIBS=$LIBS 4471LIBS="-lieee $LIBS" 4472cat >conftest.$ac_ext <<_ACEOF 4473/* confdefs.h. */ 4474_ACEOF 4475cat confdefs.h >>conftest.$ac_ext 4476cat >>conftest.$ac_ext <<_ACEOF 4477/* end confdefs.h. */ 4478 4479 4480int 4481main () 4482{ 4483return main (); 4484 ; 4485 return 0; 4486} 4487_ACEOF 4488rm -f conftest.$ac_objext conftest$ac_exeext 4489if { (ac_try="$ac_link" 4490case "(($ac_try" in 4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4492 *) ac_try_echo=$ac_try;; 4493esac 4494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4495 (eval "$ac_link") 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } && { 4502 test -z "$ac_c_werror_flag" || 4503 test ! -s conftest.err 4504 } && test -s conftest$ac_exeext && 4505 $as_test_x conftest$ac_exeext; then 4506 ac_cv_lib_ieee_main=yes 4507else 4508 echo "$as_me: failed program was:" >&5 4509sed 's/^/| /' conftest.$ac_ext >&5 4510 4511 ac_cv_lib_ieee_main=no 4512fi 4513 4514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4515 conftest$ac_exeext conftest.$ac_ext 4516LIBS=$ac_check_lib_save_LIBS 4517fi 4518{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4519echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4520if test $ac_cv_lib_ieee_main = yes; then 4521 MATH_LIBS="-lieee $MATH_LIBS" 4522fi 4523 4524 4525 #-------------------------------------------------------------------- 4526 # Interactive UNIX requires -linet instead of -lsocket, plus it 4527 # needs net/errno.h to define the socket-related error codes. 4528 #-------------------------------------------------------------------- 4529 4530 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4531echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4532if test "${ac_cv_lib_inet_main+set}" = set; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 ac_check_lib_save_LIBS=$LIBS 4536LIBS="-linet $LIBS" 4537cat >conftest.$ac_ext <<_ACEOF 4538/* confdefs.h. */ 4539_ACEOF 4540cat confdefs.h >>conftest.$ac_ext 4541cat >>conftest.$ac_ext <<_ACEOF 4542/* end confdefs.h. */ 4543 4544 4545int 4546main () 4547{ 4548return main (); 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553rm -f conftest.$ac_objext conftest$ac_exeext 4554if { (ac_try="$ac_link" 4555case "(($ac_try" in 4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4557 *) ac_try_echo=$ac_try;; 4558esac 4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4560 (eval "$ac_link") 2>conftest.er1 4561 ac_status=$? 4562 grep -v '^ *+' conftest.er1 >conftest.err 4563 rm -f conftest.er1 4564 cat conftest.err >&5 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); } && { 4567 test -z "$ac_c_werror_flag" || 4568 test ! -s conftest.err 4569 } && test -s conftest$ac_exeext && 4570 $as_test_x conftest$ac_exeext; then 4571 ac_cv_lib_inet_main=yes 4572else 4573 echo "$as_me: failed program was:" >&5 4574sed 's/^/| /' conftest.$ac_ext >&5 4575 4576 ac_cv_lib_inet_main=no 4577fi 4578 4579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4580 conftest$ac_exeext conftest.$ac_ext 4581LIBS=$ac_check_lib_save_LIBS 4582fi 4583{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4584echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4585if test $ac_cv_lib_inet_main = yes; then 4586 LIBS="$LIBS -linet" 4587fi 4588 4589 if test "${ac_cv_header_net_errno_h+set}" = set; then 4590 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4591echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4592if test "${ac_cv_header_net_errno_h+set}" = set; then 4593 echo $ECHO_N "(cached) $ECHO_C" >&6 4594fi 4595{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4596echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4597else 4598 # Is the header compilable? 4599{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4600echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4601cat >conftest.$ac_ext <<_ACEOF 4602/* confdefs.h. */ 4603_ACEOF 4604cat confdefs.h >>conftest.$ac_ext 4605cat >>conftest.$ac_ext <<_ACEOF 4606/* end confdefs.h. */ 4607$ac_includes_default 4608#include <net/errno.h> 4609_ACEOF 4610rm -f conftest.$ac_objext 4611if { (ac_try="$ac_compile" 4612case "(($ac_try" in 4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4614 *) ac_try_echo=$ac_try;; 4615esac 4616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4617 (eval "$ac_compile") 2>conftest.er1 4618 ac_status=$? 4619 grep -v '^ *+' conftest.er1 >conftest.err 4620 rm -f conftest.er1 4621 cat conftest.err >&5 4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4623 (exit $ac_status); } && { 4624 test -z "$ac_c_werror_flag" || 4625 test ! -s conftest.err 4626 } && test -s conftest.$ac_objext; then 4627 ac_header_compiler=yes 4628else 4629 echo "$as_me: failed program was:" >&5 4630sed 's/^/| /' conftest.$ac_ext >&5 4631 4632 ac_header_compiler=no 4633fi 4634 4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4636{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4637echo "${ECHO_T}$ac_header_compiler" >&6; } 4638 4639# Is the header present? 4640{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4641echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4642cat >conftest.$ac_ext <<_ACEOF 4643/* confdefs.h. */ 4644_ACEOF 4645cat confdefs.h >>conftest.$ac_ext 4646cat >>conftest.$ac_ext <<_ACEOF 4647/* end confdefs.h. */ 4648#include <net/errno.h> 4649_ACEOF 4650if { (ac_try="$ac_cpp conftest.$ac_ext" 4651case "(($ac_try" in 4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4653 *) ac_try_echo=$ac_try;; 4654esac 4655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4657 ac_status=$? 4658 grep -v '^ *+' conftest.er1 >conftest.err 4659 rm -f conftest.er1 4660 cat conftest.err >&5 4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); } >/dev/null && { 4663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4664 test ! -s conftest.err 4665 }; then 4666 ac_header_preproc=yes 4667else 4668 echo "$as_me: failed program was:" >&5 4669sed 's/^/| /' conftest.$ac_ext >&5 4670 4671 ac_header_preproc=no 4672fi 4673 4674rm -f conftest.err conftest.$ac_ext 4675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4676echo "${ECHO_T}$ac_header_preproc" >&6; } 4677 4678# So? What about this header? 4679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4680 yes:no: ) 4681 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4682echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4683 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4684echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4685 ac_header_preproc=yes 4686 ;; 4687 no:yes:* ) 4688 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4689echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4690 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4691echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4692 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4693echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4694 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4695echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4696 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4697echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4698 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4699echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4700 4701 ;; 4702esac 4703{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4704echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4705if test "${ac_cv_header_net_errno_h+set}" = set; then 4706 echo $ECHO_N "(cached) $ECHO_C" >&6 4707else 4708 ac_cv_header_net_errno_h=$ac_header_preproc 4709fi 4710{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4711echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4712 4713fi 4714if test $ac_cv_header_net_errno_h = yes; then 4715 4716 4717cat >>confdefs.h <<\_ACEOF 4718#define HAVE_NET_ERRNO_H 1 4719_ACEOF 4720 4721fi 4722 4723 4724 4725 #-------------------------------------------------------------------- 4726 # Check for the existence of the -lsocket and -lnsl libraries. 4727 # The order here is important, so that they end up in the right 4728 # order in the command line generated by make. Here are some 4729 # special considerations: 4730 # 1. Use "connect" and "accept" to check for -lsocket, and 4731 # "gethostbyname" to check for -lnsl. 4732 # 2. Use each function name only once: can't redo a check because 4733 # autoconf caches the results of the last check and won't redo it. 4734 # 3. Use -lnsl and -lsocket only if they supply procedures that 4735 # aren't already present in the normal libraries. This is because 4736 # IRIX 5.2 has libraries, but they aren't needed and they're 4737 # bogus: they goof up name resolution if used. 4738 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4739 # To get around this problem, check for both libraries together 4740 # if -lsocket doesn't work by itself. 4741 #-------------------------------------------------------------------- 4742 4743 tcl_checkBoth=0 4744 { echo "$as_me:$LINENO: checking for connect" >&5 4745echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4746if test "${ac_cv_func_connect+set}" = set; then 4747 echo $ECHO_N "(cached) $ECHO_C" >&6 4748else 4749 cat >conftest.$ac_ext <<_ACEOF 4750/* confdefs.h. */ 4751_ACEOF 4752cat confdefs.h >>conftest.$ac_ext 4753cat >>conftest.$ac_ext <<_ACEOF 4754/* end confdefs.h. */ 4755/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4756 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4757#define connect innocuous_connect 4758 4759/* System header to define __stub macros and hopefully few prototypes, 4760 which can conflict with char connect (); below. 4761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4762 <limits.h> exists even on freestanding compilers. */ 4763 4764#ifdef __STDC__ 4765# include <limits.h> 4766#else 4767# include <assert.h> 4768#endif 4769 4770#undef connect 4771 4772/* Override any GCC internal prototype to avoid an error. 4773 Use char because int might match the return type of a GCC 4774 builtin and then its argument prototype would still apply. */ 4775#ifdef __cplusplus 4776extern "C" 4777#endif 4778char connect (); 4779/* The GNU C library defines this for functions which it implements 4780 to always fail with ENOSYS. Some functions are actually named 4781 something starting with __ and the normal name is an alias. */ 4782#if defined __stub_connect || defined __stub___connect 4783choke me 4784#endif 4785 4786int 4787main () 4788{ 4789return connect (); 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794rm -f conftest.$ac_objext conftest$ac_exeext 4795if { (ac_try="$ac_link" 4796case "(($ac_try" in 4797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4798 *) ac_try_echo=$ac_try;; 4799esac 4800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4801 (eval "$ac_link") 2>conftest.er1 4802 ac_status=$? 4803 grep -v '^ *+' conftest.er1 >conftest.err 4804 rm -f conftest.er1 4805 cat conftest.err >&5 4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4807 (exit $ac_status); } && { 4808 test -z "$ac_c_werror_flag" || 4809 test ! -s conftest.err 4810 } && test -s conftest$ac_exeext && 4811 $as_test_x conftest$ac_exeext; then 4812 ac_cv_func_connect=yes 4813else 4814 echo "$as_me: failed program was:" >&5 4815sed 's/^/| /' conftest.$ac_ext >&5 4816 4817 ac_cv_func_connect=no 4818fi 4819 4820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4821 conftest$ac_exeext conftest.$ac_ext 4822fi 4823{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4824echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4825if test $ac_cv_func_connect = yes; then 4826 tcl_checkSocket=0 4827else 4828 tcl_checkSocket=1 4829fi 4830 4831 if test "$tcl_checkSocket" = 1; then 4832 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4833echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4834if test "${ac_cv_func_setsockopt+set}" = set; then 4835 echo $ECHO_N "(cached) $ECHO_C" >&6 4836else 4837 cat >conftest.$ac_ext <<_ACEOF 4838/* confdefs.h. */ 4839_ACEOF 4840cat confdefs.h >>conftest.$ac_ext 4841cat >>conftest.$ac_ext <<_ACEOF 4842/* end confdefs.h. */ 4843/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4845#define setsockopt innocuous_setsockopt 4846 4847/* System header to define __stub macros and hopefully few prototypes, 4848 which can conflict with char setsockopt (); below. 4849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4850 <limits.h> exists even on freestanding compilers. */ 4851 4852#ifdef __STDC__ 4853# include <limits.h> 4854#else 4855# include <assert.h> 4856#endif 4857 4858#undef setsockopt 4859 4860/* Override any GCC internal prototype to avoid an error. 4861 Use char because int might match the return type of a GCC 4862 builtin and then its argument prototype would still apply. */ 4863#ifdef __cplusplus 4864extern "C" 4865#endif 4866char setsockopt (); 4867/* The GNU C library defines this for functions which it implements 4868 to always fail with ENOSYS. Some functions are actually named 4869 something starting with __ and the normal name is an alias. */ 4870#if defined __stub_setsockopt || defined __stub___setsockopt 4871choke me 4872#endif 4873 4874int 4875main () 4876{ 4877return setsockopt (); 4878 ; 4879 return 0; 4880} 4881_ACEOF 4882rm -f conftest.$ac_objext conftest$ac_exeext 4883if { (ac_try="$ac_link" 4884case "(($ac_try" in 4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4886 *) ac_try_echo=$ac_try;; 4887esac 4888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4889 (eval "$ac_link") 2>conftest.er1 4890 ac_status=$? 4891 grep -v '^ *+' conftest.er1 >conftest.err 4892 rm -f conftest.er1 4893 cat conftest.err >&5 4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4895 (exit $ac_status); } && { 4896 test -z "$ac_c_werror_flag" || 4897 test ! -s conftest.err 4898 } && test -s conftest$ac_exeext && 4899 $as_test_x conftest$ac_exeext; then 4900 ac_cv_func_setsockopt=yes 4901else 4902 echo "$as_me: failed program was:" >&5 4903sed 's/^/| /' conftest.$ac_ext >&5 4904 4905 ac_cv_func_setsockopt=no 4906fi 4907 4908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4909 conftest$ac_exeext conftest.$ac_ext 4910fi 4911{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4912echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4913if test $ac_cv_func_setsockopt = yes; then 4914 : 4915else 4916 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4917echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4918if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4919 echo $ECHO_N "(cached) $ECHO_C" >&6 4920else 4921 ac_check_lib_save_LIBS=$LIBS 4922LIBS="-lsocket $LIBS" 4923cat >conftest.$ac_ext <<_ACEOF 4924/* confdefs.h. */ 4925_ACEOF 4926cat confdefs.h >>conftest.$ac_ext 4927cat >>conftest.$ac_ext <<_ACEOF 4928/* end confdefs.h. */ 4929 4930/* Override any GCC internal prototype to avoid an error. 4931 Use char because int might match the return type of a GCC 4932 builtin and then its argument prototype would still apply. */ 4933#ifdef __cplusplus 4934extern "C" 4935#endif 4936char setsockopt (); 4937int 4938main () 4939{ 4940return setsockopt (); 4941 ; 4942 return 0; 4943} 4944_ACEOF 4945rm -f conftest.$ac_objext conftest$ac_exeext 4946if { (ac_try="$ac_link" 4947case "(($ac_try" in 4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4949 *) ac_try_echo=$ac_try;; 4950esac 4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4952 (eval "$ac_link") 2>conftest.er1 4953 ac_status=$? 4954 grep -v '^ *+' conftest.er1 >conftest.err 4955 rm -f conftest.er1 4956 cat conftest.err >&5 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); } && { 4959 test -z "$ac_c_werror_flag" || 4960 test ! -s conftest.err 4961 } && test -s conftest$ac_exeext && 4962 $as_test_x conftest$ac_exeext; then 4963 ac_cv_lib_socket_setsockopt=yes 4964else 4965 echo "$as_me: failed program was:" >&5 4966sed 's/^/| /' conftest.$ac_ext >&5 4967 4968 ac_cv_lib_socket_setsockopt=no 4969fi 4970 4971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4972 conftest$ac_exeext conftest.$ac_ext 4973LIBS=$ac_check_lib_save_LIBS 4974fi 4975{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4976echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4977if test $ac_cv_lib_socket_setsockopt = yes; then 4978 LIBS="$LIBS -lsocket" 4979else 4980 tcl_checkBoth=1 4981fi 4982 4983fi 4984 4985 fi 4986 if test "$tcl_checkBoth" = 1; then 4987 tk_oldLibs=$LIBS 4988 LIBS="$LIBS -lsocket -lnsl" 4989 { echo "$as_me:$LINENO: checking for accept" >&5 4990echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4991if test "${ac_cv_func_accept+set}" = set; then 4992 echo $ECHO_N "(cached) $ECHO_C" >&6 4993else 4994 cat >conftest.$ac_ext <<_ACEOF 4995/* confdefs.h. */ 4996_ACEOF 4997cat confdefs.h >>conftest.$ac_ext 4998cat >>conftest.$ac_ext <<_ACEOF 4999/* end confdefs.h. */ 5000/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5001 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5002#define accept innocuous_accept 5003 5004/* System header to define __stub macros and hopefully few prototypes, 5005 which can conflict with char accept (); below. 5006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5007 <limits.h> exists even on freestanding compilers. */ 5008 5009#ifdef __STDC__ 5010# include <limits.h> 5011#else 5012# include <assert.h> 5013#endif 5014 5015#undef accept 5016 5017/* Override any GCC internal prototype to avoid an error. 5018 Use char because int might match the return type of a GCC 5019 builtin and then its argument prototype would still apply. */ 5020#ifdef __cplusplus 5021extern "C" 5022#endif 5023char accept (); 5024/* The GNU C library defines this for functions which it implements 5025 to always fail with ENOSYS. Some functions are actually named 5026 something starting with __ and the normal name is an alias. */ 5027#if defined __stub_accept || defined __stub___accept 5028choke me 5029#endif 5030 5031int 5032main () 5033{ 5034return accept (); 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039rm -f conftest.$ac_objext conftest$ac_exeext 5040if { (ac_try="$ac_link" 5041case "(($ac_try" in 5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5043 *) ac_try_echo=$ac_try;; 5044esac 5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5046 (eval "$ac_link") 2>conftest.er1 5047 ac_status=$? 5048 grep -v '^ *+' conftest.er1 >conftest.err 5049 rm -f conftest.er1 5050 cat conftest.err >&5 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); } && { 5053 test -z "$ac_c_werror_flag" || 5054 test ! -s conftest.err 5055 } && test -s conftest$ac_exeext && 5056 $as_test_x conftest$ac_exeext; then 5057 ac_cv_func_accept=yes 5058else 5059 echo "$as_me: failed program was:" >&5 5060sed 's/^/| /' conftest.$ac_ext >&5 5061 5062 ac_cv_func_accept=no 5063fi 5064 5065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5066 conftest$ac_exeext conftest.$ac_ext 5067fi 5068{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5069echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5070if test $ac_cv_func_accept = yes; then 5071 tcl_checkNsl=0 5072else 5073 LIBS=$tk_oldLibs 5074fi 5075 5076 fi 5077 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5078echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5079if test "${ac_cv_func_gethostbyname+set}" = set; then 5080 echo $ECHO_N "(cached) $ECHO_C" >&6 5081else 5082 cat >conftest.$ac_ext <<_ACEOF 5083/* confdefs.h. */ 5084_ACEOF 5085cat confdefs.h >>conftest.$ac_ext 5086cat >>conftest.$ac_ext <<_ACEOF 5087/* end confdefs.h. */ 5088/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5090#define gethostbyname innocuous_gethostbyname 5091 5092/* System header to define __stub macros and hopefully few prototypes, 5093 which can conflict with char gethostbyname (); below. 5094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5095 <limits.h> exists even on freestanding compilers. */ 5096 5097#ifdef __STDC__ 5098# include <limits.h> 5099#else 5100# include <assert.h> 5101#endif 5102 5103#undef gethostbyname 5104 5105/* Override any GCC internal prototype to avoid an error. 5106 Use char because int might match the return type of a GCC 5107 builtin and then its argument prototype would still apply. */ 5108#ifdef __cplusplus 5109extern "C" 5110#endif 5111char gethostbyname (); 5112/* The GNU C library defines this for functions which it implements 5113 to always fail with ENOSYS. Some functions are actually named 5114 something starting with __ and the normal name is an alias. */ 5115#if defined __stub_gethostbyname || defined __stub___gethostbyname 5116choke me 5117#endif 5118 5119int 5120main () 5121{ 5122return gethostbyname (); 5123 ; 5124 return 0; 5125} 5126_ACEOF 5127rm -f conftest.$ac_objext conftest$ac_exeext 5128if { (ac_try="$ac_link" 5129case "(($ac_try" in 5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5131 *) ac_try_echo=$ac_try;; 5132esac 5133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5134 (eval "$ac_link") 2>conftest.er1 5135 ac_status=$? 5136 grep -v '^ *+' conftest.er1 >conftest.err 5137 rm -f conftest.er1 5138 cat conftest.err >&5 5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5140 (exit $ac_status); } && { 5141 test -z "$ac_c_werror_flag" || 5142 test ! -s conftest.err 5143 } && test -s conftest$ac_exeext && 5144 $as_test_x conftest$ac_exeext; then 5145 ac_cv_func_gethostbyname=yes 5146else 5147 echo "$as_me: failed program was:" >&5 5148sed 's/^/| /' conftest.$ac_ext >&5 5149 5150 ac_cv_func_gethostbyname=no 5151fi 5152 5153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5154 conftest$ac_exeext conftest.$ac_ext 5155fi 5156{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5157echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5158if test $ac_cv_func_gethostbyname = yes; then 5159 : 5160else 5161 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5162echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5163if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5164 echo $ECHO_N "(cached) $ECHO_C" >&6 5165else 5166 ac_check_lib_save_LIBS=$LIBS 5167LIBS="-lnsl $LIBS" 5168cat >conftest.$ac_ext <<_ACEOF 5169/* confdefs.h. */ 5170_ACEOF 5171cat confdefs.h >>conftest.$ac_ext 5172cat >>conftest.$ac_ext <<_ACEOF 5173/* end confdefs.h. */ 5174 5175/* Override any GCC internal prototype to avoid an error. 5176 Use char because int might match the return type of a GCC 5177 builtin and then its argument prototype would still apply. */ 5178#ifdef __cplusplus 5179extern "C" 5180#endif 5181char gethostbyname (); 5182int 5183main () 5184{ 5185return gethostbyname (); 5186 ; 5187 return 0; 5188} 5189_ACEOF 5190rm -f conftest.$ac_objext conftest$ac_exeext 5191if { (ac_try="$ac_link" 5192case "(($ac_try" in 5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5194 *) ac_try_echo=$ac_try;; 5195esac 5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5197 (eval "$ac_link") 2>conftest.er1 5198 ac_status=$? 5199 grep -v '^ *+' conftest.er1 >conftest.err 5200 rm -f conftest.er1 5201 cat conftest.err >&5 5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); } && { 5204 test -z "$ac_c_werror_flag" || 5205 test ! -s conftest.err 5206 } && test -s conftest$ac_exeext && 5207 $as_test_x conftest$ac_exeext; then 5208 ac_cv_lib_nsl_gethostbyname=yes 5209else 5210 echo "$as_me: failed program was:" >&5 5211sed 's/^/| /' conftest.$ac_ext >&5 5212 5213 ac_cv_lib_nsl_gethostbyname=no 5214fi 5215 5216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5217 conftest$ac_exeext conftest.$ac_ext 5218LIBS=$ac_check_lib_save_LIBS 5219fi 5220{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5221echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5222if test $ac_cv_lib_nsl_gethostbyname = yes; then 5223 LIBS="$LIBS -lnsl" 5224fi 5225 5226fi 5227 5228 5229 # TEA specific: Don't perform the eval of the libraries here because 5230 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5231 5232 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5233 5234 5235 5236 5237 { echo "$as_me:$LINENO: checking dirent.h" >&5 5238echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5239if test "${tcl_cv_dirent_h+set}" = set; then 5240 echo $ECHO_N "(cached) $ECHO_C" >&6 5241else 5242 5243 cat >conftest.$ac_ext <<_ACEOF 5244/* confdefs.h. */ 5245_ACEOF 5246cat confdefs.h >>conftest.$ac_ext 5247cat >>conftest.$ac_ext <<_ACEOF 5248/* end confdefs.h. */ 5249#include <sys/types.h> 5250#include <dirent.h> 5251int 5252main () 5253{ 5254 5255#ifndef _POSIX_SOURCE 5256# ifdef __Lynx__ 5257 /* 5258 * Generate compilation error to make the test fail: Lynx headers 5259 * are only valid if really in the POSIX environment. 5260 */ 5261 5262 missing_procedure(); 5263# endif 5264#endif 5265DIR *d; 5266struct dirent *entryPtr; 5267char *p; 5268d = opendir("foobar"); 5269entryPtr = readdir(d); 5270p = entryPtr->d_name; 5271closedir(d); 5272 5273 ; 5274 return 0; 5275} 5276_ACEOF 5277rm -f conftest.$ac_objext conftest$ac_exeext 5278if { (ac_try="$ac_link" 5279case "(($ac_try" in 5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5281 *) ac_try_echo=$ac_try;; 5282esac 5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5284 (eval "$ac_link") 2>conftest.er1 5285 ac_status=$? 5286 grep -v '^ *+' conftest.er1 >conftest.err 5287 rm -f conftest.er1 5288 cat conftest.err >&5 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); } && { 5291 test -z "$ac_c_werror_flag" || 5292 test ! -s conftest.err 5293 } && test -s conftest$ac_exeext && 5294 $as_test_x conftest$ac_exeext; then 5295 tcl_cv_dirent_h=yes 5296else 5297 echo "$as_me: failed program was:" >&5 5298sed 's/^/| /' conftest.$ac_ext >&5 5299 5300 tcl_cv_dirent_h=no 5301fi 5302 5303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5304 conftest$ac_exeext conftest.$ac_ext 5305fi 5306{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5307echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5308 5309 if test $tcl_cv_dirent_h = no; then 5310 5311cat >>confdefs.h <<\_ACEOF 5312#define NO_DIRENT_H 1 5313_ACEOF 5314 5315 fi 5316 5317 # TEA specific: 5318 if test "${ac_cv_header_errno_h+set}" = set; then 5319 { echo "$as_me:$LINENO: checking for errno.h" >&5 5320echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5321if test "${ac_cv_header_errno_h+set}" = set; then 5322 echo $ECHO_N "(cached) $ECHO_C" >&6 5323fi 5324{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5325echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5326else 5327 # Is the header compilable? 5328{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5329echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5330cat >conftest.$ac_ext <<_ACEOF 5331/* confdefs.h. */ 5332_ACEOF 5333cat confdefs.h >>conftest.$ac_ext 5334cat >>conftest.$ac_ext <<_ACEOF 5335/* end confdefs.h. */ 5336$ac_includes_default 5337#include <errno.h> 5338_ACEOF 5339rm -f conftest.$ac_objext 5340if { (ac_try="$ac_compile" 5341case "(($ac_try" in 5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5343 *) ac_try_echo=$ac_try;; 5344esac 5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5346 (eval "$ac_compile") 2>conftest.er1 5347 ac_status=$? 5348 grep -v '^ *+' conftest.er1 >conftest.err 5349 rm -f conftest.er1 5350 cat conftest.err >&5 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5352 (exit $ac_status); } && { 5353 test -z "$ac_c_werror_flag" || 5354 test ! -s conftest.err 5355 } && test -s conftest.$ac_objext; then 5356 ac_header_compiler=yes 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361 ac_header_compiler=no 5362fi 5363 5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5365{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5366echo "${ECHO_T}$ac_header_compiler" >&6; } 5367 5368# Is the header present? 5369{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5370echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5371cat >conftest.$ac_ext <<_ACEOF 5372/* confdefs.h. */ 5373_ACEOF 5374cat confdefs.h >>conftest.$ac_ext 5375cat >>conftest.$ac_ext <<_ACEOF 5376/* end confdefs.h. */ 5377#include <errno.h> 5378_ACEOF 5379if { (ac_try="$ac_cpp conftest.$ac_ext" 5380case "(($ac_try" in 5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5382 *) ac_try_echo=$ac_try;; 5383esac 5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5386 ac_status=$? 5387 grep -v '^ *+' conftest.er1 >conftest.err 5388 rm -f conftest.er1 5389 cat conftest.err >&5 5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); } >/dev/null && { 5392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5393 test ! -s conftest.err 5394 }; then 5395 ac_header_preproc=yes 5396else 5397 echo "$as_me: failed program was:" >&5 5398sed 's/^/| /' conftest.$ac_ext >&5 5399 5400 ac_header_preproc=no 5401fi 5402 5403rm -f conftest.err conftest.$ac_ext 5404{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5405echo "${ECHO_T}$ac_header_preproc" >&6; } 5406 5407# So? What about this header? 5408case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5409 yes:no: ) 5410 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5411echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5412 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5413echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5414 ac_header_preproc=yes 5415 ;; 5416 no:yes:* ) 5417 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5418echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5419 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5420echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5421 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5422echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5423 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5424echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5425 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5426echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5427 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5428echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5429 5430 ;; 5431esac 5432{ echo "$as_me:$LINENO: checking for errno.h" >&5 5433echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5434if test "${ac_cv_header_errno_h+set}" = set; then 5435 echo $ECHO_N "(cached) $ECHO_C" >&6 5436else 5437 ac_cv_header_errno_h=$ac_header_preproc 5438fi 5439{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5440echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5441 5442fi 5443if test $ac_cv_header_errno_h = yes; then 5444 : 5445else 5446 5447cat >>confdefs.h <<\_ACEOF 5448#define NO_ERRNO_H 1 5449_ACEOF 5450 5451fi 5452 5453 5454 if test "${ac_cv_header_float_h+set}" = set; then 5455 { echo "$as_me:$LINENO: checking for float.h" >&5 5456echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5457if test "${ac_cv_header_float_h+set}" = set; then 5458 echo $ECHO_N "(cached) $ECHO_C" >&6 5459fi 5460{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5461echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5462else 5463 # Is the header compilable? 5464{ echo "$as_me:$LINENO: checking float.h usability" >&5 5465echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5466cat >conftest.$ac_ext <<_ACEOF 5467/* confdefs.h. */ 5468_ACEOF 5469cat confdefs.h >>conftest.$ac_ext 5470cat >>conftest.$ac_ext <<_ACEOF 5471/* end confdefs.h. */ 5472$ac_includes_default 5473#include <float.h> 5474_ACEOF 5475rm -f conftest.$ac_objext 5476if { (ac_try="$ac_compile" 5477case "(($ac_try" in 5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5479 *) ac_try_echo=$ac_try;; 5480esac 5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5482 (eval "$ac_compile") 2>conftest.er1 5483 ac_status=$? 5484 grep -v '^ *+' conftest.er1 >conftest.err 5485 rm -f conftest.er1 5486 cat conftest.err >&5 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5488 (exit $ac_status); } && { 5489 test -z "$ac_c_werror_flag" || 5490 test ! -s conftest.err 5491 } && test -s conftest.$ac_objext; then 5492 ac_header_compiler=yes 5493else 5494 echo "$as_me: failed program was:" >&5 5495sed 's/^/| /' conftest.$ac_ext >&5 5496 5497 ac_header_compiler=no 5498fi 5499 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5501{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5502echo "${ECHO_T}$ac_header_compiler" >&6; } 5503 5504# Is the header present? 5505{ echo "$as_me:$LINENO: checking float.h presence" >&5 5506echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5507cat >conftest.$ac_ext <<_ACEOF 5508/* confdefs.h. */ 5509_ACEOF 5510cat confdefs.h >>conftest.$ac_ext 5511cat >>conftest.$ac_ext <<_ACEOF 5512/* end confdefs.h. */ 5513#include <float.h> 5514_ACEOF 5515if { (ac_try="$ac_cpp conftest.$ac_ext" 5516case "(($ac_try" in 5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5518 *) ac_try_echo=$ac_try;; 5519esac 5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5522 ac_status=$? 5523 grep -v '^ *+' conftest.er1 >conftest.err 5524 rm -f conftest.er1 5525 cat conftest.err >&5 5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5527 (exit $ac_status); } >/dev/null && { 5528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5529 test ! -s conftest.err 5530 }; then 5531 ac_header_preproc=yes 5532else 5533 echo "$as_me: failed program was:" >&5 5534sed 's/^/| /' conftest.$ac_ext >&5 5535 5536 ac_header_preproc=no 5537fi 5538 5539rm -f conftest.err conftest.$ac_ext 5540{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5541echo "${ECHO_T}$ac_header_preproc" >&6; } 5542 5543# So? What about this header? 5544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5545 yes:no: ) 5546 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5547echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5548 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5549echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5550 ac_header_preproc=yes 5551 ;; 5552 no:yes:* ) 5553 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5554echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5555 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5556echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5557 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5558echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5559 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5560echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5561 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5562echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5563 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5564echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5565 5566 ;; 5567esac 5568{ echo "$as_me:$LINENO: checking for float.h" >&5 5569echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5570if test "${ac_cv_header_float_h+set}" = set; then 5571 echo $ECHO_N "(cached) $ECHO_C" >&6 5572else 5573 ac_cv_header_float_h=$ac_header_preproc 5574fi 5575{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5576echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5577 5578fi 5579if test $ac_cv_header_float_h = yes; then 5580 : 5581else 5582 5583cat >>confdefs.h <<\_ACEOF 5584#define NO_FLOAT_H 1 5585_ACEOF 5586 5587fi 5588 5589 5590 if test "${ac_cv_header_values_h+set}" = set; then 5591 { echo "$as_me:$LINENO: checking for values.h" >&5 5592echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5593if test "${ac_cv_header_values_h+set}" = set; then 5594 echo $ECHO_N "(cached) $ECHO_C" >&6 5595fi 5596{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5597echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5598else 5599 # Is the header compilable? 5600{ echo "$as_me:$LINENO: checking values.h usability" >&5 5601echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5602cat >conftest.$ac_ext <<_ACEOF 5603/* confdefs.h. */ 5604_ACEOF 5605cat confdefs.h >>conftest.$ac_ext 5606cat >>conftest.$ac_ext <<_ACEOF 5607/* end confdefs.h. */ 5608$ac_includes_default 5609#include <values.h> 5610_ACEOF 5611rm -f conftest.$ac_objext 5612if { (ac_try="$ac_compile" 5613case "(($ac_try" in 5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5615 *) ac_try_echo=$ac_try;; 5616esac 5617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5618 (eval "$ac_compile") 2>conftest.er1 5619 ac_status=$? 5620 grep -v '^ *+' conftest.er1 >conftest.err 5621 rm -f conftest.er1 5622 cat conftest.err >&5 5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5624 (exit $ac_status); } && { 5625 test -z "$ac_c_werror_flag" || 5626 test ! -s conftest.err 5627 } && test -s conftest.$ac_objext; then 5628 ac_header_compiler=yes 5629else 5630 echo "$as_me: failed program was:" >&5 5631sed 's/^/| /' conftest.$ac_ext >&5 5632 5633 ac_header_compiler=no 5634fi 5635 5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5638echo "${ECHO_T}$ac_header_compiler" >&6; } 5639 5640# Is the header present? 5641{ echo "$as_me:$LINENO: checking values.h presence" >&5 5642echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5643cat >conftest.$ac_ext <<_ACEOF 5644/* confdefs.h. */ 5645_ACEOF 5646cat confdefs.h >>conftest.$ac_ext 5647cat >>conftest.$ac_ext <<_ACEOF 5648/* end confdefs.h. */ 5649#include <values.h> 5650_ACEOF 5651if { (ac_try="$ac_cpp conftest.$ac_ext" 5652case "(($ac_try" in 5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5654 *) ac_try_echo=$ac_try;; 5655esac 5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5658 ac_status=$? 5659 grep -v '^ *+' conftest.er1 >conftest.err 5660 rm -f conftest.er1 5661 cat conftest.err >&5 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); } >/dev/null && { 5664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5665 test ! -s conftest.err 5666 }; then 5667 ac_header_preproc=yes 5668else 5669 echo "$as_me: failed program was:" >&5 5670sed 's/^/| /' conftest.$ac_ext >&5 5671 5672 ac_header_preproc=no 5673fi 5674 5675rm -f conftest.err conftest.$ac_ext 5676{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5677echo "${ECHO_T}$ac_header_preproc" >&6; } 5678 5679# So? What about this header? 5680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5681 yes:no: ) 5682 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5683echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5684 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5685echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5686 ac_header_preproc=yes 5687 ;; 5688 no:yes:* ) 5689 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5690echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5691 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5692echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5693 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5694echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5695 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5696echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5697 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5698echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5699 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5700echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5701 5702 ;; 5703esac 5704{ echo "$as_me:$LINENO: checking for values.h" >&5 5705echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5706if test "${ac_cv_header_values_h+set}" = set; then 5707 echo $ECHO_N "(cached) $ECHO_C" >&6 5708else 5709 ac_cv_header_values_h=$ac_header_preproc 5710fi 5711{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5712echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5713 5714fi 5715if test $ac_cv_header_values_h = yes; then 5716 : 5717else 5718 5719cat >>confdefs.h <<\_ACEOF 5720#define NO_VALUES_H 1 5721_ACEOF 5722 5723fi 5724 5725 5726 if test "${ac_cv_header_limits_h+set}" = set; then 5727 { echo "$as_me:$LINENO: checking for limits.h" >&5 5728echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5729if test "${ac_cv_header_limits_h+set}" = set; then 5730 echo $ECHO_N "(cached) $ECHO_C" >&6 5731fi 5732{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5733echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5734else 5735 # Is the header compilable? 5736{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5737echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5738cat >conftest.$ac_ext <<_ACEOF 5739/* confdefs.h. */ 5740_ACEOF 5741cat confdefs.h >>conftest.$ac_ext 5742cat >>conftest.$ac_ext <<_ACEOF 5743/* end confdefs.h. */ 5744$ac_includes_default 5745#include <limits.h> 5746_ACEOF 5747rm -f conftest.$ac_objext 5748if { (ac_try="$ac_compile" 5749case "(($ac_try" in 5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5751 *) ac_try_echo=$ac_try;; 5752esac 5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5754 (eval "$ac_compile") 2>conftest.er1 5755 ac_status=$? 5756 grep -v '^ *+' conftest.er1 >conftest.err 5757 rm -f conftest.er1 5758 cat conftest.err >&5 5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5760 (exit $ac_status); } && { 5761 test -z "$ac_c_werror_flag" || 5762 test ! -s conftest.err 5763 } && test -s conftest.$ac_objext; then 5764 ac_header_compiler=yes 5765else 5766 echo "$as_me: failed program was:" >&5 5767sed 's/^/| /' conftest.$ac_ext >&5 5768 5769 ac_header_compiler=no 5770fi 5771 5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5774echo "${ECHO_T}$ac_header_compiler" >&6; } 5775 5776# Is the header present? 5777{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5778echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5779cat >conftest.$ac_ext <<_ACEOF 5780/* confdefs.h. */ 5781_ACEOF 5782cat confdefs.h >>conftest.$ac_ext 5783cat >>conftest.$ac_ext <<_ACEOF 5784/* end confdefs.h. */ 5785#include <limits.h> 5786_ACEOF 5787if { (ac_try="$ac_cpp conftest.$ac_ext" 5788case "(($ac_try" in 5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5790 *) ac_try_echo=$ac_try;; 5791esac 5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5794 ac_status=$? 5795 grep -v '^ *+' conftest.er1 >conftest.err 5796 rm -f conftest.er1 5797 cat conftest.err >&5 5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5799 (exit $ac_status); } >/dev/null && { 5800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5801 test ! -s conftest.err 5802 }; then 5803 ac_header_preproc=yes 5804else 5805 echo "$as_me: failed program was:" >&5 5806sed 's/^/| /' conftest.$ac_ext >&5 5807 5808 ac_header_preproc=no 5809fi 5810 5811rm -f conftest.err conftest.$ac_ext 5812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5813echo "${ECHO_T}$ac_header_preproc" >&6; } 5814 5815# So? What about this header? 5816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5817 yes:no: ) 5818 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5819echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5820 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5821echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5822 ac_header_preproc=yes 5823 ;; 5824 no:yes:* ) 5825 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5826echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5827 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5828echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5829 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5830echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5831 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5832echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5833 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5834echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5835 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5836echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5837 5838 ;; 5839esac 5840{ echo "$as_me:$LINENO: checking for limits.h" >&5 5841echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5842if test "${ac_cv_header_limits_h+set}" = set; then 5843 echo $ECHO_N "(cached) $ECHO_C" >&6 5844else 5845 ac_cv_header_limits_h=$ac_header_preproc 5846fi 5847{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5848echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5849 5850fi 5851if test $ac_cv_header_limits_h = yes; then 5852 5853cat >>confdefs.h <<\_ACEOF 5854#define HAVE_LIMITS_H 1 5855_ACEOF 5856 5857else 5858 5859cat >>confdefs.h <<\_ACEOF 5860#define NO_LIMITS_H 1 5861_ACEOF 5862 5863fi 5864 5865 5866 if test "${ac_cv_header_stdlib_h+set}" = set; then 5867 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5868echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5869if test "${ac_cv_header_stdlib_h+set}" = set; then 5870 echo $ECHO_N "(cached) $ECHO_C" >&6 5871fi 5872{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5873echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5874else 5875 # Is the header compilable? 5876{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5877echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5878cat >conftest.$ac_ext <<_ACEOF 5879/* confdefs.h. */ 5880_ACEOF 5881cat confdefs.h >>conftest.$ac_ext 5882cat >>conftest.$ac_ext <<_ACEOF 5883/* end confdefs.h. */ 5884$ac_includes_default 5885#include <stdlib.h> 5886_ACEOF 5887rm -f conftest.$ac_objext 5888if { (ac_try="$ac_compile" 5889case "(($ac_try" in 5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5891 *) ac_try_echo=$ac_try;; 5892esac 5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5894 (eval "$ac_compile") 2>conftest.er1 5895 ac_status=$? 5896 grep -v '^ *+' conftest.er1 >conftest.err 5897 rm -f conftest.er1 5898 cat conftest.err >&5 5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); } && { 5901 test -z "$ac_c_werror_flag" || 5902 test ! -s conftest.err 5903 } && test -s conftest.$ac_objext; then 5904 ac_header_compiler=yes 5905else 5906 echo "$as_me: failed program was:" >&5 5907sed 's/^/| /' conftest.$ac_ext >&5 5908 5909 ac_header_compiler=no 5910fi 5911 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5914echo "${ECHO_T}$ac_header_compiler" >&6; } 5915 5916# Is the header present? 5917{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5918echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5919cat >conftest.$ac_ext <<_ACEOF 5920/* confdefs.h. */ 5921_ACEOF 5922cat confdefs.h >>conftest.$ac_ext 5923cat >>conftest.$ac_ext <<_ACEOF 5924/* end confdefs.h. */ 5925#include <stdlib.h> 5926_ACEOF 5927if { (ac_try="$ac_cpp conftest.$ac_ext" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5934 ac_status=$? 5935 grep -v '^ *+' conftest.er1 >conftest.err 5936 rm -f conftest.er1 5937 cat conftest.err >&5 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } >/dev/null && { 5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5941 test ! -s conftest.err 5942 }; then 5943 ac_header_preproc=yes 5944else 5945 echo "$as_me: failed program was:" >&5 5946sed 's/^/| /' conftest.$ac_ext >&5 5947 5948 ac_header_preproc=no 5949fi 5950 5951rm -f conftest.err conftest.$ac_ext 5952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5953echo "${ECHO_T}$ac_header_preproc" >&6; } 5954 5955# So? What about this header? 5956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5957 yes:no: ) 5958 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5959echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5960 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5961echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5962 ac_header_preproc=yes 5963 ;; 5964 no:yes:* ) 5965 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5966echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5967 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5968echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5969 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5970echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5971 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5972echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5973 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5974echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5975 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5976echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5977 5978 ;; 5979esac 5980{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5981echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5982if test "${ac_cv_header_stdlib_h+set}" = set; then 5983 echo $ECHO_N "(cached) $ECHO_C" >&6 5984else 5985 ac_cv_header_stdlib_h=$ac_header_preproc 5986fi 5987{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5988echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5989 5990fi 5991if test $ac_cv_header_stdlib_h = yes; then 5992 tcl_ok=1 5993else 5994 tcl_ok=0 5995fi 5996 5997 5998 cat >conftest.$ac_ext <<_ACEOF 5999/* confdefs.h. */ 6000_ACEOF 6001cat confdefs.h >>conftest.$ac_ext 6002cat >>conftest.$ac_ext <<_ACEOF 6003/* end confdefs.h. */ 6004#include <stdlib.h> 6005 6006_ACEOF 6007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6008 $EGREP "strtol" >/dev/null 2>&1; then 6009 : 6010else 6011 tcl_ok=0 6012fi 6013rm -f -r conftest* 6014 6015 cat >conftest.$ac_ext <<_ACEOF 6016/* confdefs.h. */ 6017_ACEOF 6018cat confdefs.h >>conftest.$ac_ext 6019cat >>conftest.$ac_ext <<_ACEOF 6020/* end confdefs.h. */ 6021#include <stdlib.h> 6022 6023_ACEOF 6024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6025 $EGREP "strtoul" >/dev/null 2>&1; then 6026 : 6027else 6028 tcl_ok=0 6029fi 6030rm -f -r conftest* 6031 6032 cat >conftest.$ac_ext <<_ACEOF 6033/* confdefs.h. */ 6034_ACEOF 6035cat confdefs.h >>conftest.$ac_ext 6036cat >>conftest.$ac_ext <<_ACEOF 6037/* end confdefs.h. */ 6038#include <stdlib.h> 6039 6040_ACEOF 6041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6042 $EGREP "strtod" >/dev/null 2>&1; then 6043 : 6044else 6045 tcl_ok=0 6046fi 6047rm -f -r conftest* 6048 6049 if test $tcl_ok = 0; then 6050 6051cat >>confdefs.h <<\_ACEOF 6052#define NO_STDLIB_H 1 6053_ACEOF 6054 6055 fi 6056 if test "${ac_cv_header_string_h+set}" = set; then 6057 { echo "$as_me:$LINENO: checking for string.h" >&5 6058echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6059if test "${ac_cv_header_string_h+set}" = set; then 6060 echo $ECHO_N "(cached) $ECHO_C" >&6 6061fi 6062{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6063echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6064else 6065 # Is the header compilable? 6066{ echo "$as_me:$LINENO: checking string.h usability" >&5 6067echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6068cat >conftest.$ac_ext <<_ACEOF 6069/* confdefs.h. */ 6070_ACEOF 6071cat confdefs.h >>conftest.$ac_ext 6072cat >>conftest.$ac_ext <<_ACEOF 6073/* end confdefs.h. */ 6074$ac_includes_default 6075#include <string.h> 6076_ACEOF 6077rm -f conftest.$ac_objext 6078if { (ac_try="$ac_compile" 6079case "(($ac_try" in 6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6081 *) ac_try_echo=$ac_try;; 6082esac 6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6084 (eval "$ac_compile") 2>conftest.er1 6085 ac_status=$? 6086 grep -v '^ *+' conftest.er1 >conftest.err 6087 rm -f conftest.er1 6088 cat conftest.err >&5 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); } && { 6091 test -z "$ac_c_werror_flag" || 6092 test ! -s conftest.err 6093 } && test -s conftest.$ac_objext; then 6094 ac_header_compiler=yes 6095else 6096 echo "$as_me: failed program was:" >&5 6097sed 's/^/| /' conftest.$ac_ext >&5 6098 6099 ac_header_compiler=no 6100fi 6101 6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6104echo "${ECHO_T}$ac_header_compiler" >&6; } 6105 6106# Is the header present? 6107{ echo "$as_me:$LINENO: checking string.h presence" >&5 6108echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6109cat >conftest.$ac_ext <<_ACEOF 6110/* confdefs.h. */ 6111_ACEOF 6112cat confdefs.h >>conftest.$ac_ext 6113cat >>conftest.$ac_ext <<_ACEOF 6114/* end confdefs.h. */ 6115#include <string.h> 6116_ACEOF 6117if { (ac_try="$ac_cpp conftest.$ac_ext" 6118case "(($ac_try" in 6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6120 *) ac_try_echo=$ac_try;; 6121esac 6122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6124 ac_status=$? 6125 grep -v '^ *+' conftest.er1 >conftest.err 6126 rm -f conftest.er1 6127 cat conftest.err >&5 6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6129 (exit $ac_status); } >/dev/null && { 6130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6131 test ! -s conftest.err 6132 }; then 6133 ac_header_preproc=yes 6134else 6135 echo "$as_me: failed program was:" >&5 6136sed 's/^/| /' conftest.$ac_ext >&5 6137 6138 ac_header_preproc=no 6139fi 6140 6141rm -f conftest.err conftest.$ac_ext 6142{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6143echo "${ECHO_T}$ac_header_preproc" >&6; } 6144 6145# So? What about this header? 6146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6147 yes:no: ) 6148 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6149echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6150 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6151echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6152 ac_header_preproc=yes 6153 ;; 6154 no:yes:* ) 6155 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6156echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6157 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6158echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6159 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6160echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6161 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6162echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6163 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6164echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6165 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6166echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6167 6168 ;; 6169esac 6170{ echo "$as_me:$LINENO: checking for string.h" >&5 6171echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6172if test "${ac_cv_header_string_h+set}" = set; then 6173 echo $ECHO_N "(cached) $ECHO_C" >&6 6174else 6175 ac_cv_header_string_h=$ac_header_preproc 6176fi 6177{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6178echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6179 6180fi 6181if test $ac_cv_header_string_h = yes; then 6182 tcl_ok=1 6183else 6184 tcl_ok=0 6185fi 6186 6187 6188 cat >conftest.$ac_ext <<_ACEOF 6189/* confdefs.h. */ 6190_ACEOF 6191cat confdefs.h >>conftest.$ac_ext 6192cat >>conftest.$ac_ext <<_ACEOF 6193/* end confdefs.h. */ 6194#include <string.h> 6195 6196_ACEOF 6197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6198 $EGREP "strstr" >/dev/null 2>&1; then 6199 : 6200else 6201 tcl_ok=0 6202fi 6203rm -f -r conftest* 6204 6205 cat >conftest.$ac_ext <<_ACEOF 6206/* confdefs.h. */ 6207_ACEOF 6208cat confdefs.h >>conftest.$ac_ext 6209cat >>conftest.$ac_ext <<_ACEOF 6210/* end confdefs.h. */ 6211#include <string.h> 6212 6213_ACEOF 6214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6215 $EGREP "strerror" >/dev/null 2>&1; then 6216 : 6217else 6218 tcl_ok=0 6219fi 6220rm -f -r conftest* 6221 6222 6223 # See also memmove check below for a place where NO_STRING_H can be 6224 # set and why. 6225 6226 if test $tcl_ok = 0; then 6227 6228cat >>confdefs.h <<\_ACEOF 6229#define NO_STRING_H 1 6230_ACEOF 6231 6232 fi 6233 6234 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6235 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6236echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6237if test "${ac_cv_header_sys_wait_h+set}" = set; then 6238 echo $ECHO_N "(cached) $ECHO_C" >&6 6239fi 6240{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6241echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6242else 6243 # Is the header compilable? 6244{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6245echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6246cat >conftest.$ac_ext <<_ACEOF 6247/* confdefs.h. */ 6248_ACEOF 6249cat confdefs.h >>conftest.$ac_ext 6250cat >>conftest.$ac_ext <<_ACEOF 6251/* end confdefs.h. */ 6252$ac_includes_default 6253#include <sys/wait.h> 6254_ACEOF 6255rm -f conftest.$ac_objext 6256if { (ac_try="$ac_compile" 6257case "(($ac_try" in 6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6259 *) ac_try_echo=$ac_try;; 6260esac 6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6262 (eval "$ac_compile") 2>conftest.er1 6263 ac_status=$? 6264 grep -v '^ *+' conftest.er1 >conftest.err 6265 rm -f conftest.er1 6266 cat conftest.err >&5 6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6268 (exit $ac_status); } && { 6269 test -z "$ac_c_werror_flag" || 6270 test ! -s conftest.err 6271 } && test -s conftest.$ac_objext; then 6272 ac_header_compiler=yes 6273else 6274 echo "$as_me: failed program was:" >&5 6275sed 's/^/| /' conftest.$ac_ext >&5 6276 6277 ac_header_compiler=no 6278fi 6279 6280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6281{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6282echo "${ECHO_T}$ac_header_compiler" >&6; } 6283 6284# Is the header present? 6285{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6286echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6287cat >conftest.$ac_ext <<_ACEOF 6288/* confdefs.h. */ 6289_ACEOF 6290cat confdefs.h >>conftest.$ac_ext 6291cat >>conftest.$ac_ext <<_ACEOF 6292/* end confdefs.h. */ 6293#include <sys/wait.h> 6294_ACEOF 6295if { (ac_try="$ac_cpp conftest.$ac_ext" 6296case "(($ac_try" in 6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6298 *) ac_try_echo=$ac_try;; 6299esac 6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } >/dev/null && { 6308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6309 test ! -s conftest.err 6310 }; then 6311 ac_header_preproc=yes 6312else 6313 echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 ac_header_preproc=no 6317fi 6318 6319rm -f conftest.err conftest.$ac_ext 6320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6321echo "${ECHO_T}$ac_header_preproc" >&6; } 6322 6323# So? What about this header? 6324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6325 yes:no: ) 6326 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6327echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6328 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6329echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6330 ac_header_preproc=yes 6331 ;; 6332 no:yes:* ) 6333 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6334echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6335 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6336echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6337 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6338echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6339 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6340echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6341 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6342echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6343 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6344echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6345 6346 ;; 6347esac 6348{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6349echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6350if test "${ac_cv_header_sys_wait_h+set}" = set; then 6351 echo $ECHO_N "(cached) $ECHO_C" >&6 6352else 6353 ac_cv_header_sys_wait_h=$ac_header_preproc 6354fi 6355{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6356echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6357 6358fi 6359if test $ac_cv_header_sys_wait_h = yes; then 6360 : 6361else 6362 6363cat >>confdefs.h <<\_ACEOF 6364#define NO_SYS_WAIT_H 1 6365_ACEOF 6366 6367fi 6368 6369 6370 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6371 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6372echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6373if test "${ac_cv_header_dlfcn_h+set}" = set; then 6374 echo $ECHO_N "(cached) $ECHO_C" >&6 6375fi 6376{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6377echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6378else 6379 # Is the header compilable? 6380{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6381echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6382cat >conftest.$ac_ext <<_ACEOF 6383/* confdefs.h. */ 6384_ACEOF 6385cat confdefs.h >>conftest.$ac_ext 6386cat >>conftest.$ac_ext <<_ACEOF 6387/* end confdefs.h. */ 6388$ac_includes_default 6389#include <dlfcn.h> 6390_ACEOF 6391rm -f conftest.$ac_objext 6392if { (ac_try="$ac_compile" 6393case "(($ac_try" in 6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6395 *) ac_try_echo=$ac_try;; 6396esac 6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6398 (eval "$ac_compile") 2>conftest.er1 6399 ac_status=$? 6400 grep -v '^ *+' conftest.er1 >conftest.err 6401 rm -f conftest.er1 6402 cat conftest.err >&5 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6404 (exit $ac_status); } && { 6405 test -z "$ac_c_werror_flag" || 6406 test ! -s conftest.err 6407 } && test -s conftest.$ac_objext; then 6408 ac_header_compiler=yes 6409else 6410 echo "$as_me: failed program was:" >&5 6411sed 's/^/| /' conftest.$ac_ext >&5 6412 6413 ac_header_compiler=no 6414fi 6415 6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6417{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6418echo "${ECHO_T}$ac_header_compiler" >&6; } 6419 6420# Is the header present? 6421{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6422echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6423cat >conftest.$ac_ext <<_ACEOF 6424/* confdefs.h. */ 6425_ACEOF 6426cat confdefs.h >>conftest.$ac_ext 6427cat >>conftest.$ac_ext <<_ACEOF 6428/* end confdefs.h. */ 6429#include <dlfcn.h> 6430_ACEOF 6431if { (ac_try="$ac_cpp conftest.$ac_ext" 6432case "(($ac_try" in 6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6434 *) ac_try_echo=$ac_try;; 6435esac 6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6438 ac_status=$? 6439 grep -v '^ *+' conftest.er1 >conftest.err 6440 rm -f conftest.er1 6441 cat conftest.err >&5 6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6443 (exit $ac_status); } >/dev/null && { 6444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6445 test ! -s conftest.err 6446 }; then 6447 ac_header_preproc=yes 6448else 6449 echo "$as_me: failed program was:" >&5 6450sed 's/^/| /' conftest.$ac_ext >&5 6451 6452 ac_header_preproc=no 6453fi 6454 6455rm -f conftest.err conftest.$ac_ext 6456{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6457echo "${ECHO_T}$ac_header_preproc" >&6; } 6458 6459# So? What about this header? 6460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6461 yes:no: ) 6462 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6463echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6464 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6465echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6466 ac_header_preproc=yes 6467 ;; 6468 no:yes:* ) 6469 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6470echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6471 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6472echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6473 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6474echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6475 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6476echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6477 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6478echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6479 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6480echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6481 6482 ;; 6483esac 6484{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6485echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6486if test "${ac_cv_header_dlfcn_h+set}" = set; then 6487 echo $ECHO_N "(cached) $ECHO_C" >&6 6488else 6489 ac_cv_header_dlfcn_h=$ac_header_preproc 6490fi 6491{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6492echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6493 6494fi 6495if test $ac_cv_header_dlfcn_h = yes; then 6496 : 6497else 6498 6499cat >>confdefs.h <<\_ACEOF 6500#define NO_DLFCN_H 1 6501_ACEOF 6502 6503fi 6504 6505 6506 6507 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6508 6509for ac_header in sys/param.h 6510do 6511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6513 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6516 echo $ECHO_N "(cached) $ECHO_C" >&6 6517fi 6518ac_res=`eval echo '${'$as_ac_Header'}'` 6519 { echo "$as_me:$LINENO: result: $ac_res" >&5 6520echo "${ECHO_T}$ac_res" >&6; } 6521else 6522 # Is the header compilable? 6523{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6525cat >conftest.$ac_ext <<_ACEOF 6526/* confdefs.h. */ 6527_ACEOF 6528cat confdefs.h >>conftest.$ac_ext 6529cat >>conftest.$ac_ext <<_ACEOF 6530/* end confdefs.h. */ 6531$ac_includes_default 6532#include <$ac_header> 6533_ACEOF 6534rm -f conftest.$ac_objext 6535if { (ac_try="$ac_compile" 6536case "(($ac_try" in 6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6538 *) ac_try_echo=$ac_try;; 6539esac 6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6541 (eval "$ac_compile") 2>conftest.er1 6542 ac_status=$? 6543 grep -v '^ *+' conftest.er1 >conftest.err 6544 rm -f conftest.er1 6545 cat conftest.err >&5 6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6547 (exit $ac_status); } && { 6548 test -z "$ac_c_werror_flag" || 6549 test ! -s conftest.err 6550 } && test -s conftest.$ac_objext; then 6551 ac_header_compiler=yes 6552else 6553 echo "$as_me: failed program was:" >&5 6554sed 's/^/| /' conftest.$ac_ext >&5 6555 6556 ac_header_compiler=no 6557fi 6558 6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6560{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6561echo "${ECHO_T}$ac_header_compiler" >&6; } 6562 6563# Is the header present? 6564{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6566cat >conftest.$ac_ext <<_ACEOF 6567/* confdefs.h. */ 6568_ACEOF 6569cat confdefs.h >>conftest.$ac_ext 6570cat >>conftest.$ac_ext <<_ACEOF 6571/* end confdefs.h. */ 6572#include <$ac_header> 6573_ACEOF 6574if { (ac_try="$ac_cpp conftest.$ac_ext" 6575case "(($ac_try" in 6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6577 *) ac_try_echo=$ac_try;; 6578esac 6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6581 ac_status=$? 6582 grep -v '^ *+' conftest.er1 >conftest.err 6583 rm -f conftest.er1 6584 cat conftest.err >&5 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6586 (exit $ac_status); } >/dev/null && { 6587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6588 test ! -s conftest.err 6589 }; then 6590 ac_header_preproc=yes 6591else 6592 echo "$as_me: failed program was:" >&5 6593sed 's/^/| /' conftest.$ac_ext >&5 6594 6595 ac_header_preproc=no 6596fi 6597 6598rm -f conftest.err conftest.$ac_ext 6599{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6600echo "${ECHO_T}$ac_header_preproc" >&6; } 6601 6602# So? What about this header? 6603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6604 yes:no: ) 6605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6609 ac_header_preproc=yes 6610 ;; 6611 no:yes:* ) 6612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6624 6625 ;; 6626esac 6627{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6630 echo $ECHO_N "(cached) $ECHO_C" >&6 6631else 6632 eval "$as_ac_Header=\$ac_header_preproc" 6633fi 6634ac_res=`eval echo '${'$as_ac_Header'}'` 6635 { echo "$as_me:$LINENO: result: $ac_res" >&5 6636echo "${ECHO_T}$ac_res" >&6; } 6637 6638fi 6639if test `eval echo '${'$as_ac_Header'}'` = yes; then 6640 cat >>confdefs.h <<_ACEOF 6641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6642_ACEOF 6643 6644fi 6645 6646done 6647 6648 6649 # Let the user call this, because if it triggers, they will 6650 # need a compat/strtod.c that is correct. Users can also 6651 # use Tcl_GetDouble(FromObj) instead. 6652 #TEA_BUGGY_STRTOD 6653 fi 6654 6655 6656 6657 # 6658 # Ok, lets find the Tclxml configuration 6659 # First, look for one uninstalled. 6660 # the alternative search directory is invoked by --with-Tclxml 6661 # 6662 6663 if test x"${no_Tclxml}" = x ; then 6664 # we reset no_Tclxml in case something fails here 6665 no_Tclxml=true 6666 6667# Check whether --with-Tclxml was given. 6668if test "${with_Tclxml+set}" = set; then 6669 withval=$with_Tclxml; with_Tclxmlconfig=${withval} 6670fi 6671 6672 { echo "$as_me:$LINENO: checking for Tclxml configuration" >&5 6673echo $ECHO_N "checking for Tclxml configuration... $ECHO_C" >&6; } 6674 if test "${ac_cv_c_Tclxmlconfig+set}" = set; then 6675 echo $ECHO_N "(cached) $ECHO_C" >&6 6676else 6677 6678 6679 # First check to see if --with-Tclxml was specified. 6680 if test x"${with_Tclxmlconfig}" != x ; then 6681 case ${with_Tclxmlconfig} in 6682 */TclxmlConfig.sh ) 6683 if test -f ${with_Tclxmlconfig}; then 6684 { echo "$as_me:$LINENO: WARNING: --with-Tclxml argument should refer to directory containing TclxmlConfig.sh, not to TclxmlConfig.sh itself" >&5 6685echo "$as_me: WARNING: --with-Tclxml argument should refer to directory containing TclxmlConfig.sh, not to TclxmlConfig.sh itself" >&2;} 6686 with_Tclxmlconfig=`echo ${with_Tclxmlconfig} | sed 's!/TclxmlConfig\.sh$!!'` 6687 fi;; 6688 esac 6689 if test -f "${with_Tclxmlconfig}/TclxmlConfig.sh" ; then 6690 ac_cv_c_Tclxmlconfig=`(cd ${with_Tclxmlconfig}; pwd)` 6691 else 6692 { { echo "$as_me:$LINENO: error: ${with_Tclxmlconfig} directory doesn't contain TclxmlConfig.sh" >&5 6693echo "$as_me: error: ${with_Tclxmlconfig} directory doesn't contain TclxmlConfig.sh" >&2;} 6694 { (exit 1); exit 1; }; } 6695 fi 6696 fi 6697 6698 # then check for a private Tclxml installation 6699 if test x"${ac_cv_c_Tclxmlconfig}" = x ; then 6700 for i in \ 6701 ../Tclxml \ 6702 `ls -dr ../Tclxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6703 `ls -dr ../Tclxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6704 `ls -dr ../Tclxml*[0-9].[0-9] 2>/dev/null` \ 6705 `ls -dr ../Tclxml*[0-9].[0-9]* 2>/dev/null` \ 6706 ../../Tclxml \ 6707 `ls -dr ../../Tclxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6708 `ls -dr ../../Tclxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6709 `ls -dr ../../Tclxml*[0-9].[0-9] 2>/dev/null` \ 6710 `ls -dr ../../Tclxml*[0-9].[0-9]* 2>/dev/null` \ 6711 ../../../Tclxml \ 6712 `ls -dr ../../../Tclxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6713 `ls -dr ../../../Tclxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6714 `ls -dr ../../../Tclxml*[0-9].[0-9] 2>/dev/null` \ 6715 `ls -dr ../../../Tclxml*[0-9].[0-9]* 2>/dev/null` \ 6716 ${srcdir}/../Tclxml \ 6717 `ls -dr ${srcdir}/../Tclxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6718 `ls -dr ${srcdir}/../Tclxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6719 `ls -dr ${srcdir}/../Tclxml*[0-9].[0-9] 2>/dev/null` \ 6720 `ls -dr ${srcdir}/../Tclxml*[0-9].[0-9]* 2>/dev/null` \ 6721 ; do 6722 if test -f "$i/TclxmlConfig.sh" ; then 6723 ac_cv_c_Tclxmlconfig=`(cd $i; pwd)` 6724 break 6725 fi 6726 if test -f "$i/unix/TclxmlConfig.sh" ; then 6727 ac_cv_c_Tclxmlconfig=`(cd $i/unix; pwd)` 6728 break 6729 fi 6730 done 6731 fi 6732 6733 # check in a few common install locations 6734 if test x"${ac_cv_c_Tclxmlconfig}" = x ; then 6735 for i in `ls -d ${libdir} 2>/dev/null` \ 6736 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6737 `ls -d ${prefix}/lib 2>/dev/null` \ 6738 `ls -d /usr/local/lib 2>/dev/null` \ 6739 `ls -d /usr/contrib/lib 2>/dev/null` \ 6740 `ls -d /usr/lib 2>/dev/null` \ 6741 `ls -d /usr/lib64 2>/dev/null` \ 6742 ; do 6743 if test -f "$i/TclxmlConfig.sh" ; then 6744 ac_cv_c_Tclxmlconfig=`(cd $i; pwd)` 6745 break 6746 fi 6747 done 6748 fi 6749 6750fi 6751 6752 6753 if test x"${ac_cv_c_Tclxmlconfig}" = x ; then 6754 Tclxml_BIN_DIR="# no Tclxml configs found" 6755 { echo "$as_me:$LINENO: WARNING: Cannot find Tclxml configuration definitions" >&5 6756echo "$as_me: WARNING: Cannot find Tclxml configuration definitions" >&2;} 6757 exit 0 6758 else 6759 no_Tclxml= 6760 Tclxml_BIN_DIR=${ac_cv_c_Tclxmlconfig} 6761 { echo "$as_me:$LINENO: result: found $Tclxml_BIN_DIR/TclxmlConfig.sh" >&5 6762echo "${ECHO_T}found $Tclxml_BIN_DIR/TclxmlConfig.sh" >&6; } 6763 fi 6764 fi 6765 6766 6767 { echo "$as_me:$LINENO: checking for existence of ${Tclxml_BIN_DIR}/TclxmlConfig.sh" >&5 6768echo $ECHO_N "checking for existence of ${Tclxml_BIN_DIR}/TclxmlConfig.sh... $ECHO_C" >&6; } 6769 6770 if test -f "${Tclxml_BIN_DIR}/TclxmlConfig.sh" ; then 6771 { echo "$as_me:$LINENO: result: loading" >&5 6772echo "${ECHO_T}loading" >&6; } 6773 . "${Tclxml_BIN_DIR}/TclxmlConfig.sh" 6774 else 6775 { echo "$as_me:$LINENO: result: file not found" >&5 6776echo "${ECHO_T}file not found" >&6; } 6777 fi 6778 6779 # 6780 # If the Tclxml_BIN_DIR is the build directory (not the install directory), 6781 # then set the common variable name to the value of the build variables. 6782 # For example, the variable Tclxml_LIB_SPEC will be set to the value 6783 # of Tclxml_BUILD_LIB_SPEC. An extension should make use of Tclxml_LIB_SPEC 6784 # instead of Tclxml_BUILD_LIB_SPEC since it will work with both an 6785 # installed and uninstalled version of Tcl. 6786 # 6787 6788 if test -f "${Tclxml_BIN_DIR}/Makefile" ; then 6789 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for Tclxml" >&5 6790echo "$as_me: WARNING: Found Makefile - using build library specs for Tclxml" >&2;} 6791 Tclxml_LIB_SPEC=${Tclxml_BUILD_LIB_SPEC} 6792 Tclxml_STUB_LIB_SPEC=${Tclxml_BUILD_STUB_LIB_SPEC} 6793 Tclxml_STUB_LIB_PATH=${Tclxml_BUILD_STUB_LIB_PATH} 6794 fi 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 # Allow the caller to prevent this auto-check by specifying any 2nd arg 6808 if test "x" = x; then 6809 6810 # Check both upper and lower-case variants 6811 # If a dev wanted non-stubs libs, this function could take an option 6812 # to not use _STUB in the paths below 6813 if test "x${Tclxml_STUB_LIB_SPEC}" = x; then 6814 6815 { echo "$as_me:$LINENO: checking For TCLXML_STUB library for LIBS" >&5 6816echo $ECHO_N "checking For TCLXML_STUB library for LIBS... $ECHO_C" >&6; } 6817 # This simplifies the use of stub libraries by automatically adding 6818 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 6819 # but this is called before CONFIG_CFLAGS. More importantly, this adds 6820 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 6821 if test "x${TCLXML_STUB_LIB_SPEC}" != "x" ; then 6822 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 6823 6824 vars="\"`${CYGPATH} ${TCLXML_STUB_LIB_PATH}`\"" 6825 for i in $vars; do 6826 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6827 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6828 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6829 fi 6830 PKG_LIBS="$PKG_LIBS $i" 6831 done 6832 6833 6834 { echo "$as_me:$LINENO: result: using TCLXML_STUB_LIB_PATH ${TCLXML_STUB_LIB_PATH}" >&5 6835echo "${ECHO_T}using TCLXML_STUB_LIB_PATH ${TCLXML_STUB_LIB_PATH}" >&6; } 6836 else 6837 6838 vars="${TCLXML_STUB_LIB_SPEC}" 6839 for i in $vars; do 6840 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6841 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6842 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6843 fi 6844 PKG_LIBS="$PKG_LIBS $i" 6845 done 6846 6847 6848 { echo "$as_me:$LINENO: result: using TCLXML_STUB_LIB_SPEC ${TCLXML_STUB_LIB_SPEC}" >&5 6849echo "${ECHO_T}using TCLXML_STUB_LIB_SPEC ${TCLXML_STUB_LIB_SPEC}" >&6; } 6850 fi 6851 else 6852 { echo "$as_me:$LINENO: result: file not found" >&5 6853echo "${ECHO_T}file not found" >&6; } 6854 fi 6855 6856else 6857 6858 { echo "$as_me:$LINENO: checking For Tclxml_STUB library for LIBS" >&5 6859echo $ECHO_N "checking For Tclxml_STUB library for LIBS... $ECHO_C" >&6; } 6860 # This simplifies the use of stub libraries by automatically adding 6861 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 6862 # but this is called before CONFIG_CFLAGS. More importantly, this adds 6863 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 6864 if test "x${Tclxml_STUB_LIB_SPEC}" != "x" ; then 6865 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 6866 6867 vars="\"`${CYGPATH} ${Tclxml_STUB_LIB_PATH}`\"" 6868 for i in $vars; do 6869 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6870 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6871 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6872 fi 6873 PKG_LIBS="$PKG_LIBS $i" 6874 done 6875 6876 6877 { echo "$as_me:$LINENO: result: using Tclxml_STUB_LIB_PATH ${Tclxml_STUB_LIB_PATH}" >&5 6878echo "${ECHO_T}using Tclxml_STUB_LIB_PATH ${Tclxml_STUB_LIB_PATH}" >&6; } 6879 else 6880 6881 vars="${Tclxml_STUB_LIB_SPEC}" 6882 for i in $vars; do 6883 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6884 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6885 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6886 fi 6887 PKG_LIBS="$PKG_LIBS $i" 6888 done 6889 6890 6891 { echo "$as_me:$LINENO: result: using Tclxml_STUB_LIB_SPEC ${Tclxml_STUB_LIB_SPEC}" >&5 6892echo "${ECHO_T}using Tclxml_STUB_LIB_SPEC ${Tclxml_STUB_LIB_SPEC}" >&6; } 6893 fi 6894 else 6895 { echo "$as_me:$LINENO: result: file not found" >&5 6896echo "${ECHO_T}file not found" >&6; } 6897 fi 6898 6899fi 6900 6901 6902fi 6903 6904 6905 6906#-------------------------------------------------------------------- 6907# __CHANGE__ 6908# Choose which headers you need. Extension authors should try very 6909# hard to only rely on the Tcl public header files. Internal headers 6910# contain private data structures and are subject to change without 6911# notice. 6912# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6913#-------------------------------------------------------------------- 6914 6915 6916 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6917echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6918 6919 6920# Check whether --with-tclinclude was given. 6921if test "${with_tclinclude+set}" = set; then 6922 withval=$with_tclinclude; with_tclinclude=${withval} 6923fi 6924 6925 6926 if test "${ac_cv_c_tclh+set}" = set; then 6927 echo $ECHO_N "(cached) $ECHO_C" >&6 6928else 6929 6930 # Use the value from --with-tclinclude, if it was given 6931 6932 if test x"${with_tclinclude}" != x ; then 6933 if test -f "${with_tclinclude}/tcl.h" ; then 6934 ac_cv_c_tclh=${with_tclinclude} 6935 else 6936 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6937echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6938 { (exit 1); exit 1; }; } 6939 fi 6940 else 6941 list="" 6942 if test "`uname -s`" = "Darwin"; then 6943 # If Tcl was built as a framework, attempt to use 6944 # the framework's Headers directory 6945 case ${TCL_DEFS} in 6946 *TCL_FRAMEWORK*) 6947 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6948 ;; 6949 esac 6950 fi 6951 6952 # Look in the source dir only if Tcl is not installed, 6953 # and in that situation, look there before installed locations. 6954 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6955 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6956 fi 6957 6958 # Check order: pkg --prefix location, Tcl's --prefix location, 6959 # relative to directory of tclConfig.sh. 6960 6961 eval "temp_includedir=${includedir}" 6962 list="$list \ 6963 `ls -d ${temp_includedir} 2>/dev/null` \ 6964 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6965 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6966 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6967 list="$list /usr/local/include /usr/include" 6968 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6969 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6970 list="$list `ls -d ${d} 2>/dev/null`" 6971 fi 6972 fi 6973 for i in $list ; do 6974 if test -f "$i/tcl.h" ; then 6975 ac_cv_c_tclh=$i 6976 break 6977 fi 6978 done 6979 fi 6980 6981fi 6982 6983 6984 # Print a message based on how we determined the include path 6985 6986 if test x"${ac_cv_c_tclh}" = x ; then 6987 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6988echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6989 { (exit 1); exit 1; }; } 6990 else 6991 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6992echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6993 fi 6994 6995 # Convert to a native path and substitute into the output files. 6996 6997 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6998 6999 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7000 7001 7002 7003#TEA_PRIVATE_TCL_HEADERS 7004 7005#-------------------------------------------------------------------- 7006# A few miscellaneous platform-specific items: 7007# 7008# We have to define a special symbol for Windows (BUILD_Tclexpat in this 7009# case) so that we create the export library with the dll. 7010# 7011# Windows creates a few extra files that need to be cleaned up. 7012# We can add more files to clean if our extension creates any extra 7013# files in the future. 7014# 7015# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7016# These will be appended to the current set of compiler flags for 7017# your system. 7018#-------------------------------------------------------------------- 7019 7020if test "${TEA_PLATFORM}" = "windows" ; then 7021 cat >>confdefs.h <<\_ACEOF 7022#define BUILD_Tclexpat 1 7023_ACEOF 7024 7025 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 7026 EXTRA_SOURCES='$(WIN_SOURCES)' 7027else 7028 CLEANFILES="pkgIndex.tcl" 7029 EXTRA_SOURCES='$(UNIX_SOURCES)' 7030fi 7031 7032 7033 7034#-------------------------------------------------------------------- 7035# Check whether --enable-threads or --disable-threads was given. 7036# So far only Tcl responds to this one. 7037#-------------------------------------------------------------------- 7038 7039 7040 # Check whether --enable-threads was given. 7041if test "${enable_threads+set}" = set; then 7042 enableval=$enable_threads; tcl_ok=$enableval 7043else 7044 tcl_ok=yes 7045fi 7046 7047 7048 if test "${enable_threads+set}" = set; then 7049 enableval="$enable_threads" 7050 tcl_ok=$enableval 7051 else 7052 tcl_ok=yes 7053 fi 7054 7055 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7056 TCL_THREADS=1 7057 7058 if test "${TEA_PLATFORM}" != "windows" ; then 7059 # We are always OK on Windows, so check what this platform wants: 7060 7061 # USE_THREAD_ALLOC tells us to try the special thread-based 7062 # allocator that significantly reduces lock contention 7063 7064cat >>confdefs.h <<\_ACEOF 7065#define USE_THREAD_ALLOC 1 7066_ACEOF 7067 7068 7069cat >>confdefs.h <<\_ACEOF 7070#define _REENTRANT 1 7071_ACEOF 7072 7073 if test "`uname -s`" = "SunOS" ; then 7074 7075cat >>confdefs.h <<\_ACEOF 7076#define _POSIX_PTHREAD_SEMANTICS 1 7077_ACEOF 7078 7079 fi 7080 7081cat >>confdefs.h <<\_ACEOF 7082#define _THREAD_SAFE 1 7083_ACEOF 7084 7085 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7086echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7087if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7088 echo $ECHO_N "(cached) $ECHO_C" >&6 7089else 7090 ac_check_lib_save_LIBS=$LIBS 7091LIBS="-lpthread $LIBS" 7092cat >conftest.$ac_ext <<_ACEOF 7093/* confdefs.h. */ 7094_ACEOF 7095cat confdefs.h >>conftest.$ac_ext 7096cat >>conftest.$ac_ext <<_ACEOF 7097/* end confdefs.h. */ 7098 7099/* Override any GCC internal prototype to avoid an error. 7100 Use char because int might match the return type of a GCC 7101 builtin and then its argument prototype would still apply. */ 7102#ifdef __cplusplus 7103extern "C" 7104#endif 7105char pthread_mutex_init (); 7106int 7107main () 7108{ 7109return pthread_mutex_init (); 7110 ; 7111 return 0; 7112} 7113_ACEOF 7114rm -f conftest.$ac_objext conftest$ac_exeext 7115if { (ac_try="$ac_link" 7116case "(($ac_try" in 7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7118 *) ac_try_echo=$ac_try;; 7119esac 7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7121 (eval "$ac_link") 2>conftest.er1 7122 ac_status=$? 7123 grep -v '^ *+' conftest.er1 >conftest.err 7124 rm -f conftest.er1 7125 cat conftest.err >&5 7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7127 (exit $ac_status); } && { 7128 test -z "$ac_c_werror_flag" || 7129 test ! -s conftest.err 7130 } && test -s conftest$ac_exeext && 7131 $as_test_x conftest$ac_exeext; then 7132 ac_cv_lib_pthread_pthread_mutex_init=yes 7133else 7134 echo "$as_me: failed program was:" >&5 7135sed 's/^/| /' conftest.$ac_ext >&5 7136 7137 ac_cv_lib_pthread_pthread_mutex_init=no 7138fi 7139 7140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7141 conftest$ac_exeext conftest.$ac_ext 7142LIBS=$ac_check_lib_save_LIBS 7143fi 7144{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7145echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7146if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7147 tcl_ok=yes 7148else 7149 tcl_ok=no 7150fi 7151 7152 if test "$tcl_ok" = "no"; then 7153 # Check a little harder for __pthread_mutex_init in the same 7154 # library, as some systems hide it there until pthread.h is 7155 # defined. We could alternatively do an AC_TRY_COMPILE with 7156 # pthread.h, but that will work with libpthread really doesn't 7157 # exist, like AIX 4.2. [Bug: 4359] 7158 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7159echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7160if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7161 echo $ECHO_N "(cached) $ECHO_C" >&6 7162else 7163 ac_check_lib_save_LIBS=$LIBS 7164LIBS="-lpthread $LIBS" 7165cat >conftest.$ac_ext <<_ACEOF 7166/* confdefs.h. */ 7167_ACEOF 7168cat confdefs.h >>conftest.$ac_ext 7169cat >>conftest.$ac_ext <<_ACEOF 7170/* end confdefs.h. */ 7171 7172/* Override any GCC internal prototype to avoid an error. 7173 Use char because int might match the return type of a GCC 7174 builtin and then its argument prototype would still apply. */ 7175#ifdef __cplusplus 7176extern "C" 7177#endif 7178char __pthread_mutex_init (); 7179int 7180main () 7181{ 7182return __pthread_mutex_init (); 7183 ; 7184 return 0; 7185} 7186_ACEOF 7187rm -f conftest.$ac_objext conftest$ac_exeext 7188if { (ac_try="$ac_link" 7189case "(($ac_try" in 7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7191 *) ac_try_echo=$ac_try;; 7192esac 7193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7194 (eval "$ac_link") 2>conftest.er1 7195 ac_status=$? 7196 grep -v '^ *+' conftest.er1 >conftest.err 7197 rm -f conftest.er1 7198 cat conftest.err >&5 7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7200 (exit $ac_status); } && { 7201 test -z "$ac_c_werror_flag" || 7202 test ! -s conftest.err 7203 } && test -s conftest$ac_exeext && 7204 $as_test_x conftest$ac_exeext; then 7205 ac_cv_lib_pthread___pthread_mutex_init=yes 7206else 7207 echo "$as_me: failed program was:" >&5 7208sed 's/^/| /' conftest.$ac_ext >&5 7209 7210 ac_cv_lib_pthread___pthread_mutex_init=no 7211fi 7212 7213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7214 conftest$ac_exeext conftest.$ac_ext 7215LIBS=$ac_check_lib_save_LIBS 7216fi 7217{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7218echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7219if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7220 tcl_ok=yes 7221else 7222 tcl_ok=no 7223fi 7224 7225 fi 7226 7227 if test "$tcl_ok" = "yes"; then 7228 # The space is needed 7229 THREADS_LIBS=" -lpthread" 7230 else 7231 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7232echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7233if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7234 echo $ECHO_N "(cached) $ECHO_C" >&6 7235else 7236 ac_check_lib_save_LIBS=$LIBS 7237LIBS="-lpthreads $LIBS" 7238cat >conftest.$ac_ext <<_ACEOF 7239/* confdefs.h. */ 7240_ACEOF 7241cat confdefs.h >>conftest.$ac_ext 7242cat >>conftest.$ac_ext <<_ACEOF 7243/* end confdefs.h. */ 7244 7245/* Override any GCC internal prototype to avoid an error. 7246 Use char because int might match the return type of a GCC 7247 builtin and then its argument prototype would still apply. */ 7248#ifdef __cplusplus 7249extern "C" 7250#endif 7251char pthread_mutex_init (); 7252int 7253main () 7254{ 7255return pthread_mutex_init (); 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260rm -f conftest.$ac_objext conftest$ac_exeext 7261if { (ac_try="$ac_link" 7262case "(($ac_try" in 7263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7264 *) ac_try_echo=$ac_try;; 7265esac 7266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7267 (eval "$ac_link") 2>conftest.er1 7268 ac_status=$? 7269 grep -v '^ *+' conftest.er1 >conftest.err 7270 rm -f conftest.er1 7271 cat conftest.err >&5 7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7273 (exit $ac_status); } && { 7274 test -z "$ac_c_werror_flag" || 7275 test ! -s conftest.err 7276 } && test -s conftest$ac_exeext && 7277 $as_test_x conftest$ac_exeext; then 7278 ac_cv_lib_pthreads_pthread_mutex_init=yes 7279else 7280 echo "$as_me: failed program was:" >&5 7281sed 's/^/| /' conftest.$ac_ext >&5 7282 7283 ac_cv_lib_pthreads_pthread_mutex_init=no 7284fi 7285 7286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7287 conftest$ac_exeext conftest.$ac_ext 7288LIBS=$ac_check_lib_save_LIBS 7289fi 7290{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7291echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7292if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7293 tcl_ok=yes 7294else 7295 tcl_ok=no 7296fi 7297 7298 if test "$tcl_ok" = "yes"; then 7299 # The space is needed 7300 THREADS_LIBS=" -lpthreads" 7301 else 7302 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7303echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7304if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7305 echo $ECHO_N "(cached) $ECHO_C" >&6 7306else 7307 ac_check_lib_save_LIBS=$LIBS 7308LIBS="-lc $LIBS" 7309cat >conftest.$ac_ext <<_ACEOF 7310/* confdefs.h. */ 7311_ACEOF 7312cat confdefs.h >>conftest.$ac_ext 7313cat >>conftest.$ac_ext <<_ACEOF 7314/* end confdefs.h. */ 7315 7316/* Override any GCC internal prototype to avoid an error. 7317 Use char because int might match the return type of a GCC 7318 builtin and then its argument prototype would still apply. */ 7319#ifdef __cplusplus 7320extern "C" 7321#endif 7322char pthread_mutex_init (); 7323int 7324main () 7325{ 7326return pthread_mutex_init (); 7327 ; 7328 return 0; 7329} 7330_ACEOF 7331rm -f conftest.$ac_objext conftest$ac_exeext 7332if { (ac_try="$ac_link" 7333case "(($ac_try" in 7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7335 *) ac_try_echo=$ac_try;; 7336esac 7337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7338 (eval "$ac_link") 2>conftest.er1 7339 ac_status=$? 7340 grep -v '^ *+' conftest.er1 >conftest.err 7341 rm -f conftest.er1 7342 cat conftest.err >&5 7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7344 (exit $ac_status); } && { 7345 test -z "$ac_c_werror_flag" || 7346 test ! -s conftest.err 7347 } && test -s conftest$ac_exeext && 7348 $as_test_x conftest$ac_exeext; then 7349 ac_cv_lib_c_pthread_mutex_init=yes 7350else 7351 echo "$as_me: failed program was:" >&5 7352sed 's/^/| /' conftest.$ac_ext >&5 7353 7354 ac_cv_lib_c_pthread_mutex_init=no 7355fi 7356 7357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7358 conftest$ac_exeext conftest.$ac_ext 7359LIBS=$ac_check_lib_save_LIBS 7360fi 7361{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7362echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7363if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7364 tcl_ok=yes 7365else 7366 tcl_ok=no 7367fi 7368 7369 if test "$tcl_ok" = "no"; then 7370 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7371echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7372if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7373 echo $ECHO_N "(cached) $ECHO_C" >&6 7374else 7375 ac_check_lib_save_LIBS=$LIBS 7376LIBS="-lc_r $LIBS" 7377cat >conftest.$ac_ext <<_ACEOF 7378/* confdefs.h. */ 7379_ACEOF 7380cat confdefs.h >>conftest.$ac_ext 7381cat >>conftest.$ac_ext <<_ACEOF 7382/* end confdefs.h. */ 7383 7384/* Override any GCC internal prototype to avoid an error. 7385 Use char because int might match the return type of a GCC 7386 builtin and then its argument prototype would still apply. */ 7387#ifdef __cplusplus 7388extern "C" 7389#endif 7390char pthread_mutex_init (); 7391int 7392main () 7393{ 7394return pthread_mutex_init (); 7395 ; 7396 return 0; 7397} 7398_ACEOF 7399rm -f conftest.$ac_objext conftest$ac_exeext 7400if { (ac_try="$ac_link" 7401case "(($ac_try" in 7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7403 *) ac_try_echo=$ac_try;; 7404esac 7405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7406 (eval "$ac_link") 2>conftest.er1 7407 ac_status=$? 7408 grep -v '^ *+' conftest.er1 >conftest.err 7409 rm -f conftest.er1 7410 cat conftest.err >&5 7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7412 (exit $ac_status); } && { 7413 test -z "$ac_c_werror_flag" || 7414 test ! -s conftest.err 7415 } && test -s conftest$ac_exeext && 7416 $as_test_x conftest$ac_exeext; then 7417 ac_cv_lib_c_r_pthread_mutex_init=yes 7418else 7419 echo "$as_me: failed program was:" >&5 7420sed 's/^/| /' conftest.$ac_ext >&5 7421 7422 ac_cv_lib_c_r_pthread_mutex_init=no 7423fi 7424 7425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7426 conftest$ac_exeext conftest.$ac_ext 7427LIBS=$ac_check_lib_save_LIBS 7428fi 7429{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7430echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7431if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7432 tcl_ok=yes 7433else 7434 tcl_ok=no 7435fi 7436 7437 if test "$tcl_ok" = "yes"; then 7438 # The space is needed 7439 THREADS_LIBS=" -pthread" 7440 else 7441 TCL_THREADS=0 7442 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7443echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7444 fi 7445 fi 7446 fi 7447 fi 7448 fi 7449 else 7450 TCL_THREADS=0 7451 fi 7452 # Do checking message here to not mess up interleaved configure output 7453 { echo "$as_me:$LINENO: checking for building with threads" >&5 7454echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7455 if test "${TCL_THREADS}" = 1; then 7456 7457cat >>confdefs.h <<\_ACEOF 7458#define TCL_THREADS 1 7459_ACEOF 7460 7461 { echo "$as_me:$LINENO: result: yes (default)" >&5 7462echo "${ECHO_T}yes (default)" >&6; } 7463 else 7464 { echo "$as_me:$LINENO: result: no" >&5 7465echo "${ECHO_T}no" >&6; } 7466 fi 7467 # TCL_THREADS sanity checking. See if our request for building with 7468 # threads is the same as the way Tcl was built. If not, warn the user. 7469 case ${TCL_DEFS} in 7470 *THREADS=1*) 7471 if test "${TCL_THREADS}" = "0"; then 7472 { echo "$as_me:$LINENO: WARNING: 7473 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7474 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7475echo "$as_me: WARNING: 7476 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7477 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7478 fi 7479 ;; 7480 *) 7481 if test "${TCL_THREADS}" = "1"; then 7482 { echo "$as_me:$LINENO: WARNING: 7483 --enable-threads requested, but building against a Tcl that is NOT 7484 thread-enabled. This is an OK configuration that will also run in 7485 a thread-enabled core." >&5 7486echo "$as_me: WARNING: 7487 --enable-threads requested, but building against a Tcl that is NOT 7488 thread-enabled. This is an OK configuration that will also run in 7489 a thread-enabled core." >&2;} 7490 fi 7491 ;; 7492 esac 7493 7494 7495 7496#-------------------------------------------------------------------- 7497# The statement below defines a collection of symbols related to 7498# building as a shared library instead of a static library. 7499#-------------------------------------------------------------------- 7500 7501 7502 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7503echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7504 # Check whether --enable-shared was given. 7505if test "${enable_shared+set}" = set; then 7506 enableval=$enable_shared; tcl_ok=$enableval 7507else 7508 tcl_ok=yes 7509fi 7510 7511 7512 if test "${enable_shared+set}" = set; then 7513 enableval="$enable_shared" 7514 tcl_ok=$enableval 7515 else 7516 tcl_ok=yes 7517 fi 7518 7519 if test "$tcl_ok" = "yes" ; then 7520 { echo "$as_me:$LINENO: result: shared" >&5 7521echo "${ECHO_T}shared" >&6; } 7522 SHARED_BUILD=1 7523 else 7524 { echo "$as_me:$LINENO: result: static" >&5 7525echo "${ECHO_T}static" >&6; } 7526 SHARED_BUILD=0 7527 7528cat >>confdefs.h <<\_ACEOF 7529#define STATIC_BUILD 1 7530_ACEOF 7531 7532 fi 7533 7534 7535 7536#-------------------------------------------------------------------- 7537# This macro figures out what flags to use with the compiler/linker 7538# when building shared/static debug/optimized objects. This information 7539# can be taken from the tclConfig.sh file, but this figures it all out. 7540#-------------------------------------------------------------------- 7541 7542 7543 7544 7545 # Step 0.a: Enable 64 bit support? 7546 7547 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7548echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7549 # Check whether --enable-64bit was given. 7550if test "${enable_64bit+set}" = set; then 7551 enableval=$enable_64bit; do64bit=$enableval 7552else 7553 do64bit=no 7554fi 7555 7556 { echo "$as_me:$LINENO: result: $do64bit" >&5 7557echo "${ECHO_T}$do64bit" >&6; } 7558 7559 # Step 0.b: Enable Solaris 64 bit VIS support? 7560 7561 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7562echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7563 # Check whether --enable-64bit-vis was given. 7564if test "${enable_64bit_vis+set}" = set; then 7565 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7566else 7567 do64bitVIS=no 7568fi 7569 7570 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7571echo "${ECHO_T}$do64bitVIS" >&6; } 7572 # Force 64bit on with VIS 7573 if test "$do64bitVIS" = "yes"; then 7574 do64bit=yes 7575fi 7576 7577 7578 # Step 0.c: Check if visibility support is available. Do this here so 7579 # that platform specific alternatives can be used below if this fails. 7580 7581 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7582echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7583if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7584 echo $ECHO_N "(cached) $ECHO_C" >&6 7585else 7586 7587 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7588 cat >conftest.$ac_ext <<_ACEOF 7589/* confdefs.h. */ 7590_ACEOF 7591cat confdefs.h >>conftest.$ac_ext 7592cat >>conftest.$ac_ext <<_ACEOF 7593/* end confdefs.h. */ 7594 7595 extern __attribute__((__visibility__("hidden"))) void f(void); 7596 void f(void) {} 7597int 7598main () 7599{ 7600f(); 7601 ; 7602 return 0; 7603} 7604_ACEOF 7605rm -f conftest.$ac_objext conftest$ac_exeext 7606if { (ac_try="$ac_link" 7607case "(($ac_try" in 7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7609 *) ac_try_echo=$ac_try;; 7610esac 7611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7612 (eval "$ac_link") 2>conftest.er1 7613 ac_status=$? 7614 grep -v '^ *+' conftest.er1 >conftest.err 7615 rm -f conftest.er1 7616 cat conftest.err >&5 7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7618 (exit $ac_status); } && { 7619 test -z "$ac_c_werror_flag" || 7620 test ! -s conftest.err 7621 } && test -s conftest$ac_exeext && 7622 $as_test_x conftest$ac_exeext; then 7623 tcl_cv_cc_visibility_hidden=yes 7624else 7625 echo "$as_me: failed program was:" >&5 7626sed 's/^/| /' conftest.$ac_ext >&5 7627 7628 tcl_cv_cc_visibility_hidden=no 7629fi 7630 7631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7632 conftest$ac_exeext conftest.$ac_ext 7633 CFLAGS=$hold_cflags 7634fi 7635{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7636echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7637 if test $tcl_cv_cc_visibility_hidden = yes; then 7638 7639 7640cat >>confdefs.h <<\_ACEOF 7641#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7642_ACEOF 7643 7644 7645fi 7646 7647 7648 # Step 0.d: Disable -rpath support? 7649 7650 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7651echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7652 # Check whether --enable-rpath was given. 7653if test "${enable_rpath+set}" = set; then 7654 enableval=$enable_rpath; doRpath=$enableval 7655else 7656 doRpath=yes 7657fi 7658 7659 { echo "$as_me:$LINENO: result: $doRpath" >&5 7660echo "${ECHO_T}$doRpath" >&6; } 7661 7662 # TEA specific: Cross-compiling options for Windows/CE builds? 7663 7664 if test "${TEA_PLATFORM}" = windows; then 7665 7666 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7667echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7668 # Check whether --enable-wince was given. 7669if test "${enable_wince+set}" = set; then 7670 enableval=$enable_wince; doWince=$enableval 7671else 7672 doWince=no 7673fi 7674 7675 { echo "$as_me:$LINENO: result: $doWince" >&5 7676echo "${ECHO_T}$doWince" >&6; } 7677 7678fi 7679 7680 7681 # Set the variable "system" to hold the name and version number 7682 # for the system. 7683 7684 7685 { echo "$as_me:$LINENO: checking system version" >&5 7686echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7687if test "${tcl_cv_sys_version+set}" = set; then 7688 echo $ECHO_N "(cached) $ECHO_C" >&6 7689else 7690 7691 # TEA specific: 7692 if test "${TEA_PLATFORM}" = "windows" ; then 7693 tcl_cv_sys_version=windows 7694 else 7695 tcl_cv_sys_version=`uname -s`-`uname -r` 7696 if test "$?" -ne 0 ; then 7697 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7698echo "$as_me: WARNING: can't find uname command" >&2;} 7699 tcl_cv_sys_version=unknown 7700 else 7701 if test "`uname -s`" = "AIX" ; then 7702 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7703 fi 7704 fi 7705 fi 7706 7707fi 7708{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7709echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7710 system=$tcl_cv_sys_version 7711 7712 7713 # Require ranlib early so we can override it in special cases below. 7714 7715 7716 7717 # Set configuration options based on system name and version. 7718 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7719 # "windows" case and removed some core-only vars. 7720 7721 do64bit_ok=no 7722 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7723 SHLIB_LD_LIBS='${LIBS}' 7724 # When ld needs options to work in 64-bit mode, put them in 7725 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7726 # is disabled by the user. [Bug 1016796] 7727 LDFLAGS_ARCH="" 7728 UNSHARED_LIB_SUFFIX="" 7729 # TEA specific: use PACKAGE_VERSION instead of VERSION 7730 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7731 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7732 TCL_LIB_VERSIONS_OK=ok 7733 CFLAGS_DEBUG=-g 7734 CFLAGS_OPTIMIZE=-O 7735 if test "$GCC" = yes; then 7736 7737 # TEA specific: 7738 CFLAGS_OPTIMIZE=-O2 7739 CFLAGS_WARNING="-Wall" 7740 7741else 7742 CFLAGS_WARNING="" 7743fi 7744 7745 # Extract the first word of "ar", so it can be a program name with args. 7746set dummy ar; ac_word=$2 7747{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7749if test "${ac_cv_prog_AR+set}" = set; then 7750 echo $ECHO_N "(cached) $ECHO_C" >&6 7751else 7752 if test -n "$AR"; then 7753 ac_cv_prog_AR="$AR" # Let the user override the test. 7754else 7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7756for as_dir in $PATH 7757do 7758 IFS=$as_save_IFS 7759 test -z "$as_dir" && as_dir=. 7760 for ac_exec_ext in '' $ac_executable_extensions; do 7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7762 ac_cv_prog_AR="ar" 7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7764 break 2 7765 fi 7766done 7767done 7768IFS=$as_save_IFS 7769 7770fi 7771fi 7772AR=$ac_cv_prog_AR 7773if test -n "$AR"; then 7774 { echo "$as_me:$LINENO: result: $AR" >&5 7775echo "${ECHO_T}$AR" >&6; } 7776else 7777 { echo "$as_me:$LINENO: result: no" >&5 7778echo "${ECHO_T}no" >&6; } 7779fi 7780 7781 7782 STLIB_LD='${AR} cr' 7783 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7784 if test "x$SHLIB_VERSION" = x; then 7785 SHLIB_VERSION="1.0" 7786fi 7787 7788 case $system in 7789 # TEA specific: 7790 windows) 7791 # This is a 2-stage check to make sure we have the 64-bit SDK 7792 # We have to know where the SDK is installed. 7793 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7794 # MACHINE is IX86 for LINK, but this is used by the manifest, 7795 # which requires x86|amd64|ia64. 7796 MACHINE="X86" 7797 if test "$do64bit" != "no" ; then 7798 if test "x${MSSDK}x" = "xx" ; then 7799 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7800 fi 7801 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7802 PATH64="" 7803 case "$do64bit" in 7804 amd64|x64|yes) 7805 MACHINE="AMD64" ; # default to AMD64 64-bit build 7806 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7807 ;; 7808 ia64) 7809 MACHINE="IA64" 7810 PATH64="${MSSDK}/Bin/Win64" 7811 ;; 7812 esac 7813 if test ! -d "${PATH64}" ; then 7814 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7815echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7816 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7817echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7818 do64bit="no" 7819 else 7820 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7821echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7822 do64bit_ok="yes" 7823 fi 7824 fi 7825 7826 if test "$doWince" != "no" ; then 7827 if test "$do64bit" != "no" ; then 7828 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7829echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7830 { (exit 1); exit 1; }; } 7831 fi 7832 if test "$GCC" = "yes" ; then 7833 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7834echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7835 { (exit 1); exit 1; }; } 7836 fi 7837 7838 # First, look for one uninstalled. 7839 # the alternative search directory is invoked by --with-celib 7840 7841 if test x"${no_celib}" = x ; then 7842 # we reset no_celib in case something fails here 7843 no_celib=true 7844 7845# Check whether --with-celib was given. 7846if test "${with_celib+set}" = set; then 7847 withval=$with_celib; with_celibconfig=${withval} 7848fi 7849 7850 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7851echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7852 if test "${ac_cv_c_celibconfig+set}" = set; then 7853 echo $ECHO_N "(cached) $ECHO_C" >&6 7854else 7855 7856 # First check to see if --with-celibconfig was specified. 7857 if test x"${with_celibconfig}" != x ; then 7858 if test -d "${with_celibconfig}/inc" ; then 7859 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7860 else 7861 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7862echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7863 { (exit 1); exit 1; }; } 7864 fi 7865 fi 7866 7867 # then check for a celib library 7868 if test x"${ac_cv_c_celibconfig}" = x ; then 7869 for i in \ 7870 ../celib-palm-3.0 \ 7871 ../celib \ 7872 ../../celib-palm-3.0 \ 7873 ../../celib \ 7874 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7875 ${srcdir}/../celib-palm-3.0 \ 7876 ${srcdir}/../celib \ 7877 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7878 ; do 7879 if test -d "$i/inc" ; then 7880 ac_cv_c_celibconfig=`(cd $i; pwd)` 7881 break 7882 fi 7883 done 7884 fi 7885 7886fi 7887 7888 if test x"${ac_cv_c_celibconfig}" = x ; then 7889 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7890echo "$as_me: error: Cannot find celib support library directory" >&2;} 7891 { (exit 1); exit 1; }; } 7892 else 7893 no_celib= 7894 CELIB_DIR=${ac_cv_c_celibconfig} 7895 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7896 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7897echo "${ECHO_T}found $CELIB_DIR" >&6; } 7898 fi 7899 fi 7900 7901 # Set defaults for common evc4/PPC2003 setup 7902 # Currently Tcl requires 300+, possibly 420+ for sockets 7903 CEVERSION=420; # could be 211 300 301 400 420 ... 7904 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7905 ARCH=ARM; # could be ARM MIPS X86EM ... 7906 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7907 if test "$doWince" != "yes"; then 7908 # If !yes then the user specified something 7909 # Reset ARCH to allow user to skip specifying it 7910 ARCH= 7911 eval `echo $doWince | awk -F, '{ \ 7912 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7913 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7914 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7915 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7916 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7917 }'` 7918 if test "x${ARCH}" = "x" ; then 7919 ARCH=$TARGETCPU; 7920 fi 7921 fi 7922 OSVERSION=WCE$CEVERSION; 7923 if test "x${WCEROOT}" = "x" ; then 7924 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7925 if test ! -d "${WCEROOT}" ; then 7926 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7927 fi 7928 fi 7929 if test "x${SDKROOT}" = "x" ; then 7930 SDKROOT="C:/Program Files/Windows CE Tools" 7931 if test ! -d "${SDKROOT}" ; then 7932 SDKROOT="C:/Windows CE Tools" 7933 fi 7934 fi 7935 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7936 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7937 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7938 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7939 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7940echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7941 { (exit 1); exit 1; }; } 7942 doWince="no" 7943 else 7944 # We could PATH_NOSPACE these, but that's not important, 7945 # as long as we quote them when used. 7946 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7947 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7948 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7949 fi 7950 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7951 fi 7952 fi 7953 7954 if test "$GCC" != "yes" ; then 7955 if test "${SHARED_BUILD}" = "0" ; then 7956 runtime=-MT 7957 else 7958 runtime=-MD 7959 fi 7960 7961 if test "$do64bit" != "no" ; then 7962 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7963 CC="\"${PATH64}/cl.exe\"" 7964 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7965 RC="\"${MSSDK}/bin/rc.exe\"" 7966 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7967 LINKBIN="\"${PATH64}/link.exe\"" 7968 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7969 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7970 # Avoid 'unresolved external symbol __security_cookie' 7971 # errors, c.f. http://support.microsoft.com/?id=894573 7972 7973 vars="bufferoverflowU.lib" 7974 for i in $vars; do 7975 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7976 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7977 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7978 fi 7979 PKG_LIBS="$PKG_LIBS $i" 7980 done 7981 7982 7983 elif test "$doWince" != "no" ; then 7984 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7985 if test "${TARGETCPU}" = "X86"; then 7986 CC="\"${CEBINROOT}/cl.exe\"" 7987 else 7988 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7989 fi 7990 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7991 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7992 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7993 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7994 if test "${SHARED_BUILD}" = "1" ; then 7995 # Static CE builds require static celib as well 7996 defs="${defs} _DLL" 7997 fi 7998 for i in $defs ; do 7999 8000cat >>confdefs.h <<_ACEOF 8001#define $i 1 8002_ACEOF 8003 8004 done 8005 8006cat >>confdefs.h <<_ACEOF 8007#define _WIN32_WCE $CEVERSION 8008_ACEOF 8009 8010 8011cat >>confdefs.h <<_ACEOF 8012#define UNDER_CE $CEVERSION 8013_ACEOF 8014 8015 CFLAGS_DEBUG="-nologo -Zi -Od" 8016 CFLAGS_OPTIMIZE="-nologo -Ox" 8017 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8018 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8019 LINKBIN="\"${CEBINROOT}/link.exe\"" 8020 8021 else 8022 RC="rc" 8023 lflags="-nologo" 8024 LINKBIN="link" 8025 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8026 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8027 fi 8028 fi 8029 8030 if test "$GCC" = "yes"; then 8031 # mingw gcc mode 8032 RC="windres" 8033 CFLAGS_DEBUG="-g" 8034 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8035 SHLIB_LD="$CC -shared" 8036 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8037 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8038 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8039 else 8040 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8041 # link -lib only works when -lib is the first arg 8042 STLIB_LD="${LINKBIN} -lib ${lflags}" 8043 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8044 PATHTYPE=-w 8045 # For information on what debugtype is most useful, see: 8046 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8047 # and also 8048 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8049 # This essentially turns it all on. 8050 LDFLAGS_DEBUG="-debug -debugtype:cv" 8051 LDFLAGS_OPTIMIZE="-release" 8052 if test "$doWince" != "no" ; then 8053 LDFLAGS_CONSOLE="-link ${lflags}" 8054 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8055 else 8056 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8057 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8058 fi 8059 fi 8060 8061 SHLIB_SUFFIX=".dll" 8062 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8063 8064 TCL_LIB_VERSIONS_OK=nodots 8065 ;; 8066 AIX-*) 8067 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8068 8069 # AIX requires the _r compiler when gcc isn't being used 8070 case "${CC}" in 8071 *_r|*_r\ *) 8072 # ok ... 8073 ;; 8074 *) 8075 # Make sure only first arg gets _r 8076 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8077 ;; 8078 esac 8079 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8080echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8081 8082fi 8083 8084 LIBS="$LIBS -lc" 8085 SHLIB_CFLAGS="" 8086 SHLIB_SUFFIX=".so" 8087 8088 LD_LIBRARY_PATH_VAR="LIBPATH" 8089 8090 # Check to enable 64-bit flags for compiler/linker 8091 if test "$do64bit" = yes; then 8092 8093 if test "$GCC" = yes; then 8094 8095 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8096echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8097 8098else 8099 8100 do64bit_ok=yes 8101 CFLAGS="$CFLAGS -q64" 8102 LDFLAGS_ARCH="-q64" 8103 RANLIB="${RANLIB} -X64" 8104 AR="${AR} -X64" 8105 SHLIB_LD_FLAGS="-b64" 8106 8107fi 8108 8109 8110fi 8111 8112 8113 if test "`uname -m`" = ia64; then 8114 8115 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8116 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8117 if test "$GCC" = yes; then 8118 8119 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8120 8121else 8122 8123 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8124 8125fi 8126 8127 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8128 8129else 8130 8131 if test "$GCC" = yes; then 8132 8133 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8134 8135else 8136 8137 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8138 LDFLAGS="$LDFLAGS -brtl" 8139 8140fi 8141 8142 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8143 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8144 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8145 8146fi 8147 8148 ;; 8149 BeOS*) 8150 SHLIB_CFLAGS="-fPIC" 8151 SHLIB_LD='${CC} -nostart' 8152 SHLIB_SUFFIX=".so" 8153 8154 #----------------------------------------------------------- 8155 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8156 # -lsocket, even if the network functions are in -lnet which 8157 # is always linked to, for compatibility. 8158 #----------------------------------------------------------- 8159 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8160echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8161if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8162 echo $ECHO_N "(cached) $ECHO_C" >&6 8163else 8164 ac_check_lib_save_LIBS=$LIBS 8165LIBS="-lbind $LIBS" 8166cat >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 8173/* Override any GCC internal prototype to avoid an error. 8174 Use char because int might match the return type of a GCC 8175 builtin and then its argument prototype would still apply. */ 8176#ifdef __cplusplus 8177extern "C" 8178#endif 8179char inet_ntoa (); 8180int 8181main () 8182{ 8183return inet_ntoa (); 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188rm -f conftest.$ac_objext conftest$ac_exeext 8189if { (ac_try="$ac_link" 8190case "(($ac_try" in 8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8192 *) ac_try_echo=$ac_try;; 8193esac 8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8195 (eval "$ac_link") 2>conftest.er1 8196 ac_status=$? 8197 grep -v '^ *+' conftest.er1 >conftest.err 8198 rm -f conftest.er1 8199 cat conftest.err >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 (exit $ac_status); } && { 8202 test -z "$ac_c_werror_flag" || 8203 test ! -s conftest.err 8204 } && test -s conftest$ac_exeext && 8205 $as_test_x conftest$ac_exeext; then 8206 ac_cv_lib_bind_inet_ntoa=yes 8207else 8208 echo "$as_me: failed program was:" >&5 8209sed 's/^/| /' conftest.$ac_ext >&5 8210 8211 ac_cv_lib_bind_inet_ntoa=no 8212fi 8213 8214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8215 conftest$ac_exeext conftest.$ac_ext 8216LIBS=$ac_check_lib_save_LIBS 8217fi 8218{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8219echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8220if test $ac_cv_lib_bind_inet_ntoa = yes; then 8221 LIBS="$LIBS -lbind -lsocket" 8222fi 8223 8224 ;; 8225 BSD/OS-4.*) 8226 SHLIB_CFLAGS="-export-dynamic -fPIC" 8227 SHLIB_LD='${CC} -shared' 8228 SHLIB_SUFFIX=".so" 8229 LDFLAGS="$LDFLAGS -export-dynamic" 8230 CC_SEARCH_FLAGS="" 8231 LD_SEARCH_FLAGS="" 8232 ;; 8233 CYGWIN_*) 8234 SHLIB_CFLAGS="" 8235 SHLIB_LD='${CC} -shared' 8236 SHLIB_SUFFIX=".dll" 8237 EXE_SUFFIX=".exe" 8238 CC_SEARCH_FLAGS="" 8239 LD_SEARCH_FLAGS="" 8240 ;; 8241 Haiku*) 8242 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8243 SHLIB_CFLAGS="-fPIC" 8244 SHLIB_SUFFIX=".so" 8245 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8246 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8247echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8248if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8249 echo $ECHO_N "(cached) $ECHO_C" >&6 8250else 8251 ac_check_lib_save_LIBS=$LIBS 8252LIBS="-lnetwork $LIBS" 8253cat >conftest.$ac_ext <<_ACEOF 8254/* confdefs.h. */ 8255_ACEOF 8256cat confdefs.h >>conftest.$ac_ext 8257cat >>conftest.$ac_ext <<_ACEOF 8258/* end confdefs.h. */ 8259 8260/* Override any GCC internal prototype to avoid an error. 8261 Use char because int might match the return type of a GCC 8262 builtin and then its argument prototype would still apply. */ 8263#ifdef __cplusplus 8264extern "C" 8265#endif 8266char inet_ntoa (); 8267int 8268main () 8269{ 8270return inet_ntoa (); 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275rm -f conftest.$ac_objext conftest$ac_exeext 8276if { (ac_try="$ac_link" 8277case "(($ac_try" in 8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8279 *) ac_try_echo=$ac_try;; 8280esac 8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8282 (eval "$ac_link") 2>conftest.er1 8283 ac_status=$? 8284 grep -v '^ *+' conftest.er1 >conftest.err 8285 rm -f conftest.er1 8286 cat conftest.err >&5 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 (exit $ac_status); } && { 8289 test -z "$ac_c_werror_flag" || 8290 test ! -s conftest.err 8291 } && test -s conftest$ac_exeext && 8292 $as_test_x conftest$ac_exeext; then 8293 ac_cv_lib_network_inet_ntoa=yes 8294else 8295 echo "$as_me: failed program was:" >&5 8296sed 's/^/| /' conftest.$ac_ext >&5 8297 8298 ac_cv_lib_network_inet_ntoa=no 8299fi 8300 8301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8302 conftest$ac_exeext conftest.$ac_ext 8303LIBS=$ac_check_lib_save_LIBS 8304fi 8305{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8306echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8307if test $ac_cv_lib_network_inet_ntoa = yes; then 8308 LIBS="$LIBS -lnetwork" 8309fi 8310 8311 ;; 8312 HP-UX-*.11.*) 8313 # Use updated header definitions where possible 8314 8315cat >>confdefs.h <<\_ACEOF 8316#define _XOPEN_SOURCE_EXTENDED 1 8317_ACEOF 8318 8319 # TEA specific: Needed by Tcl, but not most extensions 8320 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8321 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8322 8323 if test "`uname -m`" = ia64; then 8324 8325 SHLIB_SUFFIX=".so" 8326 # Use newer C++ library for C++ extensions 8327 #if test "$GCC" != "yes" ; then 8328 # CPPFLAGS="-AA" 8329 #fi 8330 8331else 8332 8333 SHLIB_SUFFIX=".sl" 8334 8335fi 8336 8337 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8338echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8339if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8340 echo $ECHO_N "(cached) $ECHO_C" >&6 8341else 8342 ac_check_lib_save_LIBS=$LIBS 8343LIBS="-ldld $LIBS" 8344cat >conftest.$ac_ext <<_ACEOF 8345/* confdefs.h. */ 8346_ACEOF 8347cat confdefs.h >>conftest.$ac_ext 8348cat >>conftest.$ac_ext <<_ACEOF 8349/* end confdefs.h. */ 8350 8351/* Override any GCC internal prototype to avoid an error. 8352 Use char because int might match the return type of a GCC 8353 builtin and then its argument prototype would still apply. */ 8354#ifdef __cplusplus 8355extern "C" 8356#endif 8357char shl_load (); 8358int 8359main () 8360{ 8361return shl_load (); 8362 ; 8363 return 0; 8364} 8365_ACEOF 8366rm -f conftest.$ac_objext conftest$ac_exeext 8367if { (ac_try="$ac_link" 8368case "(($ac_try" in 8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8370 *) ac_try_echo=$ac_try;; 8371esac 8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8373 (eval "$ac_link") 2>conftest.er1 8374 ac_status=$? 8375 grep -v '^ *+' conftest.er1 >conftest.err 8376 rm -f conftest.er1 8377 cat conftest.err >&5 8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 (exit $ac_status); } && { 8380 test -z "$ac_c_werror_flag" || 8381 test ! -s conftest.err 8382 } && test -s conftest$ac_exeext && 8383 $as_test_x conftest$ac_exeext; then 8384 ac_cv_lib_dld_shl_load=yes 8385else 8386 echo "$as_me: failed program was:" >&5 8387sed 's/^/| /' conftest.$ac_ext >&5 8388 8389 ac_cv_lib_dld_shl_load=no 8390fi 8391 8392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8393 conftest$ac_exeext conftest.$ac_ext 8394LIBS=$ac_check_lib_save_LIBS 8395fi 8396{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8397echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8398if test $ac_cv_lib_dld_shl_load = yes; then 8399 tcl_ok=yes 8400else 8401 tcl_ok=no 8402fi 8403 8404 if test "$tcl_ok" = yes; then 8405 8406 LDFLAGS="$LDFLAGS -E" 8407 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8408 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8409 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8410 8411fi 8412 8413 if test "$GCC" = yes; then 8414 8415 SHLIB_LD='${CC} -shared' 8416 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8417 8418else 8419 8420 CFLAGS="$CFLAGS -z" 8421 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8422 #CFLAGS="$CFLAGS +DAportable" 8423 SHLIB_CFLAGS="+z" 8424 SHLIB_LD="ld -b" 8425 8426fi 8427 8428 8429 # Check to enable 64-bit flags for compiler/linker 8430 if test "$do64bit" = "yes"; then 8431 8432 if test "$GCC" = yes; then 8433 8434 case `${CC} -dumpmachine` in 8435 hppa64*) 8436 # 64-bit gcc in use. Fix flags for GNU ld. 8437 do64bit_ok=yes 8438 SHLIB_LD='${CC} -shared' 8439 if test $doRpath = yes; then 8440 8441 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8442fi 8443 8444 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8445 ;; 8446 *) 8447 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8448echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8449 ;; 8450 esac 8451 8452else 8453 8454 do64bit_ok=yes 8455 CFLAGS="$CFLAGS +DD64" 8456 LDFLAGS_ARCH="+DD64" 8457 8458fi 8459 8460 8461fi 8462 ;; 8463 IRIX-6.*) 8464 SHLIB_CFLAGS="" 8465 SHLIB_LD="ld -n32 -shared -rdata_shared" 8466 SHLIB_SUFFIX=".so" 8467 if test $doRpath = yes; then 8468 8469 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8470 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8471fi 8472 8473 if test "$GCC" = yes; then 8474 8475 CFLAGS="$CFLAGS -mabi=n32" 8476 LDFLAGS="$LDFLAGS -mabi=n32" 8477 8478else 8479 8480 case $system in 8481 IRIX-6.3) 8482 # Use to build 6.2 compatible binaries on 6.3. 8483 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8484 ;; 8485 *) 8486 CFLAGS="$CFLAGS -n32" 8487 ;; 8488 esac 8489 LDFLAGS="$LDFLAGS -n32" 8490 8491fi 8492 8493 ;; 8494 IRIX64-6.*) 8495 SHLIB_CFLAGS="" 8496 SHLIB_LD="ld -n32 -shared -rdata_shared" 8497 SHLIB_SUFFIX=".so" 8498 if test $doRpath = yes; then 8499 8500 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8501 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8502fi 8503 8504 8505 # Check to enable 64-bit flags for compiler/linker 8506 8507 if test "$do64bit" = yes; then 8508 8509 if test "$GCC" = yes; then 8510 8511 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8512echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8513 8514else 8515 8516 do64bit_ok=yes 8517 SHLIB_LD="ld -64 -shared -rdata_shared" 8518 CFLAGS="$CFLAGS -64" 8519 LDFLAGS_ARCH="-64" 8520 8521fi 8522 8523 8524fi 8525 8526 ;; 8527 Linux*) 8528 SHLIB_CFLAGS="-fPIC" 8529 SHLIB_SUFFIX=".so" 8530 8531 # TEA specific: 8532 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8533 8534 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8535 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8536 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8537 if test $doRpath = yes; then 8538 8539 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8540fi 8541 8542 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8543 if test "`uname -m`" = "alpha"; then 8544 CFLAGS="$CFLAGS -mieee" 8545fi 8546 8547 if test $do64bit = yes; then 8548 8549 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8550echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8551if test "${tcl_cv_cc_m64+set}" = set; then 8552 echo $ECHO_N "(cached) $ECHO_C" >&6 8553else 8554 8555 hold_cflags=$CFLAGS 8556 CFLAGS="$CFLAGS -m64" 8557 cat >conftest.$ac_ext <<_ACEOF 8558/* confdefs.h. */ 8559_ACEOF 8560cat confdefs.h >>conftest.$ac_ext 8561cat >>conftest.$ac_ext <<_ACEOF 8562/* end confdefs.h. */ 8563 8564int 8565main () 8566{ 8567 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572rm -f conftest.$ac_objext conftest$ac_exeext 8573if { (ac_try="$ac_link" 8574case "(($ac_try" in 8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8576 *) ac_try_echo=$ac_try;; 8577esac 8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8579 (eval "$ac_link") 2>conftest.er1 8580 ac_status=$? 8581 grep -v '^ *+' conftest.er1 >conftest.err 8582 rm -f conftest.er1 8583 cat conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); } && { 8586 test -z "$ac_c_werror_flag" || 8587 test ! -s conftest.err 8588 } && test -s conftest$ac_exeext && 8589 $as_test_x conftest$ac_exeext; then 8590 tcl_cv_cc_m64=yes 8591else 8592 echo "$as_me: failed program was:" >&5 8593sed 's/^/| /' conftest.$ac_ext >&5 8594 8595 tcl_cv_cc_m64=no 8596fi 8597 8598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8599 conftest$ac_exeext conftest.$ac_ext 8600 CFLAGS=$hold_cflags 8601fi 8602{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8603echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8604 if test $tcl_cv_cc_m64 = yes; then 8605 8606 CFLAGS="$CFLAGS -m64" 8607 do64bit_ok=yes 8608 8609fi 8610 8611 8612fi 8613 8614 8615 # The combo of gcc + glibc has a bug related to inlining of 8616 # functions like strtod(). The -fno-builtin flag should address 8617 # this problem but it does not work. The -fno-inline flag is kind 8618 # of overkill but it works. Disable inlining only when one of the 8619 # files in compat/*.c is being linked in. 8620 8621 if test x"${USE_COMPAT}" != x; then 8622 CFLAGS="$CFLAGS -fno-inline" 8623fi 8624 8625 8626 ;; 8627 GNU*) 8628 SHLIB_CFLAGS="-fPIC" 8629 SHLIB_SUFFIX=".so" 8630 8631 SHLIB_LD='${CC} -shared' 8632 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8633 CC_SEARCH_FLAGS="" 8634 LD_SEARCH_FLAGS="" 8635 if test "`uname -m`" = "alpha"; then 8636 CFLAGS="$CFLAGS -mieee" 8637fi 8638 8639 ;; 8640 Lynx*) 8641 SHLIB_CFLAGS="-fPIC" 8642 SHLIB_SUFFIX=".so" 8643 CFLAGS_OPTIMIZE=-02 8644 SHLIB_LD='${CC} -shared' 8645 LD_FLAGS="-Wl,--export-dynamic" 8646 if test $doRpath = yes; then 8647 8648 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8649 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8650fi 8651 8652 ;; 8653 OpenBSD-*) 8654 SHLIB_CFLAGS="-fPIC" 8655 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8656 SHLIB_SUFFIX=".so" 8657 if test $doRpath = yes; then 8658 8659 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8660fi 8661 8662 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8663 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8664 { echo "$as_me:$LINENO: checking for ELF" >&5 8665echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8666if test "${tcl_cv_ld_elf+set}" = set; then 8667 echo $ECHO_N "(cached) $ECHO_C" >&6 8668else 8669 8670 cat >conftest.$ac_ext <<_ACEOF 8671/* confdefs.h. */ 8672_ACEOF 8673cat confdefs.h >>conftest.$ac_ext 8674cat >>conftest.$ac_ext <<_ACEOF 8675/* end confdefs.h. */ 8676 8677#ifdef __ELF__ 8678 yes 8679#endif 8680 8681_ACEOF 8682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8683 $EGREP "yes" >/dev/null 2>&1; then 8684 tcl_cv_ld_elf=yes 8685else 8686 tcl_cv_ld_elf=no 8687fi 8688rm -f -r conftest* 8689 8690fi 8691{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8692echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8693 if test $tcl_cv_ld_elf = yes; then 8694 8695 LDFLAGS=-Wl,-export-dynamic 8696 8697else 8698 LDFLAGS="" 8699fi 8700 8701 if test "${TCL_THREADS}" = "1"; then 8702 8703 # OpenBSD builds and links with -pthread, never -lpthread. 8704 LIBS=`echo $LIBS | sed s/-lpthread//` 8705 CFLAGS="$CFLAGS -pthread" 8706 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8707 8708fi 8709 8710 # OpenBSD doesn't do version numbers with dots. 8711 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8712 TCL_LIB_VERSIONS_OK=nodots 8713 ;; 8714 NetBSD-*|FreeBSD-[3-4].*) 8715 # FreeBSD 3.* and greater have ELF. 8716 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8717 SHLIB_CFLAGS="-fPIC" 8718 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8719 SHLIB_SUFFIX=".so" 8720 LDFLAGS="$LDFLAGS -export-dynamic" 8721 if test $doRpath = yes; then 8722 8723 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8724fi 8725 8726 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8727 if test "${TCL_THREADS}" = "1"; then 8728 8729 # The -pthread needs to go in the CFLAGS, not LIBS 8730 LIBS=`echo $LIBS | sed s/-pthread//` 8731 CFLAGS="$CFLAGS -pthread" 8732 LDFLAGS="$LDFLAGS -pthread" 8733 8734fi 8735 8736 case $system in 8737 FreeBSD-3.*) 8738 # FreeBSD-3 doesn't handle version numbers with dots. 8739 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8740 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8741 TCL_LIB_VERSIONS_OK=nodots 8742 ;; 8743 esac 8744 ;; 8745 FreeBSD-*) 8746 # This configuration from FreeBSD Ports. 8747 SHLIB_CFLAGS="-fPIC" 8748 SHLIB_LD="${CC} -shared" 8749 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8750 SHLIB_SUFFIX=".so" 8751 LDFLAGS="" 8752 if test $doRpath = yes; then 8753 8754 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8755 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8756fi 8757 8758 if test "${TCL_THREADS}" = "1"; then 8759 8760 # The -pthread needs to go in the LDFLAGS, not LIBS 8761 LIBS=`echo $LIBS | sed s/-pthread//` 8762 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8763 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8764fi 8765 8766 # Version numbers are dot-stripped by system policy. 8767 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8768 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8769 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8770 TCL_LIB_VERSIONS_OK=nodots 8771 ;; 8772 Darwin-*) 8773 CFLAGS_OPTIMIZE="-Os" 8774 SHLIB_CFLAGS="-fno-common" 8775 # To avoid discrepancies between what headers configure sees during 8776 # preprocessing tests and compiling tests, move any -isysroot and 8777 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8778 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8779 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8780 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8781 CFLAGS="`echo " ${CFLAGS}" | \ 8782 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8783 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8784 if test $do64bit = yes; then 8785 8786 case `arch` in 8787 ppc) 8788 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8789echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8790if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8791 echo $ECHO_N "(cached) $ECHO_C" >&6 8792else 8793 8794 hold_cflags=$CFLAGS 8795 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8796 cat >conftest.$ac_ext <<_ACEOF 8797/* confdefs.h. */ 8798_ACEOF 8799cat confdefs.h >>conftest.$ac_ext 8800cat >>conftest.$ac_ext <<_ACEOF 8801/* end confdefs.h. */ 8802 8803int 8804main () 8805{ 8806 8807 ; 8808 return 0; 8809} 8810_ACEOF 8811rm -f conftest.$ac_objext conftest$ac_exeext 8812if { (ac_try="$ac_link" 8813case "(($ac_try" in 8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8815 *) ac_try_echo=$ac_try;; 8816esac 8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8818 (eval "$ac_link") 2>conftest.er1 8819 ac_status=$? 8820 grep -v '^ *+' conftest.er1 >conftest.err 8821 rm -f conftest.er1 8822 cat conftest.err >&5 8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 (exit $ac_status); } && { 8825 test -z "$ac_c_werror_flag" || 8826 test ! -s conftest.err 8827 } && test -s conftest$ac_exeext && 8828 $as_test_x conftest$ac_exeext; then 8829 tcl_cv_cc_arch_ppc64=yes 8830else 8831 echo "$as_me: failed program was:" >&5 8832sed 's/^/| /' conftest.$ac_ext >&5 8833 8834 tcl_cv_cc_arch_ppc64=no 8835fi 8836 8837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8838 conftest$ac_exeext conftest.$ac_ext 8839 CFLAGS=$hold_cflags 8840fi 8841{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8842echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8843 if test $tcl_cv_cc_arch_ppc64 = yes; then 8844 8845 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8846 do64bit_ok=yes 8847 8848fi 8849;; 8850 i386) 8851 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8852echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8853if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8854 echo $ECHO_N "(cached) $ECHO_C" >&6 8855else 8856 8857 hold_cflags=$CFLAGS 8858 CFLAGS="$CFLAGS -arch x86_64" 8859 cat >conftest.$ac_ext <<_ACEOF 8860/* confdefs.h. */ 8861_ACEOF 8862cat confdefs.h >>conftest.$ac_ext 8863cat >>conftest.$ac_ext <<_ACEOF 8864/* end confdefs.h. */ 8865 8866int 8867main () 8868{ 8869 8870 ; 8871 return 0; 8872} 8873_ACEOF 8874rm -f conftest.$ac_objext conftest$ac_exeext 8875if { (ac_try="$ac_link" 8876case "(($ac_try" in 8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8878 *) ac_try_echo=$ac_try;; 8879esac 8880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8881 (eval "$ac_link") 2>conftest.er1 8882 ac_status=$? 8883 grep -v '^ *+' conftest.er1 >conftest.err 8884 rm -f conftest.er1 8885 cat conftest.err >&5 8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8887 (exit $ac_status); } && { 8888 test -z "$ac_c_werror_flag" || 8889 test ! -s conftest.err 8890 } && test -s conftest$ac_exeext && 8891 $as_test_x conftest$ac_exeext; then 8892 tcl_cv_cc_arch_x86_64=yes 8893else 8894 echo "$as_me: failed program was:" >&5 8895sed 's/^/| /' conftest.$ac_ext >&5 8896 8897 tcl_cv_cc_arch_x86_64=no 8898fi 8899 8900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8901 conftest$ac_exeext conftest.$ac_ext 8902 CFLAGS=$hold_cflags 8903fi 8904{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8905echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8906 if test $tcl_cv_cc_arch_x86_64 = yes; then 8907 8908 CFLAGS="$CFLAGS -arch x86_64" 8909 do64bit_ok=yes 8910 8911fi 8912;; 8913 *) 8914 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8915echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8916 esac 8917 8918else 8919 8920 # Check for combined 32-bit and 64-bit fat build 8921 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8922 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8923 8924 fat_32_64=yes 8925fi 8926 8927 8928fi 8929 8930 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8931 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8932 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8933echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8934if test "${tcl_cv_ld_single_module+set}" = set; then 8935 echo $ECHO_N "(cached) $ECHO_C" >&6 8936else 8937 8938 hold_ldflags=$LDFLAGS 8939 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8940 cat >conftest.$ac_ext <<_ACEOF 8941/* confdefs.h. */ 8942_ACEOF 8943cat confdefs.h >>conftest.$ac_ext 8944cat >>conftest.$ac_ext <<_ACEOF 8945/* end confdefs.h. */ 8946 8947int 8948main () 8949{ 8950int i; 8951 ; 8952 return 0; 8953} 8954_ACEOF 8955rm -f conftest.$ac_objext conftest$ac_exeext 8956if { (ac_try="$ac_link" 8957case "(($ac_try" in 8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8959 *) ac_try_echo=$ac_try;; 8960esac 8961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8962 (eval "$ac_link") 2>conftest.er1 8963 ac_status=$? 8964 grep -v '^ *+' conftest.er1 >conftest.err 8965 rm -f conftest.er1 8966 cat conftest.err >&5 8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8968 (exit $ac_status); } && { 8969 test -z "$ac_c_werror_flag" || 8970 test ! -s conftest.err 8971 } && test -s conftest$ac_exeext && 8972 $as_test_x conftest$ac_exeext; then 8973 tcl_cv_ld_single_module=yes 8974else 8975 echo "$as_me: failed program was:" >&5 8976sed 's/^/| /' conftest.$ac_ext >&5 8977 8978 tcl_cv_ld_single_module=no 8979fi 8980 8981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8982 conftest$ac_exeext conftest.$ac_ext 8983 LDFLAGS=$hold_ldflags 8984fi 8985{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8986echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8987 if test $tcl_cv_ld_single_module = yes; then 8988 8989 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8990 8991fi 8992 8993 # TEA specific: link shlib with current and compatiblity version flags 8994 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8995 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8996 SHLIB_SUFFIX=".dylib" 8997 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8998 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8999 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9000 9001 LDFLAGS="$LDFLAGS -prebind" 9002fi 9003 9004 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9005 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9006echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9007if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9008 echo $ECHO_N "(cached) $ECHO_C" >&6 9009else 9010 9011 hold_ldflags=$LDFLAGS 9012 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9013 cat >conftest.$ac_ext <<_ACEOF 9014/* confdefs.h. */ 9015_ACEOF 9016cat confdefs.h >>conftest.$ac_ext 9017cat >>conftest.$ac_ext <<_ACEOF 9018/* end confdefs.h. */ 9019 9020int 9021main () 9022{ 9023int i; 9024 ; 9025 return 0; 9026} 9027_ACEOF 9028rm -f conftest.$ac_objext conftest$ac_exeext 9029if { (ac_try="$ac_link" 9030case "(($ac_try" in 9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9032 *) ac_try_echo=$ac_try;; 9033esac 9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9035 (eval "$ac_link") 2>conftest.er1 9036 ac_status=$? 9037 grep -v '^ *+' conftest.er1 >conftest.err 9038 rm -f conftest.er1 9039 cat conftest.err >&5 9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9041 (exit $ac_status); } && { 9042 test -z "$ac_c_werror_flag" || 9043 test ! -s conftest.err 9044 } && test -s conftest$ac_exeext && 9045 $as_test_x conftest$ac_exeext; then 9046 tcl_cv_ld_search_paths_first=yes 9047else 9048 echo "$as_me: failed program was:" >&5 9049sed 's/^/| /' conftest.$ac_ext >&5 9050 9051 tcl_cv_ld_search_paths_first=no 9052fi 9053 9054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9055 conftest$ac_exeext conftest.$ac_ext 9056 LDFLAGS=$hold_ldflags 9057fi 9058{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9059echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9060 if test $tcl_cv_ld_search_paths_first = yes; then 9061 9062 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9063 9064fi 9065 9066 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9067 9068 9069cat >>confdefs.h <<\_ACEOF 9070#define MODULE_SCOPE __private_extern__ 9071_ACEOF 9072 9073 tcl_cv_cc_visibility_hidden=yes 9074 9075fi 9076 9077 CC_SEARCH_FLAGS="" 9078 LD_SEARCH_FLAGS="" 9079 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9080 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9081 # extensions, verify that 64-bit build is possible. 9082 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9083 9084 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9085 9086 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9087echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9088if test "${tcl_cv_lib_x11_64+set}" = set; then 9089 echo $ECHO_N "(cached) $ECHO_C" >&6 9090else 9091 9092 for v in CFLAGS CPPFLAGS LDFLAGS; do 9093 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9094 done 9095 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9096 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9097 cat >conftest.$ac_ext <<_ACEOF 9098/* confdefs.h. */ 9099_ACEOF 9100cat confdefs.h >>conftest.$ac_ext 9101cat >>conftest.$ac_ext <<_ACEOF 9102/* end confdefs.h. */ 9103#include <X11/Xlib.h> 9104int 9105main () 9106{ 9107XrmInitialize(); 9108 ; 9109 return 0; 9110} 9111_ACEOF 9112rm -f conftest.$ac_objext conftest$ac_exeext 9113if { (ac_try="$ac_link" 9114case "(($ac_try" in 9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9116 *) ac_try_echo=$ac_try;; 9117esac 9118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9119 (eval "$ac_link") 2>conftest.er1 9120 ac_status=$? 9121 grep -v '^ *+' conftest.er1 >conftest.err 9122 rm -f conftest.er1 9123 cat conftest.err >&5 9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9125 (exit $ac_status); } && { 9126 test -z "$ac_c_werror_flag" || 9127 test ! -s conftest.err 9128 } && test -s conftest$ac_exeext && 9129 $as_test_x conftest$ac_exeext; then 9130 tcl_cv_lib_x11_64=yes 9131else 9132 echo "$as_me: failed program was:" >&5 9133sed 's/^/| /' conftest.$ac_ext >&5 9134 9135 tcl_cv_lib_x11_64=no 9136fi 9137 9138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9139 conftest$ac_exeext conftest.$ac_ext 9140 for v in CFLAGS CPPFLAGS LDFLAGS; do 9141 eval $v'="$hold_'$v'"' 9142 done 9143fi 9144{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9145echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9146 9147fi 9148 9149 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9150 9151 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9152echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9153if test "${tcl_cv_lib_tk_64+set}" = set; then 9154 echo $ECHO_N "(cached) $ECHO_C" >&6 9155else 9156 9157 for v in CFLAGS CPPFLAGS LDFLAGS; do 9158 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9159 done 9160 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9161 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9162 cat >conftest.$ac_ext <<_ACEOF 9163/* confdefs.h. */ 9164_ACEOF 9165cat confdefs.h >>conftest.$ac_ext 9166cat >>conftest.$ac_ext <<_ACEOF 9167/* end confdefs.h. */ 9168#include <tk.h> 9169int 9170main () 9171{ 9172Tk_InitStubs(NULL, "", 0); 9173 ; 9174 return 0; 9175} 9176_ACEOF 9177rm -f conftest.$ac_objext conftest$ac_exeext 9178if { (ac_try="$ac_link" 9179case "(($ac_try" in 9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9181 *) ac_try_echo=$ac_try;; 9182esac 9183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9184 (eval "$ac_link") 2>conftest.er1 9185 ac_status=$? 9186 grep -v '^ *+' conftest.er1 >conftest.err 9187 rm -f conftest.er1 9188 cat conftest.err >&5 9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9190 (exit $ac_status); } && { 9191 test -z "$ac_c_werror_flag" || 9192 test ! -s conftest.err 9193 } && test -s conftest$ac_exeext && 9194 $as_test_x conftest$ac_exeext; then 9195 tcl_cv_lib_tk_64=yes 9196else 9197 echo "$as_me: failed program was:" >&5 9198sed 's/^/| /' conftest.$ac_ext >&5 9199 9200 tcl_cv_lib_tk_64=no 9201fi 9202 9203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9204 conftest$ac_exeext conftest.$ac_ext 9205 for v in CFLAGS CPPFLAGS LDFLAGS; do 9206 eval $v'="$hold_'$v'"' 9207 done 9208fi 9209{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9210echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9211 9212fi 9213 9214 # remove 64-bit arch flags from CFLAGS et al. if configuration 9215 # does not support 64-bit. 9216 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9217 9218 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9219echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9220 for v in CFLAGS CPPFLAGS LDFLAGS; do 9221 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9222 done 9223fi 9224 9225 9226fi 9227 9228 ;; 9229 OS/390-*) 9230 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9231 9232cat >>confdefs.h <<\_ACEOF 9233#define _OE_SOCKETS 1 9234_ACEOF 9235 9236 ;; 9237 OSF1-V*) 9238 # Digital OSF/1 9239 SHLIB_CFLAGS="" 9240 if test "$SHARED_BUILD" = 1; then 9241 9242 SHLIB_LD='ld -shared -expect_unresolved "*"' 9243 9244else 9245 9246 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9247 9248fi 9249 9250 SHLIB_SUFFIX=".so" 9251 if test $doRpath = yes; then 9252 9253 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9254 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9255fi 9256 9257 if test "$GCC" = yes; then 9258 CFLAGS="$CFLAGS -mieee" 9259else 9260 9261 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9262fi 9263 9264 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9265 if test "${TCL_THREADS}" = 1; then 9266 9267 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9268 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9269 LIBS=`echo $LIBS | sed s/-lpthreads//` 9270 if test "$GCC" = yes; then 9271 9272 LIBS="$LIBS -lpthread -lmach -lexc" 9273 9274else 9275 9276 CFLAGS="$CFLAGS -pthread" 9277 LDFLAGS="$LDFLAGS -pthread" 9278 9279fi 9280 9281 9282fi 9283 9284 ;; 9285 QNX-6*) 9286 # QNX RTP 9287 # This may work for all QNX, but it was only reported for v6. 9288 SHLIB_CFLAGS="-fPIC" 9289 SHLIB_LD="ld -Bshareable -x" 9290 SHLIB_LD_LIBS="" 9291 SHLIB_SUFFIX=".so" 9292 CC_SEARCH_FLAGS="" 9293 LD_SEARCH_FLAGS="" 9294 ;; 9295 SCO_SV-3.2*) 9296 if test "$GCC" = yes; then 9297 9298 SHLIB_CFLAGS="-fPIC -melf" 9299 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9300 9301else 9302 9303 SHLIB_CFLAGS="-Kpic -belf" 9304 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9305 9306fi 9307 9308 SHLIB_LD="ld -G" 9309 SHLIB_LD_LIBS="" 9310 SHLIB_SUFFIX=".so" 9311 CC_SEARCH_FLAGS="" 9312 LD_SEARCH_FLAGS="" 9313 ;; 9314 SunOS-5.[0-6]) 9315 # Careful to not let 5.10+ fall into this case 9316 9317 # Note: If _REENTRANT isn't defined, then Solaris 9318 # won't define thread-safe library routines. 9319 9320 9321cat >>confdefs.h <<\_ACEOF 9322#define _REENTRANT 1 9323_ACEOF 9324 9325 9326cat >>confdefs.h <<\_ACEOF 9327#define _POSIX_PTHREAD_SEMANTICS 1 9328_ACEOF 9329 9330 9331 SHLIB_CFLAGS="-KPIC" 9332 SHLIB_SUFFIX=".so" 9333 if test "$GCC" = yes; then 9334 9335 SHLIB_LD='${CC} -shared' 9336 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9337 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9338 9339else 9340 9341 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9342 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9343 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9344 9345fi 9346 9347 ;; 9348 SunOS-5*) 9349 # Note: If _REENTRANT isn't defined, then Solaris 9350 # won't define thread-safe library routines. 9351 9352 9353cat >>confdefs.h <<\_ACEOF 9354#define _REENTRANT 1 9355_ACEOF 9356 9357 9358cat >>confdefs.h <<\_ACEOF 9359#define _POSIX_PTHREAD_SEMANTICS 1 9360_ACEOF 9361 9362 9363 SHLIB_CFLAGS="-KPIC" 9364 9365 # Check to enable 64-bit flags for compiler/linker 9366 if test "$do64bit" = yes; then 9367 9368 arch=`isainfo` 9369 if test "$arch" = "sparcv9 sparc"; then 9370 9371 if test "$GCC" = yes; then 9372 9373 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9374 9375 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9376echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9377 9378else 9379 9380 do64bit_ok=yes 9381 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9382 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9383 SHLIB_CFLAGS="-fPIC" 9384 9385fi 9386 9387 9388else 9389 9390 do64bit_ok=yes 9391 if test "$do64bitVIS" = yes; then 9392 9393 CFLAGS="$CFLAGS -xarch=v9a" 9394 LDFLAGS_ARCH="-xarch=v9a" 9395 9396else 9397 9398 CFLAGS="$CFLAGS -xarch=v9" 9399 LDFLAGS_ARCH="-xarch=v9" 9400 9401fi 9402 9403 # Solaris 64 uses this as well 9404 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9405 9406fi 9407 9408 9409else 9410 if test "$arch" = "amd64 i386"; then 9411 9412 if test "$GCC" = yes; then 9413 9414 case $system in 9415 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9416 do64bit_ok=yes 9417 CFLAGS="$CFLAGS -m64" 9418 LDFLAGS="$LDFLAGS -m64";; 9419 *) 9420 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9421echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9422 esac 9423 9424else 9425 9426 do64bit_ok=yes 9427 case $system in 9428 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9429 CFLAGS="$CFLAGS -m64" 9430 LDFLAGS="$LDFLAGS -m64";; 9431 *) 9432 CFLAGS="$CFLAGS -xarch=amd64" 9433 LDFLAGS="$LDFLAGS -xarch=amd64";; 9434 esac 9435 9436fi 9437 9438 9439else 9440 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9441echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9442fi 9443 9444fi 9445 9446 9447fi 9448 9449 9450 SHLIB_SUFFIX=".so" 9451 if test "$GCC" = yes; then 9452 9453 SHLIB_LD='${CC} -shared' 9454 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9455 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9456 if test "$do64bit_ok" = yes; then 9457 9458 if test "$arch" = "sparcv9 sparc"; then 9459 9460 # We need to specify -static-libgcc or we need to 9461 # add the path to the sparv9 libgcc. 9462 # JH: static-libgcc is necessary for core Tcl, but may 9463 # not be necessary for extensions. 9464 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9465 # for finding sparcv9 libgcc, get the regular libgcc 9466 # path, remove so name and append 'sparcv9' 9467 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9468 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9469 9470else 9471 if test "$arch" = "amd64 i386"; then 9472 9473 # JH: static-libgcc is necessary for core Tcl, but may 9474 # not be necessary for extensions. 9475 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9476 9477fi 9478 9479fi 9480 9481 9482fi 9483 9484 9485else 9486 9487 case $system in 9488 SunOS-5.[1-9][0-9]*) 9489 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9490 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9491 *) 9492 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9493 esac 9494 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9495 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9496 9497fi 9498 9499 ;; 9500 esac 9501 9502 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9503 9504 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9505echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9506 9507fi 9508 9509 9510 9511 9512 # Add in the arch flags late to ensure it wasn't removed. 9513 # Not necessary in TEA, but this is aligned with core 9514 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9515 9516 # If we're running gcc, then change the C flags for compiling shared 9517 # libraries to the right flags for gcc, instead of those for the 9518 # standard manufacturer compiler. 9519 9520 if test "$GCC" = yes; then 9521 9522 case $system in 9523 AIX-*) ;; 9524 BSD/OS*) ;; 9525 CYGWIN_*) ;; 9526 IRIX*) ;; 9527 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9528 Darwin-*) ;; 9529 SCO_SV-3.2*) ;; 9530 windows) ;; 9531 *) SHLIB_CFLAGS="-fPIC" ;; 9532 esac 9533fi 9534 9535 9536 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9537 9538 9539cat >>confdefs.h <<\_ACEOF 9540#define MODULE_SCOPE extern 9541_ACEOF 9542 9543 9544cat >>confdefs.h <<\_ACEOF 9545#define NO_VIZ 9546_ACEOF 9547 9548 9549fi 9550 9551 9552 if test "$SHARED_LIB_SUFFIX" = ""; then 9553 9554 # TEA specific: use PACKAGE_VERSION instead of VERSION 9555 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9556fi 9557 9558 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9559 9560 # TEA specific: use PACKAGE_VERSION instead of VERSION 9561 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9562fi 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 # These must be called after we do the basic CFLAGS checks and 9578 # verify any possible 64-bit or similar switches are necessary 9579 9580 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9581echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9582 tcl_flags="" 9583 9584 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9585 echo $ECHO_N "(cached) $ECHO_C" >&6 9586else 9587 cat >conftest.$ac_ext <<_ACEOF 9588/* confdefs.h. */ 9589_ACEOF 9590cat confdefs.h >>conftest.$ac_ext 9591cat >>conftest.$ac_ext <<_ACEOF 9592/* end confdefs.h. */ 9593#include <stdlib.h> 9594int 9595main () 9596{ 9597char *p = (char *)strtoll; char *q = (char *)strtoull; 9598 ; 9599 return 0; 9600} 9601_ACEOF 9602rm -f conftest.$ac_objext 9603if { (ac_try="$ac_compile" 9604case "(($ac_try" in 9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9606 *) ac_try_echo=$ac_try;; 9607esac 9608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9609 (eval "$ac_compile") 2>conftest.er1 9610 ac_status=$? 9611 grep -v '^ *+' conftest.er1 >conftest.err 9612 rm -f conftest.er1 9613 cat conftest.err >&5 9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); } && { 9616 test -z "$ac_c_werror_flag" || 9617 test ! -s conftest.err 9618 } && test -s conftest.$ac_objext; then 9619 tcl_cv_flag__isoc99_source=no 9620else 9621 echo "$as_me: failed program was:" >&5 9622sed 's/^/| /' conftest.$ac_ext >&5 9623 9624 cat >conftest.$ac_ext <<_ACEOF 9625/* confdefs.h. */ 9626_ACEOF 9627cat confdefs.h >>conftest.$ac_ext 9628cat >>conftest.$ac_ext <<_ACEOF 9629/* end confdefs.h. */ 9630#define _ISOC99_SOURCE 1 9631#include <stdlib.h> 9632int 9633main () 9634{ 9635char *p = (char *)strtoll; char *q = (char *)strtoull; 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640rm -f conftest.$ac_objext 9641if { (ac_try="$ac_compile" 9642case "(($ac_try" in 9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9644 *) ac_try_echo=$ac_try;; 9645esac 9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9647 (eval "$ac_compile") 2>conftest.er1 9648 ac_status=$? 9649 grep -v '^ *+' conftest.er1 >conftest.err 9650 rm -f conftest.er1 9651 cat conftest.err >&5 9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9653 (exit $ac_status); } && { 9654 test -z "$ac_c_werror_flag" || 9655 test ! -s conftest.err 9656 } && test -s conftest.$ac_objext; then 9657 tcl_cv_flag__isoc99_source=yes 9658else 9659 echo "$as_me: failed program was:" >&5 9660sed 's/^/| /' conftest.$ac_ext >&5 9661 9662 tcl_cv_flag__isoc99_source=no 9663fi 9664 9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9666fi 9667 9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9669fi 9670 9671 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9672 9673cat >>confdefs.h <<\_ACEOF 9674#define _ISOC99_SOURCE 1 9675_ACEOF 9676 9677 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9678 fi 9679 9680 9681 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9682 echo $ECHO_N "(cached) $ECHO_C" >&6 9683else 9684 cat >conftest.$ac_ext <<_ACEOF 9685/* confdefs.h. */ 9686_ACEOF 9687cat confdefs.h >>conftest.$ac_ext 9688cat >>conftest.$ac_ext <<_ACEOF 9689/* end confdefs.h. */ 9690#include <sys/stat.h> 9691int 9692main () 9693{ 9694struct stat64 buf; int i = stat64("/", &buf); 9695 ; 9696 return 0; 9697} 9698_ACEOF 9699rm -f conftest.$ac_objext 9700if { (ac_try="$ac_compile" 9701case "(($ac_try" in 9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9703 *) ac_try_echo=$ac_try;; 9704esac 9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9706 (eval "$ac_compile") 2>conftest.er1 9707 ac_status=$? 9708 grep -v '^ *+' conftest.er1 >conftest.err 9709 rm -f conftest.er1 9710 cat conftest.err >&5 9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9712 (exit $ac_status); } && { 9713 test -z "$ac_c_werror_flag" || 9714 test ! -s conftest.err 9715 } && test -s conftest.$ac_objext; then 9716 tcl_cv_flag__largefile64_source=no 9717else 9718 echo "$as_me: failed program was:" >&5 9719sed 's/^/| /' conftest.$ac_ext >&5 9720 9721 cat >conftest.$ac_ext <<_ACEOF 9722/* confdefs.h. */ 9723_ACEOF 9724cat confdefs.h >>conftest.$ac_ext 9725cat >>conftest.$ac_ext <<_ACEOF 9726/* end confdefs.h. */ 9727#define _LARGEFILE64_SOURCE 1 9728#include <sys/stat.h> 9729int 9730main () 9731{ 9732struct stat64 buf; int i = stat64("/", &buf); 9733 ; 9734 return 0; 9735} 9736_ACEOF 9737rm -f conftest.$ac_objext 9738if { (ac_try="$ac_compile" 9739case "(($ac_try" in 9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9741 *) ac_try_echo=$ac_try;; 9742esac 9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9744 (eval "$ac_compile") 2>conftest.er1 9745 ac_status=$? 9746 grep -v '^ *+' conftest.er1 >conftest.err 9747 rm -f conftest.er1 9748 cat conftest.err >&5 9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9750 (exit $ac_status); } && { 9751 test -z "$ac_c_werror_flag" || 9752 test ! -s conftest.err 9753 } && test -s conftest.$ac_objext; then 9754 tcl_cv_flag__largefile64_source=yes 9755else 9756 echo "$as_me: failed program was:" >&5 9757sed 's/^/| /' conftest.$ac_ext >&5 9758 9759 tcl_cv_flag__largefile64_source=no 9760fi 9761 9762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9763fi 9764 9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9766fi 9767 9768 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9769 9770cat >>confdefs.h <<\_ACEOF 9771#define _LARGEFILE64_SOURCE 1 9772_ACEOF 9773 9774 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9775 fi 9776 9777 9778 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9779 echo $ECHO_N "(cached) $ECHO_C" >&6 9780else 9781 cat >conftest.$ac_ext <<_ACEOF 9782/* confdefs.h. */ 9783_ACEOF 9784cat confdefs.h >>conftest.$ac_ext 9785cat >>conftest.$ac_ext <<_ACEOF 9786/* end confdefs.h. */ 9787#include <sys/stat.h> 9788int 9789main () 9790{ 9791char *p = (char *)open64; 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796rm -f conftest.$ac_objext 9797if { (ac_try="$ac_compile" 9798case "(($ac_try" in 9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9800 *) ac_try_echo=$ac_try;; 9801esac 9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9803 (eval "$ac_compile") 2>conftest.er1 9804 ac_status=$? 9805 grep -v '^ *+' conftest.er1 >conftest.err 9806 rm -f conftest.er1 9807 cat conftest.err >&5 9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9809 (exit $ac_status); } && { 9810 test -z "$ac_c_werror_flag" || 9811 test ! -s conftest.err 9812 } && test -s conftest.$ac_objext; then 9813 tcl_cv_flag__largefile_source64=no 9814else 9815 echo "$as_me: failed program was:" >&5 9816sed 's/^/| /' conftest.$ac_ext >&5 9817 9818 cat >conftest.$ac_ext <<_ACEOF 9819/* confdefs.h. */ 9820_ACEOF 9821cat confdefs.h >>conftest.$ac_ext 9822cat >>conftest.$ac_ext <<_ACEOF 9823/* end confdefs.h. */ 9824#define _LARGEFILE_SOURCE64 1 9825#include <sys/stat.h> 9826int 9827main () 9828{ 9829char *p = (char *)open64; 9830 ; 9831 return 0; 9832} 9833_ACEOF 9834rm -f conftest.$ac_objext 9835if { (ac_try="$ac_compile" 9836case "(($ac_try" in 9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9838 *) ac_try_echo=$ac_try;; 9839esac 9840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9841 (eval "$ac_compile") 2>conftest.er1 9842 ac_status=$? 9843 grep -v '^ *+' conftest.er1 >conftest.err 9844 rm -f conftest.er1 9845 cat conftest.err >&5 9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9847 (exit $ac_status); } && { 9848 test -z "$ac_c_werror_flag" || 9849 test ! -s conftest.err 9850 } && test -s conftest.$ac_objext; then 9851 tcl_cv_flag__largefile_source64=yes 9852else 9853 echo "$as_me: failed program was:" >&5 9854sed 's/^/| /' conftest.$ac_ext >&5 9855 9856 tcl_cv_flag__largefile_source64=no 9857fi 9858 9859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9860fi 9861 9862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9863fi 9864 9865 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9866 9867cat >>confdefs.h <<\_ACEOF 9868#define _LARGEFILE_SOURCE64 1 9869_ACEOF 9870 9871 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9872 fi 9873 9874 if test "x${tcl_flags}" = "x" ; then 9875 { echo "$as_me:$LINENO: result: none" >&5 9876echo "${ECHO_T}none" >&6; } 9877 else 9878 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9879echo "${ECHO_T}${tcl_flags}" >&6; } 9880 fi 9881 9882 9883 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9884echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9885 if test "${tcl_cv_type_64bit+set}" = set; then 9886 echo $ECHO_N "(cached) $ECHO_C" >&6 9887else 9888 9889 tcl_cv_type_64bit=none 9890 # See if the compiler knows natively about __int64 9891 cat >conftest.$ac_ext <<_ACEOF 9892/* confdefs.h. */ 9893_ACEOF 9894cat confdefs.h >>conftest.$ac_ext 9895cat >>conftest.$ac_ext <<_ACEOF 9896/* end confdefs.h. */ 9897 9898int 9899main () 9900{ 9901__int64 value = (__int64) 0; 9902 ; 9903 return 0; 9904} 9905_ACEOF 9906rm -f conftest.$ac_objext 9907if { (ac_try="$ac_compile" 9908case "(($ac_try" in 9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9910 *) ac_try_echo=$ac_try;; 9911esac 9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9913 (eval "$ac_compile") 2>conftest.er1 9914 ac_status=$? 9915 grep -v '^ *+' conftest.er1 >conftest.err 9916 rm -f conftest.er1 9917 cat conftest.err >&5 9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9919 (exit $ac_status); } && { 9920 test -z "$ac_c_werror_flag" || 9921 test ! -s conftest.err 9922 } && test -s conftest.$ac_objext; then 9923 tcl_type_64bit=__int64 9924else 9925 echo "$as_me: failed program was:" >&5 9926sed 's/^/| /' conftest.$ac_ext >&5 9927 9928 tcl_type_64bit="long long" 9929fi 9930 9931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9932 # See if we should use long anyway Note that we substitute in the 9933 # type that is our current guess for a 64-bit type inside this check 9934 # program, so it should be modified only carefully... 9935 cat >conftest.$ac_ext <<_ACEOF 9936/* confdefs.h. */ 9937_ACEOF 9938cat confdefs.h >>conftest.$ac_ext 9939cat >>conftest.$ac_ext <<_ACEOF 9940/* end confdefs.h. */ 9941 9942int 9943main () 9944{ 9945switch (0) { 9946 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9947 } 9948 ; 9949 return 0; 9950} 9951_ACEOF 9952rm -f conftest.$ac_objext 9953if { (ac_try="$ac_compile" 9954case "(($ac_try" in 9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9956 *) ac_try_echo=$ac_try;; 9957esac 9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9959 (eval "$ac_compile") 2>conftest.er1 9960 ac_status=$? 9961 grep -v '^ *+' conftest.er1 >conftest.err 9962 rm -f conftest.er1 9963 cat conftest.err >&5 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); } && { 9966 test -z "$ac_c_werror_flag" || 9967 test ! -s conftest.err 9968 } && test -s conftest.$ac_objext; then 9969 tcl_cv_type_64bit=${tcl_type_64bit} 9970else 9971 echo "$as_me: failed program was:" >&5 9972sed 's/^/| /' conftest.$ac_ext >&5 9973 9974 9975fi 9976 9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9978fi 9979 9980 if test "${tcl_cv_type_64bit}" = none ; then 9981 9982cat >>confdefs.h <<\_ACEOF 9983#define TCL_WIDE_INT_IS_LONG 1 9984_ACEOF 9985 9986 { echo "$as_me:$LINENO: result: using long" >&5 9987echo "${ECHO_T}using long" >&6; } 9988 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9989 -a "${TEA_PLATFORM}" = "windows" ; then 9990 # TEA specific: We actually want to use the default tcl.h checks in 9991 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9992 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9993echo "${ECHO_T}using Tcl header defaults" >&6; } 9994 else 9995 9996cat >>confdefs.h <<_ACEOF 9997#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9998_ACEOF 9999 10000 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10001echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10002 10003 # Now check for auxiliary declarations 10004 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10005echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10006if test "${tcl_cv_struct_dirent64+set}" = set; then 10007 echo $ECHO_N "(cached) $ECHO_C" >&6 10008else 10009 10010 cat >conftest.$ac_ext <<_ACEOF 10011/* confdefs.h. */ 10012_ACEOF 10013cat confdefs.h >>conftest.$ac_ext 10014cat >>conftest.$ac_ext <<_ACEOF 10015/* end confdefs.h. */ 10016#include <sys/types.h> 10017#include <sys/dirent.h> 10018int 10019main () 10020{ 10021struct dirent64 p; 10022 ; 10023 return 0; 10024} 10025_ACEOF 10026rm -f conftest.$ac_objext 10027if { (ac_try="$ac_compile" 10028case "(($ac_try" in 10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10030 *) ac_try_echo=$ac_try;; 10031esac 10032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10033 (eval "$ac_compile") 2>conftest.er1 10034 ac_status=$? 10035 grep -v '^ *+' conftest.er1 >conftest.err 10036 rm -f conftest.er1 10037 cat conftest.err >&5 10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10039 (exit $ac_status); } && { 10040 test -z "$ac_c_werror_flag" || 10041 test ! -s conftest.err 10042 } && test -s conftest.$ac_objext; then 10043 tcl_cv_struct_dirent64=yes 10044else 10045 echo "$as_me: failed program was:" >&5 10046sed 's/^/| /' conftest.$ac_ext >&5 10047 10048 tcl_cv_struct_dirent64=no 10049fi 10050 10051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10052fi 10053{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10054echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10055 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10056 10057cat >>confdefs.h <<\_ACEOF 10058#define HAVE_STRUCT_DIRENT64 1 10059_ACEOF 10060 10061 fi 10062 10063 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10064echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10065if test "${tcl_cv_struct_stat64+set}" = set; then 10066 echo $ECHO_N "(cached) $ECHO_C" >&6 10067else 10068 10069 cat >conftest.$ac_ext <<_ACEOF 10070/* confdefs.h. */ 10071_ACEOF 10072cat confdefs.h >>conftest.$ac_ext 10073cat >>conftest.$ac_ext <<_ACEOF 10074/* end confdefs.h. */ 10075#include <sys/stat.h> 10076int 10077main () 10078{ 10079struct stat64 p; 10080 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085rm -f conftest.$ac_objext 10086if { (ac_try="$ac_compile" 10087case "(($ac_try" in 10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10089 *) ac_try_echo=$ac_try;; 10090esac 10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10092 (eval "$ac_compile") 2>conftest.er1 10093 ac_status=$? 10094 grep -v '^ *+' conftest.er1 >conftest.err 10095 rm -f conftest.er1 10096 cat conftest.err >&5 10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10098 (exit $ac_status); } && { 10099 test -z "$ac_c_werror_flag" || 10100 test ! -s conftest.err 10101 } && test -s conftest.$ac_objext; then 10102 tcl_cv_struct_stat64=yes 10103else 10104 echo "$as_me: failed program was:" >&5 10105sed 's/^/| /' conftest.$ac_ext >&5 10106 10107 tcl_cv_struct_stat64=no 10108fi 10109 10110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10111fi 10112{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10113echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10114 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10115 10116cat >>confdefs.h <<\_ACEOF 10117#define HAVE_STRUCT_STAT64 1 10118_ACEOF 10119 10120 fi 10121 10122 10123 10124for ac_func in open64 lseek64 10125do 10126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10127{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10129if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10130 echo $ECHO_N "(cached) $ECHO_C" >&6 10131else 10132 cat >conftest.$ac_ext <<_ACEOF 10133/* confdefs.h. */ 10134_ACEOF 10135cat confdefs.h >>conftest.$ac_ext 10136cat >>conftest.$ac_ext <<_ACEOF 10137/* end confdefs.h. */ 10138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10140#define $ac_func innocuous_$ac_func 10141 10142/* System header to define __stub macros and hopefully few prototypes, 10143 which can conflict with char $ac_func (); below. 10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10145 <limits.h> exists even on freestanding compilers. */ 10146 10147#ifdef __STDC__ 10148# include <limits.h> 10149#else 10150# include <assert.h> 10151#endif 10152 10153#undef $ac_func 10154 10155/* Override any GCC internal prototype to avoid an error. 10156 Use char because int might match the return type of a GCC 10157 builtin and then its argument prototype would still apply. */ 10158#ifdef __cplusplus 10159extern "C" 10160#endif 10161char $ac_func (); 10162/* The GNU C library defines this for functions which it implements 10163 to always fail with ENOSYS. Some functions are actually named 10164 something starting with __ and the normal name is an alias. */ 10165#if defined __stub_$ac_func || defined __stub___$ac_func 10166choke me 10167#endif 10168 10169int 10170main () 10171{ 10172return $ac_func (); 10173 ; 10174 return 0; 10175} 10176_ACEOF 10177rm -f conftest.$ac_objext conftest$ac_exeext 10178if { (ac_try="$ac_link" 10179case "(($ac_try" in 10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10181 *) ac_try_echo=$ac_try;; 10182esac 10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10184 (eval "$ac_link") 2>conftest.er1 10185 ac_status=$? 10186 grep -v '^ *+' conftest.er1 >conftest.err 10187 rm -f conftest.er1 10188 cat conftest.err >&5 10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10190 (exit $ac_status); } && { 10191 test -z "$ac_c_werror_flag" || 10192 test ! -s conftest.err 10193 } && test -s conftest$ac_exeext && 10194 $as_test_x conftest$ac_exeext; then 10195 eval "$as_ac_var=yes" 10196else 10197 echo "$as_me: failed program was:" >&5 10198sed 's/^/| /' conftest.$ac_ext >&5 10199 10200 eval "$as_ac_var=no" 10201fi 10202 10203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10204 conftest$ac_exeext conftest.$ac_ext 10205fi 10206ac_res=`eval echo '${'$as_ac_var'}'` 10207 { echo "$as_me:$LINENO: result: $ac_res" >&5 10208echo "${ECHO_T}$ac_res" >&6; } 10209if test `eval echo '${'$as_ac_var'}'` = yes; then 10210 cat >>confdefs.h <<_ACEOF 10211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10212_ACEOF 10213 10214fi 10215done 10216 10217 { echo "$as_me:$LINENO: checking for off64_t" >&5 10218echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10219 if test "${tcl_cv_type_off64_t+set}" = set; then 10220 echo $ECHO_N "(cached) $ECHO_C" >&6 10221else 10222 10223 cat >conftest.$ac_ext <<_ACEOF 10224/* confdefs.h. */ 10225_ACEOF 10226cat confdefs.h >>conftest.$ac_ext 10227cat >>conftest.$ac_ext <<_ACEOF 10228/* end confdefs.h. */ 10229#include <sys/types.h> 10230int 10231main () 10232{ 10233off64_t offset; 10234 10235 ; 10236 return 0; 10237} 10238_ACEOF 10239rm -f conftest.$ac_objext 10240if { (ac_try="$ac_compile" 10241case "(($ac_try" in 10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10243 *) ac_try_echo=$ac_try;; 10244esac 10245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10246 (eval "$ac_compile") 2>conftest.er1 10247 ac_status=$? 10248 grep -v '^ *+' conftest.er1 >conftest.err 10249 rm -f conftest.er1 10250 cat conftest.err >&5 10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10252 (exit $ac_status); } && { 10253 test -z "$ac_c_werror_flag" || 10254 test ! -s conftest.err 10255 } && test -s conftest.$ac_objext; then 10256 tcl_cv_type_off64_t=yes 10257else 10258 echo "$as_me: failed program was:" >&5 10259sed 's/^/| /' conftest.$ac_ext >&5 10260 10261 tcl_cv_type_off64_t=no 10262fi 10263 10264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10265fi 10266 10267 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10268 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10269 test "x${ac_cv_func_open64}" = "xyes" ; then 10270 10271cat >>confdefs.h <<\_ACEOF 10272#define HAVE_TYPE_OFF64_T 1 10273_ACEOF 10274 10275 { echo "$as_me:$LINENO: result: yes" >&5 10276echo "${ECHO_T}yes" >&6; } 10277 else 10278 { echo "$as_me:$LINENO: result: no" >&5 10279echo "${ECHO_T}no" >&6; } 10280 fi 10281 fi 10282 10283 10284 10285#-------------------------------------------------------------------- 10286# Set the default compiler switches based on the --enable-symbols option. 10287#-------------------------------------------------------------------- 10288 10289 10290 10291 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10292echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10293 # Check whether --enable-symbols was given. 10294if test "${enable_symbols+set}" = set; then 10295 enableval=$enable_symbols; tcl_ok=$enableval 10296else 10297 tcl_ok=no 10298fi 10299 10300 DBGX="" 10301 if test "$tcl_ok" = "no"; then 10302 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10303 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10304 { echo "$as_me:$LINENO: result: no" >&5 10305echo "${ECHO_T}no" >&6; } 10306 else 10307 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10308 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10309 if test "$tcl_ok" = "yes"; then 10310 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10311echo "${ECHO_T}yes (standard debugging)" >&6; } 10312 fi 10313 fi 10314 # TEA specific: 10315 if test "${TEA_PLATFORM}" != "windows" ; then 10316 LDFLAGS_DEFAULT="${LDFLAGS}" 10317 fi 10318 10319 10320 10321 10322 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10323 10324cat >>confdefs.h <<\_ACEOF 10325#define TCL_MEM_DEBUG 1 10326_ACEOF 10327 10328 fi 10329 10330 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10331 if test "$tcl_ok" = "all"; then 10332 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10333echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10334 else 10335 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10336echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10337 fi 10338 fi 10339 10340 10341#-------------------------------------------------------------------- 10342# Everyone should be linking against the Tcl stub library. If you 10343# can't for some reason, remove this definition. If you aren't using 10344# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10345# link against the non-stubbed Tcl library. 10346#-------------------------------------------------------------------- 10347 10348cat >>confdefs.h <<\_ACEOF 10349#define USE_TCL_STUBS 1 10350_ACEOF 10351 10352cat >>confdefs.h <<\_ACEOF 10353#define USE_TCLXML_STUBS 1 10354_ACEOF 10355 10356 10357#-------------------------------------------------------------------- 10358# This macro generates a line to use when building a library. It 10359# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10360# and TEA_LOAD_TCLCONFIG macros above. 10361#-------------------------------------------------------------------- 10362 10363 10364 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10365 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10366 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10367 cat >conftest.$ac_ext <<_ACEOF 10368/* confdefs.h. */ 10369_ACEOF 10370cat confdefs.h >>conftest.$ac_ext 10371cat >>conftest.$ac_ext <<_ACEOF 10372/* end confdefs.h. */ 10373 10374#if defined(_MSC_VER) && _MSC_VER >= 1400 10375print("manifest needed") 10376#endif 10377 10378_ACEOF 10379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10380 $EGREP "manifest needed" >/dev/null 2>&1; then 10381 10382 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10383 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10384 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10385 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10386 10387 CLEANFILES="$CLEANFILES *.manifest" 10388 10389 10390fi 10391rm -f -r conftest* 10392 10393 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10394 else 10395 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10396 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10397 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10398 fi 10399 10400 if test "${SHARED_BUILD}" = "1" ; then 10401 MAKE_LIB="${MAKE_SHARED_LIB} " 10402 else 10403 MAKE_LIB="${MAKE_STATIC_LIB} " 10404 fi 10405 10406 #-------------------------------------------------------------------- 10407 # Shared libraries and static libraries have different names. 10408 # Use the double eval to make sure any variables in the suffix is 10409 # substituted. (@@@ Might not be necessary anymore) 10410 #-------------------------------------------------------------------- 10411 10412 if test "${TEA_PLATFORM}" = "windows" ; then 10413 if test "${SHARED_BUILD}" = "1" ; then 10414 # We force the unresolved linking of symbols that are really in 10415 # the private libraries of Tcl and Tk. 10416 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10417 if test x"${TK_BIN_DIR}" != x ; then 10418 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10419 fi 10420 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10421 else 10422 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10423 fi 10424 # Some packages build their own stubs libraries 10425 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10426 if test "$GCC" = "yes"; then 10427 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10428 fi 10429 # These aren't needed on Windows (either MSVC or gcc) 10430 RANLIB=: 10431 RANLIB_STUB=: 10432 else 10433 RANLIB_STUB="${RANLIB}" 10434 if test "${SHARED_BUILD}" = "1" ; then 10435 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10436 if test x"${TK_BIN_DIR}" != x ; then 10437 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10438 fi 10439 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10440 RANLIB=: 10441 else 10442 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10443 fi 10444 # Some packages build their own stubs libraries 10445 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10446 fi 10447 10448 # These are escaped so that only CFLAGS is picked up at configure time. 10449 # The other values will be substituted at make time. 10450 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10451 if test "${SHARED_BUILD}" = "1" ; then 10452 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10453 fi 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464#-------------------------------------------------------------------- 10465# __CHANGE__ 10466# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 10467#-------------------------------------------------------------------- 10468 10469if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 10470 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${Tclxml_STUB_LIB_PATH}`\"" 10471else 10472 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${Tclxml_STUB_LIB_SPEC}" 10473fi 10474 10475#-------------------------------------------------------------------- 10476# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10477# file during the install process. Don't run the TCLSH_PROG through 10478# ${CYGPATH} because it's being used directly by make. 10479# Require that we use a tclsh shell version 8.2 or later since earlier 10480# versions have bugs in the pkg_mkIndex routine. 10481# Add WISH as well if this is a Tk extension. 10482#-------------------------------------------------------------------- 10483 10484 10485 { echo "$as_me:$LINENO: checking for tclsh" >&5 10486echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10487 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10488 # tclConfig.sh is in Tcl build directory 10489 if test "${TEA_PLATFORM}" = "windows"; then 10490 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10491 else 10492 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10493 fi 10494 else 10495 # tclConfig.sh is in install location 10496 if test "${TEA_PLATFORM}" = "windows"; then 10497 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10498 else 10499 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10500 fi 10501 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10502 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10503 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10504 for i in $list ; do 10505 if test -f "$i/${TCLSH_PROG}" ; then 10506 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10507 break 10508 fi 10509 done 10510 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10511 fi 10512 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10513echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10514 10515 10516 10517eval "${PACKAGE}_LIB_FILE=${PKG_LIB_FILE}" 10518eval "${PACKAGE}stub_LIB_FILE=${PKG_STUB_LIB_FILE}" 10519 10520#-------------------------------------------------------------------- 10521# Unix machines should use the superior unixfilemap.c code 10522#-------------------------------------------------------------------- 10523 10524FILEMAP=unixfilemap 10525 10526case "`uname -s`" in 10527*win32* | *WIN32* | *CYGWIN_NT*) 10528 FILEMAP=readfilemap 10529esac 10530 10531 10532 10533#-------------------------------------------------------------------- 10534# Additional defines used by expat 10535#-------------------------------------------------------------------- 10536 10537cat >>confdefs.h <<\_ACEOF 10538#define XML_DTD 1 10539_ACEOF 10540 10541cat >>confdefs.h <<\_ACEOF 10542#define XML_NS 1 10543_ACEOF 10544 10545 10546#-------------------------------------------------------------------- 10547# Finally, substitute all of the various values into the Makefile. 10548# You may alternatively have a special pkgIndex.tcl.in or other files 10549# which require substituting th AC variables in. Include these here. 10550#-------------------------------------------------------------------- 10551 10552ac_config_files="$ac_config_files Makefile" 10553 10554cat >confcache <<\_ACEOF 10555# This file is a shell script that caches the results of configure 10556# tests run on this system so they can be shared between configure 10557# scripts and configure runs, see configure's option --config-cache. 10558# It is not useful on other systems. If it contains results you don't 10559# want to keep, you may remove or edit it. 10560# 10561# config.status only pays attention to the cache file if you give it 10562# the --recheck option to rerun configure. 10563# 10564# `ac_cv_env_foo' variables (set or unset) will be overridden when 10565# loading this file, other *unset* `ac_cv_foo' will be assigned the 10566# following values. 10567 10568_ACEOF 10569 10570# The following way of writing the cache mishandles newlines in values, 10571# but we know of no workaround that is simple, portable, and efficient. 10572# So, we kill variables containing newlines. 10573# Ultrix sh set writes to stderr and can't be redirected directly, 10574# and sets the high bit in the cache file unless we assign to the vars. 10575( 10576 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10577 eval ac_val=\$$ac_var 10578 case $ac_val in #( 10579 *${as_nl}*) 10580 case $ac_var in #( 10581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10583 esac 10584 case $ac_var in #( 10585 _ | IFS | as_nl) ;; #( 10586 *) $as_unset $ac_var ;; 10587 esac ;; 10588 esac 10589 done 10590 10591 (set) 2>&1 | 10592 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10593 *${as_nl}ac_space=\ *) 10594 # `set' does not quote correctly, so add quotes (double-quote 10595 # substitution turns \\\\ into \\, and sed turns \\ into \). 10596 sed -n \ 10597 "s/'/'\\\\''/g; 10598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10599 ;; #( 10600 *) 10601 # `set' quotes correctly as required by POSIX, so do not add quotes. 10602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10603 ;; 10604 esac | 10605 sort 10606) | 10607 sed ' 10608 /^ac_cv_env_/b end 10609 t clear 10610 :clear 10611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10612 t end 10613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10614 :end' >>confcache 10615if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10616 if test -w "$cache_file"; then 10617 test "x$cache_file" != "x/dev/null" && 10618 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10619echo "$as_me: updating cache $cache_file" >&6;} 10620 cat confcache >$cache_file 10621 else 10622 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10623echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10624 fi 10625fi 10626rm -f confcache 10627 10628test "x$prefix" = xNONE && prefix=$ac_default_prefix 10629# Let make expand exec_prefix. 10630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10631 10632# Transform confdefs.h into DEFS. 10633# Protect against shell expansion while executing Makefile rules. 10634# Protect against Makefile macro expansion. 10635# 10636# If the first sed substitution is executed (which looks for macros that 10637# take arguments), then branch to the quote section. Otherwise, 10638# look for a macro that doesn't take arguments. 10639ac_script=' 10640t clear 10641:clear 10642s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10643t quote 10644s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10645t quote 10646b any 10647:quote 10648s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10649s/\[/\\&/g 10650s/\]/\\&/g 10651s/\$/$$/g 10652H 10653:any 10654${ 10655 g 10656 s/^\n// 10657 s/\n/ /g 10658 p 10659} 10660' 10661DEFS=`sed -n "$ac_script" confdefs.h` 10662 10663 10664ac_libobjs= 10665ac_ltlibobjs= 10666for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10667 # 1. Remove the extension, and $U if already installed. 10668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10669 ac_i=`echo "$ac_i" | sed "$ac_script"` 10670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10671 # will be set to the directory where LIBOBJS objects are built. 10672 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10673 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10674done 10675LIBOBJS=$ac_libobjs 10676 10677LTLIBOBJS=$ac_ltlibobjs 10678 10679 10680CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10681 10682: ${CONFIG_STATUS=./config.status} 10683ac_clean_files_save=$ac_clean_files 10684ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10685{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10686echo "$as_me: creating $CONFIG_STATUS" >&6;} 10687cat >$CONFIG_STATUS <<_ACEOF 10688#! $SHELL 10689# Generated by $as_me. 10690# Run this file to recreate the current configuration. 10691# Compiler output produced by configure, useful for debugging 10692# configure, is in config.log if it exists. 10693 10694debug=false 10695ac_cs_recheck=false 10696ac_cs_silent=false 10697SHELL=\${CONFIG_SHELL-$SHELL} 10698_ACEOF 10699 10700cat >>$CONFIG_STATUS <<\_ACEOF 10701## --------------------- ## 10702## M4sh Initialization. ## 10703## --------------------- ## 10704 10705# Be more Bourne compatible 10706DUALCASE=1; export DUALCASE # for MKS sh 10707if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10708 emulate sh 10709 NULLCMD=: 10710 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10711 # is contrary to our usage. Disable this feature. 10712 alias -g '${1+"$@"}'='"$@"' 10713 setopt NO_GLOB_SUBST 10714else 10715 case `(set -o) 2>/dev/null` in 10716 *posix*) set -o posix ;; 10717esac 10718 10719fi 10720 10721 10722 10723 10724# PATH needs CR 10725# Avoid depending upon Character Ranges. 10726as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10727as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10728as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10729as_cr_digits='0123456789' 10730as_cr_alnum=$as_cr_Letters$as_cr_digits 10731 10732# The user is always right. 10733if test "${PATH_SEPARATOR+set}" != set; then 10734 echo "#! /bin/sh" >conf$$.sh 10735 echo "exit 0" >>conf$$.sh 10736 chmod +x conf$$.sh 10737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10738 PATH_SEPARATOR=';' 10739 else 10740 PATH_SEPARATOR=: 10741 fi 10742 rm -f conf$$.sh 10743fi 10744 10745# Support unset when possible. 10746if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10747 as_unset=unset 10748else 10749 as_unset=false 10750fi 10751 10752 10753# IFS 10754# We need space, tab and new line, in precisely that order. Quoting is 10755# there to prevent editors from complaining about space-tab. 10756# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10757# splitting by setting IFS to empty value.) 10758as_nl=' 10759' 10760IFS=" "" $as_nl" 10761 10762# Find who we are. Look in the path if we contain no directory separator. 10763case $0 in 10764 *[\\/]* ) as_myself=$0 ;; 10765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10766for as_dir in $PATH 10767do 10768 IFS=$as_save_IFS 10769 test -z "$as_dir" && as_dir=. 10770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10771done 10772IFS=$as_save_IFS 10773 10774 ;; 10775esac 10776# We did not find ourselves, most probably we were run as `sh COMMAND' 10777# in which case we are not to be found in the path. 10778if test "x$as_myself" = x; then 10779 as_myself=$0 10780fi 10781if test ! -f "$as_myself"; then 10782 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10783 { (exit 1); exit 1; } 10784fi 10785 10786# Work around bugs in pre-3.0 UWIN ksh. 10787for as_var in ENV MAIL MAILPATH 10788do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10789done 10790PS1='$ ' 10791PS2='> ' 10792PS4='+ ' 10793 10794# NLS nuisances. 10795for as_var in \ 10796 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10797 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10798 LC_TELEPHONE LC_TIME 10799do 10800 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10801 eval $as_var=C; export $as_var 10802 else 10803 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10804 fi 10805done 10806 10807# Required to use basename. 10808if expr a : '\(a\)' >/dev/null 2>&1 && 10809 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10810 as_expr=expr 10811else 10812 as_expr=false 10813fi 10814 10815if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10816 as_basename=basename 10817else 10818 as_basename=false 10819fi 10820 10821 10822# Name of the executable. 10823as_me=`$as_basename -- "$0" || 10824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10825 X"$0" : 'X\(//\)$' \| \ 10826 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10827echo X/"$0" | 10828 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10829 s//\1/ 10830 q 10831 } 10832 /^X\/\(\/\/\)$/{ 10833 s//\1/ 10834 q 10835 } 10836 /^X\/\(\/\).*/{ 10837 s//\1/ 10838 q 10839 } 10840 s/.*/./; q'` 10841 10842# CDPATH. 10843$as_unset CDPATH 10844 10845 10846 10847 as_lineno_1=$LINENO 10848 as_lineno_2=$LINENO 10849 test "x$as_lineno_1" != "x$as_lineno_2" && 10850 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10851 10852 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10853 # uniformly replaced by the line number. The first 'sed' inserts a 10854 # line-number line after each line using $LINENO; the second 'sed' 10855 # does the real work. The second script uses 'N' to pair each 10856 # line-number line with the line containing $LINENO, and appends 10857 # trailing '-' during substitution so that $LINENO is not a special 10858 # case at line end. 10859 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10860 # scripts with optimization help from Paolo Bonzini. Blame Lee 10861 # E. McMahon (1931-1989) for sed's syntax. :-) 10862 sed -n ' 10863 p 10864 /[$]LINENO/= 10865 ' <$as_myself | 10866 sed ' 10867 s/[$]LINENO.*/&-/ 10868 t lineno 10869 b 10870 :lineno 10871 N 10872 :loop 10873 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10874 t loop 10875 s/-\n.*// 10876 ' >$as_me.lineno && 10877 chmod +x "$as_me.lineno" || 10878 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10879 { (exit 1); exit 1; }; } 10880 10881 # Don't try to exec as it changes $[0], causing all sort of problems 10882 # (the dirname of $[0] is not the place where we might find the 10883 # original and so on. Autoconf is especially sensitive to this). 10884 . "./$as_me.lineno" 10885 # Exit status is that of the last command. 10886 exit 10887} 10888 10889 10890if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10891 as_dirname=dirname 10892else 10893 as_dirname=false 10894fi 10895 10896ECHO_C= ECHO_N= ECHO_T= 10897case `echo -n x` in 10898-n*) 10899 case `echo 'x\c'` in 10900 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10901 *) ECHO_C='\c';; 10902 esac;; 10903*) 10904 ECHO_N='-n';; 10905esac 10906 10907if expr a : '\(a\)' >/dev/null 2>&1 && 10908 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10909 as_expr=expr 10910else 10911 as_expr=false 10912fi 10913 10914rm -f conf$$ conf$$.exe conf$$.file 10915if test -d conf$$.dir; then 10916 rm -f conf$$.dir/conf$$.file 10917else 10918 rm -f conf$$.dir 10919 mkdir conf$$.dir 10920fi 10921echo >conf$$.file 10922if ln -s conf$$.file conf$$ 2>/dev/null; then 10923 as_ln_s='ln -s' 10924 # ... but there are two gotchas: 10925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10927 # In both cases, we have to default to `cp -p'. 10928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10929 as_ln_s='cp -p' 10930elif ln conf$$.file conf$$ 2>/dev/null; then 10931 as_ln_s=ln 10932else 10933 as_ln_s='cp -p' 10934fi 10935rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10936rmdir conf$$.dir 2>/dev/null 10937 10938if mkdir -p . 2>/dev/null; then 10939 as_mkdir_p=: 10940else 10941 test -d ./-p && rmdir ./-p 10942 as_mkdir_p=false 10943fi 10944 10945if test -x / >/dev/null 2>&1; then 10946 as_test_x='test -x' 10947else 10948 if ls -dL / >/dev/null 2>&1; then 10949 as_ls_L_option=L 10950 else 10951 as_ls_L_option= 10952 fi 10953 as_test_x=' 10954 eval sh -c '\'' 10955 if test -d "$1"; then 10956 test -d "$1/."; 10957 else 10958 case $1 in 10959 -*)set "./$1";; 10960 esac; 10961 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10962 ???[sx]*):;;*)false;;esac;fi 10963 '\'' sh 10964 ' 10965fi 10966as_executable_p=$as_test_x 10967 10968# Sed expression to map a string onto a valid CPP name. 10969as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10970 10971# Sed expression to map a string onto a valid variable name. 10972as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10973 10974 10975exec 6>&1 10976 10977# Save the log message, to keep $[0] and so on meaningful, and to 10978# report actual input values of CONFIG_FILES etc. instead of their 10979# values after options handling. 10980ac_log=" 10981This file was extended by Tclexpat $as_me 2.6, which was 10982generated by GNU Autoconf 2.61. Invocation command line was 10983 10984 CONFIG_FILES = $CONFIG_FILES 10985 CONFIG_HEADERS = $CONFIG_HEADERS 10986 CONFIG_LINKS = $CONFIG_LINKS 10987 CONFIG_COMMANDS = $CONFIG_COMMANDS 10988 $ $0 $@ 10989 10990on `(hostname || uname -n) 2>/dev/null | sed 1q` 10991" 10992 10993_ACEOF 10994 10995cat >>$CONFIG_STATUS <<_ACEOF 10996# Files that config.status was made for. 10997config_files="$ac_config_files" 10998 10999_ACEOF 11000 11001cat >>$CONFIG_STATUS <<\_ACEOF 11002ac_cs_usage="\ 11003\`$as_me' instantiates files from templates according to the 11004current configuration. 11005 11006Usage: $0 [OPTIONS] [FILE]... 11007 11008 -h, --help print this help, then exit 11009 -V, --version print version number and configuration settings, then exit 11010 -q, --quiet do not print progress messages 11011 -d, --debug don't remove temporary files 11012 --recheck update $as_me by reconfiguring in the same conditions 11013 --file=FILE[:TEMPLATE] 11014 instantiate the configuration file FILE 11015 11016Configuration files: 11017$config_files 11018 11019Report bugs to <bug-autoconf@gnu.org>." 11020 11021_ACEOF 11022cat >>$CONFIG_STATUS <<_ACEOF 11023ac_cs_version="\\ 11024Tclexpat config.status 2.6 11025configured by $0, generated by GNU Autoconf 2.61, 11026 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11027 11028Copyright (C) 2006 Free Software Foundation, Inc. 11029This config.status script is free software; the Free Software Foundation 11030gives unlimited permission to copy, distribute and modify it." 11031 11032ac_pwd='$ac_pwd' 11033srcdir='$srcdir' 11034INSTALL='$INSTALL' 11035_ACEOF 11036 11037cat >>$CONFIG_STATUS <<\_ACEOF 11038# If no file are specified by the user, then we need to provide default 11039# value. By we need to know if files were specified by the user. 11040ac_need_defaults=: 11041while test $# != 0 11042do 11043 case $1 in 11044 --*=*) 11045 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11046 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11047 ac_shift=: 11048 ;; 11049 *) 11050 ac_option=$1 11051 ac_optarg=$2 11052 ac_shift=shift 11053 ;; 11054 esac 11055 11056 case $ac_option in 11057 # Handling of the options. 11058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11059 ac_cs_recheck=: ;; 11060 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11061 echo "$ac_cs_version"; exit ;; 11062 --debug | --debu | --deb | --de | --d | -d ) 11063 debug=: ;; 11064 --file | --fil | --fi | --f ) 11065 $ac_shift 11066 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11067 ac_need_defaults=false;; 11068 --he | --h | --help | --hel | -h ) 11069 echo "$ac_cs_usage"; exit ;; 11070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11071 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11072 ac_cs_silent=: ;; 11073 11074 # This is an error. 11075 -*) { echo "$as_me: error: unrecognized option: $1 11076Try \`$0 --help' for more information." >&2 11077 { (exit 1); exit 1; }; } ;; 11078 11079 *) ac_config_targets="$ac_config_targets $1" 11080 ac_need_defaults=false ;; 11081 11082 esac 11083 shift 11084done 11085 11086ac_configure_extra_args= 11087 11088if $ac_cs_silent; then 11089 exec 6>/dev/null 11090 ac_configure_extra_args="$ac_configure_extra_args --silent" 11091fi 11092 11093_ACEOF 11094cat >>$CONFIG_STATUS <<_ACEOF 11095if \$ac_cs_recheck; then 11096 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11097 CONFIG_SHELL=$SHELL 11098 export CONFIG_SHELL 11099 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11100fi 11101 11102_ACEOF 11103cat >>$CONFIG_STATUS <<\_ACEOF 11104exec 5>>config.log 11105{ 11106 echo 11107 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11108## Running $as_me. ## 11109_ASBOX 11110 echo "$ac_log" 11111} >&5 11112 11113_ACEOF 11114cat >>$CONFIG_STATUS <<_ACEOF 11115_ACEOF 11116 11117cat >>$CONFIG_STATUS <<\_ACEOF 11118 11119# Handling of arguments. 11120for ac_config_target in $ac_config_targets 11121do 11122 case $ac_config_target in 11123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11124 11125 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11126echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11127 { (exit 1); exit 1; }; };; 11128 esac 11129done 11130 11131 11132# If the user did not use the arguments to specify the items to instantiate, 11133# then the envvar interface is used. Set only those that are not. 11134# We use the long form for the default assignment because of an extremely 11135# bizarre bug on SunOS 4.1.3. 11136if $ac_need_defaults; then 11137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11138fi 11139 11140# Have a temporary directory for convenience. Make it in the build tree 11141# simply because there is no reason against having it here, and in addition, 11142# creating and moving files from /tmp can sometimes cause problems. 11143# Hook for its removal unless debugging. 11144# Note that there is a small window in which the directory will not be cleaned: 11145# after its creation but before its name has been assigned to `$tmp'. 11146$debug || 11147{ 11148 tmp= 11149 trap 'exit_status=$? 11150 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11151' 0 11152 trap '{ (exit 1); exit 1; }' 1 2 13 15 11153} 11154# Create a (secure) tmp directory for tmp files. 11155 11156{ 11157 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11158 test -n "$tmp" && test -d "$tmp" 11159} || 11160{ 11161 tmp=./conf$$-$RANDOM 11162 (umask 077 && mkdir "$tmp") 11163} || 11164{ 11165 echo "$me: cannot create a temporary directory in ." >&2 11166 { (exit 1); exit 1; } 11167} 11168 11169# 11170# Set up the sed scripts for CONFIG_FILES section. 11171# 11172 11173# No need to generate the scripts if there are no CONFIG_FILES. 11174# This happens for instance when ./config.status config.h 11175if test -n "$CONFIG_FILES"; then 11176 11177_ACEOF 11178 11179 11180 11181ac_delim='%!_!# ' 11182for ac_last_try in false false false false false :; do 11183 cat >conf$$subs.sed <<_ACEOF 11184SHELL!$SHELL$ac_delim 11185PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11186PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11187PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11188PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11189PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11190PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11191exec_prefix!$exec_prefix$ac_delim 11192prefix!$prefix$ac_delim 11193program_transform_name!$program_transform_name$ac_delim 11194bindir!$bindir$ac_delim 11195sbindir!$sbindir$ac_delim 11196libexecdir!$libexecdir$ac_delim 11197datarootdir!$datarootdir$ac_delim 11198datadir!$datadir$ac_delim 11199sysconfdir!$sysconfdir$ac_delim 11200sharedstatedir!$sharedstatedir$ac_delim 11201localstatedir!$localstatedir$ac_delim 11202includedir!$includedir$ac_delim 11203oldincludedir!$oldincludedir$ac_delim 11204docdir!$docdir$ac_delim 11205infodir!$infodir$ac_delim 11206htmldir!$htmldir$ac_delim 11207dvidir!$dvidir$ac_delim 11208pdfdir!$pdfdir$ac_delim 11209psdir!$psdir$ac_delim 11210libdir!$libdir$ac_delim 11211localedir!$localedir$ac_delim 11212mandir!$mandir$ac_delim 11213DEFS!$DEFS$ac_delim 11214ECHO_C!$ECHO_C$ac_delim 11215ECHO_N!$ECHO_N$ac_delim 11216ECHO_T!$ECHO_T$ac_delim 11217LIBS!$LIBS$ac_delim 11218build_alias!$build_alias$ac_delim 11219host_alias!$host_alias$ac_delim 11220target_alias!$target_alias$ac_delim 11221CONFIGDIR!$CONFIGDIR$ac_delim 11222PACKAGE!$PACKAGE$ac_delim 11223VERSION!$VERSION$ac_delim 11224TCLEXPAT_VERSION!$TCLEXPAT_VERSION$ac_delim 11225Tclexpat_LIB_FILE!$Tclexpat_LIB_FILE$ac_delim 11226Tclexpatstub_LIB_FILE!$Tclexpatstub_LIB_FILE$ac_delim 11227CYGPATH!$CYGPATH$ac_delim 11228EXEEXT!$EXEEXT$ac_delim 11229PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11230PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11231PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11232PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11233PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11234PKG_HEADERS!$PKG_HEADERS$ac_delim 11235PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11236PKG_LIBS!$PKG_LIBS$ac_delim 11237PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11238TCL_VERSION!$TCL_VERSION$ac_delim 11239TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11240TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11241TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11242TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11243TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11244TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11245TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11246TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11247TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11248CLEANFILES!$CLEANFILES$ac_delim 11249TCL_LIBS!$TCL_LIBS$ac_delim 11250TCL_DEFS!$TCL_DEFS$ac_delim 11251TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11252TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11253TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11254CC!$CC$ac_delim 11255CFLAGS!$CFLAGS$ac_delim 11256LDFLAGS!$LDFLAGS$ac_delim 11257CPPFLAGS!$CPPFLAGS$ac_delim 11258ac_ct_CC!$ac_ct_CC$ac_delim 11259OBJEXT!$OBJEXT$ac_delim 11260CPP!$CPP$ac_delim 11261INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11262INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11263INSTALL_DATA!$INSTALL_DATA$ac_delim 11264SET_MAKE!$SET_MAKE$ac_delim 11265RANLIB!$RANLIB$ac_delim 11266GREP!$GREP$ac_delim 11267EGREP!$EGREP$ac_delim 11268MATH_LIBS!$MATH_LIBS$ac_delim 11269Tclxml_VERSION!$Tclxml_VERSION$ac_delim 11270Tclxml_BIN_DIR!$Tclxml_BIN_DIR$ac_delim 11271Tclxml_SRC_DIR!$Tclxml_SRC_DIR$ac_delim 11272Tclxml_LIB_FILE!$Tclxml_LIB_FILE$ac_delim 11273Tclxml_LIB_SPEC!$Tclxml_LIB_SPEC$ac_delim 11274Tclxml_STUB_LIB_FILE!$Tclxml_STUB_LIB_FILE$ac_delim 11275Tclxml_STUB_LIB_SPEC!$Tclxml_STUB_LIB_SPEC$ac_delim 11276Tclxml_STUB_LIB_PATH!$Tclxml_STUB_LIB_PATH$ac_delim 11277TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11278EXTRA_SOURCES!$EXTRA_SOURCES$ac_delim 11279TCL_THREADS!$TCL_THREADS$ac_delim 11280SHARED_BUILD!$SHARED_BUILD$ac_delim 11281_ACEOF 11282 11283 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11284 break 11285 elif $ac_last_try; then 11286 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11287echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11288 { (exit 1); exit 1; }; } 11289 else 11290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11291 fi 11292done 11293 11294ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11295if test -n "$ac_eof"; then 11296 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11297 ac_eof=`expr $ac_eof + 1` 11298fi 11299 11300cat >>$CONFIG_STATUS <<_ACEOF 11301cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11302/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11303_ACEOF 11304sed ' 11305s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11306s/^/s,@/; s/!/@,|#_!!_#|/ 11307:n 11308t n 11309s/'"$ac_delim"'$/,g/; t 11310s/$/\\/; p 11311N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11312' >>$CONFIG_STATUS <conf$$subs.sed 11313rm -f conf$$subs.sed 11314cat >>$CONFIG_STATUS <<_ACEOF 11315CEOF$ac_eof 11316_ACEOF 11317 11318 11319ac_delim='%!_!# ' 11320for ac_last_try in false false false false false :; do 11321 cat >conf$$subs.sed <<_ACEOF 11322AR!$AR$ac_delim 11323CELIB_DIR!$CELIB_DIR$ac_delim 11324CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11325CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11326CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11327STLIB_LD!$STLIB_LD$ac_delim 11328SHLIB_LD!$SHLIB_LD$ac_delim 11329SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11330SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11331LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11332CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11333LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11334TCL_DBGX!$TCL_DBGX$ac_delim 11335MAKE_LIB!$MAKE_LIB$ac_delim 11336MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11337MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11338MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11339RANLIB_STUB!$RANLIB_STUB$ac_delim 11340VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11341VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11342TCLSH_PROG!$TCLSH_PROG$ac_delim 11343FILEMAP!$FILEMAP$ac_delim 11344LIBOBJS!$LIBOBJS$ac_delim 11345LTLIBOBJS!$LTLIBOBJS$ac_delim 11346_ACEOF 11347 11348 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then 11349 break 11350 elif $ac_last_try; then 11351 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11352echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11353 { (exit 1); exit 1; }; } 11354 else 11355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11356 fi 11357done 11358 11359ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11360if test -n "$ac_eof"; then 11361 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11362 ac_eof=`expr $ac_eof + 1` 11363fi 11364 11365cat >>$CONFIG_STATUS <<_ACEOF 11366cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11367/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11368_ACEOF 11369sed ' 11370s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11371s/^/s,@/; s/!/@,|#_!!_#|/ 11372:n 11373t n 11374s/'"$ac_delim"'$/,g/; t 11375s/$/\\/; p 11376N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11377' >>$CONFIG_STATUS <conf$$subs.sed 11378rm -f conf$$subs.sed 11379cat >>$CONFIG_STATUS <<_ACEOF 11380:end 11381s/|#_!!_#|//g 11382CEOF$ac_eof 11383_ACEOF 11384 11385 11386# VPATH may cause trouble with some makes, so we remove $(srcdir), 11387# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11388# trailing colons and then remove the whole line if VPATH becomes empty 11389# (actually we leave an empty line to preserve line numbers). 11390if test "x$srcdir" = x.; then 11391 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11392s/:*\$(srcdir):*/:/ 11393s/:*\${srcdir}:*/:/ 11394s/:*@srcdir@:*/:/ 11395s/^\([^=]*=[ ]*\):*/\1/ 11396s/:*$// 11397s/^[^=]*=[ ]*$// 11398}' 11399fi 11400 11401cat >>$CONFIG_STATUS <<\_ACEOF 11402fi # test -n "$CONFIG_FILES" 11403 11404 11405for ac_tag in :F $CONFIG_FILES 11406do 11407 case $ac_tag in 11408 :[FHLC]) ac_mode=$ac_tag; continue;; 11409 esac 11410 case $ac_mode$ac_tag in 11411 :[FHL]*:*);; 11412 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11413echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11414 { (exit 1); exit 1; }; };; 11415 :[FH]-) ac_tag=-:-;; 11416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11417 esac 11418 ac_save_IFS=$IFS 11419 IFS=: 11420 set x $ac_tag 11421 IFS=$ac_save_IFS 11422 shift 11423 ac_file=$1 11424 shift 11425 11426 case $ac_mode in 11427 :L) ac_source=$1;; 11428 :[FH]) 11429 ac_file_inputs= 11430 for ac_f 11431 do 11432 case $ac_f in 11433 -) ac_f="$tmp/stdin";; 11434 *) # Look for the file first in the build tree, then in the source tree 11435 # (if the path is not absolute). The absolute path cannot be DOS-style, 11436 # because $ac_f cannot contain `:'. 11437 test -f "$ac_f" || 11438 case $ac_f in 11439 [\\/$]*) false;; 11440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11441 esac || 11442 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11443echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11444 { (exit 1); exit 1; }; };; 11445 esac 11446 ac_file_inputs="$ac_file_inputs $ac_f" 11447 done 11448 11449 # Let's still pretend it is `configure' which instantiates (i.e., don't 11450 # use $as_me), people would be surprised to read: 11451 # /* config.h. Generated by config.status. */ 11452 configure_input="Generated from "`IFS=: 11453 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11454 if test x"$ac_file" != x-; then 11455 configure_input="$ac_file. $configure_input" 11456 { echo "$as_me:$LINENO: creating $ac_file" >&5 11457echo "$as_me: creating $ac_file" >&6;} 11458 fi 11459 11460 case $ac_tag in 11461 *:-:* | *:-) cat >"$tmp/stdin";; 11462 esac 11463 ;; 11464 esac 11465 11466 ac_dir=`$as_dirname -- "$ac_file" || 11467$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11468 X"$ac_file" : 'X\(//\)[^/]' \| \ 11469 X"$ac_file" : 'X\(//\)$' \| \ 11470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11471echo X"$ac_file" | 11472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11473 s//\1/ 11474 q 11475 } 11476 /^X\(\/\/\)[^/].*/{ 11477 s//\1/ 11478 q 11479 } 11480 /^X\(\/\/\)$/{ 11481 s//\1/ 11482 q 11483 } 11484 /^X\(\/\).*/{ 11485 s//\1/ 11486 q 11487 } 11488 s/.*/./; q'` 11489 { as_dir="$ac_dir" 11490 case $as_dir in #( 11491 -*) as_dir=./$as_dir;; 11492 esac 11493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11494 as_dirs= 11495 while :; do 11496 case $as_dir in #( 11497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11498 *) as_qdir=$as_dir;; 11499 esac 11500 as_dirs="'$as_qdir' $as_dirs" 11501 as_dir=`$as_dirname -- "$as_dir" || 11502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11503 X"$as_dir" : 'X\(//\)[^/]' \| \ 11504 X"$as_dir" : 'X\(//\)$' \| \ 11505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11506echo X"$as_dir" | 11507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11508 s//\1/ 11509 q 11510 } 11511 /^X\(\/\/\)[^/].*/{ 11512 s//\1/ 11513 q 11514 } 11515 /^X\(\/\/\)$/{ 11516 s//\1/ 11517 q 11518 } 11519 /^X\(\/\).*/{ 11520 s//\1/ 11521 q 11522 } 11523 s/.*/./; q'` 11524 test -d "$as_dir" && break 11525 done 11526 test -z "$as_dirs" || eval "mkdir $as_dirs" 11527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11528echo "$as_me: error: cannot create directory $as_dir" >&2;} 11529 { (exit 1); exit 1; }; }; } 11530 ac_builddir=. 11531 11532case "$ac_dir" in 11533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11534*) 11535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11536 # A ".." for each directory in $ac_dir_suffix. 11537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11538 case $ac_top_builddir_sub in 11539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11541 esac ;; 11542esac 11543ac_abs_top_builddir=$ac_pwd 11544ac_abs_builddir=$ac_pwd$ac_dir_suffix 11545# for backward compatibility: 11546ac_top_builddir=$ac_top_build_prefix 11547 11548case $srcdir in 11549 .) # We are building in place. 11550 ac_srcdir=. 11551 ac_top_srcdir=$ac_top_builddir_sub 11552 ac_abs_top_srcdir=$ac_pwd ;; 11553 [\\/]* | ?:[\\/]* ) # Absolute name. 11554 ac_srcdir=$srcdir$ac_dir_suffix; 11555 ac_top_srcdir=$srcdir 11556 ac_abs_top_srcdir=$srcdir ;; 11557 *) # Relative name. 11558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11559 ac_top_srcdir=$ac_top_build_prefix$srcdir 11560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11561esac 11562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11563 11564 11565 case $ac_mode in 11566 :F) 11567 # 11568 # CONFIG_FILE 11569 # 11570 11571 case $INSTALL in 11572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11574 esac 11575_ACEOF 11576 11577cat >>$CONFIG_STATUS <<\_ACEOF 11578# If the template does not know about datarootdir, expand it. 11579# FIXME: This hack should be removed a few years after 2.60. 11580ac_datarootdir_hack=; ac_datarootdir_seen= 11581 11582case `sed -n '/datarootdir/ { 11583 p 11584 q 11585} 11586/@datadir@/p 11587/@docdir@/p 11588/@infodir@/p 11589/@localedir@/p 11590/@mandir@/p 11591' $ac_file_inputs` in 11592*datarootdir*) ac_datarootdir_seen=yes;; 11593*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11594 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11595echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11596_ACEOF 11597cat >>$CONFIG_STATUS <<_ACEOF 11598 ac_datarootdir_hack=' 11599 s&@datadir@&$datadir&g 11600 s&@docdir@&$docdir&g 11601 s&@infodir@&$infodir&g 11602 s&@localedir@&$localedir&g 11603 s&@mandir@&$mandir&g 11604 s&\\\${datarootdir}&$datarootdir&g' ;; 11605esac 11606_ACEOF 11607 11608# Neutralize VPATH when `$srcdir' = `.'. 11609# Shell code in configure.ac might set extrasub. 11610# FIXME: do we really want to maintain this feature? 11611cat >>$CONFIG_STATUS <<_ACEOF 11612 sed "$ac_vpsub 11613$extrasub 11614_ACEOF 11615cat >>$CONFIG_STATUS <<\_ACEOF 11616:t 11617/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11618s&@configure_input@&$configure_input&;t t 11619s&@top_builddir@&$ac_top_builddir_sub&;t t 11620s&@srcdir@&$ac_srcdir&;t t 11621s&@abs_srcdir@&$ac_abs_srcdir&;t t 11622s&@top_srcdir@&$ac_top_srcdir&;t t 11623s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11624s&@builddir@&$ac_builddir&;t t 11625s&@abs_builddir@&$ac_abs_builddir&;t t 11626s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11627s&@INSTALL@&$ac_INSTALL&;t t 11628$ac_datarootdir_hack 11629" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11630 11631test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11634 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11635which seems to be undefined. Please make sure it is defined." >&5 11636echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11637which seems to be undefined. Please make sure it is defined." >&2;} 11638 11639 rm -f "$tmp/stdin" 11640 case $ac_file in 11641 -) cat "$tmp/out"; rm -f "$tmp/out";; 11642 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11643 esac 11644 ;; 11645 11646 11647 11648 esac 11649 11650done # for ac_tag 11651 11652 11653{ (exit 0); exit 0; } 11654_ACEOF 11655chmod +x $CONFIG_STATUS 11656ac_clean_files=$ac_clean_files_save 11657 11658 11659# configure is writing to config.log, and then calls config.status. 11660# config.status does its own redirection, appending to config.log. 11661# Unfortunately, on DOS this fails, as config.log is still kept open 11662# by configure, so config.status won't be able to write to it; its 11663# output is simply discarded. So we exec the FD to /dev/null, 11664# effectively closing config.log, so it can be properly (re)opened and 11665# appended to by config.status. When coming back to configure, we 11666# need to make the FD available again. 11667if test "$no_create" != yes; then 11668 ac_cs_success=: 11669 ac_config_status_args= 11670 test "$silent" = yes && 11671 ac_config_status_args="$ac_config_status_args --quiet" 11672 exec 5>/dev/null 11673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11674 exec 5>>config.log 11675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11676 # would make configure fail if this is the last instruction. 11677 $ac_cs_success || { (exit 1); exit 1; } 11678fi 11679 11680 11681#-------------------------------------------------------------------- 11682