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 Tclxslt 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='Tclxslt' 575PACKAGE_TARNAME='tclxslt' 576PACKAGE_VERSION='2.6' 577PACKAGE_STRING='Tclxslt 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 656TCLXSLT_VERSION 657Tclxslt_LIB_FILE 658Tclxsltstub_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 701tcldomxml_VERSION 702tcldomxml_BIN_DIR 703tcldomxml_SRC_DIR 704tcldomxml_LIB_FILE 705tcldomxml_LIB_SPEC 706tcldomxml_STUB_LIB_FILE 707tcldomxml_STUB_LIB_SPEC 708tcldomxml_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 733LIBXML2_INCLUDEDIR 734LIBXML2_LIBDIR 735LIBXSLT_INCLUDEDIR 736LIBXSLT_LIBDIR 737LIBEXSLT_INCLUDEDIR 738LIBEXSLT_LIBDIR 739ICONV_LIBDIR 740TCLSH_PROG 741LIBOBJS 742LTLIBOBJS' 743ac_subst_files='' 744 ac_precious_vars='build_alias 745host_alias 746target_alias 747CC 748CFLAGS 749LDFLAGS 750LIBS 751CPPFLAGS 752CPP' 753 754 755# Initialize some variables set by options. 756ac_init_help= 757ac_init_version=false 758# The variables have the same names as the options, with 759# dashes changed to underlines. 760cache_file=/dev/null 761exec_prefix=NONE 762no_create= 763no_recursion= 764prefix=NONE 765program_prefix=NONE 766program_suffix=NONE 767program_transform_name=s,x,x, 768silent= 769site= 770srcdir= 771verbose= 772x_includes=NONE 773x_libraries=NONE 774 775# Installation directory options. 776# These are left unexpanded so users can "make install exec_prefix=/foo" 777# and all the variables that are supposed to be based on exec_prefix 778# by default will actually change. 779# Use braces instead of parens because sh, perl, etc. also accept them. 780# (The list follows the same order as the GNU Coding Standards.) 781bindir='${exec_prefix}/bin' 782sbindir='${exec_prefix}/sbin' 783libexecdir='${exec_prefix}/libexec' 784datarootdir='${prefix}/share' 785datadir='${datarootdir}' 786sysconfdir='${prefix}/etc' 787sharedstatedir='${prefix}/com' 788localstatedir='${prefix}/var' 789includedir='${prefix}/include' 790oldincludedir='/usr/include' 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 792infodir='${datarootdir}/info' 793htmldir='${docdir}' 794dvidir='${docdir}' 795pdfdir='${docdir}' 796psdir='${docdir}' 797libdir='${exec_prefix}/lib' 798localedir='${datarootdir}/locale' 799mandir='${datarootdir}/man' 800 801ac_prev= 802ac_dashdash= 803for ac_option 804do 805 # If the previous option needs an argument, assign it. 806 if test -n "$ac_prev"; then 807 eval $ac_prev=\$ac_option 808 ac_prev= 809 continue 810 fi 811 812 case $ac_option in 813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 860 { (exit 1); exit 1; }; } 861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 862 eval enable_$ac_feature=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 879 { (exit 1); exit 1; }; } 880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 881 eval enable_$ac_feature=\$ac_optarg ;; 882 883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 885 | --exec | --exe | --ex) 886 ac_prev=exec_prefix ;; 887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 889 | --exec=* | --exe=* | --ex=*) 890 exec_prefix=$ac_optarg ;; 891 892 -gas | --gas | --ga | --g) 893 # Obsolete; use --with-gas. 894 with_gas=yes ;; 895 896 -help | --help | --hel | --he | -h) 897 ac_init_help=long ;; 898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 899 ac_init_help=recursive ;; 900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 901 ac_init_help=short ;; 902 903 -host | --host | --hos | --ho) 904 ac_prev=host_alias ;; 905 -host=* | --host=* | --hos=* | --ho=*) 906 host_alias=$ac_optarg ;; 907 908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 909 ac_prev=htmldir ;; 910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 911 | --ht=*) 912 htmldir=$ac_optarg ;; 913 914 -includedir | --includedir | --includedi | --included | --include \ 915 | --includ | --inclu | --incl | --inc) 916 ac_prev=includedir ;; 917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 918 | --includ=* | --inclu=* | --incl=* | --inc=*) 919 includedir=$ac_optarg ;; 920 921 -infodir | --infodir | --infodi | --infod | --info | --inf) 922 ac_prev=infodir ;; 923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 924 infodir=$ac_optarg ;; 925 926 -libdir | --libdir | --libdi | --libd) 927 ac_prev=libdir ;; 928 -libdir=* | --libdir=* | --libdi=* | --libd=*) 929 libdir=$ac_optarg ;; 930 931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 932 | --libexe | --libex | --libe) 933 ac_prev=libexecdir ;; 934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 935 | --libexe=* | --libex=* | --libe=*) 936 libexecdir=$ac_optarg ;; 937 938 -localedir | --localedir | --localedi | --localed | --locale) 939 ac_prev=localedir ;; 940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 941 localedir=$ac_optarg ;; 942 943 -localstatedir | --localstatedir | --localstatedi | --localstated \ 944 | --localstate | --localstat | --localsta | --localst | --locals) 945 ac_prev=localstatedir ;; 946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 948 localstatedir=$ac_optarg ;; 949 950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 951 ac_prev=mandir ;; 952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 953 mandir=$ac_optarg ;; 954 955 -nfp | --nfp | --nf) 956 # Obsolete; use --without-fp. 957 with_fp=no ;; 958 959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 960 | --no-cr | --no-c | -n) 961 no_create=yes ;; 962 963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 965 no_recursion=yes ;; 966 967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 969 | --oldin | --oldi | --old | --ol | --o) 970 ac_prev=oldincludedir ;; 971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 974 oldincludedir=$ac_optarg ;; 975 976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 977 ac_prev=prefix ;; 978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 979 prefix=$ac_optarg ;; 980 981 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 982 | --program-pre | --program-pr | --program-p) 983 ac_prev=program_prefix ;; 984 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 986 program_prefix=$ac_optarg ;; 987 988 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 989 | --program-suf | --program-su | --program-s) 990 ac_prev=program_suffix ;; 991 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 993 program_suffix=$ac_optarg ;; 994 995 -program-transform-name | --program-transform-name \ 996 | --program-transform-nam | --program-transform-na \ 997 | --program-transform-n | --program-transform- \ 998 | --program-transform | --program-transfor \ 999 | --program-transfo | --program-transf \ 1000 | --program-trans | --program-tran \ 1001 | --progr-tra | --program-tr | --program-t) 1002 ac_prev=program_transform_name ;; 1003 -program-transform-name=* | --program-transform-name=* \ 1004 | --program-transform-nam=* | --program-transform-na=* \ 1005 | --program-transform-n=* | --program-transform-=* \ 1006 | --program-transform=* | --program-transfor=* \ 1007 | --program-transfo=* | --program-transf=* \ 1008 | --program-trans=* | --program-tran=* \ 1009 | --progr-tra=* | --program-tr=* | --program-t=*) 1010 program_transform_name=$ac_optarg ;; 1011 1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1013 ac_prev=pdfdir ;; 1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1015 pdfdir=$ac_optarg ;; 1016 1017 -psdir | --psdir | --psdi | --psd | --ps) 1018 ac_prev=psdir ;; 1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1020 psdir=$ac_optarg ;; 1021 1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1023 | -silent | --silent | --silen | --sile | --sil) 1024 silent=yes ;; 1025 1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1027 ac_prev=sbindir ;; 1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1029 | --sbi=* | --sb=*) 1030 sbindir=$ac_optarg ;; 1031 1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1034 | --sharedst | --shareds | --shared | --share | --shar \ 1035 | --sha | --sh) 1036 ac_prev=sharedstatedir ;; 1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1040 | --sha=* | --sh=*) 1041 sharedstatedir=$ac_optarg ;; 1042 1043 -site | --site | --sit) 1044 ac_prev=site ;; 1045 -site=* | --site=* | --sit=*) 1046 site=$ac_optarg ;; 1047 1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1049 ac_prev=srcdir ;; 1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1051 srcdir=$ac_optarg ;; 1052 1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1054 | --syscon | --sysco | --sysc | --sys | --sy) 1055 ac_prev=sysconfdir ;; 1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1058 sysconfdir=$ac_optarg ;; 1059 1060 -target | --target | --targe | --targ | --tar | --ta | --t) 1061 ac_prev=target_alias ;; 1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1063 target_alias=$ac_optarg ;; 1064 1065 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1066 verbose=yes ;; 1067 1068 -version | --version | --versio | --versi | --vers | -V) 1069 ac_init_version=: ;; 1070 1071 -with-* | --with-*) 1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1073 # Reject names that are not valid shell variable names. 1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1075 { echo "$as_me: error: invalid package name: $ac_package" >&2 1076 { (exit 1); exit 1; }; } 1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1078 eval with_$ac_package=\$ac_optarg ;; 1079 1080 -without-* | --without-*) 1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1082 # Reject names that are not valid shell variable names. 1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1084 { echo "$as_me: error: invalid package name: $ac_package" >&2 1085 { (exit 1); exit 1; }; } 1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1087 eval with_$ac_package=no ;; 1088 1089 --x) 1090 # Obsolete; use --with-x. 1091 with_x=yes ;; 1092 1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1094 | --x-incl | --x-inc | --x-in | --x-i) 1095 ac_prev=x_includes ;; 1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1098 x_includes=$ac_optarg ;; 1099 1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1102 ac_prev=x_libraries ;; 1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1105 x_libraries=$ac_optarg ;; 1106 1107 -*) { echo "$as_me: error: unrecognized option: $ac_option 1108Try \`$0 --help' for more information." >&2 1109 { (exit 1); exit 1; }; } 1110 ;; 1111 1112 *=*) 1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1114 # Reject names that are not valid shell variable names. 1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1117 { (exit 1); exit 1; }; } 1118 eval $ac_envvar=\$ac_optarg 1119 export $ac_envvar ;; 1120 1121 *) 1122 # FIXME: should be removed in autoconf 3.0. 1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1127 ;; 1128 1129 esac 1130done 1131 1132if test -n "$ac_prev"; then 1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1134 { echo "$as_me: error: missing argument to $ac_option" >&2 1135 { (exit 1); exit 1; }; } 1136fi 1137 1138# Be sure to have absolute directory names. 1139for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1140 datadir sysconfdir sharedstatedir localstatedir includedir \ 1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1142 libdir localedir mandir 1143do 1144 eval ac_val=\$$ac_var 1145 case $ac_val in 1146 [\\/$]* | ?:[\\/]* ) continue;; 1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1148 esac 1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1150 { (exit 1); exit 1; }; } 1151done 1152 1153# There might be people who depend on the old broken behavior: `$host' 1154# used to hold the argument of --host etc. 1155# FIXME: To remove some day. 1156build=$build_alias 1157host=$host_alias 1158target=$target_alias 1159 1160# FIXME: To remove some day. 1161if test "x$host_alias" != x; then 1162 if test "x$build_alias" = x; then 1163 cross_compiling=maybe 1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1165 If a cross compiler is detected then cross compile mode will be used." >&2 1166 elif test "x$build_alias" != "x$host_alias"; then 1167 cross_compiling=yes 1168 fi 1169fi 1170 1171ac_tool_prefix= 1172test -n "$host_alias" && ac_tool_prefix=$host_alias- 1173 1174test "$silent" = yes && exec 6>/dev/null 1175 1176 1177ac_pwd=`pwd` && test -n "$ac_pwd" && 1178ac_ls_di=`ls -di .` && 1179ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1180 { echo "$as_me: error: Working directory cannot be determined" >&2 1181 { (exit 1); exit 1; }; } 1182test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1183 { echo "$as_me: error: pwd does not report name of working directory" >&2 1184 { (exit 1); exit 1; }; } 1185 1186 1187# Find the source files, if location was not specified. 1188if test -z "$srcdir"; then 1189 ac_srcdir_defaulted=yes 1190 # Try the directory containing this script, then the parent directory. 1191 ac_confdir=`$as_dirname -- "$0" || 1192$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1193 X"$0" : 'X\(//\)[^/]' \| \ 1194 X"$0" : 'X\(//\)$' \| \ 1195 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1196echo X"$0" | 1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1198 s//\1/ 1199 q 1200 } 1201 /^X\(\/\/\)[^/].*/{ 1202 s//\1/ 1203 q 1204 } 1205 /^X\(\/\/\)$/{ 1206 s//\1/ 1207 q 1208 } 1209 /^X\(\/\).*/{ 1210 s//\1/ 1211 q 1212 } 1213 s/.*/./; q'` 1214 srcdir=$ac_confdir 1215 if test ! -r "$srcdir/$ac_unique_file"; then 1216 srcdir=.. 1217 fi 1218else 1219 ac_srcdir_defaulted=no 1220fi 1221if test ! -r "$srcdir/$ac_unique_file"; then 1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1224 { (exit 1); exit 1; }; } 1225fi 1226ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1227ac_abs_confdir=`( 1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1229 { (exit 1); exit 1; }; } 1230 pwd)` 1231# When building in place, set srcdir=. 1232if test "$ac_abs_confdir" = "$ac_pwd"; then 1233 srcdir=. 1234fi 1235# Remove unnecessary trailing slashes from srcdir. 1236# Double slashes in file names in object file debugging info 1237# mess up M-x gdb in Emacs. 1238case $srcdir in 1239*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1240esac 1241for ac_var in $ac_precious_vars; do 1242 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1243 eval ac_env_${ac_var}_value=\$${ac_var} 1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1245 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1246done 1247 1248# 1249# Report the --help message. 1250# 1251if test "$ac_init_help" = "long"; then 1252 # Omit some internal or obsolete options to make the list less imposing. 1253 # This message is too long to be a string in the A/UX 3.1 sh. 1254 cat <<_ACEOF 1255\`configure' configures Tclxslt 2.6 to adapt to many kinds of systems. 1256 1257Usage: $0 [OPTION]... [VAR=VALUE]... 1258 1259To assign environment variables (e.g., CC, CFLAGS...), specify them as 1260VAR=VALUE. See below for descriptions of some of the useful variables. 1261 1262Defaults for the options are specified in brackets. 1263 1264Configuration: 1265 -h, --help display this help and exit 1266 --help=short display options specific to this package 1267 --help=recursive display the short help of all the included packages 1268 -V, --version display version information and exit 1269 -q, --quiet, --silent do not print \`checking...' messages 1270 --cache-file=FILE cache test results in FILE [disabled] 1271 -C, --config-cache alias for \`--cache-file=config.cache' 1272 -n, --no-create do not create output files 1273 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1274 1275Installation directories: 1276 --prefix=PREFIX install architecture-independent files in PREFIX 1277 [$ac_default_prefix] 1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1279 [PREFIX] 1280 1281By default, \`make install' will install all the files in 1282\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1283an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1284for instance \`--prefix=\$HOME'. 1285 1286For better control, use the options below. 1287 1288Fine tuning of the installation directories: 1289 --bindir=DIR user executables [EPREFIX/bin] 1290 --sbindir=DIR system admin executables [EPREFIX/sbin] 1291 --libexecdir=DIR program executables [EPREFIX/libexec] 1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1295 --libdir=DIR object code libraries [EPREFIX/lib] 1296 --includedir=DIR C header files [PREFIX/include] 1297 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1300 --infodir=DIR info documentation [DATAROOTDIR/info] 1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1302 --mandir=DIR man documentation [DATAROOTDIR/man] 1303 --docdir=DIR documentation root [DATAROOTDIR/doc/tclxslt] 1304 --htmldir=DIR html documentation [DOCDIR] 1305 --dvidir=DIR dvi documentation [DOCDIR] 1306 --pdfdir=DIR pdf documentation [DOCDIR] 1307 --psdir=DIR ps documentation [DOCDIR] 1308_ACEOF 1309 1310 cat <<\_ACEOF 1311_ACEOF 1312fi 1313 1314if test -n "$ac_init_help"; then 1315 case $ac_init_help in 1316 short | recursive ) echo "Configuration of Tclxslt 2.6:";; 1317 esac 1318 cat <<\_ACEOF 1319 1320Optional Features: 1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1323 --enable-threads build with threads 1324 --enable-shared build and link with shared libraries (default: on) 1325 --enable-64bit enable 64bit support (default: off) 1326 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1327 --disable-rpath disable rpath support (default: on) 1328 --enable-wince enable Win/CE support (where applicable) 1329 --enable-symbols build with debugging symbols (default: off) 1330 --enable-framework build as a Mac OS X framework 1331 1332Optional Packages: 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1335 --with-tcl directory containing tcl configuration 1336 (tclConfig.sh) 1337 --with-tcldomxml directory containing tcldomxml configuration (tcldomxmlConfig.sh) 1338 --with-tclinclude directory containing the public Tcl header files 1339 --with-celib=DIR use Windows/CE support library from DIR 1340 --with-libxml2-include directory containing the libxml2 header files 1341 --with-libxml2-lib directory containing the libxml2 library 1342 --with-libxslt-include directory containing the libxslt header files 1343 --with-libxslt-lib directory containing the libxslt library 1344 --with-libexslt-include directory containing the libexslt header files 1345 --with-libexslt-lib directory containing the libexslt library 1346 --with-iconv-lib directory containing the iconv library 1347 1348Some influential environment variables: 1349 CC C compiler command 1350 CFLAGS C compiler flags 1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1352 nonstandard directory <lib dir> 1353 LIBS libraries to pass to the linker, e.g. -l<library> 1354 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1355 you have headers in a nonstandard directory <include dir> 1356 CPP C preprocessor 1357 1358Use these variables to override the choices made by `configure' or to help 1359it to find libraries and programs with nonstandard names/locations. 1360 1361_ACEOF 1362ac_status=$? 1363fi 1364 1365if test "$ac_init_help" = "recursive"; then 1366 # If there are subdirs, report their specific --help. 1367 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1368 test -d "$ac_dir" || continue 1369 ac_builddir=. 1370 1371case "$ac_dir" in 1372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1373*) 1374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1375 # A ".." for each directory in $ac_dir_suffix. 1376 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1377 case $ac_top_builddir_sub in 1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1380 esac ;; 1381esac 1382ac_abs_top_builddir=$ac_pwd 1383ac_abs_builddir=$ac_pwd$ac_dir_suffix 1384# for backward compatibility: 1385ac_top_builddir=$ac_top_build_prefix 1386 1387case $srcdir in 1388 .) # We are building in place. 1389 ac_srcdir=. 1390 ac_top_srcdir=$ac_top_builddir_sub 1391 ac_abs_top_srcdir=$ac_pwd ;; 1392 [\\/]* | ?:[\\/]* ) # Absolute name. 1393 ac_srcdir=$srcdir$ac_dir_suffix; 1394 ac_top_srcdir=$srcdir 1395 ac_abs_top_srcdir=$srcdir ;; 1396 *) # Relative name. 1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1398 ac_top_srcdir=$ac_top_build_prefix$srcdir 1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1400esac 1401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1402 1403 cd "$ac_dir" || { ac_status=$?; continue; } 1404 # Check for guested configure. 1405 if test -f "$ac_srcdir/configure.gnu"; then 1406 echo && 1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1408 elif test -f "$ac_srcdir/configure"; then 1409 echo && 1410 $SHELL "$ac_srcdir/configure" --help=recursive 1411 else 1412 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1413 fi || ac_status=$? 1414 cd "$ac_pwd" || { ac_status=$?; break; } 1415 done 1416fi 1417 1418test -n "$ac_init_help" && exit $ac_status 1419if $ac_init_version; then 1420 cat <<\_ACEOF 1421Tclxslt configure 2.6 1422generated by GNU Autoconf 2.61 1423 1424Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14252002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1426This configure script is free software; the Free Software Foundation 1427gives unlimited permission to copy, distribute and modify it. 1428_ACEOF 1429 exit 1430fi 1431cat >config.log <<_ACEOF 1432This file contains any messages produced by compilers while 1433running configure, to aid debugging if configure makes a mistake. 1434 1435It was created by Tclxslt $as_me 2.6, which was 1436generated by GNU Autoconf 2.61. Invocation command line was 1437 1438 $ $0 $@ 1439 1440_ACEOF 1441exec 5>>config.log 1442{ 1443cat <<_ASUNAME 1444## --------- ## 1445## Platform. ## 1446## --------- ## 1447 1448hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1449uname -m = `(uname -m) 2>/dev/null || echo unknown` 1450uname -r = `(uname -r) 2>/dev/null || echo unknown` 1451uname -s = `(uname -s) 2>/dev/null || echo unknown` 1452uname -v = `(uname -v) 2>/dev/null || echo unknown` 1453 1454/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1455/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1456 1457/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1458/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1459/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1460/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1461/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1462/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1463/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1464 1465_ASUNAME 1466 1467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1468for as_dir in $PATH 1469do 1470 IFS=$as_save_IFS 1471 test -z "$as_dir" && as_dir=. 1472 echo "PATH: $as_dir" 1473done 1474IFS=$as_save_IFS 1475 1476} >&5 1477 1478cat >&5 <<_ACEOF 1479 1480 1481## ----------- ## 1482## Core tests. ## 1483## ----------- ## 1484 1485_ACEOF 1486 1487 1488# Keep a trace of the command line. 1489# Strip out --no-create and --no-recursion so they do not pile up. 1490# Strip out --silent because we don't want to record it for future runs. 1491# Also quote any args containing shell meta-characters. 1492# Make two passes to allow for proper duplicate-argument suppression. 1493ac_configure_args= 1494ac_configure_args0= 1495ac_configure_args1= 1496ac_must_keep_next=false 1497for ac_pass in 1 2 1498do 1499 for ac_arg 1500 do 1501 case $ac_arg in 1502 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1504 | -silent | --silent | --silen | --sile | --sil) 1505 continue ;; 1506 *\'*) 1507 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1508 esac 1509 case $ac_pass in 1510 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1511 2) 1512 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1513 if test $ac_must_keep_next = true; then 1514 ac_must_keep_next=false # Got value, back to normal. 1515 else 1516 case $ac_arg in 1517 *=* | --config-cache | -C | -disable-* | --disable-* \ 1518 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1519 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1520 | -with-* | --with-* | -without-* | --without-* | --x) 1521 case "$ac_configure_args0 " in 1522 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1523 esac 1524 ;; 1525 -* ) ac_must_keep_next=true ;; 1526 esac 1527 fi 1528 ac_configure_args="$ac_configure_args '$ac_arg'" 1529 ;; 1530 esac 1531 done 1532done 1533$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1534$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1535 1536# When interrupted or exit'd, cleanup temporary files, and complete 1537# config.log. We remove comments because anyway the quotes in there 1538# would cause problems or look ugly. 1539# WARNING: Use '\'' to represent an apostrophe within the trap. 1540# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1541trap 'exit_status=$? 1542 # Save into config.log some information that might help in debugging. 1543 { 1544 echo 1545 1546 cat <<\_ASBOX 1547## ---------------- ## 1548## Cache variables. ## 1549## ---------------- ## 1550_ASBOX 1551 echo 1552 # The following way of writing the cache mishandles newlines in values, 1553( 1554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1555 eval ac_val=\$$ac_var 1556 case $ac_val in #( 1557 *${as_nl}*) 1558 case $ac_var in #( 1559 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1560echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1561 esac 1562 case $ac_var in #( 1563 _ | IFS | as_nl) ;; #( 1564 *) $as_unset $ac_var ;; 1565 esac ;; 1566 esac 1567 done 1568 (set) 2>&1 | 1569 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1570 *${as_nl}ac_space=\ *) 1571 sed -n \ 1572 "s/'\''/'\''\\\\'\'''\''/g; 1573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1574 ;; #( 1575 *) 1576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1577 ;; 1578 esac | 1579 sort 1580) 1581 echo 1582 1583 cat <<\_ASBOX 1584## ----------------- ## 1585## Output variables. ## 1586## ----------------- ## 1587_ASBOX 1588 echo 1589 for ac_var in $ac_subst_vars 1590 do 1591 eval ac_val=\$$ac_var 1592 case $ac_val in 1593 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1594 esac 1595 echo "$ac_var='\''$ac_val'\''" 1596 done | sort 1597 echo 1598 1599 if test -n "$ac_subst_files"; then 1600 cat <<\_ASBOX 1601## ------------------- ## 1602## File substitutions. ## 1603## ------------------- ## 1604_ASBOX 1605 echo 1606 for ac_var in $ac_subst_files 1607 do 1608 eval ac_val=\$$ac_var 1609 case $ac_val in 1610 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1611 esac 1612 echo "$ac_var='\''$ac_val'\''" 1613 done | sort 1614 echo 1615 fi 1616 1617 if test -s confdefs.h; then 1618 cat <<\_ASBOX 1619## ----------- ## 1620## confdefs.h. ## 1621## ----------- ## 1622_ASBOX 1623 echo 1624 cat confdefs.h 1625 echo 1626 fi 1627 test "$ac_signal" != 0 && 1628 echo "$as_me: caught signal $ac_signal" 1629 echo "$as_me: exit $exit_status" 1630 } >&5 1631 rm -f core *.core core.conftest.* && 1632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1633 exit $exit_status 1634' 0 1635for ac_signal in 1 2 13 15; do 1636 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1637done 1638ac_signal=0 1639 1640# confdefs.h avoids OS command line length limits that DEFS can exceed. 1641rm -f -r conftest* confdefs.h 1642 1643# Predefined preprocessor variables. 1644 1645cat >>confdefs.h <<_ACEOF 1646#define PACKAGE_NAME "$PACKAGE_NAME" 1647_ACEOF 1648 1649 1650cat >>confdefs.h <<_ACEOF 1651#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1652_ACEOF 1653 1654 1655cat >>confdefs.h <<_ACEOF 1656#define PACKAGE_VERSION "$PACKAGE_VERSION" 1657_ACEOF 1658 1659 1660cat >>confdefs.h <<_ACEOF 1661#define PACKAGE_STRING "$PACKAGE_STRING" 1662_ACEOF 1663 1664 1665cat >>confdefs.h <<_ACEOF 1666#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1667_ACEOF 1668 1669 1670# Let the site file select an alternate cache file if it wants to. 1671# Prefer explicitly selected file to automatically selected ones. 1672if test -n "$CONFIG_SITE"; then 1673 set x "$CONFIG_SITE" 1674elif test "x$prefix" != xNONE; then 1675 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1676else 1677 set x "$ac_default_prefix/share/config.site" \ 1678 "$ac_default_prefix/etc/config.site" 1679fi 1680shift 1681for ac_site_file 1682do 1683 if test -r "$ac_site_file"; then 1684 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1685echo "$as_me: loading site script $ac_site_file" >&6;} 1686 sed 's/^/| /' "$ac_site_file" >&5 1687 . "$ac_site_file" 1688 fi 1689done 1690 1691if test -r "$cache_file"; then 1692 # Some versions of bash will fail to source /dev/null (special 1693 # files actually), so we avoid doing that. 1694 if test -f "$cache_file"; then 1695 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1696echo "$as_me: loading cache $cache_file" >&6;} 1697 case $cache_file in 1698 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1699 *) . "./$cache_file";; 1700 esac 1701 fi 1702else 1703 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1704echo "$as_me: creating cache $cache_file" >&6;} 1705 >$cache_file 1706fi 1707 1708# Check that the precious variables saved in the cache have kept the same 1709# value. 1710ac_cache_corrupted=false 1711for ac_var in $ac_precious_vars; do 1712 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1713 eval ac_new_set=\$ac_env_${ac_var}_set 1714 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1715 eval ac_new_val=\$ac_env_${ac_var}_value 1716 case $ac_old_set,$ac_new_set in 1717 set,) 1718 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1719echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1720 ac_cache_corrupted=: ;; 1721 ,set) 1722 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1723echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1724 ac_cache_corrupted=: ;; 1725 ,);; 1726 *) 1727 if test "x$ac_old_val" != "x$ac_new_val"; then 1728 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1729echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1730 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1731echo "$as_me: former value: $ac_old_val" >&2;} 1732 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1733echo "$as_me: current value: $ac_new_val" >&2;} 1734 ac_cache_corrupted=: 1735 fi;; 1736 esac 1737 # Pass precious variables to config.status. 1738 if test "$ac_new_set" = set; then 1739 case $ac_new_val in 1740 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1741 *) ac_arg=$ac_var=$ac_new_val ;; 1742 esac 1743 case " $ac_configure_args " in 1744 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1745 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1746 esac 1747 fi 1748done 1749if $ac_cache_corrupted; then 1750 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1751echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1752 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1753echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1754 { (exit 1); exit 1; }; } 1755fi 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781ac_ext=c 1782ac_cpp='$CPP $CPPFLAGS' 1783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1785ac_compiler_gnu=$ac_cv_c_compiler_gnu 1786 1787 1788 1789ac_aux_dir= 1790for ac_dir in tclconfig "$srcdir"/tclconfig; do 1791 if test -f "$ac_dir/install-sh"; then 1792 ac_aux_dir=$ac_dir 1793 ac_install_sh="$ac_aux_dir/install-sh -c" 1794 break 1795 elif test -f "$ac_dir/install.sh"; then 1796 ac_aux_dir=$ac_dir 1797 ac_install_sh="$ac_aux_dir/install.sh -c" 1798 break 1799 elif test -f "$ac_dir/shtool"; then 1800 ac_aux_dir=$ac_dir 1801 ac_install_sh="$ac_aux_dir/shtool install -c" 1802 break 1803 fi 1804done 1805if test -z "$ac_aux_dir"; then 1806 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1807echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1808 { (exit 1); exit 1; }; } 1809fi 1810 1811# These three variables are undocumented and unsupported, 1812# and are intended to be withdrawn in a future Autoconf release. 1813# They can cause serious problems if a builder's source tree is in a directory 1814# whose full name contains unusual characters. 1815ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1816ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1817ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1818 1819 1820CONFIGDIR=${srcdir}/tclconfig 1821 1822 1823#-------------------------------------------------------------------- 1824# Setting our package name and version numbers. The NODOT_VERSION is 1825# required for constructing the library name on systems that don't like 1826# dots in library names (Windows). The VERSION variable is used on the 1827# other systems. 1828#-------------------------------------------------------------------- 1829 1830PACKAGE=Tclxslt 1831 1832MAJOR_VERSION=2 1833MINOR_VERSION=6 1834#MAJOR_VERSION=10 1835#MINOR_VERSION=0 1836PATCHLEVEL= 1837 1838VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL} 1839NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION} 1840TCLXSLT_VERSION=${VERSION} 1841 1842 1843 1844 1845 1846# This package name must be replaced statically for AC_SUBST to work 1847 1848# Substitute stub_LIB_FILE if your package creates a stub library too. 1849 1850 1851#-------------------------------------------------------------------- 1852# This was placed here so that we can compile with -DVERSION="1.2" to 1853# encode the package version directly into the source files. 1854#-------------------------------------------------------------------- 1855 1856eval cat >>confdefs.h <<_ACEOF 1857#define VERSION "${VERSION}" 1858_ACEOF 1859 1860eval cat >>confdefs.h <<_ACEOF 1861#define TCLXSLT_VERSION "${TCLXSLT_VERSION}" 1862_ACEOF 1863 1864 1865#-------------------------------------------------------------------- 1866# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1867# This will define a ${TEA_PLATFORM} variable == "unix" or "windows". 1868#-------------------------------------------------------------------- 1869 1870 1871 # TEA extensions pass this us the version of TEA they think they 1872 # are compatible with. 1873 TEA_VERSION="3.9" 1874 1875 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1876echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1877 if test x"${PACKAGE_NAME}" = x ; then 1878 { { echo "$as_me:$LINENO: error: 1879The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1880echo "$as_me: error: 1881The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1882 { (exit 1); exit 1; }; } 1883 fi 1884 if test x"3.9" = x ; then 1885 { { echo "$as_me:$LINENO: error: 1886TEA version not specified." >&5 1887echo "$as_me: error: 1888TEA version not specified." >&2;} 1889 { (exit 1); exit 1; }; } 1890 elif test "3.9" != "${TEA_VERSION}" ; then 1891 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1892echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1893 else 1894 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1895echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1896 fi 1897 case "`uname -s`" in 1898 *win32*|*WIN32*|*MINGW32_*) 1899 # Extract the first word of "cygpath", so it can be a program name with args. 1900set dummy cygpath; ac_word=$2 1901{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1903if test "${ac_cv_prog_CYGPATH+set}" = set; then 1904 echo $ECHO_N "(cached) $ECHO_C" >&6 1905else 1906 if test -n "$CYGPATH"; then 1907 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1908else 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1916 ac_cv_prog_CYGPATH="cygpath -w" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920done 1921done 1922IFS=$as_save_IFS 1923 1924 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1925fi 1926fi 1927CYGPATH=$ac_cv_prog_CYGPATH 1928if test -n "$CYGPATH"; then 1929 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1930echo "${ECHO_T}$CYGPATH" >&6; } 1931else 1932 { echo "$as_me:$LINENO: result: no" >&5 1933echo "${ECHO_T}no" >&6; } 1934fi 1935 1936 1937 EXEEXT=".exe" 1938 TEA_PLATFORM="windows" 1939 ;; 1940 *CYGWIN_*) 1941 CYGPATH=echo 1942 EXEEXT=".exe" 1943 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1944 ;; 1945 *) 1946 CYGPATH=echo 1947 EXEEXT="" 1948 TEA_PLATFORM="unix" 1949 ;; 1950 esac 1951 1952 # Check if exec_prefix is set. If not use fall back to prefix. 1953 # Note when adjusted, so that TEA_PREFIX can correct for this. 1954 # This is needed for recursive configures, since autoconf propagates 1955 # $prefix, but not $exec_prefix (doh!). 1956 if test x$exec_prefix = xNONE ; then 1957 exec_prefix_default=yes 1958 exec_prefix=$prefix 1959 fi 1960 1961 1962 1963 1964 # This package name must be replaced statically for AC_SUBST to work 1965 1966 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1967 1968 1969 # We AC_SUBST these here to ensure they are subst'ed, 1970 # in case the user doesn't call TEA_ADD_... 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980#-------------------------------------------------------------------- 1981# Load the tclConfig.sh file 1982#-------------------------------------------------------------------- 1983 1984 1985 1986 # 1987 # Ok, lets find the tcl configuration 1988 # First, look for one uninstalled. 1989 # the alternative search directory is invoked by --with-tcl 1990 # 1991 1992 if test x"${no_tcl}" = x ; then 1993 # we reset no_tcl in case something fails here 1994 no_tcl=true 1995 1996# Check whether --with-tcl was given. 1997if test "${with_tcl+set}" = set; then 1998 withval=$with_tcl; with_tclconfig="${withval}" 1999fi 2000 2001 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 2002echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 2003 if test "${ac_cv_c_tclconfig+set}" = set; then 2004 echo $ECHO_N "(cached) $ECHO_C" >&6 2005else 2006 2007 2008 # First check to see if --with-tcl was specified. 2009 if test x"${with_tclconfig}" != x ; then 2010 case "${with_tclconfig}" in 2011 */tclConfig.sh ) 2012 if test -f "${with_tclconfig}"; then 2013 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2014echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2015 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2016 fi ;; 2017 esac 2018 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2019 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2020 else 2021 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 2022echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 2023 { (exit 1); exit 1; }; } 2024 fi 2025 fi 2026 2027 # then check for a private Tcl installation 2028 if test x"${ac_cv_c_tclconfig}" = x ; then 2029 for i in \ 2030 ../tcl \ 2031 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2032 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2033 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2034 ../../tcl \ 2035 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2036 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2037 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2038 ../../../tcl \ 2039 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2040 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2041 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2042 if test "${TEA_PLATFORM}" = "windows" \ 2043 -a -f "$i/win/tclConfig.sh" ; then 2044 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2045 break 2046 fi 2047 if test -f "$i/unix/tclConfig.sh" ; then 2048 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2049 break 2050 fi 2051 done 2052 fi 2053 2054 # on Darwin, check in Framework installation locations 2055 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2056 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2057 `ls -d /Library/Frameworks 2>/dev/null` \ 2058 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2059 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2060 ; do 2061 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2062 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2063 break 2064 fi 2065 done 2066 fi 2067 2068 # TEA specific: on Windows, check in common installation locations 2069 if test "${TEA_PLATFORM}" = "windows" \ 2070 -a x"${ac_cv_c_tclconfig}" = x ; then 2071 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2072 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2073 ; do 2074 if test -f "$i/tclConfig.sh" ; then 2075 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2076 break 2077 fi 2078 done 2079 fi 2080 2081 # check in a few common install locations 2082 if test x"${ac_cv_c_tclconfig}" = x ; then 2083 for i in `ls -d ${libdir} 2>/dev/null` \ 2084 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2085 `ls -d ${prefix}/lib 2>/dev/null` \ 2086 `ls -d /usr/local/lib 2>/dev/null` \ 2087 `ls -d /usr/contrib/lib 2>/dev/null` \ 2088 `ls -d /usr/lib 2>/dev/null` \ 2089 `ls -d /usr/lib64 2>/dev/null` \ 2090 ; do 2091 if test -f "$i/tclConfig.sh" ; then 2092 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2093 break 2094 fi 2095 done 2096 fi 2097 2098 # check in a few other private locations 2099 if test x"${ac_cv_c_tclconfig}" = x ; then 2100 for i in \ 2101 ${srcdir}/../tcl \ 2102 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2103 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2104 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2105 if test "${TEA_PLATFORM}" = "windows" \ 2106 -a -f "$i/win/tclConfig.sh" ; then 2107 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2108 break 2109 fi 2110 if test -f "$i/unix/tclConfig.sh" ; then 2111 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2112 break 2113 fi 2114 done 2115 fi 2116 2117fi 2118 2119 2120 if test x"${ac_cv_c_tclconfig}" = x ; then 2121 TCL_BIN_DIR="# no Tcl configs found" 2122 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2123echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2124 { (exit 1); exit 1; }; } 2125 else 2126 no_tcl= 2127 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2128 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2129echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2130 fi 2131 fi 2132 2133 2134 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2135echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2136 2137 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2138 { echo "$as_me:$LINENO: result: loading" >&5 2139echo "${ECHO_T}loading" >&6; } 2140 . "${TCL_BIN_DIR}/tclConfig.sh" 2141 else 2142 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2143echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2144 fi 2145 2146 # eval is required to do the TCL_DBGX substitution 2147 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2148 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2149 2150 # If the TCL_BIN_DIR is the build directory (not the install directory), 2151 # then set the common variable name to the value of the build variables. 2152 # For example, the variable TCL_LIB_SPEC will be set to the value 2153 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2154 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2155 # installed and uninstalled version of Tcl. 2156 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2157 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2158 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2159 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2160 elif test "`uname -s`" = "Darwin"; then 2161 # If Tcl was built as a framework, attempt to use the libraries 2162 # from the framework at the given location so that linking works 2163 # against Tcl.framework installed in an arbitrary location. 2164 case ${TCL_DEFS} in 2165 *TCL_FRAMEWORK*) 2166 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2167 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2168 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2169 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2170 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2171 break 2172 fi 2173 done 2174 fi 2175 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2176 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2177 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2178 fi 2179 ;; 2180 esac 2181 fi 2182 2183 # eval is required to do the TCL_DBGX substitution 2184 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2185 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2186 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2187 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 case "`uname -s`" in 2203 *CYGWIN_*) 2204 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2205echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2206 case ${TCL_EXTRA_CFLAGS} in 2207 *-mwin32*|*-mno-cygwin*) 2208 TEA_PLATFORM="windows" 2209 CFLAGS="$CFLAGS -mwin32" 2210 { echo "$as_me:$LINENO: result: win32" >&5 2211echo "${ECHO_T}win32" >&6; } 2212 ;; 2213 *) 2214 TEA_PLATFORM="unix" 2215 { echo "$as_me:$LINENO: result: unix" >&5 2216echo "${ECHO_T}unix" >&6; } 2217 ;; 2218 esac 2219 EXEEXT=".exe" 2220 ;; 2221 *) 2222 ;; 2223 esac 2224 2225 # Do this here as we have fully defined TEA_PLATFORM now 2226 if test "${TEA_PLATFORM}" = "windows" ; then 2227 # The BUILD_$pkg is to define the correct extern storage class 2228 # handling when making this package 2229 2230cat >>confdefs.h <<_ACEOF 2231#define BUILD_${PACKAGE_NAME} 2232_ACEOF 2233 2234 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2235 fi 2236 2237 # TEA specific: 2238 2239 2240 2241 2242 2243 2244 2245 2246#----------------------------------------------------------------------- 2247# Handle the --prefix=... option by defaulting to what Tcl gave. 2248# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2249#----------------------------------------------------------------------- 2250 2251 2252 if test "${prefix}" = "NONE"; then 2253 prefix_default=yes 2254 if test x"${TCL_PREFIX}" != x; then 2255 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2256echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2257 prefix=${TCL_PREFIX} 2258 else 2259 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2260echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2261 prefix=/usr/local 2262 fi 2263 fi 2264 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2265 -o x"${exec_prefix_default}" = x"yes" ; then 2266 if test x"${TCL_EXEC_PREFIX}" != x; then 2267 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2268echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2269 exec_prefix=${TCL_EXEC_PREFIX} 2270 else 2271 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2272echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2273 exec_prefix=$prefix 2274 fi 2275 fi 2276 2277 2278#----------------------------------------------------------------------- 2279# Standard compiler checks. 2280# This sets up CC by using the CC env var, or looks for gcc otherwise. 2281# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2282# the basic setup necessary to compile executables. 2283#----------------------------------------------------------------------- 2284 2285 2286 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2287 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2288 2289 # If the user did not set CFLAGS, set it now to keep 2290 # the AC_PROG_CC macro from adding "-g -O2". 2291 if test "${CFLAGS+set}" != "set" ; then 2292 CFLAGS="" 2293 fi 2294 2295 ac_ext=c 2296ac_cpp='$CPP $CPPFLAGS' 2297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2299ac_compiler_gnu=$ac_cv_c_compiler_gnu 2300if test -n "$ac_tool_prefix"; then 2301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2302set dummy ${ac_tool_prefix}gcc; ac_word=$2 2303{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2305if test "${ac_cv_prog_CC+set}" = set; then 2306 echo $ECHO_N "(cached) $ECHO_C" >&6 2307else 2308 if test -n "$CC"; then 2309 ac_cv_prog_CC="$CC" # Let the user override the test. 2310else 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 for ac_exec_ext in '' $ac_executable_extensions; do 2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2318 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2320 break 2 2321 fi 2322done 2323done 2324IFS=$as_save_IFS 2325 2326fi 2327fi 2328CC=$ac_cv_prog_CC 2329if test -n "$CC"; then 2330 { echo "$as_me:$LINENO: result: $CC" >&5 2331echo "${ECHO_T}$CC" >&6; } 2332else 2333 { echo "$as_me:$LINENO: result: no" >&5 2334echo "${ECHO_T}no" >&6; } 2335fi 2336 2337 2338fi 2339if test -z "$ac_cv_prog_CC"; then 2340 ac_ct_CC=$CC 2341 # Extract the first word of "gcc", so it can be a program name with args. 2342set dummy gcc; ac_word=$2 2343{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2345if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2346 echo $ECHO_N "(cached) $ECHO_C" >&6 2347else 2348 if test -n "$ac_ct_CC"; then 2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2350else 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 for ac_exec_ext in '' $ac_executable_extensions; do 2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2358 ac_cv_prog_ac_ct_CC="gcc" 2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2360 break 2 2361 fi 2362done 2363done 2364IFS=$as_save_IFS 2365 2366fi 2367fi 2368ac_ct_CC=$ac_cv_prog_ac_ct_CC 2369if test -n "$ac_ct_CC"; then 2370 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2371echo "${ECHO_T}$ac_ct_CC" >&6; } 2372else 2373 { echo "$as_me:$LINENO: result: no" >&5 2374echo "${ECHO_T}no" >&6; } 2375fi 2376 2377 if test "x$ac_ct_CC" = x; then 2378 CC="" 2379 else 2380 case $cross_compiling:$ac_tool_warned in 2381yes:) 2382{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2383whose name does not start with the host triplet. If you think this 2384configuration is useful to you, please write to autoconf@gnu.org." >&5 2385echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2386whose name does not start with the host triplet. If you think this 2387configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2388ac_tool_warned=yes ;; 2389esac 2390 CC=$ac_ct_CC 2391 fi 2392else 2393 CC="$ac_cv_prog_CC" 2394fi 2395 2396if test -z "$CC"; then 2397 if test -n "$ac_tool_prefix"; then 2398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2399set dummy ${ac_tool_prefix}cc; ac_word=$2 2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2402if test "${ac_cv_prog_CC+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404else 2405 if test -n "$CC"; then 2406 ac_cv_prog_CC="$CC" # Let the user override the test. 2407else 2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2409for as_dir in $PATH 2410do 2411 IFS=$as_save_IFS 2412 test -z "$as_dir" && as_dir=. 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2415 ac_cv_prog_CC="${ac_tool_prefix}cc" 2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2417 break 2 2418 fi 2419done 2420done 2421IFS=$as_save_IFS 2422 2423fi 2424fi 2425CC=$ac_cv_prog_CC 2426if test -n "$CC"; then 2427 { echo "$as_me:$LINENO: result: $CC" >&5 2428echo "${ECHO_T}$CC" >&6; } 2429else 2430 { echo "$as_me:$LINENO: result: no" >&5 2431echo "${ECHO_T}no" >&6; } 2432fi 2433 2434 2435 fi 2436fi 2437if test -z "$CC"; then 2438 # Extract the first word of "cc", so it can be a program name with args. 2439set dummy cc; ac_word=$2 2440{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2442if test "${ac_cv_prog_CC+set}" = set; then 2443 echo $ECHO_N "(cached) $ECHO_C" >&6 2444else 2445 if test -n "$CC"; then 2446 ac_cv_prog_CC="$CC" # Let the user override the test. 2447else 2448 ac_prog_rejected=no 2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450for as_dir in $PATH 2451do 2452 IFS=$as_save_IFS 2453 test -z "$as_dir" && as_dir=. 2454 for ac_exec_ext in '' $ac_executable_extensions; do 2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2457 ac_prog_rejected=yes 2458 continue 2459 fi 2460 ac_cv_prog_CC="cc" 2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2462 break 2 2463 fi 2464done 2465done 2466IFS=$as_save_IFS 2467 2468if test $ac_prog_rejected = yes; then 2469 # We found a bogon in the path, so make sure we never use it. 2470 set dummy $ac_cv_prog_CC 2471 shift 2472 if test $# != 0; then 2473 # We chose a different compiler from the bogus one. 2474 # However, it has the same basename, so the bogon will be chosen 2475 # first if we set CC to just the basename; use the full file name. 2476 shift 2477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2478 fi 2479fi 2480fi 2481fi 2482CC=$ac_cv_prog_CC 2483if test -n "$CC"; then 2484 { echo "$as_me:$LINENO: result: $CC" >&5 2485echo "${ECHO_T}$CC" >&6; } 2486else 2487 { echo "$as_me:$LINENO: result: no" >&5 2488echo "${ECHO_T}no" >&6; } 2489fi 2490 2491 2492fi 2493if test -z "$CC"; then 2494 if test -n "$ac_tool_prefix"; then 2495 for ac_prog in cl.exe 2496 do 2497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2498set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2499{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2501if test "${ac_cv_prog_CC+set}" = set; then 2502 echo $ECHO_N "(cached) $ECHO_C" >&6 2503else 2504 if test -n "$CC"; then 2505 ac_cv_prog_CC="$CC" # Let the user override the test. 2506else 2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 for ac_exec_ext in '' $ac_executable_extensions; do 2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2516 break 2 2517 fi 2518done 2519done 2520IFS=$as_save_IFS 2521 2522fi 2523fi 2524CC=$ac_cv_prog_CC 2525if test -n "$CC"; then 2526 { echo "$as_me:$LINENO: result: $CC" >&5 2527echo "${ECHO_T}$CC" >&6; } 2528else 2529 { echo "$as_me:$LINENO: result: no" >&5 2530echo "${ECHO_T}no" >&6; } 2531fi 2532 2533 2534 test -n "$CC" && break 2535 done 2536fi 2537if test -z "$CC"; then 2538 ac_ct_CC=$CC 2539 for ac_prog in cl.exe 2540do 2541 # Extract the first word of "$ac_prog", so it can be a program name with args. 2542set dummy $ac_prog; ac_word=$2 2543{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2545if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2546 echo $ECHO_N "(cached) $ECHO_C" >&6 2547else 2548 if test -n "$ac_ct_CC"; then 2549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2550else 2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2552for as_dir in $PATH 2553do 2554 IFS=$as_save_IFS 2555 test -z "$as_dir" && as_dir=. 2556 for ac_exec_ext in '' $ac_executable_extensions; do 2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2558 ac_cv_prog_ac_ct_CC="$ac_prog" 2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2560 break 2 2561 fi 2562done 2563done 2564IFS=$as_save_IFS 2565 2566fi 2567fi 2568ac_ct_CC=$ac_cv_prog_ac_ct_CC 2569if test -n "$ac_ct_CC"; then 2570 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2571echo "${ECHO_T}$ac_ct_CC" >&6; } 2572else 2573 { echo "$as_me:$LINENO: result: no" >&5 2574echo "${ECHO_T}no" >&6; } 2575fi 2576 2577 2578 test -n "$ac_ct_CC" && break 2579done 2580 2581 if test "x$ac_ct_CC" = x; then 2582 CC="" 2583 else 2584 case $cross_compiling:$ac_tool_warned in 2585yes:) 2586{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2587whose name does not start with the host triplet. If you think this 2588configuration is useful to you, please write to autoconf@gnu.org." >&5 2589echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2590whose name does not start with the host triplet. If you think this 2591configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2592ac_tool_warned=yes ;; 2593esac 2594 CC=$ac_ct_CC 2595 fi 2596fi 2597 2598fi 2599 2600 2601test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2602See \`config.log' for more details." >&5 2603echo "$as_me: error: no acceptable C compiler found in \$PATH 2604See \`config.log' for more details." >&2;} 2605 { (exit 1); exit 1; }; } 2606 2607# Provide some information about the compiler. 2608echo "$as_me:$LINENO: checking for C compiler version" >&5 2609ac_compiler=`set X $ac_compile; echo $2` 2610{ (ac_try="$ac_compiler --version >&5" 2611case "(($ac_try" in 2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2613 *) ac_try_echo=$ac_try;; 2614esac 2615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2616 (eval "$ac_compiler --version >&5") 2>&5 2617 ac_status=$? 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); } 2620{ (ac_try="$ac_compiler -v >&5" 2621case "(($ac_try" in 2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2623 *) ac_try_echo=$ac_try;; 2624esac 2625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2626 (eval "$ac_compiler -v >&5") 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); } 2630{ (ac_try="$ac_compiler -V >&5" 2631case "(($ac_try" in 2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2633 *) ac_try_echo=$ac_try;; 2634esac 2635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2636 (eval "$ac_compiler -V >&5") 2>&5 2637 ac_status=$? 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); } 2640 2641cat >conftest.$ac_ext <<_ACEOF 2642/* confdefs.h. */ 2643_ACEOF 2644cat confdefs.h >>conftest.$ac_ext 2645cat >>conftest.$ac_ext <<_ACEOF 2646/* end confdefs.h. */ 2647 2648int 2649main () 2650{ 2651 2652 ; 2653 return 0; 2654} 2655_ACEOF 2656ac_clean_files_save=$ac_clean_files 2657ac_clean_files="$ac_clean_files a.out a.exe b.out" 2658# Try to create an executable without -o first, disregard a.out. 2659# It will help us diagnose broken compilers, and finding out an intuition 2660# of exeext. 2661{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2662echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2663ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2664# 2665# List of possible output files, starting from the most likely. 2666# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2667# only as a last resort. b.out is created by i960 compilers. 2668ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2669# 2670# The IRIX 6 linker writes into existing files which may not be 2671# executable, retaining their permissions. Remove them first so a 2672# subsequent execution test works. 2673ac_rmfiles= 2674for ac_file in $ac_files 2675do 2676 case $ac_file in 2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2678 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2679 esac 2680done 2681rm -f $ac_rmfiles 2682 2683if { (ac_try="$ac_link_default" 2684case "(($ac_try" in 2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2686 *) ac_try_echo=$ac_try;; 2687esac 2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2689 (eval "$ac_link_default") 2>&5 2690 ac_status=$? 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); }; then 2693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2694# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2695# in a Makefile. We should not override ac_cv_exeext if it was cached, 2696# so that the user can short-circuit this test for compilers unknown to 2697# Autoconf. 2698for ac_file in $ac_files '' 2699do 2700 test -f "$ac_file" || continue 2701 case $ac_file in 2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2703 ;; 2704 [ab].out ) 2705 # We found the default executable, but exeext='' is most 2706 # certainly right. 2707 break;; 2708 *.* ) 2709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2710 then :; else 2711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2712 fi 2713 # We set ac_cv_exeext here because the later test for it is not 2714 # safe: cross compilers may not add the suffix if given an `-o' 2715 # argument, so we may need to know it at that point already. 2716 # Even if this section looks crufty: it has the advantage of 2717 # actually working. 2718 break;; 2719 * ) 2720 break;; 2721 esac 2722done 2723test "$ac_cv_exeext" = no && ac_cv_exeext= 2724 2725else 2726 ac_file='' 2727fi 2728 2729{ echo "$as_me:$LINENO: result: $ac_file" >&5 2730echo "${ECHO_T}$ac_file" >&6; } 2731if test -z "$ac_file"; then 2732 echo "$as_me: failed program was:" >&5 2733sed 's/^/| /' conftest.$ac_ext >&5 2734 2735{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2736See \`config.log' for more details." >&5 2737echo "$as_me: error: C compiler cannot create executables 2738See \`config.log' for more details." >&2;} 2739 { (exit 77); exit 77; }; } 2740fi 2741 2742ac_exeext=$ac_cv_exeext 2743 2744# Check that the compiler produces executables we can run. If not, either 2745# the compiler is broken, or we cross compile. 2746{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2747echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2748# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2749# If not cross compiling, check that we can run a simple program. 2750if test "$cross_compiling" != yes; then 2751 if { ac_try='./$ac_file' 2752 { (case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_try") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); }; }; then 2761 cross_compiling=no 2762 else 2763 if test "$cross_compiling" = maybe; then 2764 cross_compiling=yes 2765 else 2766 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2767If you meant to cross compile, use \`--host'. 2768See \`config.log' for more details." >&5 2769echo "$as_me: error: cannot run C compiled programs. 2770If you meant to cross compile, use \`--host'. 2771See \`config.log' for more details." >&2;} 2772 { (exit 1); exit 1; }; } 2773 fi 2774 fi 2775fi 2776{ echo "$as_me:$LINENO: result: yes" >&5 2777echo "${ECHO_T}yes" >&6; } 2778 2779rm -f a.out a.exe conftest$ac_cv_exeext b.out 2780ac_clean_files=$ac_clean_files_save 2781# Check that the compiler produces executables we can run. If not, either 2782# the compiler is broken, or we cross compile. 2783{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2784echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2785{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2786echo "${ECHO_T}$cross_compiling" >&6; } 2787 2788{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2789echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2790if { (ac_try="$ac_link" 2791case "(($ac_try" in 2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2793 *) ac_try_echo=$ac_try;; 2794esac 2795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2796 (eval "$ac_link") 2>&5 2797 ac_status=$? 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); }; then 2800 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2801# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2802# work properly (i.e., refer to `conftest.exe'), while it won't with 2803# `rm'. 2804for ac_file in conftest.exe conftest conftest.*; do 2805 test -f "$ac_file" || continue 2806 case $ac_file in 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2809 break;; 2810 * ) break;; 2811 esac 2812done 2813else 2814 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2815See \`config.log' for more details." >&5 2816echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2817See \`config.log' for more details." >&2;} 2818 { (exit 1); exit 1; }; } 2819fi 2820 2821rm -f conftest$ac_cv_exeext 2822{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2823echo "${ECHO_T}$ac_cv_exeext" >&6; } 2824 2825rm -f conftest.$ac_ext 2826EXEEXT=$ac_cv_exeext 2827ac_exeext=$EXEEXT 2828{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2829echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2830if test "${ac_cv_objext+set}" = set; then 2831 echo $ECHO_N "(cached) $ECHO_C" >&6 2832else 2833 cat >conftest.$ac_ext <<_ACEOF 2834/* confdefs.h. */ 2835_ACEOF 2836cat confdefs.h >>conftest.$ac_ext 2837cat >>conftest.$ac_ext <<_ACEOF 2838/* end confdefs.h. */ 2839 2840int 2841main () 2842{ 2843 2844 ; 2845 return 0; 2846} 2847_ACEOF 2848rm -f conftest.o conftest.obj 2849if { (ac_try="$ac_compile" 2850case "(($ac_try" in 2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2852 *) ac_try_echo=$ac_try;; 2853esac 2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2855 (eval "$ac_compile") 2>&5 2856 ac_status=$? 2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2858 (exit $ac_status); }; then 2859 for ac_file in conftest.o conftest.obj conftest.*; do 2860 test -f "$ac_file" || continue; 2861 case $ac_file in 2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2864 break;; 2865 esac 2866done 2867else 2868 echo "$as_me: failed program was:" >&5 2869sed 's/^/| /' conftest.$ac_ext >&5 2870 2871{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2872See \`config.log' for more details." >&5 2873echo "$as_me: error: cannot compute suffix of object files: cannot compile 2874See \`config.log' for more details." >&2;} 2875 { (exit 1); exit 1; }; } 2876fi 2877 2878rm -f conftest.$ac_cv_objext conftest.$ac_ext 2879fi 2880{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2881echo "${ECHO_T}$ac_cv_objext" >&6; } 2882OBJEXT=$ac_cv_objext 2883ac_objext=$OBJEXT 2884{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2885echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2886if test "${ac_cv_c_compiler_gnu+set}" = set; then 2887 echo $ECHO_N "(cached) $ECHO_C" >&6 2888else 2889 cat >conftest.$ac_ext <<_ACEOF 2890/* confdefs.h. */ 2891_ACEOF 2892cat confdefs.h >>conftest.$ac_ext 2893cat >>conftest.$ac_ext <<_ACEOF 2894/* end confdefs.h. */ 2895 2896int 2897main () 2898{ 2899#ifndef __GNUC__ 2900 choke me 2901#endif 2902 2903 ; 2904 return 0; 2905} 2906_ACEOF 2907rm -f conftest.$ac_objext 2908if { (ac_try="$ac_compile" 2909case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912esac 2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compile") 2>conftest.er1 2915 ac_status=$? 2916 grep -v '^ *+' conftest.er1 >conftest.err 2917 rm -f conftest.er1 2918 cat conftest.err >&5 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2920 (exit $ac_status); } && { 2921 test -z "$ac_c_werror_flag" || 2922 test ! -s conftest.err 2923 } && test -s conftest.$ac_objext; then 2924 ac_compiler_gnu=yes 2925else 2926 echo "$as_me: failed program was:" >&5 2927sed 's/^/| /' conftest.$ac_ext >&5 2928 2929 ac_compiler_gnu=no 2930fi 2931 2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2933ac_cv_c_compiler_gnu=$ac_compiler_gnu 2934 2935fi 2936{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2937echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2938GCC=`test $ac_compiler_gnu = yes && echo yes` 2939ac_test_CFLAGS=${CFLAGS+set} 2940ac_save_CFLAGS=$CFLAGS 2941{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2942echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2943if test "${ac_cv_prog_cc_g+set}" = set; then 2944 echo $ECHO_N "(cached) $ECHO_C" >&6 2945else 2946 ac_save_c_werror_flag=$ac_c_werror_flag 2947 ac_c_werror_flag=yes 2948 ac_cv_prog_cc_g=no 2949 CFLAGS="-g" 2950 cat >conftest.$ac_ext <<_ACEOF 2951/* confdefs.h. */ 2952_ACEOF 2953cat confdefs.h >>conftest.$ac_ext 2954cat >>conftest.$ac_ext <<_ACEOF 2955/* end confdefs.h. */ 2956 2957int 2958main () 2959{ 2960 2961 ; 2962 return 0; 2963} 2964_ACEOF 2965rm -f conftest.$ac_objext 2966if { (ac_try="$ac_compile" 2967case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970esac 2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2972 (eval "$ac_compile") 2>conftest.er1 2973 ac_status=$? 2974 grep -v '^ *+' conftest.er1 >conftest.err 2975 rm -f conftest.er1 2976 cat conftest.err >&5 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } && { 2979 test -z "$ac_c_werror_flag" || 2980 test ! -s conftest.err 2981 } && test -s conftest.$ac_objext; then 2982 ac_cv_prog_cc_g=yes 2983else 2984 echo "$as_me: failed program was:" >&5 2985sed 's/^/| /' conftest.$ac_ext >&5 2986 2987 CFLAGS="" 2988 cat >conftest.$ac_ext <<_ACEOF 2989/* confdefs.h. */ 2990_ACEOF 2991cat confdefs.h >>conftest.$ac_ext 2992cat >>conftest.$ac_ext <<_ACEOF 2993/* end confdefs.h. */ 2994 2995int 2996main () 2997{ 2998 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003rm -f conftest.$ac_objext 3004if { (ac_try="$ac_compile" 3005case "(($ac_try" in 3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3007 *) ac_try_echo=$ac_try;; 3008esac 3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3010 (eval "$ac_compile") 2>conftest.er1 3011 ac_status=$? 3012 grep -v '^ *+' conftest.er1 >conftest.err 3013 rm -f conftest.er1 3014 cat conftest.err >&5 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); } && { 3017 test -z "$ac_c_werror_flag" || 3018 test ! -s conftest.err 3019 } && test -s conftest.$ac_objext; then 3020 : 3021else 3022 echo "$as_me: failed program was:" >&5 3023sed 's/^/| /' conftest.$ac_ext >&5 3024 3025 ac_c_werror_flag=$ac_save_c_werror_flag 3026 CFLAGS="-g" 3027 cat >conftest.$ac_ext <<_ACEOF 3028/* confdefs.h. */ 3029_ACEOF 3030cat confdefs.h >>conftest.$ac_ext 3031cat >>conftest.$ac_ext <<_ACEOF 3032/* end confdefs.h. */ 3033 3034int 3035main () 3036{ 3037 3038 ; 3039 return 0; 3040} 3041_ACEOF 3042rm -f conftest.$ac_objext 3043if { (ac_try="$ac_compile" 3044case "(($ac_try" in 3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3046 *) ac_try_echo=$ac_try;; 3047esac 3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3049 (eval "$ac_compile") 2>conftest.er1 3050 ac_status=$? 3051 grep -v '^ *+' conftest.er1 >conftest.err 3052 rm -f conftest.er1 3053 cat conftest.err >&5 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); } && { 3056 test -z "$ac_c_werror_flag" || 3057 test ! -s conftest.err 3058 } && test -s conftest.$ac_objext; then 3059 ac_cv_prog_cc_g=yes 3060else 3061 echo "$as_me: failed program was:" >&5 3062sed 's/^/| /' conftest.$ac_ext >&5 3063 3064 3065fi 3066 3067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3068fi 3069 3070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3071fi 3072 3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3074 ac_c_werror_flag=$ac_save_c_werror_flag 3075fi 3076{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3077echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3078if test "$ac_test_CFLAGS" = set; then 3079 CFLAGS=$ac_save_CFLAGS 3080elif test $ac_cv_prog_cc_g = yes; then 3081 if test "$GCC" = yes; then 3082 CFLAGS="-g -O2" 3083 else 3084 CFLAGS="-g" 3085 fi 3086else 3087 if test "$GCC" = yes; then 3088 CFLAGS="-O2" 3089 else 3090 CFLAGS= 3091 fi 3092fi 3093{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3094echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3095if test "${ac_cv_prog_cc_c89+set}" = set; then 3096 echo $ECHO_N "(cached) $ECHO_C" >&6 3097else 3098 ac_cv_prog_cc_c89=no 3099ac_save_CC=$CC 3100cat >conftest.$ac_ext <<_ACEOF 3101/* confdefs.h. */ 3102_ACEOF 3103cat confdefs.h >>conftest.$ac_ext 3104cat >>conftest.$ac_ext <<_ACEOF 3105/* end confdefs.h. */ 3106#include <stdarg.h> 3107#include <stdio.h> 3108#include <sys/types.h> 3109#include <sys/stat.h> 3110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3111struct buf { int x; }; 3112FILE * (*rcsopen) (struct buf *, struct stat *, int); 3113static char *e (p, i) 3114 char **p; 3115 int i; 3116{ 3117 return p[i]; 3118} 3119static char *f (char * (*g) (char **, int), char **p, ...) 3120{ 3121 char *s; 3122 va_list v; 3123 va_start (v,p); 3124 s = g (p, va_arg (v,int)); 3125 va_end (v); 3126 return s; 3127} 3128 3129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3130 function prototypes and stuff, but not '\xHH' hex character constants. 3131 These don't provoke an error unfortunately, instead are silently treated 3132 as 'x'. The following induces an error, until -std is added to get 3133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3134 array size at least. It's necessary to write '\x00'==0 to get something 3135 that's true only with -std. */ 3136int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3137 3138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3139 inside strings and character constants. */ 3140#define FOO(x) 'x' 3141int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3142 3143int test (int i, double x); 3144struct s1 {int (*f) (int a);}; 3145struct s2 {int (*f) (double a);}; 3146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3147int argc; 3148char **argv; 3149int 3150main () 3151{ 3152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3153 ; 3154 return 0; 3155} 3156_ACEOF 3157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3159do 3160 CC="$ac_save_CC $ac_arg" 3161 rm -f conftest.$ac_objext 3162if { (ac_try="$ac_compile" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_compile") 2>conftest.er1 3169 ac_status=$? 3170 grep -v '^ *+' conftest.er1 >conftest.err 3171 rm -f conftest.er1 3172 cat conftest.err >&5 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); } && { 3175 test -z "$ac_c_werror_flag" || 3176 test ! -s conftest.err 3177 } && test -s conftest.$ac_objext; then 3178 ac_cv_prog_cc_c89=$ac_arg 3179else 3180 echo "$as_me: failed program was:" >&5 3181sed 's/^/| /' conftest.$ac_ext >&5 3182 3183 3184fi 3185 3186rm -f core conftest.err conftest.$ac_objext 3187 test "x$ac_cv_prog_cc_c89" != "xno" && break 3188done 3189rm -f conftest.$ac_ext 3190CC=$ac_save_CC 3191 3192fi 3193# AC_CACHE_VAL 3194case "x$ac_cv_prog_cc_c89" in 3195 x) 3196 { echo "$as_me:$LINENO: result: none needed" >&5 3197echo "${ECHO_T}none needed" >&6; } ;; 3198 xno) 3199 { echo "$as_me:$LINENO: result: unsupported" >&5 3200echo "${ECHO_T}unsupported" >&6; } ;; 3201 *) 3202 CC="$CC $ac_cv_prog_cc_c89" 3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3204echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3205esac 3206 3207 3208ac_ext=c 3209ac_cpp='$CPP $CPPFLAGS' 3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3212ac_compiler_gnu=$ac_cv_c_compiler_gnu 3213 3214 ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3220echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3221# On Suns, sometimes $CPP names a directory. 3222if test -n "$CPP" && test -d "$CPP"; then 3223 CPP= 3224fi 3225if test -z "$CPP"; then 3226 if test "${ac_cv_prog_CPP+set}" = set; then 3227 echo $ECHO_N "(cached) $ECHO_C" >&6 3228else 3229 # Double quotes because CPP needs to be expanded 3230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3231 do 3232 ac_preproc_ok=false 3233for ac_c_preproc_warn_flag in '' yes 3234do 3235 # Use a header file that comes with gcc, so configuring glibc 3236 # with a fresh cross-compiler works. 3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3238 # <limits.h> exists even on freestanding compilers. 3239 # On the NeXT, cc -E runs the code through the compiler's parser, 3240 # not just through cpp. "Syntax error" is here to catch this case. 3241 cat >conftest.$ac_ext <<_ACEOF 3242/* confdefs.h. */ 3243_ACEOF 3244cat confdefs.h >>conftest.$ac_ext 3245cat >>conftest.$ac_ext <<_ACEOF 3246/* end confdefs.h. */ 3247#ifdef __STDC__ 3248# include <limits.h> 3249#else 3250# include <assert.h> 3251#endif 3252 Syntax error 3253_ACEOF 3254if { (ac_try="$ac_cpp conftest.$ac_ext" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3261 ac_status=$? 3262 grep -v '^ *+' conftest.er1 >conftest.err 3263 rm -f conftest.er1 3264 cat conftest.err >&5 3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3266 (exit $ac_status); } >/dev/null && { 3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3268 test ! -s conftest.err 3269 }; then 3270 : 3271else 3272 echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275 # Broken: fails on valid input. 3276continue 3277fi 3278 3279rm -f conftest.err conftest.$ac_ext 3280 3281 # OK, works on sane cases. Now check whether nonexistent headers 3282 # can be detected and how. 3283 cat >conftest.$ac_ext <<_ACEOF 3284/* confdefs.h. */ 3285_ACEOF 3286cat confdefs.h >>conftest.$ac_ext 3287cat >>conftest.$ac_ext <<_ACEOF 3288/* end confdefs.h. */ 3289#include <ac_nonexistent.h> 3290_ACEOF 3291if { (ac_try="$ac_cpp conftest.$ac_ext" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } >/dev/null && { 3304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3305 test ! -s conftest.err 3306 }; then 3307 # Broken: success on invalid input. 3308continue 3309else 3310 echo "$as_me: failed program was:" >&5 3311sed 's/^/| /' conftest.$ac_ext >&5 3312 3313 # Passes both tests. 3314ac_preproc_ok=: 3315break 3316fi 3317 3318rm -f conftest.err conftest.$ac_ext 3319 3320done 3321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3322rm -f conftest.err conftest.$ac_ext 3323if $ac_preproc_ok; then 3324 break 3325fi 3326 3327 done 3328 ac_cv_prog_CPP=$CPP 3329 3330fi 3331 CPP=$ac_cv_prog_CPP 3332else 3333 ac_cv_prog_CPP=$CPP 3334fi 3335{ echo "$as_me:$LINENO: result: $CPP" >&5 3336echo "${ECHO_T}$CPP" >&6; } 3337ac_preproc_ok=false 3338for ac_c_preproc_warn_flag in '' yes 3339do 3340 # Use a header file that comes with gcc, so configuring glibc 3341 # with a fresh cross-compiler works. 3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3343 # <limits.h> exists even on freestanding compilers. 3344 # On the NeXT, cc -E runs the code through the compiler's parser, 3345 # not just through cpp. "Syntax error" is here to catch this case. 3346 cat >conftest.$ac_ext <<_ACEOF 3347/* confdefs.h. */ 3348_ACEOF 3349cat confdefs.h >>conftest.$ac_ext 3350cat >>conftest.$ac_ext <<_ACEOF 3351/* end confdefs.h. */ 3352#ifdef __STDC__ 3353# include <limits.h> 3354#else 3355# include <assert.h> 3356#endif 3357 Syntax error 3358_ACEOF 3359if { (ac_try="$ac_cpp conftest.$ac_ext" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3366 ac_status=$? 3367 grep -v '^ *+' conftest.er1 >conftest.err 3368 rm -f conftest.er1 3369 cat conftest.err >&5 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } >/dev/null && { 3372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3373 test ! -s conftest.err 3374 }; then 3375 : 3376else 3377 echo "$as_me: failed program was:" >&5 3378sed 's/^/| /' conftest.$ac_ext >&5 3379 3380 # Broken: fails on valid input. 3381continue 3382fi 3383 3384rm -f conftest.err conftest.$ac_ext 3385 3386 # OK, works on sane cases. Now check whether nonexistent headers 3387 # can be detected and how. 3388 cat >conftest.$ac_ext <<_ACEOF 3389/* confdefs.h. */ 3390_ACEOF 3391cat confdefs.h >>conftest.$ac_ext 3392cat >>conftest.$ac_ext <<_ACEOF 3393/* end confdefs.h. */ 3394#include <ac_nonexistent.h> 3395_ACEOF 3396if { (ac_try="$ac_cpp conftest.$ac_ext" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3403 ac_status=$? 3404 grep -v '^ *+' conftest.er1 >conftest.err 3405 rm -f conftest.er1 3406 cat conftest.err >&5 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); } >/dev/null && { 3409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3410 test ! -s conftest.err 3411 }; then 3412 # Broken: success on invalid input. 3413continue 3414else 3415 echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418 # Passes both tests. 3419ac_preproc_ok=: 3420break 3421fi 3422 3423rm -f conftest.err conftest.$ac_ext 3424 3425done 3426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3427rm -f conftest.err conftest.$ac_ext 3428if $ac_preproc_ok; then 3429 : 3430else 3431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3432See \`config.log' for more details." >&5 3433echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3434See \`config.log' for more details." >&2;} 3435 { (exit 1); exit 1; }; } 3436fi 3437 3438ac_ext=c 3439ac_cpp='$CPP $CPPFLAGS' 3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3442ac_compiler_gnu=$ac_cv_c_compiler_gnu 3443 3444 3445 # Find a good install program. We prefer a C program (faster), 3446# so one script is as good as another. But avoid the broken or 3447# incompatible versions: 3448# SysV /etc/install, /usr/sbin/install 3449# SunOS /usr/etc/install 3450# IRIX /sbin/install 3451# AIX /bin/install 3452# AmigaOS /C/install, which installs bootblocks on floppy discs 3453# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3454# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3455# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3456# OS/2's system install, which has a completely different semantic 3457# ./install, which can be erroneously created by make from ./install.sh. 3458{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3459echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3460if test -z "$INSTALL"; then 3461if test "${ac_cv_path_install+set}" = set; then 3462 echo $ECHO_N "(cached) $ECHO_C" >&6 3463else 3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465for as_dir in $PATH 3466do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 # Account for people who put trailing slashes in PATH elements. 3470case $as_dir/ in 3471 ./ | .// | /cC/* | \ 3472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3473 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3474 /usr/ucb/* ) ;; 3475 *) 3476 # OSF1 and SCO ODT 3.0 have their own names for install. 3477 # Don't use installbsd from OSF since it installs stuff as root 3478 # by default. 3479 for ac_prog in ginstall scoinst install; do 3480 for ac_exec_ext in '' $ac_executable_extensions; do 3481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3482 if test $ac_prog = install && 3483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3484 # AIX install. It has an incompatible calling convention. 3485 : 3486 elif test $ac_prog = install && 3487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3488 # program-specific install script used by HP pwplus--don't use. 3489 : 3490 else 3491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3492 break 3 3493 fi 3494 fi 3495 done 3496 done 3497 ;; 3498esac 3499done 3500IFS=$as_save_IFS 3501 3502 3503fi 3504 if test "${ac_cv_path_install+set}" = set; then 3505 INSTALL=$ac_cv_path_install 3506 else 3507 # As a last resort, use the slow shell script. Don't cache a 3508 # value for INSTALL within a source directory, because that will 3509 # break other packages using the cache if that directory is 3510 # removed, or if the value is a relative name. 3511 INSTALL=$ac_install_sh 3512 fi 3513fi 3514{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3515echo "${ECHO_T}$INSTALL" >&6; } 3516 3517# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3518# It thinks the first close brace ends the variable substitution. 3519test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3520 3521test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3522 3523test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3524 3525 3526 #-------------------------------------------------------------------- 3527 # Checks to see if the make program sets the $MAKE variable. 3528 #-------------------------------------------------------------------- 3529 3530 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3531echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3532set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3533if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3534 echo $ECHO_N "(cached) $ECHO_C" >&6 3535else 3536 cat >conftest.make <<\_ACEOF 3537SHELL = /bin/sh 3538all: 3539 @echo '@@@%%%=$(MAKE)=@@@%%%' 3540_ACEOF 3541# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3542case `${MAKE-make} -f conftest.make 2>/dev/null` in 3543 *@@@%%%=?*=@@@%%%*) 3544 eval ac_cv_prog_make_${ac_make}_set=yes;; 3545 *) 3546 eval ac_cv_prog_make_${ac_make}_set=no;; 3547esac 3548rm -f conftest.make 3549fi 3550if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3551 { echo "$as_me:$LINENO: result: yes" >&5 3552echo "${ECHO_T}yes" >&6; } 3553 SET_MAKE= 3554else 3555 { echo "$as_me:$LINENO: result: no" >&5 3556echo "${ECHO_T}no" >&6; } 3557 SET_MAKE="MAKE=${MAKE-make}" 3558fi 3559 3560 3561 #-------------------------------------------------------------------- 3562 # Find ranlib 3563 #-------------------------------------------------------------------- 3564 3565 if test -n "$ac_tool_prefix"; then 3566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3567set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3568{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3570if test "${ac_cv_prog_RANLIB+set}" = set; then 3571 echo $ECHO_N "(cached) $ECHO_C" >&6 3572else 3573 if test -n "$RANLIB"; then 3574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3575else 3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH 3578do 3579 IFS=$as_save_IFS 3580 test -z "$as_dir" && as_dir=. 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3585 break 2 3586 fi 3587done 3588done 3589IFS=$as_save_IFS 3590 3591fi 3592fi 3593RANLIB=$ac_cv_prog_RANLIB 3594if test -n "$RANLIB"; then 3595 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3596echo "${ECHO_T}$RANLIB" >&6; } 3597else 3598 { echo "$as_me:$LINENO: result: no" >&5 3599echo "${ECHO_T}no" >&6; } 3600fi 3601 3602 3603fi 3604if test -z "$ac_cv_prog_RANLIB"; then 3605 ac_ct_RANLIB=$RANLIB 3606 # Extract the first word of "ranlib", so it can be a program name with args. 3607set dummy ranlib; ac_word=$2 3608{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3610if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3611 echo $ECHO_N "(cached) $ECHO_C" >&6 3612else 3613 if test -n "$ac_ct_RANLIB"; then 3614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3615else 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH 3618do 3619 IFS=$as_save_IFS 3620 test -z "$as_dir" && as_dir=. 3621 for ac_exec_ext in '' $ac_executable_extensions; do 3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3623 ac_cv_prog_ac_ct_RANLIB="ranlib" 3624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3625 break 2 3626 fi 3627done 3628done 3629IFS=$as_save_IFS 3630 3631fi 3632fi 3633ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3634if test -n "$ac_ct_RANLIB"; then 3635 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3636echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3637else 3638 { echo "$as_me:$LINENO: result: no" >&5 3639echo "${ECHO_T}no" >&6; } 3640fi 3641 3642 if test "x$ac_ct_RANLIB" = x; then 3643 RANLIB=":" 3644 else 3645 case $cross_compiling:$ac_tool_warned in 3646yes:) 3647{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3648whose name does not start with the host triplet. If you think this 3649configuration is useful to you, please write to autoconf@gnu.org." >&5 3650echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3651whose name does not start with the host triplet. If you think this 3652configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3653ac_tool_warned=yes ;; 3654esac 3655 RANLIB=$ac_ct_RANLIB 3656 fi 3657else 3658 RANLIB="$ac_cv_prog_RANLIB" 3659fi 3660 3661 3662 #-------------------------------------------------------------------- 3663 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3664 #-------------------------------------------------------------------- 3665 3666 3667 3668 3669 3670 3671{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3672echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3673if test "${ac_cv_path_GREP+set}" = set; then 3674 echo $ECHO_N "(cached) $ECHO_C" >&6 3675else 3676 # Extract the first word of "grep ggrep" to use in msg output 3677if test -z "$GREP"; then 3678set dummy grep ggrep; ac_prog_name=$2 3679if test "${ac_cv_path_GREP+set}" = set; then 3680 echo $ECHO_N "(cached) $ECHO_C" >&6 3681else 3682 ac_path_GREP_found=false 3683# Loop through the user's path and test for each of PROGNAME-LIST 3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3685for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3686do 3687 IFS=$as_save_IFS 3688 test -z "$as_dir" && as_dir=. 3689 for ac_prog in grep ggrep; do 3690 for ac_exec_ext in '' $ac_executable_extensions; do 3691 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3692 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3693 # Check for GNU ac_path_GREP and select it if it is found. 3694 # Check for GNU $ac_path_GREP 3695case `"$ac_path_GREP" --version 2>&1` in 3696*GNU*) 3697 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3698*) 3699 ac_count=0 3700 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3701 while : 3702 do 3703 cat "conftest.in" "conftest.in" >"conftest.tmp" 3704 mv "conftest.tmp" "conftest.in" 3705 cp "conftest.in" "conftest.nl" 3706 echo 'GREP' >> "conftest.nl" 3707 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3709 ac_count=`expr $ac_count + 1` 3710 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3711 # Best one so far, save it but keep looking for a better one 3712 ac_cv_path_GREP="$ac_path_GREP" 3713 ac_path_GREP_max=$ac_count 3714 fi 3715 # 10*(2^10) chars as input seems more than enough 3716 test $ac_count -gt 10 && break 3717 done 3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3719esac 3720 3721 3722 $ac_path_GREP_found && break 3 3723 done 3724done 3725 3726done 3727IFS=$as_save_IFS 3728 3729 3730fi 3731 3732GREP="$ac_cv_path_GREP" 3733if test -z "$GREP"; then 3734 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3735echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3736 { (exit 1); exit 1; }; } 3737fi 3738 3739else 3740 ac_cv_path_GREP=$GREP 3741fi 3742 3743 3744fi 3745{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3746echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3747 GREP="$ac_cv_path_GREP" 3748 3749 3750{ echo "$as_me:$LINENO: checking for egrep" >&5 3751echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3752if test "${ac_cv_path_EGREP+set}" = set; then 3753 echo $ECHO_N "(cached) $ECHO_C" >&6 3754else 3755 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3756 then ac_cv_path_EGREP="$GREP -E" 3757 else 3758 # Extract the first word of "egrep" to use in msg output 3759if test -z "$EGREP"; then 3760set dummy egrep; ac_prog_name=$2 3761if test "${ac_cv_path_EGREP+set}" = set; then 3762 echo $ECHO_N "(cached) $ECHO_C" >&6 3763else 3764 ac_path_EGREP_found=false 3765# Loop through the user's path and test for each of PROGNAME-LIST 3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3768do 3769 IFS=$as_save_IFS 3770 test -z "$as_dir" && as_dir=. 3771 for ac_prog in egrep; do 3772 for ac_exec_ext in '' $ac_executable_extensions; do 3773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3774 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3775 # Check for GNU ac_path_EGREP and select it if it is found. 3776 # Check for GNU $ac_path_EGREP 3777case `"$ac_path_EGREP" --version 2>&1` in 3778*GNU*) 3779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3780*) 3781 ac_count=0 3782 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3783 while : 3784 do 3785 cat "conftest.in" "conftest.in" >"conftest.tmp" 3786 mv "conftest.tmp" "conftest.in" 3787 cp "conftest.in" "conftest.nl" 3788 echo 'EGREP' >> "conftest.nl" 3789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3791 ac_count=`expr $ac_count + 1` 3792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3793 # Best one so far, save it but keep looking for a better one 3794 ac_cv_path_EGREP="$ac_path_EGREP" 3795 ac_path_EGREP_max=$ac_count 3796 fi 3797 # 10*(2^10) chars as input seems more than enough 3798 test $ac_count -gt 10 && break 3799 done 3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3801esac 3802 3803 3804 $ac_path_EGREP_found && break 3 3805 done 3806done 3807 3808done 3809IFS=$as_save_IFS 3810 3811 3812fi 3813 3814EGREP="$ac_cv_path_EGREP" 3815if test -z "$EGREP"; then 3816 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3817echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3818 { (exit 1); exit 1; }; } 3819fi 3820 3821else 3822 ac_cv_path_EGREP=$EGREP 3823fi 3824 3825 3826 fi 3827fi 3828{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3829echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3830 EGREP="$ac_cv_path_EGREP" 3831 3832 3833{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3834echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3835if test "${ac_cv_header_stdc+set}" = set; then 3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3837else 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844#include <stdlib.h> 3845#include <stdarg.h> 3846#include <string.h> 3847#include <float.h> 3848 3849int 3850main () 3851{ 3852 3853 ; 3854 return 0; 3855} 3856_ACEOF 3857rm -f conftest.$ac_objext 3858if { (ac_try="$ac_compile" 3859case "(($ac_try" in 3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3861 *) ac_try_echo=$ac_try;; 3862esac 3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3864 (eval "$ac_compile") 2>conftest.er1 3865 ac_status=$? 3866 grep -v '^ *+' conftest.er1 >conftest.err 3867 rm -f conftest.er1 3868 cat conftest.err >&5 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); } && { 3871 test -z "$ac_c_werror_flag" || 3872 test ! -s conftest.err 3873 } && test -s conftest.$ac_objext; then 3874 ac_cv_header_stdc=yes 3875else 3876 echo "$as_me: failed program was:" >&5 3877sed 's/^/| /' conftest.$ac_ext >&5 3878 3879 ac_cv_header_stdc=no 3880fi 3881 3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3883 3884if test $ac_cv_header_stdc = yes; then 3885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3886 cat >conftest.$ac_ext <<_ACEOF 3887/* confdefs.h. */ 3888_ACEOF 3889cat confdefs.h >>conftest.$ac_ext 3890cat >>conftest.$ac_ext <<_ACEOF 3891/* end confdefs.h. */ 3892#include <string.h> 3893 3894_ACEOF 3895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3896 $EGREP "memchr" >/dev/null 2>&1; then 3897 : 3898else 3899 ac_cv_header_stdc=no 3900fi 3901rm -f -r conftest* 3902 3903fi 3904 3905if test $ac_cv_header_stdc = yes; then 3906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3907 cat >conftest.$ac_ext <<_ACEOF 3908/* confdefs.h. */ 3909_ACEOF 3910cat confdefs.h >>conftest.$ac_ext 3911cat >>conftest.$ac_ext <<_ACEOF 3912/* end confdefs.h. */ 3913#include <stdlib.h> 3914 3915_ACEOF 3916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3917 $EGREP "free" >/dev/null 2>&1; then 3918 : 3919else 3920 ac_cv_header_stdc=no 3921fi 3922rm -f -r conftest* 3923 3924fi 3925 3926if test $ac_cv_header_stdc = yes; then 3927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3928 if test "$cross_compiling" = yes; then 3929 : 3930else 3931 cat >conftest.$ac_ext <<_ACEOF 3932/* confdefs.h. */ 3933_ACEOF 3934cat confdefs.h >>conftest.$ac_ext 3935cat >>conftest.$ac_ext <<_ACEOF 3936/* end confdefs.h. */ 3937#include <ctype.h> 3938#include <stdlib.h> 3939#if ((' ' & 0x0FF) == 0x020) 3940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3942#else 3943# define ISLOWER(c) \ 3944 (('a' <= (c) && (c) <= 'i') \ 3945 || ('j' <= (c) && (c) <= 'r') \ 3946 || ('s' <= (c) && (c) <= 'z')) 3947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3948#endif 3949 3950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3951int 3952main () 3953{ 3954 int i; 3955 for (i = 0; i < 256; i++) 3956 if (XOR (islower (i), ISLOWER (i)) 3957 || toupper (i) != TOUPPER (i)) 3958 return 2; 3959 return 0; 3960} 3961_ACEOF 3962rm -f conftest$ac_exeext 3963if { (ac_try="$ac_link" 3964case "(($ac_try" in 3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3966 *) ac_try_echo=$ac_try;; 3967esac 3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3969 (eval "$ac_link") 2>&5 3970 ac_status=$? 3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3973 { (case "(($ac_try" in 3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3975 *) ac_try_echo=$ac_try;; 3976esac 3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3978 (eval "$ac_try") 2>&5 3979 ac_status=$? 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); }; }; then 3982 : 3983else 3984 echo "$as_me: program exited with status $ac_status" >&5 3985echo "$as_me: failed program was:" >&5 3986sed 's/^/| /' conftest.$ac_ext >&5 3987 3988( exit $ac_status ) 3989ac_cv_header_stdc=no 3990fi 3991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3992fi 3993 3994 3995fi 3996fi 3997{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3998echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3999if test $ac_cv_header_stdc = yes; then 4000 4001cat >>confdefs.h <<\_ACEOF 4002#define STDC_HEADERS 1 4003_ACEOF 4004 4005fi 4006 4007# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4018 inttypes.h stdint.h unistd.h 4019do 4020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4021{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 cat >conftest.$ac_ext <<_ACEOF 4027/* confdefs.h. */ 4028_ACEOF 4029cat confdefs.h >>conftest.$ac_ext 4030cat >>conftest.$ac_ext <<_ACEOF 4031/* end confdefs.h. */ 4032$ac_includes_default 4033 4034#include <$ac_header> 4035_ACEOF 4036rm -f conftest.$ac_objext 4037if { (ac_try="$ac_compile" 4038case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4043 (eval "$ac_compile") 2>conftest.er1 4044 ac_status=$? 4045 grep -v '^ *+' conftest.er1 >conftest.err 4046 rm -f conftest.er1 4047 cat conftest.err >&5 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } && { 4050 test -z "$ac_c_werror_flag" || 4051 test ! -s conftest.err 4052 } && test -s conftest.$ac_objext; then 4053 eval "$as_ac_Header=yes" 4054else 4055 echo "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058 eval "$as_ac_Header=no" 4059fi 4060 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062fi 4063ac_res=`eval echo '${'$as_ac_Header'}'` 4064 { echo "$as_me:$LINENO: result: $ac_res" >&5 4065echo "${ECHO_T}$ac_res" >&6; } 4066if test `eval echo '${'$as_ac_Header'}'` = yes; then 4067 cat >>confdefs.h <<_ACEOF 4068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4069_ACEOF 4070 4071fi 4072 4073done 4074 4075 4076 4077 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4078 4079 4080 #------------------------------------------------------------------------ 4081 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4082 # It makes compiling go faster. (This is only a performance feature.) 4083 #------------------------------------------------------------------------ 4084 4085 if test -z "$no_pipe" -a -n "$GCC"; then 4086 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4087echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4088if test "${tcl_cv_cc_pipe+set}" = set; then 4089 echo $ECHO_N "(cached) $ECHO_C" >&6 4090else 4091 4092 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4093 cat >conftest.$ac_ext <<_ACEOF 4094/* confdefs.h. */ 4095_ACEOF 4096cat confdefs.h >>conftest.$ac_ext 4097cat >>conftest.$ac_ext <<_ACEOF 4098/* end confdefs.h. */ 4099 4100int 4101main () 4102{ 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108rm -f conftest.$ac_objext 4109if { (ac_try="$ac_compile" 4110case "(($ac_try" in 4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4112 *) ac_try_echo=$ac_try;; 4113esac 4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4115 (eval "$ac_compile") 2>conftest.er1 4116 ac_status=$? 4117 grep -v '^ *+' conftest.er1 >conftest.err 4118 rm -f conftest.er1 4119 cat conftest.err >&5 4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4121 (exit $ac_status); } && { 4122 test -z "$ac_c_werror_flag" || 4123 test ! -s conftest.err 4124 } && test -s conftest.$ac_objext; then 4125 tcl_cv_cc_pipe=yes 4126else 4127 echo "$as_me: failed program was:" >&5 4128sed 's/^/| /' conftest.$ac_ext >&5 4129 4130 tcl_cv_cc_pipe=no 4131fi 4132 4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4134 CFLAGS=$hold_cflags 4135fi 4136{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4137echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4138 if test $tcl_cv_cc_pipe = yes; then 4139 CFLAGS="$CFLAGS -pipe" 4140 fi 4141 fi 4142 4143 #-------------------------------------------------------------------- 4144 # Common compiler flag setup 4145 #-------------------------------------------------------------------- 4146 4147 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4148echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4149if test "${ac_cv_c_bigendian+set}" = set; then 4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4151else 4152 # See if sys/param.h defines the BYTE_ORDER macro. 4153cat >conftest.$ac_ext <<_ACEOF 4154/* confdefs.h. */ 4155_ACEOF 4156cat confdefs.h >>conftest.$ac_ext 4157cat >>conftest.$ac_ext <<_ACEOF 4158/* end confdefs.h. */ 4159#include <sys/types.h> 4160#include <sys/param.h> 4161 4162int 4163main () 4164{ 4165#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4166 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4167 bogus endian macros 4168#endif 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174rm -f conftest.$ac_objext 4175if { (ac_try="$ac_compile" 4176case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4181 (eval "$ac_compile") 2>conftest.er1 4182 ac_status=$? 4183 grep -v '^ *+' conftest.er1 >conftest.err 4184 rm -f conftest.er1 4185 cat conftest.err >&5 4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4187 (exit $ac_status); } && { 4188 test -z "$ac_c_werror_flag" || 4189 test ! -s conftest.err 4190 } && test -s conftest.$ac_objext; then 4191 # It does; now see whether it defined to BIG_ENDIAN or not. 4192cat >conftest.$ac_ext <<_ACEOF 4193/* confdefs.h. */ 4194_ACEOF 4195cat confdefs.h >>conftest.$ac_ext 4196cat >>conftest.$ac_ext <<_ACEOF 4197/* end confdefs.h. */ 4198#include <sys/types.h> 4199#include <sys/param.h> 4200 4201int 4202main () 4203{ 4204#if BYTE_ORDER != BIG_ENDIAN 4205 not big endian 4206#endif 4207 4208 ; 4209 return 0; 4210} 4211_ACEOF 4212rm -f conftest.$ac_objext 4213if { (ac_try="$ac_compile" 4214case "(($ac_try" in 4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4216 *) ac_try_echo=$ac_try;; 4217esac 4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4219 (eval "$ac_compile") 2>conftest.er1 4220 ac_status=$? 4221 grep -v '^ *+' conftest.er1 >conftest.err 4222 rm -f conftest.er1 4223 cat conftest.err >&5 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4225 (exit $ac_status); } && { 4226 test -z "$ac_c_werror_flag" || 4227 test ! -s conftest.err 4228 } && test -s conftest.$ac_objext; then 4229 ac_cv_c_bigendian=yes 4230else 4231 echo "$as_me: failed program was:" >&5 4232sed 's/^/| /' conftest.$ac_ext >&5 4233 4234 ac_cv_c_bigendian=no 4235fi 4236 4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4238else 4239 echo "$as_me: failed program was:" >&5 4240sed 's/^/| /' conftest.$ac_ext >&5 4241 4242 # It does not; compile a test program. 4243if test "$cross_compiling" = yes; then 4244 # try to guess the endianness by grepping values into an object file 4245 ac_cv_c_bigendian=unknown 4246 cat >conftest.$ac_ext <<_ACEOF 4247/* confdefs.h. */ 4248_ACEOF 4249cat confdefs.h >>conftest.$ac_ext 4250cat >>conftest.$ac_ext <<_ACEOF 4251/* end confdefs.h. */ 4252short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4253short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4254void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4255short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4256short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4257void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4258int 4259main () 4260{ 4261 _ascii (); _ebcdic (); 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266rm -f conftest.$ac_objext 4267if { (ac_try="$ac_compile" 4268case "(($ac_try" in 4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4270 *) ac_try_echo=$ac_try;; 4271esac 4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4273 (eval "$ac_compile") 2>conftest.er1 4274 ac_status=$? 4275 grep -v '^ *+' conftest.er1 >conftest.err 4276 rm -f conftest.er1 4277 cat conftest.err >&5 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); } && { 4280 test -z "$ac_c_werror_flag" || 4281 test ! -s conftest.err 4282 } && test -s conftest.$ac_objext; then 4283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4284 ac_cv_c_bigendian=yes 4285fi 4286if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4287 if test "$ac_cv_c_bigendian" = unknown; then 4288 ac_cv_c_bigendian=no 4289 else 4290 # finding both strings is unlikely to happen, but who knows? 4291 ac_cv_c_bigendian=unknown 4292 fi 4293fi 4294else 4295 echo "$as_me: failed program was:" >&5 4296sed 's/^/| /' conftest.$ac_ext >&5 4297 4298 4299fi 4300 4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4302else 4303 cat >conftest.$ac_ext <<_ACEOF 4304/* confdefs.h. */ 4305_ACEOF 4306cat confdefs.h >>conftest.$ac_ext 4307cat >>conftest.$ac_ext <<_ACEOF 4308/* end confdefs.h. */ 4309$ac_includes_default 4310int 4311main () 4312{ 4313 4314 /* Are we little or big endian? From Harbison&Steele. */ 4315 union 4316 { 4317 long int l; 4318 char c[sizeof (long int)]; 4319 } u; 4320 u.l = 1; 4321 return u.c[sizeof (long int) - 1] == 1; 4322 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327rm -f conftest$ac_exeext 4328if { (ac_try="$ac_link" 4329case "(($ac_try" in 4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4331 *) ac_try_echo=$ac_try;; 4332esac 4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4334 (eval "$ac_link") 2>&5 4335 ac_status=$? 4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4338 { (case "(($ac_try" in 4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4340 *) ac_try_echo=$ac_try;; 4341esac 4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4343 (eval "$ac_try") 2>&5 4344 ac_status=$? 4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4346 (exit $ac_status); }; }; then 4347 ac_cv_c_bigendian=no 4348else 4349 echo "$as_me: program exited with status $ac_status" >&5 4350echo "$as_me: failed program was:" >&5 4351sed 's/^/| /' conftest.$ac_ext >&5 4352 4353( exit $ac_status ) 4354ac_cv_c_bigendian=yes 4355fi 4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4357fi 4358 4359 4360fi 4361 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4363fi 4364{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4365echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4366case $ac_cv_c_bigendian in 4367 yes) 4368 4369cat >>confdefs.h <<\_ACEOF 4370#define WORDS_BIGENDIAN 1 4371_ACEOF 4372 ;; 4373 no) 4374 ;; 4375 *) 4376 { { echo "$as_me:$LINENO: error: unknown endianness 4377presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4378echo "$as_me: error: unknown endianness 4379presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4380 { (exit 1); exit 1; }; } ;; 4381esac 4382 4383 if test "${TEA_PLATFORM}" = "unix" ; then 4384 4385 #-------------------------------------------------------------------- 4386 # On a few very rare systems, all of the libm.a stuff is 4387 # already in libc.a. Set compiler flags accordingly. 4388 # Also, Linux requires the "ieee" library for math to work 4389 # right (and it must appear before "-lm"). 4390 #-------------------------------------------------------------------- 4391 4392 { echo "$as_me:$LINENO: checking for sin" >&5 4393echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4394if test "${ac_cv_func_sin+set}" = set; then 4395 echo $ECHO_N "(cached) $ECHO_C" >&6 4396else 4397 cat >conftest.$ac_ext <<_ACEOF 4398/* confdefs.h. */ 4399_ACEOF 4400cat confdefs.h >>conftest.$ac_ext 4401cat >>conftest.$ac_ext <<_ACEOF 4402/* end confdefs.h. */ 4403/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4404 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4405#define sin innocuous_sin 4406 4407/* System header to define __stub macros and hopefully few prototypes, 4408 which can conflict with char sin (); below. 4409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4410 <limits.h> exists even on freestanding compilers. */ 4411 4412#ifdef __STDC__ 4413# include <limits.h> 4414#else 4415# include <assert.h> 4416#endif 4417 4418#undef sin 4419 4420/* Override any GCC internal prototype to avoid an error. 4421 Use char because int might match the return type of a GCC 4422 builtin and then its argument prototype would still apply. */ 4423#ifdef __cplusplus 4424extern "C" 4425#endif 4426char sin (); 4427/* The GNU C library defines this for functions which it implements 4428 to always fail with ENOSYS. Some functions are actually named 4429 something starting with __ and the normal name is an alias. */ 4430#if defined __stub_sin || defined __stub___sin 4431choke me 4432#endif 4433 4434int 4435main () 4436{ 4437return sin (); 4438 ; 4439 return 0; 4440} 4441_ACEOF 4442rm -f conftest.$ac_objext conftest$ac_exeext 4443if { (ac_try="$ac_link" 4444case "(($ac_try" in 4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4446 *) ac_try_echo=$ac_try;; 4447esac 4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4449 (eval "$ac_link") 2>conftest.er1 4450 ac_status=$? 4451 grep -v '^ *+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } && { 4456 test -z "$ac_c_werror_flag" || 4457 test ! -s conftest.err 4458 } && test -s conftest$ac_exeext && 4459 $as_test_x conftest$ac_exeext; then 4460 ac_cv_func_sin=yes 4461else 4462 echo "$as_me: failed program was:" >&5 4463sed 's/^/| /' conftest.$ac_ext >&5 4464 4465 ac_cv_func_sin=no 4466fi 4467 4468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4469 conftest$ac_exeext conftest.$ac_ext 4470fi 4471{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4472echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4473if test $ac_cv_func_sin = yes; then 4474 MATH_LIBS="" 4475else 4476 MATH_LIBS="-lm" 4477fi 4478 4479 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4480echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4481if test "${ac_cv_lib_ieee_main+set}" = set; then 4482 echo $ECHO_N "(cached) $ECHO_C" >&6 4483else 4484 ac_check_lib_save_LIBS=$LIBS 4485LIBS="-lieee $LIBS" 4486cat >conftest.$ac_ext <<_ACEOF 4487/* confdefs.h. */ 4488_ACEOF 4489cat confdefs.h >>conftest.$ac_ext 4490cat >>conftest.$ac_ext <<_ACEOF 4491/* end confdefs.h. */ 4492 4493 4494int 4495main () 4496{ 4497return main (); 4498 ; 4499 return 0; 4500} 4501_ACEOF 4502rm -f conftest.$ac_objext conftest$ac_exeext 4503if { (ac_try="$ac_link" 4504case "(($ac_try" in 4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4506 *) ac_try_echo=$ac_try;; 4507esac 4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4509 (eval "$ac_link") 2>conftest.er1 4510 ac_status=$? 4511 grep -v '^ *+' conftest.er1 >conftest.err 4512 rm -f conftest.er1 4513 cat conftest.err >&5 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); } && { 4516 test -z "$ac_c_werror_flag" || 4517 test ! -s conftest.err 4518 } && test -s conftest$ac_exeext && 4519 $as_test_x conftest$ac_exeext; then 4520 ac_cv_lib_ieee_main=yes 4521else 4522 echo "$as_me: failed program was:" >&5 4523sed 's/^/| /' conftest.$ac_ext >&5 4524 4525 ac_cv_lib_ieee_main=no 4526fi 4527 4528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4529 conftest$ac_exeext conftest.$ac_ext 4530LIBS=$ac_check_lib_save_LIBS 4531fi 4532{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4533echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4534if test $ac_cv_lib_ieee_main = yes; then 4535 MATH_LIBS="-lieee $MATH_LIBS" 4536fi 4537 4538 4539 #-------------------------------------------------------------------- 4540 # Interactive UNIX requires -linet instead of -lsocket, plus it 4541 # needs net/errno.h to define the socket-related error codes. 4542 #-------------------------------------------------------------------- 4543 4544 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4545echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4546if test "${ac_cv_lib_inet_main+set}" = set; then 4547 echo $ECHO_N "(cached) $ECHO_C" >&6 4548else 4549 ac_check_lib_save_LIBS=$LIBS 4550LIBS="-linet $LIBS" 4551cat >conftest.$ac_ext <<_ACEOF 4552/* confdefs.h. */ 4553_ACEOF 4554cat confdefs.h >>conftest.$ac_ext 4555cat >>conftest.$ac_ext <<_ACEOF 4556/* end confdefs.h. */ 4557 4558 4559int 4560main () 4561{ 4562return main (); 4563 ; 4564 return 0; 4565} 4566_ACEOF 4567rm -f conftest.$ac_objext conftest$ac_exeext 4568if { (ac_try="$ac_link" 4569case "(($ac_try" in 4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4571 *) ac_try_echo=$ac_try;; 4572esac 4573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4574 (eval "$ac_link") 2>conftest.er1 4575 ac_status=$? 4576 grep -v '^ *+' conftest.er1 >conftest.err 4577 rm -f conftest.er1 4578 cat conftest.err >&5 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4580 (exit $ac_status); } && { 4581 test -z "$ac_c_werror_flag" || 4582 test ! -s conftest.err 4583 } && test -s conftest$ac_exeext && 4584 $as_test_x conftest$ac_exeext; then 4585 ac_cv_lib_inet_main=yes 4586else 4587 echo "$as_me: failed program was:" >&5 4588sed 's/^/| /' conftest.$ac_ext >&5 4589 4590 ac_cv_lib_inet_main=no 4591fi 4592 4593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4594 conftest$ac_exeext conftest.$ac_ext 4595LIBS=$ac_check_lib_save_LIBS 4596fi 4597{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4598echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4599if test $ac_cv_lib_inet_main = yes; then 4600 LIBS="$LIBS -linet" 4601fi 4602 4603 if test "${ac_cv_header_net_errno_h+set}" = set; then 4604 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4605echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4606if test "${ac_cv_header_net_errno_h+set}" = set; then 4607 echo $ECHO_N "(cached) $ECHO_C" >&6 4608fi 4609{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4610echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4611else 4612 # Is the header compilable? 4613{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4614echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4615cat >conftest.$ac_ext <<_ACEOF 4616/* confdefs.h. */ 4617_ACEOF 4618cat confdefs.h >>conftest.$ac_ext 4619cat >>conftest.$ac_ext <<_ACEOF 4620/* end confdefs.h. */ 4621$ac_includes_default 4622#include <net/errno.h> 4623_ACEOF 4624rm -f conftest.$ac_objext 4625if { (ac_try="$ac_compile" 4626case "(($ac_try" in 4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4628 *) ac_try_echo=$ac_try;; 4629esac 4630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4631 (eval "$ac_compile") 2>conftest.er1 4632 ac_status=$? 4633 grep -v '^ *+' conftest.er1 >conftest.err 4634 rm -f conftest.er1 4635 cat conftest.err >&5 4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637 (exit $ac_status); } && { 4638 test -z "$ac_c_werror_flag" || 4639 test ! -s conftest.err 4640 } && test -s conftest.$ac_objext; then 4641 ac_header_compiler=yes 4642else 4643 echo "$as_me: failed program was:" >&5 4644sed 's/^/| /' conftest.$ac_ext >&5 4645 4646 ac_header_compiler=no 4647fi 4648 4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4651echo "${ECHO_T}$ac_header_compiler" >&6; } 4652 4653# Is the header present? 4654{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4655echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4656cat >conftest.$ac_ext <<_ACEOF 4657/* confdefs.h. */ 4658_ACEOF 4659cat confdefs.h >>conftest.$ac_ext 4660cat >>conftest.$ac_ext <<_ACEOF 4661/* end confdefs.h. */ 4662#include <net/errno.h> 4663_ACEOF 4664if { (ac_try="$ac_cpp conftest.$ac_ext" 4665case "(($ac_try" in 4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4667 *) ac_try_echo=$ac_try;; 4668esac 4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4671 ac_status=$? 4672 grep -v '^ *+' conftest.er1 >conftest.err 4673 rm -f conftest.er1 4674 cat conftest.err >&5 4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4676 (exit $ac_status); } >/dev/null && { 4677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4678 test ! -s conftest.err 4679 }; then 4680 ac_header_preproc=yes 4681else 4682 echo "$as_me: failed program was:" >&5 4683sed 's/^/| /' conftest.$ac_ext >&5 4684 4685 ac_header_preproc=no 4686fi 4687 4688rm -f conftest.err conftest.$ac_ext 4689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4690echo "${ECHO_T}$ac_header_preproc" >&6; } 4691 4692# So? What about this header? 4693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4694 yes:no: ) 4695 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4696echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4697 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4698echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4699 ac_header_preproc=yes 4700 ;; 4701 no:yes:* ) 4702 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4703echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4704 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4705echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4706 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4707echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4708 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4709echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4710 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4711echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4712 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4713echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4714 4715 ;; 4716esac 4717{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4718echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4719if test "${ac_cv_header_net_errno_h+set}" = set; then 4720 echo $ECHO_N "(cached) $ECHO_C" >&6 4721else 4722 ac_cv_header_net_errno_h=$ac_header_preproc 4723fi 4724{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4725echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4726 4727fi 4728if test $ac_cv_header_net_errno_h = yes; then 4729 4730 4731cat >>confdefs.h <<\_ACEOF 4732#define HAVE_NET_ERRNO_H 1 4733_ACEOF 4734 4735fi 4736 4737 4738 4739 #-------------------------------------------------------------------- 4740 # Check for the existence of the -lsocket and -lnsl libraries. 4741 # The order here is important, so that they end up in the right 4742 # order in the command line generated by make. Here are some 4743 # special considerations: 4744 # 1. Use "connect" and "accept" to check for -lsocket, and 4745 # "gethostbyname" to check for -lnsl. 4746 # 2. Use each function name only once: can't redo a check because 4747 # autoconf caches the results of the last check and won't redo it. 4748 # 3. Use -lnsl and -lsocket only if they supply procedures that 4749 # aren't already present in the normal libraries. This is because 4750 # IRIX 5.2 has libraries, but they aren't needed and they're 4751 # bogus: they goof up name resolution if used. 4752 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4753 # To get around this problem, check for both libraries together 4754 # if -lsocket doesn't work by itself. 4755 #-------------------------------------------------------------------- 4756 4757 tcl_checkBoth=0 4758 { echo "$as_me:$LINENO: checking for connect" >&5 4759echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4760if test "${ac_cv_func_connect+set}" = set; then 4761 echo $ECHO_N "(cached) $ECHO_C" >&6 4762else 4763 cat >conftest.$ac_ext <<_ACEOF 4764/* confdefs.h. */ 4765_ACEOF 4766cat confdefs.h >>conftest.$ac_ext 4767cat >>conftest.$ac_ext <<_ACEOF 4768/* end confdefs.h. */ 4769/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4770 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4771#define connect innocuous_connect 4772 4773/* System header to define __stub macros and hopefully few prototypes, 4774 which can conflict with char connect (); below. 4775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4776 <limits.h> exists even on freestanding compilers. */ 4777 4778#ifdef __STDC__ 4779# include <limits.h> 4780#else 4781# include <assert.h> 4782#endif 4783 4784#undef connect 4785 4786/* Override any GCC internal prototype to avoid an error. 4787 Use char because int might match the return type of a GCC 4788 builtin and then its argument prototype would still apply. */ 4789#ifdef __cplusplus 4790extern "C" 4791#endif 4792char connect (); 4793/* The GNU C library defines this for functions which it implements 4794 to always fail with ENOSYS. Some functions are actually named 4795 something starting with __ and the normal name is an alias. */ 4796#if defined __stub_connect || defined __stub___connect 4797choke me 4798#endif 4799 4800int 4801main () 4802{ 4803return connect (); 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808rm -f conftest.$ac_objext conftest$ac_exeext 4809if { (ac_try="$ac_link" 4810case "(($ac_try" in 4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4812 *) ac_try_echo=$ac_try;; 4813esac 4814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4815 (eval "$ac_link") 2>conftest.er1 4816 ac_status=$? 4817 grep -v '^ *+' conftest.er1 >conftest.err 4818 rm -f conftest.er1 4819 cat conftest.err >&5 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); } && { 4822 test -z "$ac_c_werror_flag" || 4823 test ! -s conftest.err 4824 } && test -s conftest$ac_exeext && 4825 $as_test_x conftest$ac_exeext; then 4826 ac_cv_func_connect=yes 4827else 4828 echo "$as_me: failed program was:" >&5 4829sed 's/^/| /' conftest.$ac_ext >&5 4830 4831 ac_cv_func_connect=no 4832fi 4833 4834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4835 conftest$ac_exeext conftest.$ac_ext 4836fi 4837{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4838echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4839if test $ac_cv_func_connect = yes; then 4840 tcl_checkSocket=0 4841else 4842 tcl_checkSocket=1 4843fi 4844 4845 if test "$tcl_checkSocket" = 1; then 4846 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4847echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4848if test "${ac_cv_func_setsockopt+set}" = set; then 4849 echo $ECHO_N "(cached) $ECHO_C" >&6 4850else 4851 cat >conftest.$ac_ext <<_ACEOF 4852/* confdefs.h. */ 4853_ACEOF 4854cat confdefs.h >>conftest.$ac_ext 4855cat >>conftest.$ac_ext <<_ACEOF 4856/* end confdefs.h. */ 4857/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4858 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4859#define setsockopt innocuous_setsockopt 4860 4861/* System header to define __stub macros and hopefully few prototypes, 4862 which can conflict with char setsockopt (); below. 4863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4864 <limits.h> exists even on freestanding compilers. */ 4865 4866#ifdef __STDC__ 4867# include <limits.h> 4868#else 4869# include <assert.h> 4870#endif 4871 4872#undef setsockopt 4873 4874/* Override any GCC internal prototype to avoid an error. 4875 Use char because int might match the return type of a GCC 4876 builtin and then its argument prototype would still apply. */ 4877#ifdef __cplusplus 4878extern "C" 4879#endif 4880char setsockopt (); 4881/* The GNU C library defines this for functions which it implements 4882 to always fail with ENOSYS. Some functions are actually named 4883 something starting with __ and the normal name is an alias. */ 4884#if defined __stub_setsockopt || defined __stub___setsockopt 4885choke me 4886#endif 4887 4888int 4889main () 4890{ 4891return setsockopt (); 4892 ; 4893 return 0; 4894} 4895_ACEOF 4896rm -f conftest.$ac_objext conftest$ac_exeext 4897if { (ac_try="$ac_link" 4898case "(($ac_try" in 4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4900 *) ac_try_echo=$ac_try;; 4901esac 4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4903 (eval "$ac_link") 2>conftest.er1 4904 ac_status=$? 4905 grep -v '^ *+' conftest.er1 >conftest.err 4906 rm -f conftest.er1 4907 cat conftest.err >&5 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4909 (exit $ac_status); } && { 4910 test -z "$ac_c_werror_flag" || 4911 test ! -s conftest.err 4912 } && test -s conftest$ac_exeext && 4913 $as_test_x conftest$ac_exeext; then 4914 ac_cv_func_setsockopt=yes 4915else 4916 echo "$as_me: failed program was:" >&5 4917sed 's/^/| /' conftest.$ac_ext >&5 4918 4919 ac_cv_func_setsockopt=no 4920fi 4921 4922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4923 conftest$ac_exeext conftest.$ac_ext 4924fi 4925{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4926echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4927if test $ac_cv_func_setsockopt = yes; then 4928 : 4929else 4930 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4931echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4932if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4933 echo $ECHO_N "(cached) $ECHO_C" >&6 4934else 4935 ac_check_lib_save_LIBS=$LIBS 4936LIBS="-lsocket $LIBS" 4937cat >conftest.$ac_ext <<_ACEOF 4938/* confdefs.h. */ 4939_ACEOF 4940cat confdefs.h >>conftest.$ac_ext 4941cat >>conftest.$ac_ext <<_ACEOF 4942/* end confdefs.h. */ 4943 4944/* Override any GCC internal prototype to avoid an error. 4945 Use char because int might match the return type of a GCC 4946 builtin and then its argument prototype would still apply. */ 4947#ifdef __cplusplus 4948extern "C" 4949#endif 4950char setsockopt (); 4951int 4952main () 4953{ 4954return setsockopt (); 4955 ; 4956 return 0; 4957} 4958_ACEOF 4959rm -f conftest.$ac_objext conftest$ac_exeext 4960if { (ac_try="$ac_link" 4961case "(($ac_try" in 4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4963 *) ac_try_echo=$ac_try;; 4964esac 4965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4966 (eval "$ac_link") 2>conftest.er1 4967 ac_status=$? 4968 grep -v '^ *+' conftest.er1 >conftest.err 4969 rm -f conftest.er1 4970 cat conftest.err >&5 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); } && { 4973 test -z "$ac_c_werror_flag" || 4974 test ! -s conftest.err 4975 } && test -s conftest$ac_exeext && 4976 $as_test_x conftest$ac_exeext; then 4977 ac_cv_lib_socket_setsockopt=yes 4978else 4979 echo "$as_me: failed program was:" >&5 4980sed 's/^/| /' conftest.$ac_ext >&5 4981 4982 ac_cv_lib_socket_setsockopt=no 4983fi 4984 4985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4986 conftest$ac_exeext conftest.$ac_ext 4987LIBS=$ac_check_lib_save_LIBS 4988fi 4989{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4990echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4991if test $ac_cv_lib_socket_setsockopt = yes; then 4992 LIBS="$LIBS -lsocket" 4993else 4994 tcl_checkBoth=1 4995fi 4996 4997fi 4998 4999 fi 5000 if test "$tcl_checkBoth" = 1; then 5001 tk_oldLibs=$LIBS 5002 LIBS="$LIBS -lsocket -lnsl" 5003 { echo "$as_me:$LINENO: checking for accept" >&5 5004echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5005if test "${ac_cv_func_accept+set}" = set; then 5006 echo $ECHO_N "(cached) $ECHO_C" >&6 5007else 5008 cat >conftest.$ac_ext <<_ACEOF 5009/* confdefs.h. */ 5010_ACEOF 5011cat confdefs.h >>conftest.$ac_ext 5012cat >>conftest.$ac_ext <<_ACEOF 5013/* end confdefs.h. */ 5014/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5015 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5016#define accept innocuous_accept 5017 5018/* System header to define __stub macros and hopefully few prototypes, 5019 which can conflict with char accept (); below. 5020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5021 <limits.h> exists even on freestanding compilers. */ 5022 5023#ifdef __STDC__ 5024# include <limits.h> 5025#else 5026# include <assert.h> 5027#endif 5028 5029#undef accept 5030 5031/* Override any GCC internal prototype to avoid an error. 5032 Use char because int might match the return type of a GCC 5033 builtin and then its argument prototype would still apply. */ 5034#ifdef __cplusplus 5035extern "C" 5036#endif 5037char accept (); 5038/* The GNU C library defines this for functions which it implements 5039 to always fail with ENOSYS. Some functions are actually named 5040 something starting with __ and the normal name is an alias. */ 5041#if defined __stub_accept || defined __stub___accept 5042choke me 5043#endif 5044 5045int 5046main () 5047{ 5048return accept (); 5049 ; 5050 return 0; 5051} 5052_ACEOF 5053rm -f conftest.$ac_objext conftest$ac_exeext 5054if { (ac_try="$ac_link" 5055case "(($ac_try" in 5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5057 *) ac_try_echo=$ac_try;; 5058esac 5059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5060 (eval "$ac_link") 2>conftest.er1 5061 ac_status=$? 5062 grep -v '^ *+' conftest.er1 >conftest.err 5063 rm -f conftest.er1 5064 cat conftest.err >&5 5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5066 (exit $ac_status); } && { 5067 test -z "$ac_c_werror_flag" || 5068 test ! -s conftest.err 5069 } && test -s conftest$ac_exeext && 5070 $as_test_x conftest$ac_exeext; then 5071 ac_cv_func_accept=yes 5072else 5073 echo "$as_me: failed program was:" >&5 5074sed 's/^/| /' conftest.$ac_ext >&5 5075 5076 ac_cv_func_accept=no 5077fi 5078 5079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5080 conftest$ac_exeext conftest.$ac_ext 5081fi 5082{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5083echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5084if test $ac_cv_func_accept = yes; then 5085 tcl_checkNsl=0 5086else 5087 LIBS=$tk_oldLibs 5088fi 5089 5090 fi 5091 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5092echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5093if test "${ac_cv_func_gethostbyname+set}" = set; then 5094 echo $ECHO_N "(cached) $ECHO_C" >&6 5095else 5096 cat >conftest.$ac_ext <<_ACEOF 5097/* confdefs.h. */ 5098_ACEOF 5099cat confdefs.h >>conftest.$ac_ext 5100cat >>conftest.$ac_ext <<_ACEOF 5101/* end confdefs.h. */ 5102/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5103 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5104#define gethostbyname innocuous_gethostbyname 5105 5106/* System header to define __stub macros and hopefully few prototypes, 5107 which can conflict with char gethostbyname (); below. 5108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5109 <limits.h> exists even on freestanding compilers. */ 5110 5111#ifdef __STDC__ 5112# include <limits.h> 5113#else 5114# include <assert.h> 5115#endif 5116 5117#undef gethostbyname 5118 5119/* Override any GCC internal prototype to avoid an error. 5120 Use char because int might match the return type of a GCC 5121 builtin and then its argument prototype would still apply. */ 5122#ifdef __cplusplus 5123extern "C" 5124#endif 5125char gethostbyname (); 5126/* The GNU C library defines this for functions which it implements 5127 to always fail with ENOSYS. Some functions are actually named 5128 something starting with __ and the normal name is an alias. */ 5129#if defined __stub_gethostbyname || defined __stub___gethostbyname 5130choke me 5131#endif 5132 5133int 5134main () 5135{ 5136return gethostbyname (); 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141rm -f conftest.$ac_objext conftest$ac_exeext 5142if { (ac_try="$ac_link" 5143case "(($ac_try" in 5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5145 *) ac_try_echo=$ac_try;; 5146esac 5147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5148 (eval "$ac_link") 2>conftest.er1 5149 ac_status=$? 5150 grep -v '^ *+' conftest.er1 >conftest.err 5151 rm -f conftest.er1 5152 cat conftest.err >&5 5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5154 (exit $ac_status); } && { 5155 test -z "$ac_c_werror_flag" || 5156 test ! -s conftest.err 5157 } && test -s conftest$ac_exeext && 5158 $as_test_x conftest$ac_exeext; then 5159 ac_cv_func_gethostbyname=yes 5160else 5161 echo "$as_me: failed program was:" >&5 5162sed 's/^/| /' conftest.$ac_ext >&5 5163 5164 ac_cv_func_gethostbyname=no 5165fi 5166 5167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5168 conftest$ac_exeext conftest.$ac_ext 5169fi 5170{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5171echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5172if test $ac_cv_func_gethostbyname = yes; then 5173 : 5174else 5175 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5176echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5177if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5178 echo $ECHO_N "(cached) $ECHO_C" >&6 5179else 5180 ac_check_lib_save_LIBS=$LIBS 5181LIBS="-lnsl $LIBS" 5182cat >conftest.$ac_ext <<_ACEOF 5183/* confdefs.h. */ 5184_ACEOF 5185cat confdefs.h >>conftest.$ac_ext 5186cat >>conftest.$ac_ext <<_ACEOF 5187/* end confdefs.h. */ 5188 5189/* Override any GCC internal prototype to avoid an error. 5190 Use char because int might match the return type of a GCC 5191 builtin and then its argument prototype would still apply. */ 5192#ifdef __cplusplus 5193extern "C" 5194#endif 5195char gethostbyname (); 5196int 5197main () 5198{ 5199return gethostbyname (); 5200 ; 5201 return 0; 5202} 5203_ACEOF 5204rm -f conftest.$ac_objext conftest$ac_exeext 5205if { (ac_try="$ac_link" 5206case "(($ac_try" in 5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5208 *) ac_try_echo=$ac_try;; 5209esac 5210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5211 (eval "$ac_link") 2>conftest.er1 5212 ac_status=$? 5213 grep -v '^ *+' conftest.er1 >conftest.err 5214 rm -f conftest.er1 5215 cat conftest.err >&5 5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5217 (exit $ac_status); } && { 5218 test -z "$ac_c_werror_flag" || 5219 test ! -s conftest.err 5220 } && test -s conftest$ac_exeext && 5221 $as_test_x conftest$ac_exeext; then 5222 ac_cv_lib_nsl_gethostbyname=yes 5223else 5224 echo "$as_me: failed program was:" >&5 5225sed 's/^/| /' conftest.$ac_ext >&5 5226 5227 ac_cv_lib_nsl_gethostbyname=no 5228fi 5229 5230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5231 conftest$ac_exeext conftest.$ac_ext 5232LIBS=$ac_check_lib_save_LIBS 5233fi 5234{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5235echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5236if test $ac_cv_lib_nsl_gethostbyname = yes; then 5237 LIBS="$LIBS -lnsl" 5238fi 5239 5240fi 5241 5242 5243 # TEA specific: Don't perform the eval of the libraries here because 5244 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5245 5246 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5247 5248 5249 5250 5251 { echo "$as_me:$LINENO: checking dirent.h" >&5 5252echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5253if test "${tcl_cv_dirent_h+set}" = set; then 5254 echo $ECHO_N "(cached) $ECHO_C" >&6 5255else 5256 5257 cat >conftest.$ac_ext <<_ACEOF 5258/* confdefs.h. */ 5259_ACEOF 5260cat confdefs.h >>conftest.$ac_ext 5261cat >>conftest.$ac_ext <<_ACEOF 5262/* end confdefs.h. */ 5263#include <sys/types.h> 5264#include <dirent.h> 5265int 5266main () 5267{ 5268 5269#ifndef _POSIX_SOURCE 5270# ifdef __Lynx__ 5271 /* 5272 * Generate compilation error to make the test fail: Lynx headers 5273 * are only valid if really in the POSIX environment. 5274 */ 5275 5276 missing_procedure(); 5277# endif 5278#endif 5279DIR *d; 5280struct dirent *entryPtr; 5281char *p; 5282d = opendir("foobar"); 5283entryPtr = readdir(d); 5284p = entryPtr->d_name; 5285closedir(d); 5286 5287 ; 5288 return 0; 5289} 5290_ACEOF 5291rm -f conftest.$ac_objext conftest$ac_exeext 5292if { (ac_try="$ac_link" 5293case "(($ac_try" in 5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5295 *) ac_try_echo=$ac_try;; 5296esac 5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5298 (eval "$ac_link") 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } && { 5305 test -z "$ac_c_werror_flag" || 5306 test ! -s conftest.err 5307 } && test -s conftest$ac_exeext && 5308 $as_test_x conftest$ac_exeext; then 5309 tcl_cv_dirent_h=yes 5310else 5311 echo "$as_me: failed program was:" >&5 5312sed 's/^/| /' conftest.$ac_ext >&5 5313 5314 tcl_cv_dirent_h=no 5315fi 5316 5317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5318 conftest$ac_exeext conftest.$ac_ext 5319fi 5320{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5321echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5322 5323 if test $tcl_cv_dirent_h = no; then 5324 5325cat >>confdefs.h <<\_ACEOF 5326#define NO_DIRENT_H 1 5327_ACEOF 5328 5329 fi 5330 5331 # TEA specific: 5332 if test "${ac_cv_header_errno_h+set}" = set; then 5333 { echo "$as_me:$LINENO: checking for errno.h" >&5 5334echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5335if test "${ac_cv_header_errno_h+set}" = set; then 5336 echo $ECHO_N "(cached) $ECHO_C" >&6 5337fi 5338{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5339echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5340else 5341 # Is the header compilable? 5342{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5343echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5344cat >conftest.$ac_ext <<_ACEOF 5345/* confdefs.h. */ 5346_ACEOF 5347cat confdefs.h >>conftest.$ac_ext 5348cat >>conftest.$ac_ext <<_ACEOF 5349/* end confdefs.h. */ 5350$ac_includes_default 5351#include <errno.h> 5352_ACEOF 5353rm -f conftest.$ac_objext 5354if { (ac_try="$ac_compile" 5355case "(($ac_try" in 5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5357 *) ac_try_echo=$ac_try;; 5358esac 5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5360 (eval "$ac_compile") 2>conftest.er1 5361 ac_status=$? 5362 grep -v '^ *+' conftest.er1 >conftest.err 5363 rm -f conftest.er1 5364 cat conftest.err >&5 5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); } && { 5367 test -z "$ac_c_werror_flag" || 5368 test ! -s conftest.err 5369 } && test -s conftest.$ac_objext; then 5370 ac_header_compiler=yes 5371else 5372 echo "$as_me: failed program was:" >&5 5373sed 's/^/| /' conftest.$ac_ext >&5 5374 5375 ac_header_compiler=no 5376fi 5377 5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5380echo "${ECHO_T}$ac_header_compiler" >&6; } 5381 5382# Is the header present? 5383{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5384echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5385cat >conftest.$ac_ext <<_ACEOF 5386/* confdefs.h. */ 5387_ACEOF 5388cat confdefs.h >>conftest.$ac_ext 5389cat >>conftest.$ac_ext <<_ACEOF 5390/* end confdefs.h. */ 5391#include <errno.h> 5392_ACEOF 5393if { (ac_try="$ac_cpp conftest.$ac_ext" 5394case "(($ac_try" in 5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5396 *) ac_try_echo=$ac_try;; 5397esac 5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5400 ac_status=$? 5401 grep -v '^ *+' conftest.er1 >conftest.err 5402 rm -f conftest.er1 5403 cat conftest.err >&5 5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5405 (exit $ac_status); } >/dev/null && { 5406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5407 test ! -s conftest.err 5408 }; then 5409 ac_header_preproc=yes 5410else 5411 echo "$as_me: failed program was:" >&5 5412sed 's/^/| /' conftest.$ac_ext >&5 5413 5414 ac_header_preproc=no 5415fi 5416 5417rm -f conftest.err conftest.$ac_ext 5418{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5419echo "${ECHO_T}$ac_header_preproc" >&6; } 5420 5421# So? What about this header? 5422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5423 yes:no: ) 5424 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5425echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5426 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5427echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5428 ac_header_preproc=yes 5429 ;; 5430 no:yes:* ) 5431 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5432echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5433 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5434echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5435 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5436echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5437 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5438echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5439 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5440echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5441 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5442echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5443 5444 ;; 5445esac 5446{ echo "$as_me:$LINENO: checking for errno.h" >&5 5447echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5448if test "${ac_cv_header_errno_h+set}" = set; then 5449 echo $ECHO_N "(cached) $ECHO_C" >&6 5450else 5451 ac_cv_header_errno_h=$ac_header_preproc 5452fi 5453{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5454echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5455 5456fi 5457if test $ac_cv_header_errno_h = yes; then 5458 : 5459else 5460 5461cat >>confdefs.h <<\_ACEOF 5462#define NO_ERRNO_H 1 5463_ACEOF 5464 5465fi 5466 5467 5468 if test "${ac_cv_header_float_h+set}" = set; then 5469 { echo "$as_me:$LINENO: checking for float.h" >&5 5470echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5471if test "${ac_cv_header_float_h+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 5473fi 5474{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5475echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5476else 5477 # Is the header compilable? 5478{ echo "$as_me:$LINENO: checking float.h usability" >&5 5479echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5480cat >conftest.$ac_ext <<_ACEOF 5481/* confdefs.h. */ 5482_ACEOF 5483cat confdefs.h >>conftest.$ac_ext 5484cat >>conftest.$ac_ext <<_ACEOF 5485/* end confdefs.h. */ 5486$ac_includes_default 5487#include <float.h> 5488_ACEOF 5489rm -f conftest.$ac_objext 5490if { (ac_try="$ac_compile" 5491case "(($ac_try" in 5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5493 *) ac_try_echo=$ac_try;; 5494esac 5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5496 (eval "$ac_compile") 2>conftest.er1 5497 ac_status=$? 5498 grep -v '^ *+' conftest.er1 >conftest.err 5499 rm -f conftest.er1 5500 cat conftest.err >&5 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); } && { 5503 test -z "$ac_c_werror_flag" || 5504 test ! -s conftest.err 5505 } && test -s conftest.$ac_objext; then 5506 ac_header_compiler=yes 5507else 5508 echo "$as_me: failed program was:" >&5 5509sed 's/^/| /' conftest.$ac_ext >&5 5510 5511 ac_header_compiler=no 5512fi 5513 5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5516echo "${ECHO_T}$ac_header_compiler" >&6; } 5517 5518# Is the header present? 5519{ echo "$as_me:$LINENO: checking float.h presence" >&5 5520echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5521cat >conftest.$ac_ext <<_ACEOF 5522/* confdefs.h. */ 5523_ACEOF 5524cat confdefs.h >>conftest.$ac_ext 5525cat >>conftest.$ac_ext <<_ACEOF 5526/* end confdefs.h. */ 5527#include <float.h> 5528_ACEOF 5529if { (ac_try="$ac_cpp conftest.$ac_ext" 5530case "(($ac_try" in 5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5532 *) ac_try_echo=$ac_try;; 5533esac 5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5536 ac_status=$? 5537 grep -v '^ *+' conftest.er1 >conftest.err 5538 rm -f conftest.er1 5539 cat conftest.err >&5 5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5541 (exit $ac_status); } >/dev/null && { 5542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5543 test ! -s conftest.err 5544 }; then 5545 ac_header_preproc=yes 5546else 5547 echo "$as_me: failed program was:" >&5 5548sed 's/^/| /' conftest.$ac_ext >&5 5549 5550 ac_header_preproc=no 5551fi 5552 5553rm -f conftest.err conftest.$ac_ext 5554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5555echo "${ECHO_T}$ac_header_preproc" >&6; } 5556 5557# So? What about this header? 5558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5559 yes:no: ) 5560 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5561echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5562 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5563echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5564 ac_header_preproc=yes 5565 ;; 5566 no:yes:* ) 5567 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5568echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5569 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5570echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5571 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5572echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5573 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5574echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5575 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5576echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5577 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5578echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5579 5580 ;; 5581esac 5582{ echo "$as_me:$LINENO: checking for float.h" >&5 5583echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5584if test "${ac_cv_header_float_h+set}" = set; then 5585 echo $ECHO_N "(cached) $ECHO_C" >&6 5586else 5587 ac_cv_header_float_h=$ac_header_preproc 5588fi 5589{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5590echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5591 5592fi 5593if test $ac_cv_header_float_h = yes; then 5594 : 5595else 5596 5597cat >>confdefs.h <<\_ACEOF 5598#define NO_FLOAT_H 1 5599_ACEOF 5600 5601fi 5602 5603 5604 if test "${ac_cv_header_values_h+set}" = set; then 5605 { echo "$as_me:$LINENO: checking for values.h" >&5 5606echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5607if test "${ac_cv_header_values_h+set}" = set; then 5608 echo $ECHO_N "(cached) $ECHO_C" >&6 5609fi 5610{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5611echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5612else 5613 # Is the header compilable? 5614{ echo "$as_me:$LINENO: checking values.h usability" >&5 5615echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5616cat >conftest.$ac_ext <<_ACEOF 5617/* confdefs.h. */ 5618_ACEOF 5619cat confdefs.h >>conftest.$ac_ext 5620cat >>conftest.$ac_ext <<_ACEOF 5621/* end confdefs.h. */ 5622$ac_includes_default 5623#include <values.h> 5624_ACEOF 5625rm -f conftest.$ac_objext 5626if { (ac_try="$ac_compile" 5627case "(($ac_try" in 5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5629 *) ac_try_echo=$ac_try;; 5630esac 5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5632 (eval "$ac_compile") 2>conftest.er1 5633 ac_status=$? 5634 grep -v '^ *+' conftest.er1 >conftest.err 5635 rm -f conftest.er1 5636 cat conftest.err >&5 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 (exit $ac_status); } && { 5639 test -z "$ac_c_werror_flag" || 5640 test ! -s conftest.err 5641 } && test -s conftest.$ac_objext; then 5642 ac_header_compiler=yes 5643else 5644 echo "$as_me: failed program was:" >&5 5645sed 's/^/| /' conftest.$ac_ext >&5 5646 5647 ac_header_compiler=no 5648fi 5649 5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5652echo "${ECHO_T}$ac_header_compiler" >&6; } 5653 5654# Is the header present? 5655{ echo "$as_me:$LINENO: checking values.h presence" >&5 5656echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5657cat >conftest.$ac_ext <<_ACEOF 5658/* confdefs.h. */ 5659_ACEOF 5660cat confdefs.h >>conftest.$ac_ext 5661cat >>conftest.$ac_ext <<_ACEOF 5662/* end confdefs.h. */ 5663#include <values.h> 5664_ACEOF 5665if { (ac_try="$ac_cpp conftest.$ac_ext" 5666case "(($ac_try" in 5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5668 *) ac_try_echo=$ac_try;; 5669esac 5670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5672 ac_status=$? 5673 grep -v '^ *+' conftest.er1 >conftest.err 5674 rm -f conftest.er1 5675 cat conftest.err >&5 5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5677 (exit $ac_status); } >/dev/null && { 5678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5679 test ! -s conftest.err 5680 }; then 5681 ac_header_preproc=yes 5682else 5683 echo "$as_me: failed program was:" >&5 5684sed 's/^/| /' conftest.$ac_ext >&5 5685 5686 ac_header_preproc=no 5687fi 5688 5689rm -f conftest.err conftest.$ac_ext 5690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5691echo "${ECHO_T}$ac_header_preproc" >&6; } 5692 5693# So? What about this header? 5694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5695 yes:no: ) 5696 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5697echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5698 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5699echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5700 ac_header_preproc=yes 5701 ;; 5702 no:yes:* ) 5703 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5704echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5705 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5706echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5707 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5708echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5709 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5710echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5711 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5712echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5713 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5714echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5715 5716 ;; 5717esac 5718{ echo "$as_me:$LINENO: checking for values.h" >&5 5719echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5720if test "${ac_cv_header_values_h+set}" = set; then 5721 echo $ECHO_N "(cached) $ECHO_C" >&6 5722else 5723 ac_cv_header_values_h=$ac_header_preproc 5724fi 5725{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5726echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5727 5728fi 5729if test $ac_cv_header_values_h = yes; then 5730 : 5731else 5732 5733cat >>confdefs.h <<\_ACEOF 5734#define NO_VALUES_H 1 5735_ACEOF 5736 5737fi 5738 5739 5740 if test "${ac_cv_header_limits_h+set}" = set; then 5741 { echo "$as_me:$LINENO: checking for limits.h" >&5 5742echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5743if test "${ac_cv_header_limits_h+set}" = set; then 5744 echo $ECHO_N "(cached) $ECHO_C" >&6 5745fi 5746{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5747echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5748else 5749 # Is the header compilable? 5750{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5751echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5752cat >conftest.$ac_ext <<_ACEOF 5753/* confdefs.h. */ 5754_ACEOF 5755cat confdefs.h >>conftest.$ac_ext 5756cat >>conftest.$ac_ext <<_ACEOF 5757/* end confdefs.h. */ 5758$ac_includes_default 5759#include <limits.h> 5760_ACEOF 5761rm -f conftest.$ac_objext 5762if { (ac_try="$ac_compile" 5763case "(($ac_try" in 5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5765 *) ac_try_echo=$ac_try;; 5766esac 5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5768 (eval "$ac_compile") 2>conftest.er1 5769 ac_status=$? 5770 grep -v '^ *+' conftest.er1 >conftest.err 5771 rm -f conftest.er1 5772 cat conftest.err >&5 5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5774 (exit $ac_status); } && { 5775 test -z "$ac_c_werror_flag" || 5776 test ! -s conftest.err 5777 } && test -s conftest.$ac_objext; then 5778 ac_header_compiler=yes 5779else 5780 echo "$as_me: failed program was:" >&5 5781sed 's/^/| /' conftest.$ac_ext >&5 5782 5783 ac_header_compiler=no 5784fi 5785 5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5788echo "${ECHO_T}$ac_header_compiler" >&6; } 5789 5790# Is the header present? 5791{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5792echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5793cat >conftest.$ac_ext <<_ACEOF 5794/* confdefs.h. */ 5795_ACEOF 5796cat confdefs.h >>conftest.$ac_ext 5797cat >>conftest.$ac_ext <<_ACEOF 5798/* end confdefs.h. */ 5799#include <limits.h> 5800_ACEOF 5801if { (ac_try="$ac_cpp conftest.$ac_ext" 5802case "(($ac_try" in 5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5804 *) ac_try_echo=$ac_try;; 5805esac 5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5808 ac_status=$? 5809 grep -v '^ *+' conftest.er1 >conftest.err 5810 rm -f conftest.er1 5811 cat conftest.err >&5 5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5813 (exit $ac_status); } >/dev/null && { 5814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5815 test ! -s conftest.err 5816 }; then 5817 ac_header_preproc=yes 5818else 5819 echo "$as_me: failed program was:" >&5 5820sed 's/^/| /' conftest.$ac_ext >&5 5821 5822 ac_header_preproc=no 5823fi 5824 5825rm -f conftest.err conftest.$ac_ext 5826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5827echo "${ECHO_T}$ac_header_preproc" >&6; } 5828 5829# So? What about this header? 5830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5831 yes:no: ) 5832 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5833echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5834 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5835echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5836 ac_header_preproc=yes 5837 ;; 5838 no:yes:* ) 5839 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5840echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5841 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5842echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5843 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5844echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5845 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5846echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5847 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5848echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5849 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5850echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5851 5852 ;; 5853esac 5854{ echo "$as_me:$LINENO: checking for limits.h" >&5 5855echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5856if test "${ac_cv_header_limits_h+set}" = set; then 5857 echo $ECHO_N "(cached) $ECHO_C" >&6 5858else 5859 ac_cv_header_limits_h=$ac_header_preproc 5860fi 5861{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5862echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5863 5864fi 5865if test $ac_cv_header_limits_h = yes; then 5866 5867cat >>confdefs.h <<\_ACEOF 5868#define HAVE_LIMITS_H 1 5869_ACEOF 5870 5871else 5872 5873cat >>confdefs.h <<\_ACEOF 5874#define NO_LIMITS_H 1 5875_ACEOF 5876 5877fi 5878 5879 5880 if test "${ac_cv_header_stdlib_h+set}" = set; then 5881 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5882echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5883if test "${ac_cv_header_stdlib_h+set}" = set; then 5884 echo $ECHO_N "(cached) $ECHO_C" >&6 5885fi 5886{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5887echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5888else 5889 # Is the header compilable? 5890{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5891echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5892cat >conftest.$ac_ext <<_ACEOF 5893/* confdefs.h. */ 5894_ACEOF 5895cat confdefs.h >>conftest.$ac_ext 5896cat >>conftest.$ac_ext <<_ACEOF 5897/* end confdefs.h. */ 5898$ac_includes_default 5899#include <stdlib.h> 5900_ACEOF 5901rm -f conftest.$ac_objext 5902if { (ac_try="$ac_compile" 5903case "(($ac_try" in 5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5905 *) ac_try_echo=$ac_try;; 5906esac 5907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5908 (eval "$ac_compile") 2>conftest.er1 5909 ac_status=$? 5910 grep -v '^ *+' conftest.er1 >conftest.err 5911 rm -f conftest.er1 5912 cat conftest.err >&5 5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5914 (exit $ac_status); } && { 5915 test -z "$ac_c_werror_flag" || 5916 test ! -s conftest.err 5917 } && test -s conftest.$ac_objext; then 5918 ac_header_compiler=yes 5919else 5920 echo "$as_me: failed program was:" >&5 5921sed 's/^/| /' conftest.$ac_ext >&5 5922 5923 ac_header_compiler=no 5924fi 5925 5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5928echo "${ECHO_T}$ac_header_compiler" >&6; } 5929 5930# Is the header present? 5931{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5932echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5933cat >conftest.$ac_ext <<_ACEOF 5934/* confdefs.h. */ 5935_ACEOF 5936cat confdefs.h >>conftest.$ac_ext 5937cat >>conftest.$ac_ext <<_ACEOF 5938/* end confdefs.h. */ 5939#include <stdlib.h> 5940_ACEOF 5941if { (ac_try="$ac_cpp conftest.$ac_ext" 5942case "(($ac_try" in 5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5944 *) ac_try_echo=$ac_try;; 5945esac 5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5948 ac_status=$? 5949 grep -v '^ *+' conftest.er1 >conftest.err 5950 rm -f conftest.er1 5951 cat conftest.err >&5 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); } >/dev/null && { 5954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5955 test ! -s conftest.err 5956 }; then 5957 ac_header_preproc=yes 5958else 5959 echo "$as_me: failed program was:" >&5 5960sed 's/^/| /' conftest.$ac_ext >&5 5961 5962 ac_header_preproc=no 5963fi 5964 5965rm -f conftest.err conftest.$ac_ext 5966{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5967echo "${ECHO_T}$ac_header_preproc" >&6; } 5968 5969# So? What about this header? 5970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5971 yes:no: ) 5972 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5973echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5974 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5975echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5976 ac_header_preproc=yes 5977 ;; 5978 no:yes:* ) 5979 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5980echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5981 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5982echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5983 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5984echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5985 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5986echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5987 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5988echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5989 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5990echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5991 5992 ;; 5993esac 5994{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5995echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5996if test "${ac_cv_header_stdlib_h+set}" = set; then 5997 echo $ECHO_N "(cached) $ECHO_C" >&6 5998else 5999 ac_cv_header_stdlib_h=$ac_header_preproc 6000fi 6001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6002echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6003 6004fi 6005if test $ac_cv_header_stdlib_h = yes; then 6006 tcl_ok=1 6007else 6008 tcl_ok=0 6009fi 6010 6011 6012 cat >conftest.$ac_ext <<_ACEOF 6013/* confdefs.h. */ 6014_ACEOF 6015cat confdefs.h >>conftest.$ac_ext 6016cat >>conftest.$ac_ext <<_ACEOF 6017/* end confdefs.h. */ 6018#include <stdlib.h> 6019 6020_ACEOF 6021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6022 $EGREP "strtol" >/dev/null 2>&1; then 6023 : 6024else 6025 tcl_ok=0 6026fi 6027rm -f -r conftest* 6028 6029 cat >conftest.$ac_ext <<_ACEOF 6030/* confdefs.h. */ 6031_ACEOF 6032cat confdefs.h >>conftest.$ac_ext 6033cat >>conftest.$ac_ext <<_ACEOF 6034/* end confdefs.h. */ 6035#include <stdlib.h> 6036 6037_ACEOF 6038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6039 $EGREP "strtoul" >/dev/null 2>&1; then 6040 : 6041else 6042 tcl_ok=0 6043fi 6044rm -f -r conftest* 6045 6046 cat >conftest.$ac_ext <<_ACEOF 6047/* confdefs.h. */ 6048_ACEOF 6049cat confdefs.h >>conftest.$ac_ext 6050cat >>conftest.$ac_ext <<_ACEOF 6051/* end confdefs.h. */ 6052#include <stdlib.h> 6053 6054_ACEOF 6055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6056 $EGREP "strtod" >/dev/null 2>&1; then 6057 : 6058else 6059 tcl_ok=0 6060fi 6061rm -f -r conftest* 6062 6063 if test $tcl_ok = 0; then 6064 6065cat >>confdefs.h <<\_ACEOF 6066#define NO_STDLIB_H 1 6067_ACEOF 6068 6069 fi 6070 if test "${ac_cv_header_string_h+set}" = set; then 6071 { echo "$as_me:$LINENO: checking for string.h" >&5 6072echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6073if test "${ac_cv_header_string_h+set}" = set; then 6074 echo $ECHO_N "(cached) $ECHO_C" >&6 6075fi 6076{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6077echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6078else 6079 # Is the header compilable? 6080{ echo "$as_me:$LINENO: checking string.h usability" >&5 6081echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6082cat >conftest.$ac_ext <<_ACEOF 6083/* confdefs.h. */ 6084_ACEOF 6085cat confdefs.h >>conftest.$ac_ext 6086cat >>conftest.$ac_ext <<_ACEOF 6087/* end confdefs.h. */ 6088$ac_includes_default 6089#include <string.h> 6090_ACEOF 6091rm -f conftest.$ac_objext 6092if { (ac_try="$ac_compile" 6093case "(($ac_try" in 6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6095 *) ac_try_echo=$ac_try;; 6096esac 6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6098 (eval "$ac_compile") 2>conftest.er1 6099 ac_status=$? 6100 grep -v '^ *+' conftest.er1 >conftest.err 6101 rm -f conftest.er1 6102 cat conftest.err >&5 6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6104 (exit $ac_status); } && { 6105 test -z "$ac_c_werror_flag" || 6106 test ! -s conftest.err 6107 } && test -s conftest.$ac_objext; then 6108 ac_header_compiler=yes 6109else 6110 echo "$as_me: failed program was:" >&5 6111sed 's/^/| /' conftest.$ac_ext >&5 6112 6113 ac_header_compiler=no 6114fi 6115 6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6118echo "${ECHO_T}$ac_header_compiler" >&6; } 6119 6120# Is the header present? 6121{ echo "$as_me:$LINENO: checking string.h presence" >&5 6122echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6123cat >conftest.$ac_ext <<_ACEOF 6124/* confdefs.h. */ 6125_ACEOF 6126cat confdefs.h >>conftest.$ac_ext 6127cat >>conftest.$ac_ext <<_ACEOF 6128/* end confdefs.h. */ 6129#include <string.h> 6130_ACEOF 6131if { (ac_try="$ac_cpp conftest.$ac_ext" 6132case "(($ac_try" in 6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6134 *) ac_try_echo=$ac_try;; 6135esac 6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6138 ac_status=$? 6139 grep -v '^ *+' conftest.er1 >conftest.err 6140 rm -f conftest.er1 6141 cat conftest.err >&5 6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6143 (exit $ac_status); } >/dev/null && { 6144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6145 test ! -s conftest.err 6146 }; then 6147 ac_header_preproc=yes 6148else 6149 echo "$as_me: failed program was:" >&5 6150sed 's/^/| /' conftest.$ac_ext >&5 6151 6152 ac_header_preproc=no 6153fi 6154 6155rm -f conftest.err conftest.$ac_ext 6156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6157echo "${ECHO_T}$ac_header_preproc" >&6; } 6158 6159# So? What about this header? 6160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6161 yes:no: ) 6162 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6163echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6164 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6165echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6166 ac_header_preproc=yes 6167 ;; 6168 no:yes:* ) 6169 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6170echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6171 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6172echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6173 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6174echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6175 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6176echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6177 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6178echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6179 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6180echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6181 6182 ;; 6183esac 6184{ echo "$as_me:$LINENO: checking for string.h" >&5 6185echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6186if test "${ac_cv_header_string_h+set}" = set; then 6187 echo $ECHO_N "(cached) $ECHO_C" >&6 6188else 6189 ac_cv_header_string_h=$ac_header_preproc 6190fi 6191{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6192echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6193 6194fi 6195if test $ac_cv_header_string_h = yes; then 6196 tcl_ok=1 6197else 6198 tcl_ok=0 6199fi 6200 6201 6202 cat >conftest.$ac_ext <<_ACEOF 6203/* confdefs.h. */ 6204_ACEOF 6205cat confdefs.h >>conftest.$ac_ext 6206cat >>conftest.$ac_ext <<_ACEOF 6207/* end confdefs.h. */ 6208#include <string.h> 6209 6210_ACEOF 6211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6212 $EGREP "strstr" >/dev/null 2>&1; then 6213 : 6214else 6215 tcl_ok=0 6216fi 6217rm -f -r conftest* 6218 6219 cat >conftest.$ac_ext <<_ACEOF 6220/* confdefs.h. */ 6221_ACEOF 6222cat confdefs.h >>conftest.$ac_ext 6223cat >>conftest.$ac_ext <<_ACEOF 6224/* end confdefs.h. */ 6225#include <string.h> 6226 6227_ACEOF 6228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6229 $EGREP "strerror" >/dev/null 2>&1; then 6230 : 6231else 6232 tcl_ok=0 6233fi 6234rm -f -r conftest* 6235 6236 6237 # See also memmove check below for a place where NO_STRING_H can be 6238 # set and why. 6239 6240 if test $tcl_ok = 0; then 6241 6242cat >>confdefs.h <<\_ACEOF 6243#define NO_STRING_H 1 6244_ACEOF 6245 6246 fi 6247 6248 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6249 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6250echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6251if test "${ac_cv_header_sys_wait_h+set}" = set; then 6252 echo $ECHO_N "(cached) $ECHO_C" >&6 6253fi 6254{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6255echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6256else 6257 # Is the header compilable? 6258{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6259echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6260cat >conftest.$ac_ext <<_ACEOF 6261/* confdefs.h. */ 6262_ACEOF 6263cat confdefs.h >>conftest.$ac_ext 6264cat >>conftest.$ac_ext <<_ACEOF 6265/* end confdefs.h. */ 6266$ac_includes_default 6267#include <sys/wait.h> 6268_ACEOF 6269rm -f conftest.$ac_objext 6270if { (ac_try="$ac_compile" 6271case "(($ac_try" in 6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6273 *) ac_try_echo=$ac_try;; 6274esac 6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6276 (eval "$ac_compile") 2>conftest.er1 6277 ac_status=$? 6278 grep -v '^ *+' conftest.er1 >conftest.err 6279 rm -f conftest.er1 6280 cat conftest.err >&5 6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6282 (exit $ac_status); } && { 6283 test -z "$ac_c_werror_flag" || 6284 test ! -s conftest.err 6285 } && test -s conftest.$ac_objext; then 6286 ac_header_compiler=yes 6287else 6288 echo "$as_me: failed program was:" >&5 6289sed 's/^/| /' conftest.$ac_ext >&5 6290 6291 ac_header_compiler=no 6292fi 6293 6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6296echo "${ECHO_T}$ac_header_compiler" >&6; } 6297 6298# Is the header present? 6299{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6300echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6301cat >conftest.$ac_ext <<_ACEOF 6302/* confdefs.h. */ 6303_ACEOF 6304cat confdefs.h >>conftest.$ac_ext 6305cat >>conftest.$ac_ext <<_ACEOF 6306/* end confdefs.h. */ 6307#include <sys/wait.h> 6308_ACEOF 6309if { (ac_try="$ac_cpp conftest.$ac_ext" 6310case "(($ac_try" in 6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6312 *) ac_try_echo=$ac_try;; 6313esac 6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6316 ac_status=$? 6317 grep -v '^ *+' conftest.er1 >conftest.err 6318 rm -f conftest.er1 6319 cat conftest.err >&5 6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6321 (exit $ac_status); } >/dev/null && { 6322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6323 test ! -s conftest.err 6324 }; then 6325 ac_header_preproc=yes 6326else 6327 echo "$as_me: failed program was:" >&5 6328sed 's/^/| /' conftest.$ac_ext >&5 6329 6330 ac_header_preproc=no 6331fi 6332 6333rm -f conftest.err conftest.$ac_ext 6334{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6335echo "${ECHO_T}$ac_header_preproc" >&6; } 6336 6337# So? What about this header? 6338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6339 yes:no: ) 6340 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6341echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6342 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6343echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6344 ac_header_preproc=yes 6345 ;; 6346 no:yes:* ) 6347 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6348echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6349 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6350echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6351 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6352echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6353 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6354echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6355 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6356echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6357 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6358echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6359 6360 ;; 6361esac 6362{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6363echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6364if test "${ac_cv_header_sys_wait_h+set}" = set; then 6365 echo $ECHO_N "(cached) $ECHO_C" >&6 6366else 6367 ac_cv_header_sys_wait_h=$ac_header_preproc 6368fi 6369{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6370echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6371 6372fi 6373if test $ac_cv_header_sys_wait_h = yes; then 6374 : 6375else 6376 6377cat >>confdefs.h <<\_ACEOF 6378#define NO_SYS_WAIT_H 1 6379_ACEOF 6380 6381fi 6382 6383 6384 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6385 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6386echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6387if test "${ac_cv_header_dlfcn_h+set}" = set; then 6388 echo $ECHO_N "(cached) $ECHO_C" >&6 6389fi 6390{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6391echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6392else 6393 # Is the header compilable? 6394{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6395echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6396cat >conftest.$ac_ext <<_ACEOF 6397/* confdefs.h. */ 6398_ACEOF 6399cat confdefs.h >>conftest.$ac_ext 6400cat >>conftest.$ac_ext <<_ACEOF 6401/* end confdefs.h. */ 6402$ac_includes_default 6403#include <dlfcn.h> 6404_ACEOF 6405rm -f conftest.$ac_objext 6406if { (ac_try="$ac_compile" 6407case "(($ac_try" in 6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6409 *) ac_try_echo=$ac_try;; 6410esac 6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6412 (eval "$ac_compile") 2>conftest.er1 6413 ac_status=$? 6414 grep -v '^ *+' conftest.er1 >conftest.err 6415 rm -f conftest.er1 6416 cat conftest.err >&5 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); } && { 6419 test -z "$ac_c_werror_flag" || 6420 test ! -s conftest.err 6421 } && test -s conftest.$ac_objext; then 6422 ac_header_compiler=yes 6423else 6424 echo "$as_me: failed program was:" >&5 6425sed 's/^/| /' conftest.$ac_ext >&5 6426 6427 ac_header_compiler=no 6428fi 6429 6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6432echo "${ECHO_T}$ac_header_compiler" >&6; } 6433 6434# Is the header present? 6435{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6436echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6437cat >conftest.$ac_ext <<_ACEOF 6438/* confdefs.h. */ 6439_ACEOF 6440cat confdefs.h >>conftest.$ac_ext 6441cat >>conftest.$ac_ext <<_ACEOF 6442/* end confdefs.h. */ 6443#include <dlfcn.h> 6444_ACEOF 6445if { (ac_try="$ac_cpp conftest.$ac_ext" 6446case "(($ac_try" in 6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6448 *) ac_try_echo=$ac_try;; 6449esac 6450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6452 ac_status=$? 6453 grep -v '^ *+' conftest.er1 >conftest.err 6454 rm -f conftest.er1 6455 cat conftest.err >&5 6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6457 (exit $ac_status); } >/dev/null && { 6458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6459 test ! -s conftest.err 6460 }; then 6461 ac_header_preproc=yes 6462else 6463 echo "$as_me: failed program was:" >&5 6464sed 's/^/| /' conftest.$ac_ext >&5 6465 6466 ac_header_preproc=no 6467fi 6468 6469rm -f conftest.err conftest.$ac_ext 6470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6471echo "${ECHO_T}$ac_header_preproc" >&6; } 6472 6473# So? What about this header? 6474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6475 yes:no: ) 6476 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6477echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6478 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6479echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6480 ac_header_preproc=yes 6481 ;; 6482 no:yes:* ) 6483 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6484echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6485 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6486echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6487 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6488echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6489 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6490echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6491 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6492echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6493 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6494echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6495 6496 ;; 6497esac 6498{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6499echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6500if test "${ac_cv_header_dlfcn_h+set}" = set; then 6501 echo $ECHO_N "(cached) $ECHO_C" >&6 6502else 6503 ac_cv_header_dlfcn_h=$ac_header_preproc 6504fi 6505{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6506echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6507 6508fi 6509if test $ac_cv_header_dlfcn_h = yes; then 6510 : 6511else 6512 6513cat >>confdefs.h <<\_ACEOF 6514#define NO_DLFCN_H 1 6515_ACEOF 6516 6517fi 6518 6519 6520 6521 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6522 6523for ac_header in sys/param.h 6524do 6525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6527 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6530 echo $ECHO_N "(cached) $ECHO_C" >&6 6531fi 6532ac_res=`eval echo '${'$as_ac_Header'}'` 6533 { echo "$as_me:$LINENO: result: $ac_res" >&5 6534echo "${ECHO_T}$ac_res" >&6; } 6535else 6536 # Is the header compilable? 6537{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6539cat >conftest.$ac_ext <<_ACEOF 6540/* confdefs.h. */ 6541_ACEOF 6542cat confdefs.h >>conftest.$ac_ext 6543cat >>conftest.$ac_ext <<_ACEOF 6544/* end confdefs.h. */ 6545$ac_includes_default 6546#include <$ac_header> 6547_ACEOF 6548rm -f conftest.$ac_objext 6549if { (ac_try="$ac_compile" 6550case "(($ac_try" in 6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6552 *) ac_try_echo=$ac_try;; 6553esac 6554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6555 (eval "$ac_compile") 2>conftest.er1 6556 ac_status=$? 6557 grep -v '^ *+' conftest.er1 >conftest.err 6558 rm -f conftest.er1 6559 cat conftest.err >&5 6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6561 (exit $ac_status); } && { 6562 test -z "$ac_c_werror_flag" || 6563 test ! -s conftest.err 6564 } && test -s conftest.$ac_objext; then 6565 ac_header_compiler=yes 6566else 6567 echo "$as_me: failed program was:" >&5 6568sed 's/^/| /' conftest.$ac_ext >&5 6569 6570 ac_header_compiler=no 6571fi 6572 6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6575echo "${ECHO_T}$ac_header_compiler" >&6; } 6576 6577# Is the header present? 6578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6580cat >conftest.$ac_ext <<_ACEOF 6581/* confdefs.h. */ 6582_ACEOF 6583cat confdefs.h >>conftest.$ac_ext 6584cat >>conftest.$ac_ext <<_ACEOF 6585/* end confdefs.h. */ 6586#include <$ac_header> 6587_ACEOF 6588if { (ac_try="$ac_cpp conftest.$ac_ext" 6589case "(($ac_try" in 6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6591 *) ac_try_echo=$ac_try;; 6592esac 6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6595 ac_status=$? 6596 grep -v '^ *+' conftest.er1 >conftest.err 6597 rm -f conftest.er1 6598 cat conftest.err >&5 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6600 (exit $ac_status); } >/dev/null && { 6601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6602 test ! -s conftest.err 6603 }; then 6604 ac_header_preproc=yes 6605else 6606 echo "$as_me: failed program was:" >&5 6607sed 's/^/| /' conftest.$ac_ext >&5 6608 6609 ac_header_preproc=no 6610fi 6611 6612rm -f conftest.err conftest.$ac_ext 6613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6614echo "${ECHO_T}$ac_header_preproc" >&6; } 6615 6616# So? What about this header? 6617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6618 yes:no: ) 6619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6623 ac_header_preproc=yes 6624 ;; 6625 no:yes:* ) 6626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6638 6639 ;; 6640esac 6641{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6644 echo $ECHO_N "(cached) $ECHO_C" >&6 6645else 6646 eval "$as_ac_Header=\$ac_header_preproc" 6647fi 6648ac_res=`eval echo '${'$as_ac_Header'}'` 6649 { echo "$as_me:$LINENO: result: $ac_res" >&5 6650echo "${ECHO_T}$ac_res" >&6; } 6651 6652fi 6653if test `eval echo '${'$as_ac_Header'}'` = yes; then 6654 cat >>confdefs.h <<_ACEOF 6655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6656_ACEOF 6657 6658fi 6659 6660done 6661 6662 6663 # Let the user call this, because if it triggers, they will 6664 # need a compat/strtod.c that is correct. Users can also 6665 # use Tcl_GetDouble(FromObj) instead. 6666 #TEA_BUGGY_STRTOD 6667 fi 6668 6669 6670 6671 # 6672 # Ok, lets find the tcldomxml configuration 6673 # First, look for one uninstalled. 6674 # the alternative search directory is invoked by --with-tcldomxml 6675 # 6676 6677 if test x"${no_tcldomxml}" = x ; then 6678 # we reset no_tcldomxml in case something fails here 6679 no_tcldomxml=true 6680 6681# Check whether --with-tcldomxml was given. 6682if test "${with_tcldomxml+set}" = set; then 6683 withval=$with_tcldomxml; with_tcldomxmlconfig=${withval} 6684fi 6685 6686 { echo "$as_me:$LINENO: checking for tcldomxml configuration" >&5 6687echo $ECHO_N "checking for tcldomxml configuration... $ECHO_C" >&6; } 6688 if test "${ac_cv_c_tcldomxmlconfig+set}" = set; then 6689 echo $ECHO_N "(cached) $ECHO_C" >&6 6690else 6691 6692 6693 # First check to see if --with-tcldomxml was specified. 6694 if test x"${with_tcldomxmlconfig}" != x ; then 6695 case ${with_tcldomxmlconfig} in 6696 */tcldomxmlConfig.sh ) 6697 if test -f ${with_tcldomxmlconfig}; then 6698 { echo "$as_me:$LINENO: WARNING: --with-tcldomxml argument should refer to directory containing tcldomxmlConfig.sh, not to tcldomxmlConfig.sh itself" >&5 6699echo "$as_me: WARNING: --with-tcldomxml argument should refer to directory containing tcldomxmlConfig.sh, not to tcldomxmlConfig.sh itself" >&2;} 6700 with_tcldomxmlconfig=`echo ${with_tcldomxmlconfig} | sed 's!/tcldomxmlConfig\.sh$!!'` 6701 fi;; 6702 esac 6703 if test -f "${with_tcldomxmlconfig}/tcldomxmlConfig.sh" ; then 6704 ac_cv_c_tcldomxmlconfig=`(cd ${with_tcldomxmlconfig}; pwd)` 6705 else 6706 { { echo "$as_me:$LINENO: error: ${with_tcldomxmlconfig} directory doesn't contain tcldomxmlConfig.sh" >&5 6707echo "$as_me: error: ${with_tcldomxmlconfig} directory doesn't contain tcldomxmlConfig.sh" >&2;} 6708 { (exit 1); exit 1; }; } 6709 fi 6710 fi 6711 6712 # then check for a private tcldomxml installation 6713 if test x"${ac_cv_c_tcldomxmlconfig}" = x ; then 6714 for i in \ 6715 ../tcldomxml \ 6716 `ls -dr ../tcldomxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6717 `ls -dr ../tcldomxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6718 `ls -dr ../tcldomxml*[0-9].[0-9] 2>/dev/null` \ 6719 `ls -dr ../tcldomxml*[0-9].[0-9]* 2>/dev/null` \ 6720 ../../tcldomxml \ 6721 `ls -dr ../../tcldomxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6722 `ls -dr ../../tcldomxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6723 `ls -dr ../../tcldomxml*[0-9].[0-9] 2>/dev/null` \ 6724 `ls -dr ../../tcldomxml*[0-9].[0-9]* 2>/dev/null` \ 6725 ../../../tcldomxml \ 6726 `ls -dr ../../../tcldomxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6727 `ls -dr ../../../tcldomxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6728 `ls -dr ../../../tcldomxml*[0-9].[0-9] 2>/dev/null` \ 6729 `ls -dr ../../../tcldomxml*[0-9].[0-9]* 2>/dev/null` \ 6730 ${srcdir}/../tcldomxml \ 6731 `ls -dr ${srcdir}/../tcldomxml*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6732 `ls -dr ${srcdir}/../tcldomxml*[0-9].[0-9][0-9] 2>/dev/null` \ 6733 `ls -dr ${srcdir}/../tcldomxml*[0-9].[0-9] 2>/dev/null` \ 6734 `ls -dr ${srcdir}/../tcldomxml*[0-9].[0-9]* 2>/dev/null` \ 6735 ; do 6736 if test -f "$i/tcldomxmlConfig.sh" ; then 6737 ac_cv_c_tcldomxmlconfig=`(cd $i; pwd)` 6738 break 6739 fi 6740 if test -f "$i/unix/tcldomxmlConfig.sh" ; then 6741 ac_cv_c_tcldomxmlconfig=`(cd $i/unix; pwd)` 6742 break 6743 fi 6744 done 6745 fi 6746 6747 # check in a few common install locations 6748 if test x"${ac_cv_c_tcldomxmlconfig}" = x ; then 6749 for i in `ls -d ${libdir} 2>/dev/null` \ 6750 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6751 `ls -d ${prefix}/lib 2>/dev/null` \ 6752 `ls -d /usr/local/lib 2>/dev/null` \ 6753 `ls -d /usr/contrib/lib 2>/dev/null` \ 6754 `ls -d /usr/lib 2>/dev/null` \ 6755 `ls -d /usr/lib64 2>/dev/null` \ 6756 ; do 6757 if test -f "$i/tcldomxmlConfig.sh" ; then 6758 ac_cv_c_tcldomxmlconfig=`(cd $i; pwd)` 6759 break 6760 fi 6761 done 6762 fi 6763 6764fi 6765 6766 6767 if test x"${ac_cv_c_tcldomxmlconfig}" = x ; then 6768 tcldomxml_BIN_DIR="# no tcldomxml configs found" 6769 { echo "$as_me:$LINENO: WARNING: Cannot find tcldomxml configuration definitions" >&5 6770echo "$as_me: WARNING: Cannot find tcldomxml configuration definitions" >&2;} 6771 exit 0 6772 else 6773 no_tcldomxml= 6774 tcldomxml_BIN_DIR=${ac_cv_c_tcldomxmlconfig} 6775 { echo "$as_me:$LINENO: result: found $tcldomxml_BIN_DIR/tcldomxmlConfig.sh" >&5 6776echo "${ECHO_T}found $tcldomxml_BIN_DIR/tcldomxmlConfig.sh" >&6; } 6777 fi 6778 fi 6779 6780 6781 { echo "$as_me:$LINENO: checking for existence of ${tcldomxml_BIN_DIR}/tcldomxmlConfig.sh" >&5 6782echo $ECHO_N "checking for existence of ${tcldomxml_BIN_DIR}/tcldomxmlConfig.sh... $ECHO_C" >&6; } 6783 6784 if test -f "${tcldomxml_BIN_DIR}/tcldomxmlConfig.sh" ; then 6785 { echo "$as_me:$LINENO: result: loading" >&5 6786echo "${ECHO_T}loading" >&6; } 6787 . "${tcldomxml_BIN_DIR}/tcldomxmlConfig.sh" 6788 else 6789 { echo "$as_me:$LINENO: result: file not found" >&5 6790echo "${ECHO_T}file not found" >&6; } 6791 fi 6792 6793 # 6794 # If the tcldomxml_BIN_DIR is the build directory (not the install directory), 6795 # then set the common variable name to the value of the build variables. 6796 # For example, the variable tcldomxml_LIB_SPEC will be set to the value 6797 # of tcldomxml_BUILD_LIB_SPEC. An extension should make use of tcldomxml_LIB_SPEC 6798 # instead of tcldomxml_BUILD_LIB_SPEC since it will work with both an 6799 # installed and uninstalled version of Tcl. 6800 # 6801 6802 if test -f "${tcldomxml_BIN_DIR}/Makefile" ; then 6803 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tcldomxml" >&5 6804echo "$as_me: WARNING: Found Makefile - using build library specs for tcldomxml" >&2;} 6805 tcldomxml_LIB_SPEC=${tcldomxml_BUILD_LIB_SPEC} 6806 tcldomxml_STUB_LIB_SPEC=${tcldomxml_BUILD_STUB_LIB_SPEC} 6807 tcldomxml_STUB_LIB_PATH=${tcldomxml_BUILD_STUB_LIB_PATH} 6808 fi 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 # Allow the caller to prevent this auto-check by specifying any 2nd arg 6822 if test "x" = x; then 6823 6824 # Check both upper and lower-case variants 6825 # If a dev wanted non-stubs libs, this function could take an option 6826 # to not use _STUB in the paths below 6827 if test "x${tcldomxml_STUB_LIB_SPEC}" = x; then 6828 6829 { echo "$as_me:$LINENO: checking For TCLDOMXML_STUB library for LIBS" >&5 6830echo $ECHO_N "checking For TCLDOMXML_STUB library for LIBS... $ECHO_C" >&6; } 6831 # This simplifies the use of stub libraries by automatically adding 6832 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 6833 # but this is called before CONFIG_CFLAGS. More importantly, this adds 6834 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 6835 if test "x${TCLDOMXML_STUB_LIB_SPEC}" != "x" ; then 6836 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 6837 6838 vars="\"`${CYGPATH} ${TCLDOMXML_STUB_LIB_PATH}`\"" 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 TCLDOMXML_STUB_LIB_PATH ${TCLDOMXML_STUB_LIB_PATH}" >&5 6849echo "${ECHO_T}using TCLDOMXML_STUB_LIB_PATH ${TCLDOMXML_STUB_LIB_PATH}" >&6; } 6850 else 6851 6852 vars="${TCLDOMXML_STUB_LIB_SPEC}" 6853 for i in $vars; do 6854 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6855 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6856 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6857 fi 6858 PKG_LIBS="$PKG_LIBS $i" 6859 done 6860 6861 6862 { echo "$as_me:$LINENO: result: using TCLDOMXML_STUB_LIB_SPEC ${TCLDOMXML_STUB_LIB_SPEC}" >&5 6863echo "${ECHO_T}using TCLDOMXML_STUB_LIB_SPEC ${TCLDOMXML_STUB_LIB_SPEC}" >&6; } 6864 fi 6865 else 6866 { echo "$as_me:$LINENO: result: file not found" >&5 6867echo "${ECHO_T}file not found" >&6; } 6868 fi 6869 6870else 6871 6872 { echo "$as_me:$LINENO: checking For tcldomxml_STUB library for LIBS" >&5 6873echo $ECHO_N "checking For tcldomxml_STUB library for LIBS... $ECHO_C" >&6; } 6874 # This simplifies the use of stub libraries by automatically adding 6875 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 6876 # but this is called before CONFIG_CFLAGS. More importantly, this adds 6877 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 6878 if test "x${tcldomxml_STUB_LIB_SPEC}" != "x" ; then 6879 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 6880 6881 vars="\"`${CYGPATH} ${tcldomxml_STUB_LIB_PATH}`\"" 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 tcldomxml_STUB_LIB_PATH ${tcldomxml_STUB_LIB_PATH}" >&5 6892echo "${ECHO_T}using tcldomxml_STUB_LIB_PATH ${tcldomxml_STUB_LIB_PATH}" >&6; } 6893 else 6894 6895 vars="${tcldomxml_STUB_LIB_SPEC}" 6896 for i in $vars; do 6897 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6898 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6899 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6900 fi 6901 PKG_LIBS="$PKG_LIBS $i" 6902 done 6903 6904 6905 { echo "$as_me:$LINENO: result: using tcldomxml_STUB_LIB_SPEC ${tcldomxml_STUB_LIB_SPEC}" >&5 6906echo "${ECHO_T}using tcldomxml_STUB_LIB_SPEC ${tcldomxml_STUB_LIB_SPEC}" >&6; } 6907 fi 6908 else 6909 { echo "$as_me:$LINENO: result: file not found" >&5 6910echo "${ECHO_T}file not found" >&6; } 6911 fi 6912 6913fi 6914 6915 6916fi 6917 6918 6919 6920 6921#-------------------------------------------------------------------- 6922# __CHANGE__ 6923# Choose which headers you need. Extension authors should try very 6924# hard to only rely on the Tcl public header files. Internal headers 6925# contain private data structures and are subject to change without 6926# notice. 6927# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6928#-------------------------------------------------------------------- 6929 6930 6931 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6932echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6933 6934 6935# Check whether --with-tclinclude was given. 6936if test "${with_tclinclude+set}" = set; then 6937 withval=$with_tclinclude; with_tclinclude=${withval} 6938fi 6939 6940 6941 if test "${ac_cv_c_tclh+set}" = set; then 6942 echo $ECHO_N "(cached) $ECHO_C" >&6 6943else 6944 6945 # Use the value from --with-tclinclude, if it was given 6946 6947 if test x"${with_tclinclude}" != x ; then 6948 if test -f "${with_tclinclude}/tcl.h" ; then 6949 ac_cv_c_tclh=${with_tclinclude} 6950 else 6951 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6952echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6953 { (exit 1); exit 1; }; } 6954 fi 6955 else 6956 list="" 6957 if test "`uname -s`" = "Darwin"; then 6958 # If Tcl was built as a framework, attempt to use 6959 # the framework's Headers directory 6960 case ${TCL_DEFS} in 6961 *TCL_FRAMEWORK*) 6962 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6963 ;; 6964 esac 6965 fi 6966 6967 # Look in the source dir only if Tcl is not installed, 6968 # and in that situation, look there before installed locations. 6969 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6970 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6971 fi 6972 6973 # Check order: pkg --prefix location, Tcl's --prefix location, 6974 # relative to directory of tclConfig.sh. 6975 6976 eval "temp_includedir=${includedir}" 6977 list="$list \ 6978 `ls -d ${temp_includedir} 2>/dev/null` \ 6979 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6980 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6981 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6982 list="$list /usr/local/include /usr/include" 6983 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6984 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6985 list="$list `ls -d ${d} 2>/dev/null`" 6986 fi 6987 fi 6988 for i in $list ; do 6989 if test -f "$i/tcl.h" ; then 6990 ac_cv_c_tclh=$i 6991 break 6992 fi 6993 done 6994 fi 6995 6996fi 6997 6998 6999 # Print a message based on how we determined the include path 7000 7001 if test x"${ac_cv_c_tclh}" = x ; then 7002 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7003echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7004 { (exit 1); exit 1; }; } 7005 else 7006 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7007echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7008 fi 7009 7010 # Convert to a native path and substitute into the output files. 7011 7012 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7013 7014 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7015 7016 7017 7018#TEA_PRIVATE_TCL_HEADERS 7019 7020#-------------------------------------------------------------------- 7021# A few miscellaneous platform-specific items: 7022# 7023# We have to define a special symbol for Windows (BUILD_Tclxslt in this 7024# case) so that we create the export library with the dll. 7025# 7026# Windows creates a few extra files that need to be cleaned up. 7027# We can add more files to clean if our extension creates any extra 7028# files in the future. 7029# 7030# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7031# These will be appended to the current set of compiler flags for 7032# your system. 7033#-------------------------------------------------------------------- 7034 7035if test "${TEA_PLATFORM}" = "windows" ; then 7036 cat >>confdefs.h <<\_ACEOF 7037#define BUILD_Tclxslt 1 7038_ACEOF 7039 7040 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 7041 EXTRA_SOURCES='$(WIN_SOURCES)' 7042else 7043 CLEANFILES="pkgIndex.tcl" 7044 EXTRA_SOURCES='$(UNIX_SOURCES)' 7045fi 7046 7047 7048 7049#-------------------------------------------------------------------- 7050# Check whether --enable-threads or --disable-threads was given. 7051# So far only Tcl responds to this one. 7052#-------------------------------------------------------------------- 7053 7054 7055 # Check whether --enable-threads was given. 7056if test "${enable_threads+set}" = set; then 7057 enableval=$enable_threads; tcl_ok=$enableval 7058else 7059 tcl_ok=yes 7060fi 7061 7062 7063 if test "${enable_threads+set}" = set; then 7064 enableval="$enable_threads" 7065 tcl_ok=$enableval 7066 else 7067 tcl_ok=yes 7068 fi 7069 7070 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7071 TCL_THREADS=1 7072 7073 if test "${TEA_PLATFORM}" != "windows" ; then 7074 # We are always OK on Windows, so check what this platform wants: 7075 7076 # USE_THREAD_ALLOC tells us to try the special thread-based 7077 # allocator that significantly reduces lock contention 7078 7079cat >>confdefs.h <<\_ACEOF 7080#define USE_THREAD_ALLOC 1 7081_ACEOF 7082 7083 7084cat >>confdefs.h <<\_ACEOF 7085#define _REENTRANT 1 7086_ACEOF 7087 7088 if test "`uname -s`" = "SunOS" ; then 7089 7090cat >>confdefs.h <<\_ACEOF 7091#define _POSIX_PTHREAD_SEMANTICS 1 7092_ACEOF 7093 7094 fi 7095 7096cat >>confdefs.h <<\_ACEOF 7097#define _THREAD_SAFE 1 7098_ACEOF 7099 7100 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7101echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7102if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7103 echo $ECHO_N "(cached) $ECHO_C" >&6 7104else 7105 ac_check_lib_save_LIBS=$LIBS 7106LIBS="-lpthread $LIBS" 7107cat >conftest.$ac_ext <<_ACEOF 7108/* confdefs.h. */ 7109_ACEOF 7110cat confdefs.h >>conftest.$ac_ext 7111cat >>conftest.$ac_ext <<_ACEOF 7112/* end confdefs.h. */ 7113 7114/* Override any GCC internal prototype to avoid an error. 7115 Use char because int might match the return type of a GCC 7116 builtin and then its argument prototype would still apply. */ 7117#ifdef __cplusplus 7118extern "C" 7119#endif 7120char pthread_mutex_init (); 7121int 7122main () 7123{ 7124return pthread_mutex_init (); 7125 ; 7126 return 0; 7127} 7128_ACEOF 7129rm -f conftest.$ac_objext conftest$ac_exeext 7130if { (ac_try="$ac_link" 7131case "(($ac_try" in 7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7133 *) ac_try_echo=$ac_try;; 7134esac 7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7136 (eval "$ac_link") 2>conftest.er1 7137 ac_status=$? 7138 grep -v '^ *+' conftest.er1 >conftest.err 7139 rm -f conftest.er1 7140 cat conftest.err >&5 7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7142 (exit $ac_status); } && { 7143 test -z "$ac_c_werror_flag" || 7144 test ! -s conftest.err 7145 } && test -s conftest$ac_exeext && 7146 $as_test_x conftest$ac_exeext; then 7147 ac_cv_lib_pthread_pthread_mutex_init=yes 7148else 7149 echo "$as_me: failed program was:" >&5 7150sed 's/^/| /' conftest.$ac_ext >&5 7151 7152 ac_cv_lib_pthread_pthread_mutex_init=no 7153fi 7154 7155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7156 conftest$ac_exeext conftest.$ac_ext 7157LIBS=$ac_check_lib_save_LIBS 7158fi 7159{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7160echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7161if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7162 tcl_ok=yes 7163else 7164 tcl_ok=no 7165fi 7166 7167 if test "$tcl_ok" = "no"; then 7168 # Check a little harder for __pthread_mutex_init in the same 7169 # library, as some systems hide it there until pthread.h is 7170 # defined. We could alternatively do an AC_TRY_COMPILE with 7171 # pthread.h, but that will work with libpthread really doesn't 7172 # exist, like AIX 4.2. [Bug: 4359] 7173 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7174echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7175if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177else 7178 ac_check_lib_save_LIBS=$LIBS 7179LIBS="-lpthread $LIBS" 7180cat >conftest.$ac_ext <<_ACEOF 7181/* confdefs.h. */ 7182_ACEOF 7183cat confdefs.h >>conftest.$ac_ext 7184cat >>conftest.$ac_ext <<_ACEOF 7185/* end confdefs.h. */ 7186 7187/* Override any GCC internal prototype to avoid an error. 7188 Use char because int might match the return type of a GCC 7189 builtin and then its argument prototype would still apply. */ 7190#ifdef __cplusplus 7191extern "C" 7192#endif 7193char __pthread_mutex_init (); 7194int 7195main () 7196{ 7197return __pthread_mutex_init (); 7198 ; 7199 return 0; 7200} 7201_ACEOF 7202rm -f conftest.$ac_objext conftest$ac_exeext 7203if { (ac_try="$ac_link" 7204case "(($ac_try" in 7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7206 *) ac_try_echo=$ac_try;; 7207esac 7208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7209 (eval "$ac_link") 2>conftest.er1 7210 ac_status=$? 7211 grep -v '^ *+' conftest.er1 >conftest.err 7212 rm -f conftest.er1 7213 cat conftest.err >&5 7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7215 (exit $ac_status); } && { 7216 test -z "$ac_c_werror_flag" || 7217 test ! -s conftest.err 7218 } && test -s conftest$ac_exeext && 7219 $as_test_x conftest$ac_exeext; then 7220 ac_cv_lib_pthread___pthread_mutex_init=yes 7221else 7222 echo "$as_me: failed program was:" >&5 7223sed 's/^/| /' conftest.$ac_ext >&5 7224 7225 ac_cv_lib_pthread___pthread_mutex_init=no 7226fi 7227 7228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7229 conftest$ac_exeext conftest.$ac_ext 7230LIBS=$ac_check_lib_save_LIBS 7231fi 7232{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7233echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7234if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7235 tcl_ok=yes 7236else 7237 tcl_ok=no 7238fi 7239 7240 fi 7241 7242 if test "$tcl_ok" = "yes"; then 7243 # The space is needed 7244 THREADS_LIBS=" -lpthread" 7245 else 7246 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7247echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7248if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7249 echo $ECHO_N "(cached) $ECHO_C" >&6 7250else 7251 ac_check_lib_save_LIBS=$LIBS 7252LIBS="-lpthreads $LIBS" 7253cat >conftest.$ac_ext <<_ACEOF 7254/* confdefs.h. */ 7255_ACEOF 7256cat confdefs.h >>conftest.$ac_ext 7257cat >>conftest.$ac_ext <<_ACEOF 7258/* end confdefs.h. */ 7259 7260/* Override any GCC internal prototype to avoid an error. 7261 Use char because int might match the return type of a GCC 7262 builtin and then its argument prototype would still apply. */ 7263#ifdef __cplusplus 7264extern "C" 7265#endif 7266char pthread_mutex_init (); 7267int 7268main () 7269{ 7270return pthread_mutex_init (); 7271 ; 7272 return 0; 7273} 7274_ACEOF 7275rm -f conftest.$ac_objext conftest$ac_exeext 7276if { (ac_try="$ac_link" 7277case "(($ac_try" in 7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7279 *) ac_try_echo=$ac_try;; 7280esac 7281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7282 (eval "$ac_link") 2>conftest.er1 7283 ac_status=$? 7284 grep -v '^ *+' conftest.er1 >conftest.err 7285 rm -f conftest.er1 7286 cat conftest.err >&5 7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7288 (exit $ac_status); } && { 7289 test -z "$ac_c_werror_flag" || 7290 test ! -s conftest.err 7291 } && test -s conftest$ac_exeext && 7292 $as_test_x conftest$ac_exeext; then 7293 ac_cv_lib_pthreads_pthread_mutex_init=yes 7294else 7295 echo "$as_me: failed program was:" >&5 7296sed 's/^/| /' conftest.$ac_ext >&5 7297 7298 ac_cv_lib_pthreads_pthread_mutex_init=no 7299fi 7300 7301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7302 conftest$ac_exeext conftest.$ac_ext 7303LIBS=$ac_check_lib_save_LIBS 7304fi 7305{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7306echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7307if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7308 tcl_ok=yes 7309else 7310 tcl_ok=no 7311fi 7312 7313 if test "$tcl_ok" = "yes"; then 7314 # The space is needed 7315 THREADS_LIBS=" -lpthreads" 7316 else 7317 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7318echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7319if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7320 echo $ECHO_N "(cached) $ECHO_C" >&6 7321else 7322 ac_check_lib_save_LIBS=$LIBS 7323LIBS="-lc $LIBS" 7324cat >conftest.$ac_ext <<_ACEOF 7325/* confdefs.h. */ 7326_ACEOF 7327cat confdefs.h >>conftest.$ac_ext 7328cat >>conftest.$ac_ext <<_ACEOF 7329/* end confdefs.h. */ 7330 7331/* Override any GCC internal prototype to avoid an error. 7332 Use char because int might match the return type of a GCC 7333 builtin and then its argument prototype would still apply. */ 7334#ifdef __cplusplus 7335extern "C" 7336#endif 7337char pthread_mutex_init (); 7338int 7339main () 7340{ 7341return pthread_mutex_init (); 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346rm -f conftest.$ac_objext conftest$ac_exeext 7347if { (ac_try="$ac_link" 7348case "(($ac_try" in 7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7350 *) ac_try_echo=$ac_try;; 7351esac 7352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7353 (eval "$ac_link") 2>conftest.er1 7354 ac_status=$? 7355 grep -v '^ *+' conftest.er1 >conftest.err 7356 rm -f conftest.er1 7357 cat conftest.err >&5 7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7359 (exit $ac_status); } && { 7360 test -z "$ac_c_werror_flag" || 7361 test ! -s conftest.err 7362 } && test -s conftest$ac_exeext && 7363 $as_test_x conftest$ac_exeext; then 7364 ac_cv_lib_c_pthread_mutex_init=yes 7365else 7366 echo "$as_me: failed program was:" >&5 7367sed 's/^/| /' conftest.$ac_ext >&5 7368 7369 ac_cv_lib_c_pthread_mutex_init=no 7370fi 7371 7372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7373 conftest$ac_exeext conftest.$ac_ext 7374LIBS=$ac_check_lib_save_LIBS 7375fi 7376{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7377echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7378if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7379 tcl_ok=yes 7380else 7381 tcl_ok=no 7382fi 7383 7384 if test "$tcl_ok" = "no"; then 7385 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7386echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7387if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7388 echo $ECHO_N "(cached) $ECHO_C" >&6 7389else 7390 ac_check_lib_save_LIBS=$LIBS 7391LIBS="-lc_r $LIBS" 7392cat >conftest.$ac_ext <<_ACEOF 7393/* confdefs.h. */ 7394_ACEOF 7395cat confdefs.h >>conftest.$ac_ext 7396cat >>conftest.$ac_ext <<_ACEOF 7397/* end confdefs.h. */ 7398 7399/* Override any GCC internal prototype to avoid an error. 7400 Use char because int might match the return type of a GCC 7401 builtin and then its argument prototype would still apply. */ 7402#ifdef __cplusplus 7403extern "C" 7404#endif 7405char pthread_mutex_init (); 7406int 7407main () 7408{ 7409return pthread_mutex_init (); 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414rm -f conftest.$ac_objext conftest$ac_exeext 7415if { (ac_try="$ac_link" 7416case "(($ac_try" in 7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7418 *) ac_try_echo=$ac_try;; 7419esac 7420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7421 (eval "$ac_link") 2>conftest.er1 7422 ac_status=$? 7423 grep -v '^ *+' conftest.er1 >conftest.err 7424 rm -f conftest.er1 7425 cat conftest.err >&5 7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7427 (exit $ac_status); } && { 7428 test -z "$ac_c_werror_flag" || 7429 test ! -s conftest.err 7430 } && test -s conftest$ac_exeext && 7431 $as_test_x conftest$ac_exeext; then 7432 ac_cv_lib_c_r_pthread_mutex_init=yes 7433else 7434 echo "$as_me: failed program was:" >&5 7435sed 's/^/| /' conftest.$ac_ext >&5 7436 7437 ac_cv_lib_c_r_pthread_mutex_init=no 7438fi 7439 7440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7441 conftest$ac_exeext conftest.$ac_ext 7442LIBS=$ac_check_lib_save_LIBS 7443fi 7444{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7445echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7446if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7447 tcl_ok=yes 7448else 7449 tcl_ok=no 7450fi 7451 7452 if test "$tcl_ok" = "yes"; then 7453 # The space is needed 7454 THREADS_LIBS=" -pthread" 7455 else 7456 TCL_THREADS=0 7457 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7458echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7459 fi 7460 fi 7461 fi 7462 fi 7463 fi 7464 else 7465 TCL_THREADS=0 7466 fi 7467 # Do checking message here to not mess up interleaved configure output 7468 { echo "$as_me:$LINENO: checking for building with threads" >&5 7469echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7470 if test "${TCL_THREADS}" = 1; then 7471 7472cat >>confdefs.h <<\_ACEOF 7473#define TCL_THREADS 1 7474_ACEOF 7475 7476 { echo "$as_me:$LINENO: result: yes (default)" >&5 7477echo "${ECHO_T}yes (default)" >&6; } 7478 else 7479 { echo "$as_me:$LINENO: result: no" >&5 7480echo "${ECHO_T}no" >&6; } 7481 fi 7482 # TCL_THREADS sanity checking. See if our request for building with 7483 # threads is the same as the way Tcl was built. If not, warn the user. 7484 case ${TCL_DEFS} in 7485 *THREADS=1*) 7486 if test "${TCL_THREADS}" = "0"; then 7487 { echo "$as_me:$LINENO: WARNING: 7488 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7489 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7490echo "$as_me: WARNING: 7491 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7492 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7493 fi 7494 ;; 7495 *) 7496 if test "${TCL_THREADS}" = "1"; then 7497 { echo "$as_me:$LINENO: WARNING: 7498 --enable-threads requested, but building against a Tcl that is NOT 7499 thread-enabled. This is an OK configuration that will also run in 7500 a thread-enabled core." >&5 7501echo "$as_me: WARNING: 7502 --enable-threads requested, but building against a Tcl that is NOT 7503 thread-enabled. This is an OK configuration that will also run in 7504 a thread-enabled core." >&2;} 7505 fi 7506 ;; 7507 esac 7508 7509 7510 7511#-------------------------------------------------------------------- 7512# The statement below defines a collection of symbols related to 7513# building as a shared library instead of a static library. 7514#-------------------------------------------------------------------- 7515 7516 7517 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7518echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7519 # Check whether --enable-shared was given. 7520if test "${enable_shared+set}" = set; then 7521 enableval=$enable_shared; tcl_ok=$enableval 7522else 7523 tcl_ok=yes 7524fi 7525 7526 7527 if test "${enable_shared+set}" = set; then 7528 enableval="$enable_shared" 7529 tcl_ok=$enableval 7530 else 7531 tcl_ok=yes 7532 fi 7533 7534 if test "$tcl_ok" = "yes" ; then 7535 { echo "$as_me:$LINENO: result: shared" >&5 7536echo "${ECHO_T}shared" >&6; } 7537 SHARED_BUILD=1 7538 else 7539 { echo "$as_me:$LINENO: result: static" >&5 7540echo "${ECHO_T}static" >&6; } 7541 SHARED_BUILD=0 7542 7543cat >>confdefs.h <<\_ACEOF 7544#define STATIC_BUILD 1 7545_ACEOF 7546 7547 fi 7548 7549 7550 7551#-------------------------------------------------------------------- 7552# This macro figures out what flags to use with the compiler/linker 7553# when building shared/static debug/optimized objects. This information 7554# can be taken from the tclConfig.sh file, but this figures it all out. 7555#-------------------------------------------------------------------- 7556 7557 7558 7559 7560 # Step 0.a: Enable 64 bit support? 7561 7562 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7563echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7564 # Check whether --enable-64bit was given. 7565if test "${enable_64bit+set}" = set; then 7566 enableval=$enable_64bit; do64bit=$enableval 7567else 7568 do64bit=no 7569fi 7570 7571 { echo "$as_me:$LINENO: result: $do64bit" >&5 7572echo "${ECHO_T}$do64bit" >&6; } 7573 7574 # Step 0.b: Enable Solaris 64 bit VIS support? 7575 7576 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7577echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7578 # Check whether --enable-64bit-vis was given. 7579if test "${enable_64bit_vis+set}" = set; then 7580 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7581else 7582 do64bitVIS=no 7583fi 7584 7585 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7586echo "${ECHO_T}$do64bitVIS" >&6; } 7587 # Force 64bit on with VIS 7588 if test "$do64bitVIS" = "yes"; then 7589 do64bit=yes 7590fi 7591 7592 7593 # Step 0.c: Check if visibility support is available. Do this here so 7594 # that platform specific alternatives can be used below if this fails. 7595 7596 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7597echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7598if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7599 echo $ECHO_N "(cached) $ECHO_C" >&6 7600else 7601 7602 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7603 cat >conftest.$ac_ext <<_ACEOF 7604/* confdefs.h. */ 7605_ACEOF 7606cat confdefs.h >>conftest.$ac_ext 7607cat >>conftest.$ac_ext <<_ACEOF 7608/* end confdefs.h. */ 7609 7610 extern __attribute__((__visibility__("hidden"))) void f(void); 7611 void f(void) {} 7612int 7613main () 7614{ 7615f(); 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620rm -f conftest.$ac_objext conftest$ac_exeext 7621if { (ac_try="$ac_link" 7622case "(($ac_try" in 7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7624 *) ac_try_echo=$ac_try;; 7625esac 7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7627 (eval "$ac_link") 2>conftest.er1 7628 ac_status=$? 7629 grep -v '^ *+' conftest.er1 >conftest.err 7630 rm -f conftest.er1 7631 cat conftest.err >&5 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); } && { 7634 test -z "$ac_c_werror_flag" || 7635 test ! -s conftest.err 7636 } && test -s conftest$ac_exeext && 7637 $as_test_x conftest$ac_exeext; then 7638 tcl_cv_cc_visibility_hidden=yes 7639else 7640 echo "$as_me: failed program was:" >&5 7641sed 's/^/| /' conftest.$ac_ext >&5 7642 7643 tcl_cv_cc_visibility_hidden=no 7644fi 7645 7646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7647 conftest$ac_exeext conftest.$ac_ext 7648 CFLAGS=$hold_cflags 7649fi 7650{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7651echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7652 if test $tcl_cv_cc_visibility_hidden = yes; then 7653 7654 7655cat >>confdefs.h <<\_ACEOF 7656#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7657_ACEOF 7658 7659 7660fi 7661 7662 7663 # Step 0.d: Disable -rpath support? 7664 7665 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7666echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7667 # Check whether --enable-rpath was given. 7668if test "${enable_rpath+set}" = set; then 7669 enableval=$enable_rpath; doRpath=$enableval 7670else 7671 doRpath=yes 7672fi 7673 7674 { echo "$as_me:$LINENO: result: $doRpath" >&5 7675echo "${ECHO_T}$doRpath" >&6; } 7676 7677 # TEA specific: Cross-compiling options for Windows/CE builds? 7678 7679 if test "${TEA_PLATFORM}" = windows; then 7680 7681 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7682echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7683 # Check whether --enable-wince was given. 7684if test "${enable_wince+set}" = set; then 7685 enableval=$enable_wince; doWince=$enableval 7686else 7687 doWince=no 7688fi 7689 7690 { echo "$as_me:$LINENO: result: $doWince" >&5 7691echo "${ECHO_T}$doWince" >&6; } 7692 7693fi 7694 7695 7696 # Set the variable "system" to hold the name and version number 7697 # for the system. 7698 7699 7700 { echo "$as_me:$LINENO: checking system version" >&5 7701echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7702if test "${tcl_cv_sys_version+set}" = set; then 7703 echo $ECHO_N "(cached) $ECHO_C" >&6 7704else 7705 7706 # TEA specific: 7707 if test "${TEA_PLATFORM}" = "windows" ; then 7708 tcl_cv_sys_version=windows 7709 else 7710 tcl_cv_sys_version=`uname -s`-`uname -r` 7711 if test "$?" -ne 0 ; then 7712 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7713echo "$as_me: WARNING: can't find uname command" >&2;} 7714 tcl_cv_sys_version=unknown 7715 else 7716 if test "`uname -s`" = "AIX" ; then 7717 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7718 fi 7719 fi 7720 fi 7721 7722fi 7723{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7724echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7725 system=$tcl_cv_sys_version 7726 7727 7728 # Require ranlib early so we can override it in special cases below. 7729 7730 7731 7732 # Set configuration options based on system name and version. 7733 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7734 # "windows" case and removed some core-only vars. 7735 7736 do64bit_ok=no 7737 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7738 SHLIB_LD_LIBS='${LIBS}' 7739 # When ld needs options to work in 64-bit mode, put them in 7740 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7741 # is disabled by the user. [Bug 1016796] 7742 LDFLAGS_ARCH="" 7743 UNSHARED_LIB_SUFFIX="" 7744 # TEA specific: use PACKAGE_VERSION instead of VERSION 7745 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7746 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7747 TCL_LIB_VERSIONS_OK=ok 7748 CFLAGS_DEBUG=-g 7749 CFLAGS_OPTIMIZE=-O 7750 if test "$GCC" = yes; then 7751 7752 # TEA specific: 7753 CFLAGS_OPTIMIZE=-O2 7754 CFLAGS_WARNING="-Wall" 7755 7756else 7757 CFLAGS_WARNING="" 7758fi 7759 7760 # Extract the first word of "ar", so it can be a program name with args. 7761set dummy ar; ac_word=$2 7762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7764if test "${ac_cv_prog_AR+set}" = set; then 7765 echo $ECHO_N "(cached) $ECHO_C" >&6 7766else 7767 if test -n "$AR"; then 7768 ac_cv_prog_AR="$AR" # Let the user override the test. 7769else 7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7771for as_dir in $PATH 7772do 7773 IFS=$as_save_IFS 7774 test -z "$as_dir" && as_dir=. 7775 for ac_exec_ext in '' $ac_executable_extensions; do 7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7777 ac_cv_prog_AR="ar" 7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7779 break 2 7780 fi 7781done 7782done 7783IFS=$as_save_IFS 7784 7785fi 7786fi 7787AR=$ac_cv_prog_AR 7788if test -n "$AR"; then 7789 { echo "$as_me:$LINENO: result: $AR" >&5 7790echo "${ECHO_T}$AR" >&6; } 7791else 7792 { echo "$as_me:$LINENO: result: no" >&5 7793echo "${ECHO_T}no" >&6; } 7794fi 7795 7796 7797 STLIB_LD='${AR} cr' 7798 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7799 if test "x$SHLIB_VERSION" = x; then 7800 SHLIB_VERSION="1.0" 7801fi 7802 7803 case $system in 7804 # TEA specific: 7805 windows) 7806 # This is a 2-stage check to make sure we have the 64-bit SDK 7807 # We have to know where the SDK is installed. 7808 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7809 # MACHINE is IX86 for LINK, but this is used by the manifest, 7810 # which requires x86|amd64|ia64. 7811 MACHINE="X86" 7812 if test "$do64bit" != "no" ; then 7813 if test "x${MSSDK}x" = "xx" ; then 7814 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7815 fi 7816 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7817 PATH64="" 7818 case "$do64bit" in 7819 amd64|x64|yes) 7820 MACHINE="AMD64" ; # default to AMD64 64-bit build 7821 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7822 ;; 7823 ia64) 7824 MACHINE="IA64" 7825 PATH64="${MSSDK}/Bin/Win64" 7826 ;; 7827 esac 7828 if test ! -d "${PATH64}" ; then 7829 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7830echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7831 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7832echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7833 do64bit="no" 7834 else 7835 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7836echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7837 do64bit_ok="yes" 7838 fi 7839 fi 7840 7841 if test "$doWince" != "no" ; then 7842 if test "$do64bit" != "no" ; then 7843 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7844echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7845 { (exit 1); exit 1; }; } 7846 fi 7847 if test "$GCC" = "yes" ; then 7848 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7849echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7850 { (exit 1); exit 1; }; } 7851 fi 7852 7853 # First, look for one uninstalled. 7854 # the alternative search directory is invoked by --with-celib 7855 7856 if test x"${no_celib}" = x ; then 7857 # we reset no_celib in case something fails here 7858 no_celib=true 7859 7860# Check whether --with-celib was given. 7861if test "${with_celib+set}" = set; then 7862 withval=$with_celib; with_celibconfig=${withval} 7863fi 7864 7865 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7866echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7867 if test "${ac_cv_c_celibconfig+set}" = set; then 7868 echo $ECHO_N "(cached) $ECHO_C" >&6 7869else 7870 7871 # First check to see if --with-celibconfig was specified. 7872 if test x"${with_celibconfig}" != x ; then 7873 if test -d "${with_celibconfig}/inc" ; then 7874 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7875 else 7876 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7877echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7878 { (exit 1); exit 1; }; } 7879 fi 7880 fi 7881 7882 # then check for a celib library 7883 if test x"${ac_cv_c_celibconfig}" = x ; then 7884 for i in \ 7885 ../celib-palm-3.0 \ 7886 ../celib \ 7887 ../../celib-palm-3.0 \ 7888 ../../celib \ 7889 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7890 ${srcdir}/../celib-palm-3.0 \ 7891 ${srcdir}/../celib \ 7892 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7893 ; do 7894 if test -d "$i/inc" ; then 7895 ac_cv_c_celibconfig=`(cd $i; pwd)` 7896 break 7897 fi 7898 done 7899 fi 7900 7901fi 7902 7903 if test x"${ac_cv_c_celibconfig}" = x ; then 7904 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7905echo "$as_me: error: Cannot find celib support library directory" >&2;} 7906 { (exit 1); exit 1; }; } 7907 else 7908 no_celib= 7909 CELIB_DIR=${ac_cv_c_celibconfig} 7910 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7911 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7912echo "${ECHO_T}found $CELIB_DIR" >&6; } 7913 fi 7914 fi 7915 7916 # Set defaults for common evc4/PPC2003 setup 7917 # Currently Tcl requires 300+, possibly 420+ for sockets 7918 CEVERSION=420; # could be 211 300 301 400 420 ... 7919 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7920 ARCH=ARM; # could be ARM MIPS X86EM ... 7921 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7922 if test "$doWince" != "yes"; then 7923 # If !yes then the user specified something 7924 # Reset ARCH to allow user to skip specifying it 7925 ARCH= 7926 eval `echo $doWince | awk -F, '{ \ 7927 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7928 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7929 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7930 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7931 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7932 }'` 7933 if test "x${ARCH}" = "x" ; then 7934 ARCH=$TARGETCPU; 7935 fi 7936 fi 7937 OSVERSION=WCE$CEVERSION; 7938 if test "x${WCEROOT}" = "x" ; then 7939 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7940 if test ! -d "${WCEROOT}" ; then 7941 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7942 fi 7943 fi 7944 if test "x${SDKROOT}" = "x" ; then 7945 SDKROOT="C:/Program Files/Windows CE Tools" 7946 if test ! -d "${SDKROOT}" ; then 7947 SDKROOT="C:/Windows CE Tools" 7948 fi 7949 fi 7950 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7951 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7952 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7953 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7954 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7955echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7956 { (exit 1); exit 1; }; } 7957 doWince="no" 7958 else 7959 # We could PATH_NOSPACE these, but that's not important, 7960 # as long as we quote them when used. 7961 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7962 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7963 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7964 fi 7965 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7966 fi 7967 fi 7968 7969 if test "$GCC" != "yes" ; then 7970 if test "${SHARED_BUILD}" = "0" ; then 7971 runtime=-MT 7972 else 7973 runtime=-MD 7974 fi 7975 7976 if test "$do64bit" != "no" ; then 7977 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7978 CC="\"${PATH64}/cl.exe\"" 7979 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7980 RC="\"${MSSDK}/bin/rc.exe\"" 7981 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7982 LINKBIN="\"${PATH64}/link.exe\"" 7983 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7984 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7985 # Avoid 'unresolved external symbol __security_cookie' 7986 # errors, c.f. http://support.microsoft.com/?id=894573 7987 7988 vars="bufferoverflowU.lib" 7989 for i in $vars; do 7990 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7991 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7992 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7993 fi 7994 PKG_LIBS="$PKG_LIBS $i" 7995 done 7996 7997 7998 elif test "$doWince" != "no" ; then 7999 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8000 if test "${TARGETCPU}" = "X86"; then 8001 CC="\"${CEBINROOT}/cl.exe\"" 8002 else 8003 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8004 fi 8005 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8006 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8007 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8008 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8009 if test "${SHARED_BUILD}" = "1" ; then 8010 # Static CE builds require static celib as well 8011 defs="${defs} _DLL" 8012 fi 8013 for i in $defs ; do 8014 8015cat >>confdefs.h <<_ACEOF 8016#define $i 1 8017_ACEOF 8018 8019 done 8020 8021cat >>confdefs.h <<_ACEOF 8022#define _WIN32_WCE $CEVERSION 8023_ACEOF 8024 8025 8026cat >>confdefs.h <<_ACEOF 8027#define UNDER_CE $CEVERSION 8028_ACEOF 8029 8030 CFLAGS_DEBUG="-nologo -Zi -Od" 8031 CFLAGS_OPTIMIZE="-nologo -Ox" 8032 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8033 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8034 LINKBIN="\"${CEBINROOT}/link.exe\"" 8035 8036 else 8037 RC="rc" 8038 lflags="-nologo" 8039 LINKBIN="link" 8040 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8041 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8042 fi 8043 fi 8044 8045 if test "$GCC" = "yes"; then 8046 # mingw gcc mode 8047 RC="windres" 8048 CFLAGS_DEBUG="-g" 8049 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8050 SHLIB_LD="$CC -shared" 8051 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8052 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8053 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8054 else 8055 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8056 # link -lib only works when -lib is the first arg 8057 STLIB_LD="${LINKBIN} -lib ${lflags}" 8058 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8059 PATHTYPE=-w 8060 # For information on what debugtype is most useful, see: 8061 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8062 # and also 8063 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8064 # This essentially turns it all on. 8065 LDFLAGS_DEBUG="-debug -debugtype:cv" 8066 LDFLAGS_OPTIMIZE="-release" 8067 if test "$doWince" != "no" ; then 8068 LDFLAGS_CONSOLE="-link ${lflags}" 8069 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8070 else 8071 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8072 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8073 fi 8074 fi 8075 8076 SHLIB_SUFFIX=".dll" 8077 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8078 8079 TCL_LIB_VERSIONS_OK=nodots 8080 ;; 8081 AIX-*) 8082 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8083 8084 # AIX requires the _r compiler when gcc isn't being used 8085 case "${CC}" in 8086 *_r|*_r\ *) 8087 # ok ... 8088 ;; 8089 *) 8090 # Make sure only first arg gets _r 8091 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8092 ;; 8093 esac 8094 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8095echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8096 8097fi 8098 8099 LIBS="$LIBS -lc" 8100 SHLIB_CFLAGS="" 8101 SHLIB_SUFFIX=".so" 8102 8103 LD_LIBRARY_PATH_VAR="LIBPATH" 8104 8105 # Check to enable 64-bit flags for compiler/linker 8106 if test "$do64bit" = yes; then 8107 8108 if test "$GCC" = yes; then 8109 8110 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8111echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8112 8113else 8114 8115 do64bit_ok=yes 8116 CFLAGS="$CFLAGS -q64" 8117 LDFLAGS_ARCH="-q64" 8118 RANLIB="${RANLIB} -X64" 8119 AR="${AR} -X64" 8120 SHLIB_LD_FLAGS="-b64" 8121 8122fi 8123 8124 8125fi 8126 8127 8128 if test "`uname -m`" = ia64; then 8129 8130 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8131 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8132 if test "$GCC" = yes; then 8133 8134 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8135 8136else 8137 8138 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8139 8140fi 8141 8142 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8143 8144else 8145 8146 if test "$GCC" = yes; then 8147 8148 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8149 8150else 8151 8152 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8153 LDFLAGS="$LDFLAGS -brtl" 8154 8155fi 8156 8157 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8158 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8159 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8160 8161fi 8162 8163 ;; 8164 BeOS*) 8165 SHLIB_CFLAGS="-fPIC" 8166 SHLIB_LD='${CC} -nostart' 8167 SHLIB_SUFFIX=".so" 8168 8169 #----------------------------------------------------------- 8170 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8171 # -lsocket, even if the network functions are in -lnet which 8172 # is always linked to, for compatibility. 8173 #----------------------------------------------------------- 8174 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8175echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8176if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8177 echo $ECHO_N "(cached) $ECHO_C" >&6 8178else 8179 ac_check_lib_save_LIBS=$LIBS 8180LIBS="-lbind $LIBS" 8181cat >conftest.$ac_ext <<_ACEOF 8182/* confdefs.h. */ 8183_ACEOF 8184cat confdefs.h >>conftest.$ac_ext 8185cat >>conftest.$ac_ext <<_ACEOF 8186/* end confdefs.h. */ 8187 8188/* Override any GCC internal prototype to avoid an error. 8189 Use char because int might match the return type of a GCC 8190 builtin and then its argument prototype would still apply. */ 8191#ifdef __cplusplus 8192extern "C" 8193#endif 8194char inet_ntoa (); 8195int 8196main () 8197{ 8198return inet_ntoa (); 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203rm -f conftest.$ac_objext conftest$ac_exeext 8204if { (ac_try="$ac_link" 8205case "(($ac_try" in 8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8207 *) ac_try_echo=$ac_try;; 8208esac 8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8210 (eval "$ac_link") 2>conftest.er1 8211 ac_status=$? 8212 grep -v '^ *+' conftest.er1 >conftest.err 8213 rm -f conftest.er1 8214 cat conftest.err >&5 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 (exit $ac_status); } && { 8217 test -z "$ac_c_werror_flag" || 8218 test ! -s conftest.err 8219 } && test -s conftest$ac_exeext && 8220 $as_test_x conftest$ac_exeext; then 8221 ac_cv_lib_bind_inet_ntoa=yes 8222else 8223 echo "$as_me: failed program was:" >&5 8224sed 's/^/| /' conftest.$ac_ext >&5 8225 8226 ac_cv_lib_bind_inet_ntoa=no 8227fi 8228 8229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8230 conftest$ac_exeext conftest.$ac_ext 8231LIBS=$ac_check_lib_save_LIBS 8232fi 8233{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8234echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8235if test $ac_cv_lib_bind_inet_ntoa = yes; then 8236 LIBS="$LIBS -lbind -lsocket" 8237fi 8238 8239 ;; 8240 BSD/OS-4.*) 8241 SHLIB_CFLAGS="-export-dynamic -fPIC" 8242 SHLIB_LD='${CC} -shared' 8243 SHLIB_SUFFIX=".so" 8244 LDFLAGS="$LDFLAGS -export-dynamic" 8245 CC_SEARCH_FLAGS="" 8246 LD_SEARCH_FLAGS="" 8247 ;; 8248 CYGWIN_*) 8249 SHLIB_CFLAGS="" 8250 SHLIB_LD='${CC} -shared' 8251 SHLIB_SUFFIX=".dll" 8252 EXE_SUFFIX=".exe" 8253 CC_SEARCH_FLAGS="" 8254 LD_SEARCH_FLAGS="" 8255 ;; 8256 Haiku*) 8257 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8258 SHLIB_CFLAGS="-fPIC" 8259 SHLIB_SUFFIX=".so" 8260 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8261 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8262echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8263if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8264 echo $ECHO_N "(cached) $ECHO_C" >&6 8265else 8266 ac_check_lib_save_LIBS=$LIBS 8267LIBS="-lnetwork $LIBS" 8268cat >conftest.$ac_ext <<_ACEOF 8269/* confdefs.h. */ 8270_ACEOF 8271cat confdefs.h >>conftest.$ac_ext 8272cat >>conftest.$ac_ext <<_ACEOF 8273/* end confdefs.h. */ 8274 8275/* Override any GCC internal prototype to avoid an error. 8276 Use char because int might match the return type of a GCC 8277 builtin and then its argument prototype would still apply. */ 8278#ifdef __cplusplus 8279extern "C" 8280#endif 8281char inet_ntoa (); 8282int 8283main () 8284{ 8285return inet_ntoa (); 8286 ; 8287 return 0; 8288} 8289_ACEOF 8290rm -f conftest.$ac_objext conftest$ac_exeext 8291if { (ac_try="$ac_link" 8292case "(($ac_try" in 8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8294 *) ac_try_echo=$ac_try;; 8295esac 8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8297 (eval "$ac_link") 2>conftest.er1 8298 ac_status=$? 8299 grep -v '^ *+' conftest.er1 >conftest.err 8300 rm -f conftest.er1 8301 cat conftest.err >&5 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8303 (exit $ac_status); } && { 8304 test -z "$ac_c_werror_flag" || 8305 test ! -s conftest.err 8306 } && test -s conftest$ac_exeext && 8307 $as_test_x conftest$ac_exeext; then 8308 ac_cv_lib_network_inet_ntoa=yes 8309else 8310 echo "$as_me: failed program was:" >&5 8311sed 's/^/| /' conftest.$ac_ext >&5 8312 8313 ac_cv_lib_network_inet_ntoa=no 8314fi 8315 8316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8317 conftest$ac_exeext conftest.$ac_ext 8318LIBS=$ac_check_lib_save_LIBS 8319fi 8320{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8321echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8322if test $ac_cv_lib_network_inet_ntoa = yes; then 8323 LIBS="$LIBS -lnetwork" 8324fi 8325 8326 ;; 8327 HP-UX-*.11.*) 8328 # Use updated header definitions where possible 8329 8330cat >>confdefs.h <<\_ACEOF 8331#define _XOPEN_SOURCE_EXTENDED 1 8332_ACEOF 8333 8334 # TEA specific: Needed by Tcl, but not most extensions 8335 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8336 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8337 8338 if test "`uname -m`" = ia64; then 8339 8340 SHLIB_SUFFIX=".so" 8341 # Use newer C++ library for C++ extensions 8342 #if test "$GCC" != "yes" ; then 8343 # CPPFLAGS="-AA" 8344 #fi 8345 8346else 8347 8348 SHLIB_SUFFIX=".sl" 8349 8350fi 8351 8352 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8353echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8354if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8355 echo $ECHO_N "(cached) $ECHO_C" >&6 8356else 8357 ac_check_lib_save_LIBS=$LIBS 8358LIBS="-ldld $LIBS" 8359cat >conftest.$ac_ext <<_ACEOF 8360/* confdefs.h. */ 8361_ACEOF 8362cat confdefs.h >>conftest.$ac_ext 8363cat >>conftest.$ac_ext <<_ACEOF 8364/* end confdefs.h. */ 8365 8366/* Override any GCC internal prototype to avoid an error. 8367 Use char because int might match the return type of a GCC 8368 builtin and then its argument prototype would still apply. */ 8369#ifdef __cplusplus 8370extern "C" 8371#endif 8372char shl_load (); 8373int 8374main () 8375{ 8376return shl_load (); 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381rm -f conftest.$ac_objext conftest$ac_exeext 8382if { (ac_try="$ac_link" 8383case "(($ac_try" in 8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8385 *) ac_try_echo=$ac_try;; 8386esac 8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8388 (eval "$ac_link") 2>conftest.er1 8389 ac_status=$? 8390 grep -v '^ *+' conftest.er1 >conftest.err 8391 rm -f conftest.er1 8392 cat conftest.err >&5 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); } && { 8395 test -z "$ac_c_werror_flag" || 8396 test ! -s conftest.err 8397 } && test -s conftest$ac_exeext && 8398 $as_test_x conftest$ac_exeext; then 8399 ac_cv_lib_dld_shl_load=yes 8400else 8401 echo "$as_me: failed program was:" >&5 8402sed 's/^/| /' conftest.$ac_ext >&5 8403 8404 ac_cv_lib_dld_shl_load=no 8405fi 8406 8407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8408 conftest$ac_exeext conftest.$ac_ext 8409LIBS=$ac_check_lib_save_LIBS 8410fi 8411{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8413if test $ac_cv_lib_dld_shl_load = yes; then 8414 tcl_ok=yes 8415else 8416 tcl_ok=no 8417fi 8418 8419 if test "$tcl_ok" = yes; then 8420 8421 LDFLAGS="$LDFLAGS -E" 8422 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8423 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8424 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8425 8426fi 8427 8428 if test "$GCC" = yes; then 8429 8430 SHLIB_LD='${CC} -shared' 8431 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8432 8433else 8434 8435 CFLAGS="$CFLAGS -z" 8436 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8437 #CFLAGS="$CFLAGS +DAportable" 8438 SHLIB_CFLAGS="+z" 8439 SHLIB_LD="ld -b" 8440 8441fi 8442 8443 8444 # Check to enable 64-bit flags for compiler/linker 8445 if test "$do64bit" = "yes"; then 8446 8447 if test "$GCC" = yes; then 8448 8449 case `${CC} -dumpmachine` in 8450 hppa64*) 8451 # 64-bit gcc in use. Fix flags for GNU ld. 8452 do64bit_ok=yes 8453 SHLIB_LD='${CC} -shared' 8454 if test $doRpath = yes; then 8455 8456 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8457fi 8458 8459 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8460 ;; 8461 *) 8462 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8463echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8464 ;; 8465 esac 8466 8467else 8468 8469 do64bit_ok=yes 8470 CFLAGS="$CFLAGS +DD64" 8471 LDFLAGS_ARCH="+DD64" 8472 8473fi 8474 8475 8476fi 8477 ;; 8478 IRIX-6.*) 8479 SHLIB_CFLAGS="" 8480 SHLIB_LD="ld -n32 -shared -rdata_shared" 8481 SHLIB_SUFFIX=".so" 8482 if test $doRpath = yes; then 8483 8484 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8485 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8486fi 8487 8488 if test "$GCC" = yes; then 8489 8490 CFLAGS="$CFLAGS -mabi=n32" 8491 LDFLAGS="$LDFLAGS -mabi=n32" 8492 8493else 8494 8495 case $system in 8496 IRIX-6.3) 8497 # Use to build 6.2 compatible binaries on 6.3. 8498 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8499 ;; 8500 *) 8501 CFLAGS="$CFLAGS -n32" 8502 ;; 8503 esac 8504 LDFLAGS="$LDFLAGS -n32" 8505 8506fi 8507 8508 ;; 8509 IRIX64-6.*) 8510 SHLIB_CFLAGS="" 8511 SHLIB_LD="ld -n32 -shared -rdata_shared" 8512 SHLIB_SUFFIX=".so" 8513 if test $doRpath = yes; then 8514 8515 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8516 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8517fi 8518 8519 8520 # Check to enable 64-bit flags for compiler/linker 8521 8522 if test "$do64bit" = yes; then 8523 8524 if test "$GCC" = yes; then 8525 8526 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8527echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8528 8529else 8530 8531 do64bit_ok=yes 8532 SHLIB_LD="ld -64 -shared -rdata_shared" 8533 CFLAGS="$CFLAGS -64" 8534 LDFLAGS_ARCH="-64" 8535 8536fi 8537 8538 8539fi 8540 8541 ;; 8542 Linux*) 8543 SHLIB_CFLAGS="-fPIC" 8544 SHLIB_SUFFIX=".so" 8545 8546 # TEA specific: 8547 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8548 8549 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8550 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8551 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8552 if test $doRpath = yes; then 8553 8554 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8555fi 8556 8557 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8558 if test "`uname -m`" = "alpha"; then 8559 CFLAGS="$CFLAGS -mieee" 8560fi 8561 8562 if test $do64bit = yes; then 8563 8564 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8565echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8566if test "${tcl_cv_cc_m64+set}" = set; then 8567 echo $ECHO_N "(cached) $ECHO_C" >&6 8568else 8569 8570 hold_cflags=$CFLAGS 8571 CFLAGS="$CFLAGS -m64" 8572 cat >conftest.$ac_ext <<_ACEOF 8573/* confdefs.h. */ 8574_ACEOF 8575cat confdefs.h >>conftest.$ac_ext 8576cat >>conftest.$ac_ext <<_ACEOF 8577/* end confdefs.h. */ 8578 8579int 8580main () 8581{ 8582 8583 ; 8584 return 0; 8585} 8586_ACEOF 8587rm -f conftest.$ac_objext conftest$ac_exeext 8588if { (ac_try="$ac_link" 8589case "(($ac_try" in 8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8591 *) ac_try_echo=$ac_try;; 8592esac 8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8594 (eval "$ac_link") 2>conftest.er1 8595 ac_status=$? 8596 grep -v '^ *+' conftest.er1 >conftest.err 8597 rm -f conftest.er1 8598 cat conftest.err >&5 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 (exit $ac_status); } && { 8601 test -z "$ac_c_werror_flag" || 8602 test ! -s conftest.err 8603 } && test -s conftest$ac_exeext && 8604 $as_test_x conftest$ac_exeext; then 8605 tcl_cv_cc_m64=yes 8606else 8607 echo "$as_me: failed program was:" >&5 8608sed 's/^/| /' conftest.$ac_ext >&5 8609 8610 tcl_cv_cc_m64=no 8611fi 8612 8613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8614 conftest$ac_exeext conftest.$ac_ext 8615 CFLAGS=$hold_cflags 8616fi 8617{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8618echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8619 if test $tcl_cv_cc_m64 = yes; then 8620 8621 CFLAGS="$CFLAGS -m64" 8622 do64bit_ok=yes 8623 8624fi 8625 8626 8627fi 8628 8629 8630 # The combo of gcc + glibc has a bug related to inlining of 8631 # functions like strtod(). The -fno-builtin flag should address 8632 # this problem but it does not work. The -fno-inline flag is kind 8633 # of overkill but it works. Disable inlining only when one of the 8634 # files in compat/*.c is being linked in. 8635 8636 if test x"${USE_COMPAT}" != x; then 8637 CFLAGS="$CFLAGS -fno-inline" 8638fi 8639 8640 8641 ;; 8642 GNU*) 8643 SHLIB_CFLAGS="-fPIC" 8644 SHLIB_SUFFIX=".so" 8645 8646 SHLIB_LD='${CC} -shared' 8647 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8648 CC_SEARCH_FLAGS="" 8649 LD_SEARCH_FLAGS="" 8650 if test "`uname -m`" = "alpha"; then 8651 CFLAGS="$CFLAGS -mieee" 8652fi 8653 8654 ;; 8655 Lynx*) 8656 SHLIB_CFLAGS="-fPIC" 8657 SHLIB_SUFFIX=".so" 8658 CFLAGS_OPTIMIZE=-02 8659 SHLIB_LD='${CC} -shared' 8660 LD_FLAGS="-Wl,--export-dynamic" 8661 if test $doRpath = yes; then 8662 8663 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8664 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8665fi 8666 8667 ;; 8668 OpenBSD-*) 8669 SHLIB_CFLAGS="-fPIC" 8670 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8671 SHLIB_SUFFIX=".so" 8672 if test $doRpath = yes; then 8673 8674 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8675fi 8676 8677 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8678 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8679 { echo "$as_me:$LINENO: checking for ELF" >&5 8680echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8681if test "${tcl_cv_ld_elf+set}" = set; then 8682 echo $ECHO_N "(cached) $ECHO_C" >&6 8683else 8684 8685 cat >conftest.$ac_ext <<_ACEOF 8686/* confdefs.h. */ 8687_ACEOF 8688cat confdefs.h >>conftest.$ac_ext 8689cat >>conftest.$ac_ext <<_ACEOF 8690/* end confdefs.h. */ 8691 8692#ifdef __ELF__ 8693 yes 8694#endif 8695 8696_ACEOF 8697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8698 $EGREP "yes" >/dev/null 2>&1; then 8699 tcl_cv_ld_elf=yes 8700else 8701 tcl_cv_ld_elf=no 8702fi 8703rm -f -r conftest* 8704 8705fi 8706{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8707echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8708 if test $tcl_cv_ld_elf = yes; then 8709 8710 LDFLAGS=-Wl,-export-dynamic 8711 8712else 8713 LDFLAGS="" 8714fi 8715 8716 if test "${TCL_THREADS}" = "1"; then 8717 8718 # OpenBSD builds and links with -pthread, never -lpthread. 8719 LIBS=`echo $LIBS | sed s/-lpthread//` 8720 CFLAGS="$CFLAGS -pthread" 8721 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8722 8723fi 8724 8725 # OpenBSD doesn't do version numbers with dots. 8726 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8727 TCL_LIB_VERSIONS_OK=nodots 8728 ;; 8729 NetBSD-*|FreeBSD-[3-4].*) 8730 # FreeBSD 3.* and greater have ELF. 8731 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8732 SHLIB_CFLAGS="-fPIC" 8733 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8734 SHLIB_SUFFIX=".so" 8735 LDFLAGS="$LDFLAGS -export-dynamic" 8736 if test $doRpath = yes; then 8737 8738 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8739fi 8740 8741 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8742 if test "${TCL_THREADS}" = "1"; then 8743 8744 # The -pthread needs to go in the CFLAGS, not LIBS 8745 LIBS=`echo $LIBS | sed s/-pthread//` 8746 CFLAGS="$CFLAGS -pthread" 8747 LDFLAGS="$LDFLAGS -pthread" 8748 8749fi 8750 8751 case $system in 8752 FreeBSD-3.*) 8753 # FreeBSD-3 doesn't handle version numbers with dots. 8754 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8755 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8756 TCL_LIB_VERSIONS_OK=nodots 8757 ;; 8758 esac 8759 ;; 8760 FreeBSD-*) 8761 # This configuration from FreeBSD Ports. 8762 SHLIB_CFLAGS="-fPIC" 8763 SHLIB_LD="${CC} -shared" 8764 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8765 SHLIB_SUFFIX=".so" 8766 LDFLAGS="" 8767 if test $doRpath = yes; then 8768 8769 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8770 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8771fi 8772 8773 if test "${TCL_THREADS}" = "1"; then 8774 8775 # The -pthread needs to go in the LDFLAGS, not LIBS 8776 LIBS=`echo $LIBS | sed s/-pthread//` 8777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8778 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8779fi 8780 8781 # Version numbers are dot-stripped by system policy. 8782 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8783 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8784 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8785 TCL_LIB_VERSIONS_OK=nodots 8786 ;; 8787 Darwin-*) 8788 CFLAGS_OPTIMIZE="-Os" 8789 SHLIB_CFLAGS="-fno-common" 8790 # To avoid discrepancies between what headers configure sees during 8791 # preprocessing tests and compiling tests, move any -isysroot and 8792 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8793 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8794 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8795 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8796 CFLAGS="`echo " ${CFLAGS}" | \ 8797 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8798 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8799 if test $do64bit = yes; then 8800 8801 case `arch` in 8802 ppc) 8803 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8804echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8805if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8806 echo $ECHO_N "(cached) $ECHO_C" >&6 8807else 8808 8809 hold_cflags=$CFLAGS 8810 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8811 cat >conftest.$ac_ext <<_ACEOF 8812/* confdefs.h. */ 8813_ACEOF 8814cat confdefs.h >>conftest.$ac_ext 8815cat >>conftest.$ac_ext <<_ACEOF 8816/* end confdefs.h. */ 8817 8818int 8819main () 8820{ 8821 8822 ; 8823 return 0; 8824} 8825_ACEOF 8826rm -f conftest.$ac_objext conftest$ac_exeext 8827if { (ac_try="$ac_link" 8828case "(($ac_try" in 8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8830 *) ac_try_echo=$ac_try;; 8831esac 8832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8833 (eval "$ac_link") 2>conftest.er1 8834 ac_status=$? 8835 grep -v '^ *+' conftest.er1 >conftest.err 8836 rm -f conftest.er1 8837 cat conftest.err >&5 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); } && { 8840 test -z "$ac_c_werror_flag" || 8841 test ! -s conftest.err 8842 } && test -s conftest$ac_exeext && 8843 $as_test_x conftest$ac_exeext; then 8844 tcl_cv_cc_arch_ppc64=yes 8845else 8846 echo "$as_me: failed program was:" >&5 8847sed 's/^/| /' conftest.$ac_ext >&5 8848 8849 tcl_cv_cc_arch_ppc64=no 8850fi 8851 8852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8853 conftest$ac_exeext conftest.$ac_ext 8854 CFLAGS=$hold_cflags 8855fi 8856{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8857echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8858 if test $tcl_cv_cc_arch_ppc64 = yes; then 8859 8860 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8861 do64bit_ok=yes 8862 8863fi 8864;; 8865 i386) 8866 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8867echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8868if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8869 echo $ECHO_N "(cached) $ECHO_C" >&6 8870else 8871 8872 hold_cflags=$CFLAGS 8873 CFLAGS="$CFLAGS -arch x86_64" 8874 cat >conftest.$ac_ext <<_ACEOF 8875/* confdefs.h. */ 8876_ACEOF 8877cat confdefs.h >>conftest.$ac_ext 8878cat >>conftest.$ac_ext <<_ACEOF 8879/* end confdefs.h. */ 8880 8881int 8882main () 8883{ 8884 8885 ; 8886 return 0; 8887} 8888_ACEOF 8889rm -f conftest.$ac_objext conftest$ac_exeext 8890if { (ac_try="$ac_link" 8891case "(($ac_try" in 8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8893 *) ac_try_echo=$ac_try;; 8894esac 8895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8896 (eval "$ac_link") 2>conftest.er1 8897 ac_status=$? 8898 grep -v '^ *+' conftest.er1 >conftest.err 8899 rm -f conftest.er1 8900 cat conftest.err >&5 8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8902 (exit $ac_status); } && { 8903 test -z "$ac_c_werror_flag" || 8904 test ! -s conftest.err 8905 } && test -s conftest$ac_exeext && 8906 $as_test_x conftest$ac_exeext; then 8907 tcl_cv_cc_arch_x86_64=yes 8908else 8909 echo "$as_me: failed program was:" >&5 8910sed 's/^/| /' conftest.$ac_ext >&5 8911 8912 tcl_cv_cc_arch_x86_64=no 8913fi 8914 8915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8916 conftest$ac_exeext conftest.$ac_ext 8917 CFLAGS=$hold_cflags 8918fi 8919{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8920echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8921 if test $tcl_cv_cc_arch_x86_64 = yes; then 8922 8923 CFLAGS="$CFLAGS -arch x86_64" 8924 do64bit_ok=yes 8925 8926fi 8927;; 8928 *) 8929 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8930echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8931 esac 8932 8933else 8934 8935 # Check for combined 32-bit and 64-bit fat build 8936 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8937 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8938 8939 fat_32_64=yes 8940fi 8941 8942 8943fi 8944 8945 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8946 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8947 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8948echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8949if test "${tcl_cv_ld_single_module+set}" = set; then 8950 echo $ECHO_N "(cached) $ECHO_C" >&6 8951else 8952 8953 hold_ldflags=$LDFLAGS 8954 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8955 cat >conftest.$ac_ext <<_ACEOF 8956/* confdefs.h. */ 8957_ACEOF 8958cat confdefs.h >>conftest.$ac_ext 8959cat >>conftest.$ac_ext <<_ACEOF 8960/* end confdefs.h. */ 8961 8962int 8963main () 8964{ 8965int i; 8966 ; 8967 return 0; 8968} 8969_ACEOF 8970rm -f conftest.$ac_objext conftest$ac_exeext 8971if { (ac_try="$ac_link" 8972case "(($ac_try" in 8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8974 *) ac_try_echo=$ac_try;; 8975esac 8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8977 (eval "$ac_link") 2>conftest.er1 8978 ac_status=$? 8979 grep -v '^ *+' conftest.er1 >conftest.err 8980 rm -f conftest.er1 8981 cat conftest.err >&5 8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8983 (exit $ac_status); } && { 8984 test -z "$ac_c_werror_flag" || 8985 test ! -s conftest.err 8986 } && test -s conftest$ac_exeext && 8987 $as_test_x conftest$ac_exeext; then 8988 tcl_cv_ld_single_module=yes 8989else 8990 echo "$as_me: failed program was:" >&5 8991sed 's/^/| /' conftest.$ac_ext >&5 8992 8993 tcl_cv_ld_single_module=no 8994fi 8995 8996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8997 conftest$ac_exeext conftest.$ac_ext 8998 LDFLAGS=$hold_ldflags 8999fi 9000{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9001echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9002 if test $tcl_cv_ld_single_module = yes; then 9003 9004 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9005 9006fi 9007 9008 # TEA specific: link shlib with current and compatiblity version flags 9009 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9010 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9011 SHLIB_SUFFIX=".dylib" 9012 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9013 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9014 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9015 9016 LDFLAGS="$LDFLAGS -prebind" 9017fi 9018 9019 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9020 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9021echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9022if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9023 echo $ECHO_N "(cached) $ECHO_C" >&6 9024else 9025 9026 hold_ldflags=$LDFLAGS 9027 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9028 cat >conftest.$ac_ext <<_ACEOF 9029/* confdefs.h. */ 9030_ACEOF 9031cat confdefs.h >>conftest.$ac_ext 9032cat >>conftest.$ac_ext <<_ACEOF 9033/* end confdefs.h. */ 9034 9035int 9036main () 9037{ 9038int i; 9039 ; 9040 return 0; 9041} 9042_ACEOF 9043rm -f conftest.$ac_objext conftest$ac_exeext 9044if { (ac_try="$ac_link" 9045case "(($ac_try" in 9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9047 *) ac_try_echo=$ac_try;; 9048esac 9049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9050 (eval "$ac_link") 2>conftest.er1 9051 ac_status=$? 9052 grep -v '^ *+' conftest.er1 >conftest.err 9053 rm -f conftest.er1 9054 cat conftest.err >&5 9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9056 (exit $ac_status); } && { 9057 test -z "$ac_c_werror_flag" || 9058 test ! -s conftest.err 9059 } && test -s conftest$ac_exeext && 9060 $as_test_x conftest$ac_exeext; then 9061 tcl_cv_ld_search_paths_first=yes 9062else 9063 echo "$as_me: failed program was:" >&5 9064sed 's/^/| /' conftest.$ac_ext >&5 9065 9066 tcl_cv_ld_search_paths_first=no 9067fi 9068 9069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9070 conftest$ac_exeext conftest.$ac_ext 9071 LDFLAGS=$hold_ldflags 9072fi 9073{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9074echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9075 if test $tcl_cv_ld_search_paths_first = yes; then 9076 9077 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9078 9079fi 9080 9081 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9082 9083 9084cat >>confdefs.h <<\_ACEOF 9085#define MODULE_SCOPE __private_extern__ 9086_ACEOF 9087 9088 tcl_cv_cc_visibility_hidden=yes 9089 9090fi 9091 9092 CC_SEARCH_FLAGS="" 9093 LD_SEARCH_FLAGS="" 9094 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9095 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9096 # extensions, verify that 64-bit build is possible. 9097 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9098 9099 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9100 9101 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9102echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9103if test "${tcl_cv_lib_x11_64+set}" = set; then 9104 echo $ECHO_N "(cached) $ECHO_C" >&6 9105else 9106 9107 for v in CFLAGS CPPFLAGS LDFLAGS; do 9108 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9109 done 9110 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9111 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9112 cat >conftest.$ac_ext <<_ACEOF 9113/* confdefs.h. */ 9114_ACEOF 9115cat confdefs.h >>conftest.$ac_ext 9116cat >>conftest.$ac_ext <<_ACEOF 9117/* end confdefs.h. */ 9118#include <X11/Xlib.h> 9119int 9120main () 9121{ 9122XrmInitialize(); 9123 ; 9124 return 0; 9125} 9126_ACEOF 9127rm -f conftest.$ac_objext conftest$ac_exeext 9128if { (ac_try="$ac_link" 9129case "(($ac_try" in 9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9131 *) ac_try_echo=$ac_try;; 9132esac 9133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9134 (eval "$ac_link") 2>conftest.er1 9135 ac_status=$? 9136 grep -v '^ *+' conftest.er1 >conftest.err 9137 rm -f conftest.er1 9138 cat conftest.err >&5 9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9140 (exit $ac_status); } && { 9141 test -z "$ac_c_werror_flag" || 9142 test ! -s conftest.err 9143 } && test -s conftest$ac_exeext && 9144 $as_test_x conftest$ac_exeext; then 9145 tcl_cv_lib_x11_64=yes 9146else 9147 echo "$as_me: failed program was:" >&5 9148sed 's/^/| /' conftest.$ac_ext >&5 9149 9150 tcl_cv_lib_x11_64=no 9151fi 9152 9153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9154 conftest$ac_exeext conftest.$ac_ext 9155 for v in CFLAGS CPPFLAGS LDFLAGS; do 9156 eval $v'="$hold_'$v'"' 9157 done 9158fi 9159{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9160echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9161 9162fi 9163 9164 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9165 9166 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9167echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9168if test "${tcl_cv_lib_tk_64+set}" = set; then 9169 echo $ECHO_N "(cached) $ECHO_C" >&6 9170else 9171 9172 for v in CFLAGS CPPFLAGS LDFLAGS; do 9173 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9174 done 9175 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9176 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9177 cat >conftest.$ac_ext <<_ACEOF 9178/* confdefs.h. */ 9179_ACEOF 9180cat confdefs.h >>conftest.$ac_ext 9181cat >>conftest.$ac_ext <<_ACEOF 9182/* end confdefs.h. */ 9183#include <tk.h> 9184int 9185main () 9186{ 9187Tk_InitStubs(NULL, "", 0); 9188 ; 9189 return 0; 9190} 9191_ACEOF 9192rm -f conftest.$ac_objext conftest$ac_exeext 9193if { (ac_try="$ac_link" 9194case "(($ac_try" in 9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9196 *) ac_try_echo=$ac_try;; 9197esac 9198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9199 (eval "$ac_link") 2>conftest.er1 9200 ac_status=$? 9201 grep -v '^ *+' conftest.er1 >conftest.err 9202 rm -f conftest.er1 9203 cat conftest.err >&5 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); } && { 9206 test -z "$ac_c_werror_flag" || 9207 test ! -s conftest.err 9208 } && test -s conftest$ac_exeext && 9209 $as_test_x conftest$ac_exeext; then 9210 tcl_cv_lib_tk_64=yes 9211else 9212 echo "$as_me: failed program was:" >&5 9213sed 's/^/| /' conftest.$ac_ext >&5 9214 9215 tcl_cv_lib_tk_64=no 9216fi 9217 9218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9219 conftest$ac_exeext conftest.$ac_ext 9220 for v in CFLAGS CPPFLAGS LDFLAGS; do 9221 eval $v'="$hold_'$v'"' 9222 done 9223fi 9224{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9225echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9226 9227fi 9228 9229 # remove 64-bit arch flags from CFLAGS et al. if configuration 9230 # does not support 64-bit. 9231 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9232 9233 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9234echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9235 for v in CFLAGS CPPFLAGS LDFLAGS; do 9236 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9237 done 9238fi 9239 9240 9241fi 9242 9243 ;; 9244 OS/390-*) 9245 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9246 9247cat >>confdefs.h <<\_ACEOF 9248#define _OE_SOCKETS 1 9249_ACEOF 9250 9251 ;; 9252 OSF1-V*) 9253 # Digital OSF/1 9254 SHLIB_CFLAGS="" 9255 if test "$SHARED_BUILD" = 1; then 9256 9257 SHLIB_LD='ld -shared -expect_unresolved "*"' 9258 9259else 9260 9261 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9262 9263fi 9264 9265 SHLIB_SUFFIX=".so" 9266 if test $doRpath = yes; then 9267 9268 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9269 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9270fi 9271 9272 if test "$GCC" = yes; then 9273 CFLAGS="$CFLAGS -mieee" 9274else 9275 9276 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9277fi 9278 9279 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9280 if test "${TCL_THREADS}" = 1; then 9281 9282 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9283 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9284 LIBS=`echo $LIBS | sed s/-lpthreads//` 9285 if test "$GCC" = yes; then 9286 9287 LIBS="$LIBS -lpthread -lmach -lexc" 9288 9289else 9290 9291 CFLAGS="$CFLAGS -pthread" 9292 LDFLAGS="$LDFLAGS -pthread" 9293 9294fi 9295 9296 9297fi 9298 9299 ;; 9300 QNX-6*) 9301 # QNX RTP 9302 # This may work for all QNX, but it was only reported for v6. 9303 SHLIB_CFLAGS="-fPIC" 9304 SHLIB_LD="ld -Bshareable -x" 9305 SHLIB_LD_LIBS="" 9306 SHLIB_SUFFIX=".so" 9307 CC_SEARCH_FLAGS="" 9308 LD_SEARCH_FLAGS="" 9309 ;; 9310 SCO_SV-3.2*) 9311 if test "$GCC" = yes; then 9312 9313 SHLIB_CFLAGS="-fPIC -melf" 9314 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9315 9316else 9317 9318 SHLIB_CFLAGS="-Kpic -belf" 9319 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9320 9321fi 9322 9323 SHLIB_LD="ld -G" 9324 SHLIB_LD_LIBS="" 9325 SHLIB_SUFFIX=".so" 9326 CC_SEARCH_FLAGS="" 9327 LD_SEARCH_FLAGS="" 9328 ;; 9329 SunOS-5.[0-6]) 9330 # Careful to not let 5.10+ fall into this case 9331 9332 # Note: If _REENTRANT isn't defined, then Solaris 9333 # won't define thread-safe library routines. 9334 9335 9336cat >>confdefs.h <<\_ACEOF 9337#define _REENTRANT 1 9338_ACEOF 9339 9340 9341cat >>confdefs.h <<\_ACEOF 9342#define _POSIX_PTHREAD_SEMANTICS 1 9343_ACEOF 9344 9345 9346 SHLIB_CFLAGS="-KPIC" 9347 SHLIB_SUFFIX=".so" 9348 if test "$GCC" = yes; then 9349 9350 SHLIB_LD='${CC} -shared' 9351 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9352 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9353 9354else 9355 9356 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9357 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9358 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9359 9360fi 9361 9362 ;; 9363 SunOS-5*) 9364 # Note: If _REENTRANT isn't defined, then Solaris 9365 # won't define thread-safe library routines. 9366 9367 9368cat >>confdefs.h <<\_ACEOF 9369#define _REENTRANT 1 9370_ACEOF 9371 9372 9373cat >>confdefs.h <<\_ACEOF 9374#define _POSIX_PTHREAD_SEMANTICS 1 9375_ACEOF 9376 9377 9378 SHLIB_CFLAGS="-KPIC" 9379 9380 # Check to enable 64-bit flags for compiler/linker 9381 if test "$do64bit" = yes; then 9382 9383 arch=`isainfo` 9384 if test "$arch" = "sparcv9 sparc"; then 9385 9386 if test "$GCC" = yes; then 9387 9388 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9389 9390 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9391echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9392 9393else 9394 9395 do64bit_ok=yes 9396 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9397 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9398 SHLIB_CFLAGS="-fPIC" 9399 9400fi 9401 9402 9403else 9404 9405 do64bit_ok=yes 9406 if test "$do64bitVIS" = yes; then 9407 9408 CFLAGS="$CFLAGS -xarch=v9a" 9409 LDFLAGS_ARCH="-xarch=v9a" 9410 9411else 9412 9413 CFLAGS="$CFLAGS -xarch=v9" 9414 LDFLAGS_ARCH="-xarch=v9" 9415 9416fi 9417 9418 # Solaris 64 uses this as well 9419 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9420 9421fi 9422 9423 9424else 9425 if test "$arch" = "amd64 i386"; then 9426 9427 if test "$GCC" = yes; then 9428 9429 case $system in 9430 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9431 do64bit_ok=yes 9432 CFLAGS="$CFLAGS -m64" 9433 LDFLAGS="$LDFLAGS -m64";; 9434 *) 9435 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9436echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9437 esac 9438 9439else 9440 9441 do64bit_ok=yes 9442 case $system in 9443 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9444 CFLAGS="$CFLAGS -m64" 9445 LDFLAGS="$LDFLAGS -m64";; 9446 *) 9447 CFLAGS="$CFLAGS -xarch=amd64" 9448 LDFLAGS="$LDFLAGS -xarch=amd64";; 9449 esac 9450 9451fi 9452 9453 9454else 9455 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9456echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9457fi 9458 9459fi 9460 9461 9462fi 9463 9464 9465 SHLIB_SUFFIX=".so" 9466 if test "$GCC" = yes; then 9467 9468 SHLIB_LD='${CC} -shared' 9469 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9470 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9471 if test "$do64bit_ok" = yes; then 9472 9473 if test "$arch" = "sparcv9 sparc"; then 9474 9475 # We need to specify -static-libgcc or we need to 9476 # add the path to the sparv9 libgcc. 9477 # JH: static-libgcc is necessary for core Tcl, but may 9478 # not be necessary for extensions. 9479 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9480 # for finding sparcv9 libgcc, get the regular libgcc 9481 # path, remove so name and append 'sparcv9' 9482 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9483 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9484 9485else 9486 if test "$arch" = "amd64 i386"; then 9487 9488 # JH: static-libgcc is necessary for core Tcl, but may 9489 # not be necessary for extensions. 9490 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9491 9492fi 9493 9494fi 9495 9496 9497fi 9498 9499 9500else 9501 9502 case $system in 9503 SunOS-5.[1-9][0-9]*) 9504 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9505 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9506 *) 9507 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9508 esac 9509 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9510 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9511 9512fi 9513 9514 ;; 9515 esac 9516 9517 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9518 9519 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9520echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9521 9522fi 9523 9524 9525 9526 9527 # Add in the arch flags late to ensure it wasn't removed. 9528 # Not necessary in TEA, but this is aligned with core 9529 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9530 9531 # If we're running gcc, then change the C flags for compiling shared 9532 # libraries to the right flags for gcc, instead of those for the 9533 # standard manufacturer compiler. 9534 9535 if test "$GCC" = yes; then 9536 9537 case $system in 9538 AIX-*) ;; 9539 BSD/OS*) ;; 9540 CYGWIN_*) ;; 9541 IRIX*) ;; 9542 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9543 Darwin-*) ;; 9544 SCO_SV-3.2*) ;; 9545 windows) ;; 9546 *) SHLIB_CFLAGS="-fPIC" ;; 9547 esac 9548fi 9549 9550 9551 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9552 9553 9554cat >>confdefs.h <<\_ACEOF 9555#define MODULE_SCOPE extern 9556_ACEOF 9557 9558 9559cat >>confdefs.h <<\_ACEOF 9560#define NO_VIZ 9561_ACEOF 9562 9563 9564fi 9565 9566 9567 if test "$SHARED_LIB_SUFFIX" = ""; then 9568 9569 # TEA specific: use PACKAGE_VERSION instead of VERSION 9570 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9571fi 9572 9573 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9574 9575 # TEA specific: use PACKAGE_VERSION instead of VERSION 9576 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9577fi 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 # These must be called after we do the basic CFLAGS checks and 9593 # verify any possible 64-bit or similar switches are necessary 9594 9595 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9596echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9597 tcl_flags="" 9598 9599 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9600 echo $ECHO_N "(cached) $ECHO_C" >&6 9601else 9602 cat >conftest.$ac_ext <<_ACEOF 9603/* confdefs.h. */ 9604_ACEOF 9605cat confdefs.h >>conftest.$ac_ext 9606cat >>conftest.$ac_ext <<_ACEOF 9607/* end confdefs.h. */ 9608#include <stdlib.h> 9609int 9610main () 9611{ 9612char *p = (char *)strtoll; char *q = (char *)strtoull; 9613 ; 9614 return 0; 9615} 9616_ACEOF 9617rm -f conftest.$ac_objext 9618if { (ac_try="$ac_compile" 9619case "(($ac_try" in 9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9621 *) ac_try_echo=$ac_try;; 9622esac 9623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9624 (eval "$ac_compile") 2>conftest.er1 9625 ac_status=$? 9626 grep -v '^ *+' conftest.er1 >conftest.err 9627 rm -f conftest.er1 9628 cat conftest.err >&5 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); } && { 9631 test -z "$ac_c_werror_flag" || 9632 test ! -s conftest.err 9633 } && test -s conftest.$ac_objext; then 9634 tcl_cv_flag__isoc99_source=no 9635else 9636 echo "$as_me: failed program was:" >&5 9637sed 's/^/| /' conftest.$ac_ext >&5 9638 9639 cat >conftest.$ac_ext <<_ACEOF 9640/* confdefs.h. */ 9641_ACEOF 9642cat confdefs.h >>conftest.$ac_ext 9643cat >>conftest.$ac_ext <<_ACEOF 9644/* end confdefs.h. */ 9645#define _ISOC99_SOURCE 1 9646#include <stdlib.h> 9647int 9648main () 9649{ 9650char *p = (char *)strtoll; char *q = (char *)strtoull; 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655rm -f conftest.$ac_objext 9656if { (ac_try="$ac_compile" 9657case "(($ac_try" in 9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9659 *) ac_try_echo=$ac_try;; 9660esac 9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9662 (eval "$ac_compile") 2>conftest.er1 9663 ac_status=$? 9664 grep -v '^ *+' conftest.er1 >conftest.err 9665 rm -f conftest.er1 9666 cat conftest.err >&5 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); } && { 9669 test -z "$ac_c_werror_flag" || 9670 test ! -s conftest.err 9671 } && test -s conftest.$ac_objext; then 9672 tcl_cv_flag__isoc99_source=yes 9673else 9674 echo "$as_me: failed program was:" >&5 9675sed 's/^/| /' conftest.$ac_ext >&5 9676 9677 tcl_cv_flag__isoc99_source=no 9678fi 9679 9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9681fi 9682 9683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9684fi 9685 9686 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9687 9688cat >>confdefs.h <<\_ACEOF 9689#define _ISOC99_SOURCE 1 9690_ACEOF 9691 9692 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9693 fi 9694 9695 9696 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9697 echo $ECHO_N "(cached) $ECHO_C" >&6 9698else 9699 cat >conftest.$ac_ext <<_ACEOF 9700/* confdefs.h. */ 9701_ACEOF 9702cat confdefs.h >>conftest.$ac_ext 9703cat >>conftest.$ac_ext <<_ACEOF 9704/* end confdefs.h. */ 9705#include <sys/stat.h> 9706int 9707main () 9708{ 9709struct stat64 buf; int i = stat64("/", &buf); 9710 ; 9711 return 0; 9712} 9713_ACEOF 9714rm -f conftest.$ac_objext 9715if { (ac_try="$ac_compile" 9716case "(($ac_try" in 9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9718 *) ac_try_echo=$ac_try;; 9719esac 9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9721 (eval "$ac_compile") 2>conftest.er1 9722 ac_status=$? 9723 grep -v '^ *+' conftest.er1 >conftest.err 9724 rm -f conftest.er1 9725 cat conftest.err >&5 9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9727 (exit $ac_status); } && { 9728 test -z "$ac_c_werror_flag" || 9729 test ! -s conftest.err 9730 } && test -s conftest.$ac_objext; then 9731 tcl_cv_flag__largefile64_source=no 9732else 9733 echo "$as_me: failed program was:" >&5 9734sed 's/^/| /' conftest.$ac_ext >&5 9735 9736 cat >conftest.$ac_ext <<_ACEOF 9737/* confdefs.h. */ 9738_ACEOF 9739cat confdefs.h >>conftest.$ac_ext 9740cat >>conftest.$ac_ext <<_ACEOF 9741/* end confdefs.h. */ 9742#define _LARGEFILE64_SOURCE 1 9743#include <sys/stat.h> 9744int 9745main () 9746{ 9747struct stat64 buf; int i = stat64("/", &buf); 9748 ; 9749 return 0; 9750} 9751_ACEOF 9752rm -f conftest.$ac_objext 9753if { (ac_try="$ac_compile" 9754case "(($ac_try" in 9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9756 *) ac_try_echo=$ac_try;; 9757esac 9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9759 (eval "$ac_compile") 2>conftest.er1 9760 ac_status=$? 9761 grep -v '^ *+' conftest.er1 >conftest.err 9762 rm -f conftest.er1 9763 cat conftest.err >&5 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); } && { 9766 test -z "$ac_c_werror_flag" || 9767 test ! -s conftest.err 9768 } && test -s conftest.$ac_objext; then 9769 tcl_cv_flag__largefile64_source=yes 9770else 9771 echo "$as_me: failed program was:" >&5 9772sed 's/^/| /' conftest.$ac_ext >&5 9773 9774 tcl_cv_flag__largefile64_source=no 9775fi 9776 9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9778fi 9779 9780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9781fi 9782 9783 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9784 9785cat >>confdefs.h <<\_ACEOF 9786#define _LARGEFILE64_SOURCE 1 9787_ACEOF 9788 9789 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9790 fi 9791 9792 9793 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9794 echo $ECHO_N "(cached) $ECHO_C" >&6 9795else 9796 cat >conftest.$ac_ext <<_ACEOF 9797/* confdefs.h. */ 9798_ACEOF 9799cat confdefs.h >>conftest.$ac_ext 9800cat >>conftest.$ac_ext <<_ACEOF 9801/* end confdefs.h. */ 9802#include <sys/stat.h> 9803int 9804main () 9805{ 9806char *p = (char *)open64; 9807 ; 9808 return 0; 9809} 9810_ACEOF 9811rm -f conftest.$ac_objext 9812if { (ac_try="$ac_compile" 9813case "(($ac_try" in 9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9815 *) ac_try_echo=$ac_try;; 9816esac 9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9818 (eval "$ac_compile") 2>conftest.er1 9819 ac_status=$? 9820 grep -v '^ *+' conftest.er1 >conftest.err 9821 rm -f conftest.er1 9822 cat conftest.err >&5 9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9824 (exit $ac_status); } && { 9825 test -z "$ac_c_werror_flag" || 9826 test ! -s conftest.err 9827 } && test -s conftest.$ac_objext; then 9828 tcl_cv_flag__largefile_source64=no 9829else 9830 echo "$as_me: failed program was:" >&5 9831sed 's/^/| /' conftest.$ac_ext >&5 9832 9833 cat >conftest.$ac_ext <<_ACEOF 9834/* confdefs.h. */ 9835_ACEOF 9836cat confdefs.h >>conftest.$ac_ext 9837cat >>conftest.$ac_ext <<_ACEOF 9838/* end confdefs.h. */ 9839#define _LARGEFILE_SOURCE64 1 9840#include <sys/stat.h> 9841int 9842main () 9843{ 9844char *p = (char *)open64; 9845 ; 9846 return 0; 9847} 9848_ACEOF 9849rm -f conftest.$ac_objext 9850if { (ac_try="$ac_compile" 9851case "(($ac_try" in 9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9853 *) ac_try_echo=$ac_try;; 9854esac 9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9856 (eval "$ac_compile") 2>conftest.er1 9857 ac_status=$? 9858 grep -v '^ *+' conftest.er1 >conftest.err 9859 rm -f conftest.er1 9860 cat conftest.err >&5 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9862 (exit $ac_status); } && { 9863 test -z "$ac_c_werror_flag" || 9864 test ! -s conftest.err 9865 } && test -s conftest.$ac_objext; then 9866 tcl_cv_flag__largefile_source64=yes 9867else 9868 echo "$as_me: failed program was:" >&5 9869sed 's/^/| /' conftest.$ac_ext >&5 9870 9871 tcl_cv_flag__largefile_source64=no 9872fi 9873 9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9875fi 9876 9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9878fi 9879 9880 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9881 9882cat >>confdefs.h <<\_ACEOF 9883#define _LARGEFILE_SOURCE64 1 9884_ACEOF 9885 9886 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9887 fi 9888 9889 if test "x${tcl_flags}" = "x" ; then 9890 { echo "$as_me:$LINENO: result: none" >&5 9891echo "${ECHO_T}none" >&6; } 9892 else 9893 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9894echo "${ECHO_T}${tcl_flags}" >&6; } 9895 fi 9896 9897 9898 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9899echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9900 if test "${tcl_cv_type_64bit+set}" = set; then 9901 echo $ECHO_N "(cached) $ECHO_C" >&6 9902else 9903 9904 tcl_cv_type_64bit=none 9905 # See if the compiler knows natively about __int64 9906 cat >conftest.$ac_ext <<_ACEOF 9907/* confdefs.h. */ 9908_ACEOF 9909cat confdefs.h >>conftest.$ac_ext 9910cat >>conftest.$ac_ext <<_ACEOF 9911/* end confdefs.h. */ 9912 9913int 9914main () 9915{ 9916__int64 value = (__int64) 0; 9917 ; 9918 return 0; 9919} 9920_ACEOF 9921rm -f conftest.$ac_objext 9922if { (ac_try="$ac_compile" 9923case "(($ac_try" in 9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9925 *) ac_try_echo=$ac_try;; 9926esac 9927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9928 (eval "$ac_compile") 2>conftest.er1 9929 ac_status=$? 9930 grep -v '^ *+' conftest.er1 >conftest.err 9931 rm -f conftest.er1 9932 cat conftest.err >&5 9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934 (exit $ac_status); } && { 9935 test -z "$ac_c_werror_flag" || 9936 test ! -s conftest.err 9937 } && test -s conftest.$ac_objext; then 9938 tcl_type_64bit=__int64 9939else 9940 echo "$as_me: failed program was:" >&5 9941sed 's/^/| /' conftest.$ac_ext >&5 9942 9943 tcl_type_64bit="long long" 9944fi 9945 9946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9947 # See if we should use long anyway Note that we substitute in the 9948 # type that is our current guess for a 64-bit type inside this check 9949 # program, so it should be modified only carefully... 9950 cat >conftest.$ac_ext <<_ACEOF 9951/* confdefs.h. */ 9952_ACEOF 9953cat confdefs.h >>conftest.$ac_ext 9954cat >>conftest.$ac_ext <<_ACEOF 9955/* end confdefs.h. */ 9956 9957int 9958main () 9959{ 9960switch (0) { 9961 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9962 } 9963 ; 9964 return 0; 9965} 9966_ACEOF 9967rm -f conftest.$ac_objext 9968if { (ac_try="$ac_compile" 9969case "(($ac_try" in 9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9971 *) ac_try_echo=$ac_try;; 9972esac 9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9974 (eval "$ac_compile") 2>conftest.er1 9975 ac_status=$? 9976 grep -v '^ *+' conftest.er1 >conftest.err 9977 rm -f conftest.er1 9978 cat conftest.err >&5 9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9980 (exit $ac_status); } && { 9981 test -z "$ac_c_werror_flag" || 9982 test ! -s conftest.err 9983 } && test -s conftest.$ac_objext; then 9984 tcl_cv_type_64bit=${tcl_type_64bit} 9985else 9986 echo "$as_me: failed program was:" >&5 9987sed 's/^/| /' conftest.$ac_ext >&5 9988 9989 9990fi 9991 9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9993fi 9994 9995 if test "${tcl_cv_type_64bit}" = none ; then 9996 9997cat >>confdefs.h <<\_ACEOF 9998#define TCL_WIDE_INT_IS_LONG 1 9999_ACEOF 10000 10001 { echo "$as_me:$LINENO: result: using long" >&5 10002echo "${ECHO_T}using long" >&6; } 10003 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10004 -a "${TEA_PLATFORM}" = "windows" ; then 10005 # TEA specific: We actually want to use the default tcl.h checks in 10006 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10007 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10008echo "${ECHO_T}using Tcl header defaults" >&6; } 10009 else 10010 10011cat >>confdefs.h <<_ACEOF 10012#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10013_ACEOF 10014 10015 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10016echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10017 10018 # Now check for auxiliary declarations 10019 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10020echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10021if test "${tcl_cv_struct_dirent64+set}" = set; then 10022 echo $ECHO_N "(cached) $ECHO_C" >&6 10023else 10024 10025 cat >conftest.$ac_ext <<_ACEOF 10026/* confdefs.h. */ 10027_ACEOF 10028cat confdefs.h >>conftest.$ac_ext 10029cat >>conftest.$ac_ext <<_ACEOF 10030/* end confdefs.h. */ 10031#include <sys/types.h> 10032#include <sys/dirent.h> 10033int 10034main () 10035{ 10036struct dirent64 p; 10037 ; 10038 return 0; 10039} 10040_ACEOF 10041rm -f conftest.$ac_objext 10042if { (ac_try="$ac_compile" 10043case "(($ac_try" in 10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10045 *) ac_try_echo=$ac_try;; 10046esac 10047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10048 (eval "$ac_compile") 2>conftest.er1 10049 ac_status=$? 10050 grep -v '^ *+' conftest.er1 >conftest.err 10051 rm -f conftest.er1 10052 cat conftest.err >&5 10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10054 (exit $ac_status); } && { 10055 test -z "$ac_c_werror_flag" || 10056 test ! -s conftest.err 10057 } && test -s conftest.$ac_objext; then 10058 tcl_cv_struct_dirent64=yes 10059else 10060 echo "$as_me: failed program was:" >&5 10061sed 's/^/| /' conftest.$ac_ext >&5 10062 10063 tcl_cv_struct_dirent64=no 10064fi 10065 10066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10067fi 10068{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10069echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10070 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10071 10072cat >>confdefs.h <<\_ACEOF 10073#define HAVE_STRUCT_DIRENT64 1 10074_ACEOF 10075 10076 fi 10077 10078 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10079echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10080if test "${tcl_cv_struct_stat64+set}" = set; then 10081 echo $ECHO_N "(cached) $ECHO_C" >&6 10082else 10083 10084 cat >conftest.$ac_ext <<_ACEOF 10085/* confdefs.h. */ 10086_ACEOF 10087cat confdefs.h >>conftest.$ac_ext 10088cat >>conftest.$ac_ext <<_ACEOF 10089/* end confdefs.h. */ 10090#include <sys/stat.h> 10091int 10092main () 10093{ 10094struct stat64 p; 10095 10096 ; 10097 return 0; 10098} 10099_ACEOF 10100rm -f conftest.$ac_objext 10101if { (ac_try="$ac_compile" 10102case "(($ac_try" in 10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10104 *) ac_try_echo=$ac_try;; 10105esac 10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10107 (eval "$ac_compile") 2>conftest.er1 10108 ac_status=$? 10109 grep -v '^ *+' conftest.er1 >conftest.err 10110 rm -f conftest.er1 10111 cat conftest.err >&5 10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10113 (exit $ac_status); } && { 10114 test -z "$ac_c_werror_flag" || 10115 test ! -s conftest.err 10116 } && test -s conftest.$ac_objext; then 10117 tcl_cv_struct_stat64=yes 10118else 10119 echo "$as_me: failed program was:" >&5 10120sed 's/^/| /' conftest.$ac_ext >&5 10121 10122 tcl_cv_struct_stat64=no 10123fi 10124 10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10126fi 10127{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10128echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10129 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10130 10131cat >>confdefs.h <<\_ACEOF 10132#define HAVE_STRUCT_STAT64 1 10133_ACEOF 10134 10135 fi 10136 10137 10138 10139for ac_func in open64 lseek64 10140do 10141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10142{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10144if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10145 echo $ECHO_N "(cached) $ECHO_C" >&6 10146else 10147 cat >conftest.$ac_ext <<_ACEOF 10148/* confdefs.h. */ 10149_ACEOF 10150cat confdefs.h >>conftest.$ac_ext 10151cat >>conftest.$ac_ext <<_ACEOF 10152/* end confdefs.h. */ 10153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10154 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10155#define $ac_func innocuous_$ac_func 10156 10157/* System header to define __stub macros and hopefully few prototypes, 10158 which can conflict with char $ac_func (); below. 10159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10160 <limits.h> exists even on freestanding compilers. */ 10161 10162#ifdef __STDC__ 10163# include <limits.h> 10164#else 10165# include <assert.h> 10166#endif 10167 10168#undef $ac_func 10169 10170/* Override any GCC internal prototype to avoid an error. 10171 Use char because int might match the return type of a GCC 10172 builtin and then its argument prototype would still apply. */ 10173#ifdef __cplusplus 10174extern "C" 10175#endif 10176char $ac_func (); 10177/* The GNU C library defines this for functions which it implements 10178 to always fail with ENOSYS. Some functions are actually named 10179 something starting with __ and the normal name is an alias. */ 10180#if defined __stub_$ac_func || defined __stub___$ac_func 10181choke me 10182#endif 10183 10184int 10185main () 10186{ 10187return $ac_func (); 10188 ; 10189 return 0; 10190} 10191_ACEOF 10192rm -f conftest.$ac_objext conftest$ac_exeext 10193if { (ac_try="$ac_link" 10194case "(($ac_try" in 10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10196 *) ac_try_echo=$ac_try;; 10197esac 10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10199 (eval "$ac_link") 2>conftest.er1 10200 ac_status=$? 10201 grep -v '^ *+' conftest.er1 >conftest.err 10202 rm -f conftest.er1 10203 cat conftest.err >&5 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 (exit $ac_status); } && { 10206 test -z "$ac_c_werror_flag" || 10207 test ! -s conftest.err 10208 } && test -s conftest$ac_exeext && 10209 $as_test_x conftest$ac_exeext; then 10210 eval "$as_ac_var=yes" 10211else 10212 echo "$as_me: failed program was:" >&5 10213sed 's/^/| /' conftest.$ac_ext >&5 10214 10215 eval "$as_ac_var=no" 10216fi 10217 10218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10219 conftest$ac_exeext conftest.$ac_ext 10220fi 10221ac_res=`eval echo '${'$as_ac_var'}'` 10222 { echo "$as_me:$LINENO: result: $ac_res" >&5 10223echo "${ECHO_T}$ac_res" >&6; } 10224if test `eval echo '${'$as_ac_var'}'` = yes; then 10225 cat >>confdefs.h <<_ACEOF 10226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10227_ACEOF 10228 10229fi 10230done 10231 10232 { echo "$as_me:$LINENO: checking for off64_t" >&5 10233echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10234 if test "${tcl_cv_type_off64_t+set}" = set; then 10235 echo $ECHO_N "(cached) $ECHO_C" >&6 10236else 10237 10238 cat >conftest.$ac_ext <<_ACEOF 10239/* confdefs.h. */ 10240_ACEOF 10241cat confdefs.h >>conftest.$ac_ext 10242cat >>conftest.$ac_ext <<_ACEOF 10243/* end confdefs.h. */ 10244#include <sys/types.h> 10245int 10246main () 10247{ 10248off64_t offset; 10249 10250 ; 10251 return 0; 10252} 10253_ACEOF 10254rm -f conftest.$ac_objext 10255if { (ac_try="$ac_compile" 10256case "(($ac_try" in 10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10258 *) ac_try_echo=$ac_try;; 10259esac 10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10261 (eval "$ac_compile") 2>conftest.er1 10262 ac_status=$? 10263 grep -v '^ *+' conftest.er1 >conftest.err 10264 rm -f conftest.er1 10265 cat conftest.err >&5 10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10267 (exit $ac_status); } && { 10268 test -z "$ac_c_werror_flag" || 10269 test ! -s conftest.err 10270 } && test -s conftest.$ac_objext; then 10271 tcl_cv_type_off64_t=yes 10272else 10273 echo "$as_me: failed program was:" >&5 10274sed 's/^/| /' conftest.$ac_ext >&5 10275 10276 tcl_cv_type_off64_t=no 10277fi 10278 10279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10280fi 10281 10282 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10283 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10284 test "x${ac_cv_func_open64}" = "xyes" ; then 10285 10286cat >>confdefs.h <<\_ACEOF 10287#define HAVE_TYPE_OFF64_T 1 10288_ACEOF 10289 10290 { echo "$as_me:$LINENO: result: yes" >&5 10291echo "${ECHO_T}yes" >&6; } 10292 else 10293 { echo "$as_me:$LINENO: result: no" >&5 10294echo "${ECHO_T}no" >&6; } 10295 fi 10296 fi 10297 10298 10299 10300#-------------------------------------------------------------------- 10301# Set the default compiler switches based on the --enable-symbols option. 10302#-------------------------------------------------------------------- 10303 10304 10305 10306 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10307echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10308 # Check whether --enable-symbols was given. 10309if test "${enable_symbols+set}" = set; then 10310 enableval=$enable_symbols; tcl_ok=$enableval 10311else 10312 tcl_ok=no 10313fi 10314 10315 DBGX="" 10316 if test "$tcl_ok" = "no"; then 10317 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10318 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10319 { echo "$as_me:$LINENO: result: no" >&5 10320echo "${ECHO_T}no" >&6; } 10321 else 10322 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10323 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10324 if test "$tcl_ok" = "yes"; then 10325 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10326echo "${ECHO_T}yes (standard debugging)" >&6; } 10327 fi 10328 fi 10329 # TEA specific: 10330 if test "${TEA_PLATFORM}" != "windows" ; then 10331 LDFLAGS_DEFAULT="${LDFLAGS}" 10332 fi 10333 10334 10335 10336 10337 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10338 10339cat >>confdefs.h <<\_ACEOF 10340#define TCL_MEM_DEBUG 1 10341_ACEOF 10342 10343 fi 10344 10345 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10346 if test "$tcl_ok" = "all"; then 10347 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10348echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10349 else 10350 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10351echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10352 fi 10353 fi 10354 10355 10356#-------------------------------------------------------------------- 10357# Everyone should be linking against the Tcl stub library. If you 10358# can't for some reason, remove this definition. If you aren't using 10359# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10360# link against the non-stubbed Tcl library. 10361#-------------------------------------------------------------------- 10362 10363cat >>confdefs.h <<\_ACEOF 10364#define USE_TCL_STUBS 1 10365_ACEOF 10366 10367cat >>confdefs.h <<\_ACEOF 10368#define USE_TCLDOMXML_STUBS 1 10369_ACEOF 10370 10371 10372#-------------------------------------------------------------------- 10373# This macro generates a line to use when building a library. It 10374# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10375# and TEA_LOAD_TCLCONFIG macros above. 10376#-------------------------------------------------------------------- 10377 10378 10379 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10380 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10381 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10382 cat >conftest.$ac_ext <<_ACEOF 10383/* confdefs.h. */ 10384_ACEOF 10385cat confdefs.h >>conftest.$ac_ext 10386cat >>conftest.$ac_ext <<_ACEOF 10387/* end confdefs.h. */ 10388 10389#if defined(_MSC_VER) && _MSC_VER >= 1400 10390print("manifest needed") 10391#endif 10392 10393_ACEOF 10394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10395 $EGREP "manifest needed" >/dev/null 2>&1; then 10396 10397 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10398 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10399 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10400 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10401 10402 CLEANFILES="$CLEANFILES *.manifest" 10403 10404 10405fi 10406rm -f -r conftest* 10407 10408 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10409 else 10410 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10411 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10412 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10413 fi 10414 10415 if test "${SHARED_BUILD}" = "1" ; then 10416 MAKE_LIB="${MAKE_SHARED_LIB} " 10417 else 10418 MAKE_LIB="${MAKE_STATIC_LIB} " 10419 fi 10420 10421 #-------------------------------------------------------------------- 10422 # Shared libraries and static libraries have different names. 10423 # Use the double eval to make sure any variables in the suffix is 10424 # substituted. (@@@ Might not be necessary anymore) 10425 #-------------------------------------------------------------------- 10426 10427 if test "${TEA_PLATFORM}" = "windows" ; then 10428 if test "${SHARED_BUILD}" = "1" ; then 10429 # We force the unresolved linking of symbols that are really in 10430 # the private libraries of Tcl and Tk. 10431 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10432 if test x"${TK_BIN_DIR}" != x ; then 10433 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10434 fi 10435 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10436 else 10437 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10438 fi 10439 # Some packages build their own stubs libraries 10440 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10441 if test "$GCC" = "yes"; then 10442 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10443 fi 10444 # These aren't needed on Windows (either MSVC or gcc) 10445 RANLIB=: 10446 RANLIB_STUB=: 10447 else 10448 RANLIB_STUB="${RANLIB}" 10449 if test "${SHARED_BUILD}" = "1" ; then 10450 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10451 if test x"${TK_BIN_DIR}" != x ; then 10452 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10453 fi 10454 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10455 RANLIB=: 10456 else 10457 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10458 fi 10459 # Some packages build their own stubs libraries 10460 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10461 fi 10462 10463 # These are escaped so that only CFLAGS is picked up at configure time. 10464 # The other values will be substituted at make time. 10465 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10466 if test "${SHARED_BUILD}" = "1" ; then 10467 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10468 fi 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479#-------------------------------------------------------------------- 10480# On Mac OS X we may want to build as a framework. 10481# This affects the location and naming of headers and libaries. 10482#-------------------------------------------------------------------- 10483 10484# Check whether --enable-framework was given. 10485if test "${enable_framework+set}" = set; then 10486 enableval=$enable_framework; tcl_ok=$enableval 10487else 10488 tcl_ok=$1 10489fi 10490 10491 10492#-------------------------------------------------------------------- 10493# libxml2 ---------------------------------------------------------- 10494#-------------------------------------------------------------------- 10495# Ask the user where to find the headers and libraries of libxml2. 10496# Remember this information for the generated files. 10497#-------------------------------------------------------------------- 10498 10499{ echo "$as_me:$LINENO: checking for libxml2 headers" >&5 10500echo $ECHO_N "checking for libxml2 headers... $ECHO_C" >&6; } 10501 10502with_xml2include=NONE 10503 10504# Check whether --with-libxml2-include was given. 10505if test "${with_libxml2_include+set}" = set; then 10506 withval=$with_libxml2_include; with_xml2include=${withval} 10507fi 10508 10509 10510LIBXML2_INCLUDEDIR="" 10511for d in \ 10512 $with_xml2include \ 10513 $with_xml2include/libxml2 \ 10514 $prefix/include \ 10515 $prefix/include/libxml2 \ 10516 usr/include \ 10517 usr/include/libxml2 \ 10518 usr/local/include \ 10519 usr/local/include/libxml2 10520do 10521 if test -f "$d/xpath.h" ; then 10522 LIBXML2_INCLUDEDIR="$d" 10523 break 10524 fi 10525 if test -f "$d/libxml/xpath.h" ; then 10526 LIBXML2_INCLUDEDIR="$d" 10527 break 10528 fi 10529done 10530if test "x$LIBXML2_INCLUDEDIR" = "x"; then 10531 { { echo "$as_me:$LINENO: error: not found, please use --with-libxml2-include" >&5 10532echo "$as_me: error: not found, please use --with-libxml2-include" >&2;} 10533 { (exit 1); exit 1; }; } 10534else 10535 { echo "$as_me:$LINENO: result: ${LIBXML2_INCLUDEDIR}" >&5 10536echo "${ECHO_T}${LIBXML2_INCLUDEDIR}" >&6; } 10537fi 10538if test "${TEA_PLATFORM}" = "windows"; then 10539 LIBXML2_INCLUDEDIR=\"`${CYGPATH} ${LIBXML2_INCLUDEDIR} 2>/dev/null`\" 10540fi 10541 10542 10543#-------------------------------------------------------------------- 10544 10545{ echo "$as_me:$LINENO: checking for libxml2 library" >&5 10546echo $ECHO_N "checking for libxml2 library... $ECHO_C" >&6; } 10547 10548with_xml2lib=NONE 10549 10550# Check whether --with-libxml2-lib was given. 10551if test "${with_libxml2_lib+set}" = set; then 10552 withval=$with_libxml2_lib; with_xml2lib=${withval} 10553fi 10554 10555 10556LIBXML2_LIBDIR="" 10557for d in \ 10558 $with_xml2lib \ 10559 $exec_prefix/lib \ 10560 usr/lib \ 10561 usr/local/lib 10562do 10563 if test -f "$d/libxml2.so" ; then 10564 LIBXML2_LIBDIR="$d" 10565 break 10566 fi 10567 if test -f "$d/libxml2.sl" ; then 10568 LIBXML2_LIBDIR="$d" 10569 break 10570 fi 10571 if test -f "$d/libxml2.dll" ; then 10572 LIBXML2_LIBDIR="$d" 10573 break 10574 fi 10575 if test "${enable_framework}" = "yes" -a -f "$d/libxml" ; then 10576 LIBXML2_LIBDIR="$d" 10577 break 10578 fi 10579 if test -f "$d/libxml2.dylib" ; then 10580 LIBXML2_LIBDIR="$d" 10581 break 10582 fi 10583 if test -f "$d/libxml2.a" ; then 10584 LIBXML2_LIBDIR="$d" 10585 break 10586 fi 10587done 10588if test "x$LIBXML2_LIBDIR" = "x"; then 10589 { { echo "$as_me:$LINENO: error: not found, please use --with-libxml2-lib" >&5 10590echo "$as_me: error: not found, please use --with-libxml2-lib" >&2;} 10591 { (exit 1); exit 1; }; } 10592else 10593 { echo "$as_me:$LINENO: result: ${LIBXML2_LIBDIR}" >&5 10594echo "${ECHO_T}${LIBXML2_LIBDIR}" >&6; } 10595fi 10596 10597 10598#-------------------------------------------------------------------- 10599# libxslt ---------------------------------------------------------- 10600#-------------------------------------------------------------------- 10601# Ask the user where to find the headers and libraries of libxml2. 10602# Remember this information for the generated files. 10603#-------------------------------------------------------------------- 10604 10605{ echo "$as_me:$LINENO: checking for libxslt headers" >&5 10606echo $ECHO_N "checking for libxslt headers... $ECHO_C" >&6; } 10607 10608with_xsltinclude=NONE 10609 10610# Check whether --with-libxslt-include was given. 10611if test "${with_libxslt_include+set}" = set; then 10612 withval=$with_libxslt_include; with_xsltinclude=${withval} 10613fi 10614 10615 10616LIBXSLT="" 10617for d in \ 10618 $with_xsltinclude \ 10619 $with_xsltinclude/libxslt \ 10620 $prefix/include \ 10621 $prefix/include/libxslt \ 10622 usr/include \ 10623 usr/include/libxslt \ 10624 usr/local/include \ 10625 usr/local/include/libxslt 10626do 10627 if test -f "$d/xslt.h" ; then 10628 LIBXSLT_INCLUDEDIR="$d" 10629 break 10630 fi 10631 if test -f "$d/libxslt/xslt.h" ; then 10632 LIBXSLT_INCLUDEDIR="$d" 10633 break 10634 fi 10635done 10636 10637if test "x$LIBXSLT_INCLUDEDIR" = "x"; then 10638 { { echo "$as_me:$LINENO: error: not found, please use --with-libxslt-include" >&5 10639echo "$as_me: error: not found, please use --with-libxslt-include" >&2;} 10640 { (exit 1); exit 1; }; } 10641else 10642 { echo "$as_me:$LINENO: result: ${LIBXSLT_INCLUDEDIR}" >&5 10643echo "${ECHO_T}${LIBXSLT_INCLUDEDIR}" >&6; } 10644fi 10645if test "${TEA_PLATFORM}" = "windows"; then 10646 LIBXSLT_INCLUDEDIR=\"`${CYGPATH} ${LIBXSLT_INCLUDEDIR} 2>/dev/null`\" 10647fi 10648 10649 10650#-------------------------------------------------------------------- 10651 10652{ echo "$as_me:$LINENO: checking for libxslt library" >&5 10653echo $ECHO_N "checking for libxslt library... $ECHO_C" >&6; } 10654 10655with_xsltlib=NONE 10656 10657# Check whether --with-libxslt-lib was given. 10658if test "${with_libxslt_lib+set}" = set; then 10659 withval=$with_libxslt_lib; with_xsltlib=${withval} 10660fi 10661 10662 10663LIBXSLT_LIBDIR="" 10664for d in \ 10665 $with_xsltlib \ 10666 $exec_prefix/lib \ 10667 usr/lib \ 10668 usr/local/lib 10669do 10670 if test -f "$d/libxslt.so" ; then 10671 LIBXSLT_LIBDIR="$d" 10672 break 10673 fi 10674 if test -f "$d/libxslt.sl" ; then 10675 LIBXSLT_LIBDIR="$d" 10676 break 10677 fi 10678 if test -f "$d/libxslt.dll" ; then 10679 LIBXSLT_LIBDIR="$d" 10680 break 10681 fi 10682 if test "${enable_framework}" = "yes" -a -f "$d/libxslt" ; then 10683 LIBXSLT_LIBDIR="$d" 10684 break 10685 fi 10686 if test -f "$d/libxslt.dylib" ; then 10687 LIBXSLT_LIBDIR="$d" 10688 break 10689 fi 10690 if test -f "$d/libxslt.a" ; then 10691 LIBXSLT_LIBDIR="$d" 10692 break 10693 fi 10694done 10695if test "x$LIBXSLT_LIBDIR" = "x"; then 10696 { { echo "$as_me:$LINENO: error: not found, please use --with-libxslt-lib" >&5 10697echo "$as_me: error: not found, please use --with-libxslt-lib" >&2;} 10698 { (exit 1); exit 1; }; } 10699else 10700 { echo "$as_me:$LINENO: result: ${LIBXSLT_LIBDIR}" >&5 10701echo "${ECHO_T}${LIBXSLT_LIBDIR}" >&6; } 10702fi 10703 10704 10705#-------------------------------------------------------------------- 10706# libexslt ---------------------------------------------------------- 10707#-------------------------------------------------------------------- 10708# Ask the user where to find the headers and libraries of libxml2. 10709# Remember this information for the generated files. 10710#-------------------------------------------------------------------- 10711 10712{ echo "$as_me:$LINENO: checking for libexslt headers" >&5 10713echo $ECHO_N "checking for libexslt headers... $ECHO_C" >&6; } 10714 10715with_exsltinclude=NONE 10716 10717# Check whether --with-libexslt-include was given. 10718if test "${with_libexslt_include+set}" = set; then 10719 withval=$with_libexslt_include; with_exsltinclude=${withval} 10720fi 10721 10722 10723LIBEXSLT="" 10724for d in \ 10725 $with_exsltinclude \ 10726 $with_exsltinclude/libexslt \ 10727 $prefix/include \ 10728 $prefix/include/libexslt \ 10729 usr/include \ 10730 usr/include/libexslt \ 10731 usr/local/include \ 10732 usr/local/include/libexslt 10733do 10734 if test -f "$d/exslt.h" ; then 10735 LIBEXSLT_INCLUDEDIR="$d" 10736 break 10737 fi 10738 if test -f "$d/libexslt/exslt.h" ; then 10739 LIBEXSLT_INCLUDEDIR="$d" 10740 break 10741 fi 10742done 10743 10744if test "x$LIBEXSLT_INCLUDEDIR" = "x"; then 10745 { { echo "$as_me:$LINENO: error: not found, please use --with-libexslt-include" >&5 10746echo "$as_me: error: not found, please use --with-libexslt-include" >&2;} 10747 { (exit 1); exit 1; }; } 10748else 10749 { echo "$as_me:$LINENO: result: ${LIBEXSLT_INCLUDEDIR}" >&5 10750echo "${ECHO_T}${LIBEXSLT_INCLUDEDIR}" >&6; } 10751fi 10752if test "${TEA_PLATFORM}" = "windows"; then 10753 LIBEXSLT_INCLUDEDIR=\"`${CYGPATH} ${LIBEXSLT_INCLUDEDIR} 2>/dev/null`\" 10754fi 10755 10756 10757#-------------------------------------------------------------------- 10758 10759{ echo "$as_me:$LINENO: checking for libexslt library" >&5 10760echo $ECHO_N "checking for libexslt library... $ECHO_C" >&6; } 10761 10762with_exsltlib=NONE 10763 10764# Check whether --with-libexslt-lib was given. 10765if test "${with_libexslt_lib+set}" = set; then 10766 withval=$with_libexslt_lib; with_exsltlib=${withval} 10767fi 10768 10769 10770LIBEXSLT_LIBDIR="" 10771for d in \ 10772 $with_exsltlib \ 10773 $exec_prefix/lib \ 10774 usr/lib \ 10775 usr/local/lib 10776do 10777 if test -f "$d/libexslt.so" ; then 10778 LIBEXSLT_LIBDIR="$d" 10779 break 10780 fi 10781 if test -f "$d/libexslt.sl" ; then 10782 LIBEXSLT_LIBDIR="$d" 10783 break 10784 fi 10785 if test -f "$d/libexslt.dll" ; then 10786 LIBEXSLT_LIBDIR="$d" 10787 break 10788 fi 10789 if test "${enable_framework}" = "yes" -a -f "$d/libexslt" ; then 10790 LIBEXSLT_LIBDIR="$d" 10791 break 10792 fi 10793 if test -f "$d/libexslt.dylib" ; then 10794 LIBEXSLT_LIBDIR="$d" 10795 break 10796 fi 10797 if test -f "$d/libexslt.a" ; then 10798 LIBEXSLT_LIBDIR="$d" 10799 break 10800 fi 10801done 10802if test "x$LIBEXSLT_LIBDIR" = "x"; then 10803 { { echo "$as_me:$LINENO: error: not found, please use --with-libexslt-lib" >&5 10804echo "$as_me: error: not found, please use --with-libexslt-lib" >&2;} 10805 { (exit 1); exit 1; }; } 10806else 10807 { echo "$as_me:$LINENO: result: ${LIBEXSLT_LIBDIR}" >&5 10808echo "${ECHO_T}${LIBEXSLT_LIBDIR}" >&6; } 10809fi 10810 10811 10812#-------------------------------------------------------------------- 10813if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 10814 { echo "$as_me:$LINENO: checking for iconv library" >&5 10815echo $ECHO_N "checking for iconv library... $ECHO_C" >&6; } 10816 10817 with_iconvlib=NONE 10818 10819# Check whether --with-iconv-lib was given. 10820if test "${with_iconv_lib+set}" = set; then 10821 withval=$with_iconv_lib; with_iconvlib=${withval} 10822fi 10823 10824 10825 ICONV_LIBDIR="" 10826 for d in \ 10827 $with_iconvlib \ 10828 $exec_prefix/lib \ 10829 usr/lib \ 10830 usr/local/lib 10831 do 10832 if test -f "$d/libiconv.so" ; then 10833 ICONV_LIBDIR="$d" 10834 break 10835 fi 10836 if test -f "$d/libiconv.sl" ; then 10837 ICONV_LIBDIR="$d" 10838 break 10839 fi 10840 if test -f "$d/iconv.dll" ; then 10841 ICONV_LIBDIR="$d" 10842 break 10843 fi 10844 done 10845 if test "x$ICONV_LIBDIR" = "x"; then 10846 { { echo "$as_me:$LINENO: error: not found, please use --with-iconv-lib" >&5 10847echo "$as_me: error: not found, please use --with-iconv-lib" >&2;} 10848 { (exit 1); exit 1; }; } 10849 else 10850 { echo "$as_me:$LINENO: result: ${ICONV_LIBDIR}" >&5 10851echo "${ECHO_T}${ICONV_LIBDIR}" >&6; } 10852 fi 10853 10854fi 10855 10856#-------------------------------------------------------------------- 10857# __CHANGE__ 10858# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 10859#-------------------------------------------------------------------- 10860 10861if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 10862 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${LIBXSLT_LIBDIR}/libxslt.lib`\"" 10863 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${LIBEXSLT_LIBDIR}/libexslt.lib`\"" 10864 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${LIBXML2_LIBDIR}/libxml2.lib`\"" 10865 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${ICONV_LIBDIR}/iconv.lib`\"" 10866 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${tcldomxml_STUB_LIB_PATH}`\"" 10867else 10868 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -L\${LIBXSLT_LIBDIR} -lxslt" 10869 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -L\${LIBEXSLT_LIBDIR} -lexslt" 10870 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -L\${LIBXML2_LIBDIR} -lxml2" 10871 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${tcldomxml_STUB_LIB_SPEC}" 10872fi 10873 10874#-------------------------------------------------------------------- 10875# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10876# file during the install process. Don't run the TCLSH_PROG through 10877# ${CYGPATH} because it's being used directly by make. 10878# Require that we use a tclsh shell version 8.2 or later since earlier 10879# versions have bugs in the pkg_mkIndex routine. 10880# Add WISH as well if this is a Tk extension. 10881#-------------------------------------------------------------------- 10882 10883 10884 { echo "$as_me:$LINENO: checking for tclsh" >&5 10885echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10886 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10887 # tclConfig.sh is in Tcl build directory 10888 if test "${TEA_PLATFORM}" = "windows"; then 10889 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10890 else 10891 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10892 fi 10893 else 10894 # tclConfig.sh is in install location 10895 if test "${TEA_PLATFORM}" = "windows"; then 10896 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10897 else 10898 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10899 fi 10900 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10901 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10902 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10903 for i in $list ; do 10904 if test -f "$i/${TCLSH_PROG}" ; then 10905 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10906 break 10907 fi 10908 done 10909 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10910 fi 10911 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10912echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10913 10914 10915 10916eval "${PACKAGE}_LIB_FILE=${PKG_LIB_FILE}" 10917eval "${PACKAGE}stub_LIB_FILE=${PKG_STUB_LIB_FILE}" 10918 10919#-------------------------------------------------------------------- 10920# Finally, substitute all of the various values into the Makefile. 10921# You may alternatively have a special pkgIndex.tcl.in or other files 10922# which require substituting th AC variables in. Include these here. 10923#-------------------------------------------------------------------- 10924 10925ac_config_files="$ac_config_files Makefile library/pkgIndex.tcl" 10926 10927cat >confcache <<\_ACEOF 10928# This file is a shell script that caches the results of configure 10929# tests run on this system so they can be shared between configure 10930# scripts and configure runs, see configure's option --config-cache. 10931# It is not useful on other systems. If it contains results you don't 10932# want to keep, you may remove or edit it. 10933# 10934# config.status only pays attention to the cache file if you give it 10935# the --recheck option to rerun configure. 10936# 10937# `ac_cv_env_foo' variables (set or unset) will be overridden when 10938# loading this file, other *unset* `ac_cv_foo' will be assigned the 10939# following values. 10940 10941_ACEOF 10942 10943# The following way of writing the cache mishandles newlines in values, 10944# but we know of no workaround that is simple, portable, and efficient. 10945# So, we kill variables containing newlines. 10946# Ultrix sh set writes to stderr and can't be redirected directly, 10947# and sets the high bit in the cache file unless we assign to the vars. 10948( 10949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10950 eval ac_val=\$$ac_var 10951 case $ac_val in #( 10952 *${as_nl}*) 10953 case $ac_var in #( 10954 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10955echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10956 esac 10957 case $ac_var in #( 10958 _ | IFS | as_nl) ;; #( 10959 *) $as_unset $ac_var ;; 10960 esac ;; 10961 esac 10962 done 10963 10964 (set) 2>&1 | 10965 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10966 *${as_nl}ac_space=\ *) 10967 # `set' does not quote correctly, so add quotes (double-quote 10968 # substitution turns \\\\ into \\, and sed turns \\ into \). 10969 sed -n \ 10970 "s/'/'\\\\''/g; 10971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10972 ;; #( 10973 *) 10974 # `set' quotes correctly as required by POSIX, so do not add quotes. 10975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10976 ;; 10977 esac | 10978 sort 10979) | 10980 sed ' 10981 /^ac_cv_env_/b end 10982 t clear 10983 :clear 10984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10985 t end 10986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10987 :end' >>confcache 10988if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10989 if test -w "$cache_file"; then 10990 test "x$cache_file" != "x/dev/null" && 10991 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10992echo "$as_me: updating cache $cache_file" >&6;} 10993 cat confcache >$cache_file 10994 else 10995 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10996echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10997 fi 10998fi 10999rm -f confcache 11000 11001test "x$prefix" = xNONE && prefix=$ac_default_prefix 11002# Let make expand exec_prefix. 11003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11004 11005# Transform confdefs.h into DEFS. 11006# Protect against shell expansion while executing Makefile rules. 11007# Protect against Makefile macro expansion. 11008# 11009# If the first sed substitution is executed (which looks for macros that 11010# take arguments), then branch to the quote section. Otherwise, 11011# look for a macro that doesn't take arguments. 11012ac_script=' 11013t clear 11014:clear 11015s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11016t quote 11017s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11018t quote 11019b any 11020:quote 11021s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11022s/\[/\\&/g 11023s/\]/\\&/g 11024s/\$/$$/g 11025H 11026:any 11027${ 11028 g 11029 s/^\n// 11030 s/\n/ /g 11031 p 11032} 11033' 11034DEFS=`sed -n "$ac_script" confdefs.h` 11035 11036 11037ac_libobjs= 11038ac_ltlibobjs= 11039for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11040 # 1. Remove the extension, and $U if already installed. 11041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11042 ac_i=`echo "$ac_i" | sed "$ac_script"` 11043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11044 # will be set to the directory where LIBOBJS objects are built. 11045 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11046 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11047done 11048LIBOBJS=$ac_libobjs 11049 11050LTLIBOBJS=$ac_ltlibobjs 11051 11052 11053CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11054 11055: ${CONFIG_STATUS=./config.status} 11056ac_clean_files_save=$ac_clean_files 11057ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11058{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11059echo "$as_me: creating $CONFIG_STATUS" >&6;} 11060cat >$CONFIG_STATUS <<_ACEOF 11061#! $SHELL 11062# Generated by $as_me. 11063# Run this file to recreate the current configuration. 11064# Compiler output produced by configure, useful for debugging 11065# configure, is in config.log if it exists. 11066 11067debug=false 11068ac_cs_recheck=false 11069ac_cs_silent=false 11070SHELL=\${CONFIG_SHELL-$SHELL} 11071_ACEOF 11072 11073cat >>$CONFIG_STATUS <<\_ACEOF 11074## --------------------- ## 11075## M4sh Initialization. ## 11076## --------------------- ## 11077 11078# Be more Bourne compatible 11079DUALCASE=1; export DUALCASE # for MKS sh 11080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11081 emulate sh 11082 NULLCMD=: 11083 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11084 # is contrary to our usage. Disable this feature. 11085 alias -g '${1+"$@"}'='"$@"' 11086 setopt NO_GLOB_SUBST 11087else 11088 case `(set -o) 2>/dev/null` in 11089 *posix*) set -o posix ;; 11090esac 11091 11092fi 11093 11094 11095 11096 11097# PATH needs CR 11098# Avoid depending upon Character Ranges. 11099as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11100as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11101as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11102as_cr_digits='0123456789' 11103as_cr_alnum=$as_cr_Letters$as_cr_digits 11104 11105# The user is always right. 11106if test "${PATH_SEPARATOR+set}" != set; then 11107 echo "#! /bin/sh" >conf$$.sh 11108 echo "exit 0" >>conf$$.sh 11109 chmod +x conf$$.sh 11110 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11111 PATH_SEPARATOR=';' 11112 else 11113 PATH_SEPARATOR=: 11114 fi 11115 rm -f conf$$.sh 11116fi 11117 11118# Support unset when possible. 11119if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11120 as_unset=unset 11121else 11122 as_unset=false 11123fi 11124 11125 11126# IFS 11127# We need space, tab and new line, in precisely that order. Quoting is 11128# there to prevent editors from complaining about space-tab. 11129# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11130# splitting by setting IFS to empty value.) 11131as_nl=' 11132' 11133IFS=" "" $as_nl" 11134 11135# Find who we are. Look in the path if we contain no directory separator. 11136case $0 in 11137 *[\\/]* ) as_myself=$0 ;; 11138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11139for as_dir in $PATH 11140do 11141 IFS=$as_save_IFS 11142 test -z "$as_dir" && as_dir=. 11143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11144done 11145IFS=$as_save_IFS 11146 11147 ;; 11148esac 11149# We did not find ourselves, most probably we were run as `sh COMMAND' 11150# in which case we are not to be found in the path. 11151if test "x$as_myself" = x; then 11152 as_myself=$0 11153fi 11154if test ! -f "$as_myself"; then 11155 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11156 { (exit 1); exit 1; } 11157fi 11158 11159# Work around bugs in pre-3.0 UWIN ksh. 11160for as_var in ENV MAIL MAILPATH 11161do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11162done 11163PS1='$ ' 11164PS2='> ' 11165PS4='+ ' 11166 11167# NLS nuisances. 11168for as_var in \ 11169 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11170 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11171 LC_TELEPHONE LC_TIME 11172do 11173 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11174 eval $as_var=C; export $as_var 11175 else 11176 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11177 fi 11178done 11179 11180# Required to use basename. 11181if expr a : '\(a\)' >/dev/null 2>&1 && 11182 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11183 as_expr=expr 11184else 11185 as_expr=false 11186fi 11187 11188if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11189 as_basename=basename 11190else 11191 as_basename=false 11192fi 11193 11194 11195# Name of the executable. 11196as_me=`$as_basename -- "$0" || 11197$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11198 X"$0" : 'X\(//\)$' \| \ 11199 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11200echo X/"$0" | 11201 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11202 s//\1/ 11203 q 11204 } 11205 /^X\/\(\/\/\)$/{ 11206 s//\1/ 11207 q 11208 } 11209 /^X\/\(\/\).*/{ 11210 s//\1/ 11211 q 11212 } 11213 s/.*/./; q'` 11214 11215# CDPATH. 11216$as_unset CDPATH 11217 11218 11219 11220 as_lineno_1=$LINENO 11221 as_lineno_2=$LINENO 11222 test "x$as_lineno_1" != "x$as_lineno_2" && 11223 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11224 11225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11226 # uniformly replaced by the line number. The first 'sed' inserts a 11227 # line-number line after each line using $LINENO; the second 'sed' 11228 # does the real work. The second script uses 'N' to pair each 11229 # line-number line with the line containing $LINENO, and appends 11230 # trailing '-' during substitution so that $LINENO is not a special 11231 # case at line end. 11232 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11233 # scripts with optimization help from Paolo Bonzini. Blame Lee 11234 # E. McMahon (1931-1989) for sed's syntax. :-) 11235 sed -n ' 11236 p 11237 /[$]LINENO/= 11238 ' <$as_myself | 11239 sed ' 11240 s/[$]LINENO.*/&-/ 11241 t lineno 11242 b 11243 :lineno 11244 N 11245 :loop 11246 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11247 t loop 11248 s/-\n.*// 11249 ' >$as_me.lineno && 11250 chmod +x "$as_me.lineno" || 11251 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11252 { (exit 1); exit 1; }; } 11253 11254 # Don't try to exec as it changes $[0], causing all sort of problems 11255 # (the dirname of $[0] is not the place where we might find the 11256 # original and so on. Autoconf is especially sensitive to this). 11257 . "./$as_me.lineno" 11258 # Exit status is that of the last command. 11259 exit 11260} 11261 11262 11263if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11264 as_dirname=dirname 11265else 11266 as_dirname=false 11267fi 11268 11269ECHO_C= ECHO_N= ECHO_T= 11270case `echo -n x` in 11271-n*) 11272 case `echo 'x\c'` in 11273 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11274 *) ECHO_C='\c';; 11275 esac;; 11276*) 11277 ECHO_N='-n';; 11278esac 11279 11280if expr a : '\(a\)' >/dev/null 2>&1 && 11281 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11282 as_expr=expr 11283else 11284 as_expr=false 11285fi 11286 11287rm -f conf$$ conf$$.exe conf$$.file 11288if test -d conf$$.dir; then 11289 rm -f conf$$.dir/conf$$.file 11290else 11291 rm -f conf$$.dir 11292 mkdir conf$$.dir 11293fi 11294echo >conf$$.file 11295if ln -s conf$$.file conf$$ 2>/dev/null; then 11296 as_ln_s='ln -s' 11297 # ... but there are two gotchas: 11298 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11299 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11300 # In both cases, we have to default to `cp -p'. 11301 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11302 as_ln_s='cp -p' 11303elif ln conf$$.file conf$$ 2>/dev/null; then 11304 as_ln_s=ln 11305else 11306 as_ln_s='cp -p' 11307fi 11308rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11309rmdir conf$$.dir 2>/dev/null 11310 11311if mkdir -p . 2>/dev/null; then 11312 as_mkdir_p=: 11313else 11314 test -d ./-p && rmdir ./-p 11315 as_mkdir_p=false 11316fi 11317 11318if test -x / >/dev/null 2>&1; then 11319 as_test_x='test -x' 11320else 11321 if ls -dL / >/dev/null 2>&1; then 11322 as_ls_L_option=L 11323 else 11324 as_ls_L_option= 11325 fi 11326 as_test_x=' 11327 eval sh -c '\'' 11328 if test -d "$1"; then 11329 test -d "$1/."; 11330 else 11331 case $1 in 11332 -*)set "./$1";; 11333 esac; 11334 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11335 ???[sx]*):;;*)false;;esac;fi 11336 '\'' sh 11337 ' 11338fi 11339as_executable_p=$as_test_x 11340 11341# Sed expression to map a string onto a valid CPP name. 11342as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11343 11344# Sed expression to map a string onto a valid variable name. 11345as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11346 11347 11348exec 6>&1 11349 11350# Save the log message, to keep $[0] and so on meaningful, and to 11351# report actual input values of CONFIG_FILES etc. instead of their 11352# values after options handling. 11353ac_log=" 11354This file was extended by Tclxslt $as_me 2.6, which was 11355generated by GNU Autoconf 2.61. Invocation command line was 11356 11357 CONFIG_FILES = $CONFIG_FILES 11358 CONFIG_HEADERS = $CONFIG_HEADERS 11359 CONFIG_LINKS = $CONFIG_LINKS 11360 CONFIG_COMMANDS = $CONFIG_COMMANDS 11361 $ $0 $@ 11362 11363on `(hostname || uname -n) 2>/dev/null | sed 1q` 11364" 11365 11366_ACEOF 11367 11368cat >>$CONFIG_STATUS <<_ACEOF 11369# Files that config.status was made for. 11370config_files="$ac_config_files" 11371 11372_ACEOF 11373 11374cat >>$CONFIG_STATUS <<\_ACEOF 11375ac_cs_usage="\ 11376\`$as_me' instantiates files from templates according to the 11377current configuration. 11378 11379Usage: $0 [OPTIONS] [FILE]... 11380 11381 -h, --help print this help, then exit 11382 -V, --version print version number and configuration settings, then exit 11383 -q, --quiet do not print progress messages 11384 -d, --debug don't remove temporary files 11385 --recheck update $as_me by reconfiguring in the same conditions 11386 --file=FILE[:TEMPLATE] 11387 instantiate the configuration file FILE 11388 11389Configuration files: 11390$config_files 11391 11392Report bugs to <bug-autoconf@gnu.org>." 11393 11394_ACEOF 11395cat >>$CONFIG_STATUS <<_ACEOF 11396ac_cs_version="\\ 11397Tclxslt config.status 2.6 11398configured by $0, generated by GNU Autoconf 2.61, 11399 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11400 11401Copyright (C) 2006 Free Software Foundation, Inc. 11402This config.status script is free software; the Free Software Foundation 11403gives unlimited permission to copy, distribute and modify it." 11404 11405ac_pwd='$ac_pwd' 11406srcdir='$srcdir' 11407INSTALL='$INSTALL' 11408_ACEOF 11409 11410cat >>$CONFIG_STATUS <<\_ACEOF 11411# If no file are specified by the user, then we need to provide default 11412# value. By we need to know if files were specified by the user. 11413ac_need_defaults=: 11414while test $# != 0 11415do 11416 case $1 in 11417 --*=*) 11418 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11419 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11420 ac_shift=: 11421 ;; 11422 *) 11423 ac_option=$1 11424 ac_optarg=$2 11425 ac_shift=shift 11426 ;; 11427 esac 11428 11429 case $ac_option in 11430 # Handling of the options. 11431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11432 ac_cs_recheck=: ;; 11433 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11434 echo "$ac_cs_version"; exit ;; 11435 --debug | --debu | --deb | --de | --d | -d ) 11436 debug=: ;; 11437 --file | --fil | --fi | --f ) 11438 $ac_shift 11439 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11440 ac_need_defaults=false;; 11441 --he | --h | --help | --hel | -h ) 11442 echo "$ac_cs_usage"; exit ;; 11443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11444 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11445 ac_cs_silent=: ;; 11446 11447 # This is an error. 11448 -*) { echo "$as_me: error: unrecognized option: $1 11449Try \`$0 --help' for more information." >&2 11450 { (exit 1); exit 1; }; } ;; 11451 11452 *) ac_config_targets="$ac_config_targets $1" 11453 ac_need_defaults=false ;; 11454 11455 esac 11456 shift 11457done 11458 11459ac_configure_extra_args= 11460 11461if $ac_cs_silent; then 11462 exec 6>/dev/null 11463 ac_configure_extra_args="$ac_configure_extra_args --silent" 11464fi 11465 11466_ACEOF 11467cat >>$CONFIG_STATUS <<_ACEOF 11468if \$ac_cs_recheck; then 11469 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11470 CONFIG_SHELL=$SHELL 11471 export CONFIG_SHELL 11472 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11473fi 11474 11475_ACEOF 11476cat >>$CONFIG_STATUS <<\_ACEOF 11477exec 5>>config.log 11478{ 11479 echo 11480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11481## Running $as_me. ## 11482_ASBOX 11483 echo "$ac_log" 11484} >&5 11485 11486_ACEOF 11487cat >>$CONFIG_STATUS <<_ACEOF 11488_ACEOF 11489 11490cat >>$CONFIG_STATUS <<\_ACEOF 11491 11492# Handling of arguments. 11493for ac_config_target in $ac_config_targets 11494do 11495 case $ac_config_target in 11496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11497 "library/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES library/pkgIndex.tcl" ;; 11498 11499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11500echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11501 { (exit 1); exit 1; }; };; 11502 esac 11503done 11504 11505 11506# If the user did not use the arguments to specify the items to instantiate, 11507# then the envvar interface is used. Set only those that are not. 11508# We use the long form for the default assignment because of an extremely 11509# bizarre bug on SunOS 4.1.3. 11510if $ac_need_defaults; then 11511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11512fi 11513 11514# Have a temporary directory for convenience. Make it in the build tree 11515# simply because there is no reason against having it here, and in addition, 11516# creating and moving files from /tmp can sometimes cause problems. 11517# Hook for its removal unless debugging. 11518# Note that there is a small window in which the directory will not be cleaned: 11519# after its creation but before its name has been assigned to `$tmp'. 11520$debug || 11521{ 11522 tmp= 11523 trap 'exit_status=$? 11524 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11525' 0 11526 trap '{ (exit 1); exit 1; }' 1 2 13 15 11527} 11528# Create a (secure) tmp directory for tmp files. 11529 11530{ 11531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11532 test -n "$tmp" && test -d "$tmp" 11533} || 11534{ 11535 tmp=./conf$$-$RANDOM 11536 (umask 077 && mkdir "$tmp") 11537} || 11538{ 11539 echo "$me: cannot create a temporary directory in ." >&2 11540 { (exit 1); exit 1; } 11541} 11542 11543# 11544# Set up the sed scripts for CONFIG_FILES section. 11545# 11546 11547# No need to generate the scripts if there are no CONFIG_FILES. 11548# This happens for instance when ./config.status config.h 11549if test -n "$CONFIG_FILES"; then 11550 11551_ACEOF 11552 11553 11554 11555ac_delim='%!_!# ' 11556for ac_last_try in false false false false false :; do 11557 cat >conf$$subs.sed <<_ACEOF 11558SHELL!$SHELL$ac_delim 11559PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11560PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11561PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11562PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11563PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11564PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11565exec_prefix!$exec_prefix$ac_delim 11566prefix!$prefix$ac_delim 11567program_transform_name!$program_transform_name$ac_delim 11568bindir!$bindir$ac_delim 11569sbindir!$sbindir$ac_delim 11570libexecdir!$libexecdir$ac_delim 11571datarootdir!$datarootdir$ac_delim 11572datadir!$datadir$ac_delim 11573sysconfdir!$sysconfdir$ac_delim 11574sharedstatedir!$sharedstatedir$ac_delim 11575localstatedir!$localstatedir$ac_delim 11576includedir!$includedir$ac_delim 11577oldincludedir!$oldincludedir$ac_delim 11578docdir!$docdir$ac_delim 11579infodir!$infodir$ac_delim 11580htmldir!$htmldir$ac_delim 11581dvidir!$dvidir$ac_delim 11582pdfdir!$pdfdir$ac_delim 11583psdir!$psdir$ac_delim 11584libdir!$libdir$ac_delim 11585localedir!$localedir$ac_delim 11586mandir!$mandir$ac_delim 11587DEFS!$DEFS$ac_delim 11588ECHO_C!$ECHO_C$ac_delim 11589ECHO_N!$ECHO_N$ac_delim 11590ECHO_T!$ECHO_T$ac_delim 11591LIBS!$LIBS$ac_delim 11592build_alias!$build_alias$ac_delim 11593host_alias!$host_alias$ac_delim 11594target_alias!$target_alias$ac_delim 11595CONFIGDIR!$CONFIGDIR$ac_delim 11596PACKAGE!$PACKAGE$ac_delim 11597VERSION!$VERSION$ac_delim 11598TCLXSLT_VERSION!$TCLXSLT_VERSION$ac_delim 11599Tclxslt_LIB_FILE!$Tclxslt_LIB_FILE$ac_delim 11600Tclxsltstub_LIB_FILE!$Tclxsltstub_LIB_FILE$ac_delim 11601CYGPATH!$CYGPATH$ac_delim 11602EXEEXT!$EXEEXT$ac_delim 11603PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11604PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11605PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11606PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11607PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11608PKG_HEADERS!$PKG_HEADERS$ac_delim 11609PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11610PKG_LIBS!$PKG_LIBS$ac_delim 11611PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11612TCL_VERSION!$TCL_VERSION$ac_delim 11613TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11614TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11615TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11616TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11617TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11618TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11619TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11620TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11621TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11622CLEANFILES!$CLEANFILES$ac_delim 11623TCL_LIBS!$TCL_LIBS$ac_delim 11624TCL_DEFS!$TCL_DEFS$ac_delim 11625TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11626TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11627TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11628CC!$CC$ac_delim 11629CFLAGS!$CFLAGS$ac_delim 11630LDFLAGS!$LDFLAGS$ac_delim 11631CPPFLAGS!$CPPFLAGS$ac_delim 11632ac_ct_CC!$ac_ct_CC$ac_delim 11633OBJEXT!$OBJEXT$ac_delim 11634CPP!$CPP$ac_delim 11635INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11636INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11637INSTALL_DATA!$INSTALL_DATA$ac_delim 11638SET_MAKE!$SET_MAKE$ac_delim 11639RANLIB!$RANLIB$ac_delim 11640GREP!$GREP$ac_delim 11641EGREP!$EGREP$ac_delim 11642MATH_LIBS!$MATH_LIBS$ac_delim 11643tcldomxml_VERSION!$tcldomxml_VERSION$ac_delim 11644tcldomxml_BIN_DIR!$tcldomxml_BIN_DIR$ac_delim 11645tcldomxml_SRC_DIR!$tcldomxml_SRC_DIR$ac_delim 11646tcldomxml_LIB_FILE!$tcldomxml_LIB_FILE$ac_delim 11647tcldomxml_LIB_SPEC!$tcldomxml_LIB_SPEC$ac_delim 11648tcldomxml_STUB_LIB_FILE!$tcldomxml_STUB_LIB_FILE$ac_delim 11649tcldomxml_STUB_LIB_SPEC!$tcldomxml_STUB_LIB_SPEC$ac_delim 11650tcldomxml_STUB_LIB_PATH!$tcldomxml_STUB_LIB_PATH$ac_delim 11651TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11652EXTRA_SOURCES!$EXTRA_SOURCES$ac_delim 11653TCL_THREADS!$TCL_THREADS$ac_delim 11654SHARED_BUILD!$SHARED_BUILD$ac_delim 11655_ACEOF 11656 11657 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11658 break 11659 elif $ac_last_try; then 11660 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11661echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11662 { (exit 1); exit 1; }; } 11663 else 11664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11665 fi 11666done 11667 11668ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11669if test -n "$ac_eof"; then 11670 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11671 ac_eof=`expr $ac_eof + 1` 11672fi 11673 11674cat >>$CONFIG_STATUS <<_ACEOF 11675cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11676/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11677_ACEOF 11678sed ' 11679s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11680s/^/s,@/; s/!/@,|#_!!_#|/ 11681:n 11682t n 11683s/'"$ac_delim"'$/,g/; t 11684s/$/\\/; p 11685N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11686' >>$CONFIG_STATUS <conf$$subs.sed 11687rm -f conf$$subs.sed 11688cat >>$CONFIG_STATUS <<_ACEOF 11689CEOF$ac_eof 11690_ACEOF 11691 11692 11693ac_delim='%!_!# ' 11694for ac_last_try in false false false false false :; do 11695 cat >conf$$subs.sed <<_ACEOF 11696AR!$AR$ac_delim 11697CELIB_DIR!$CELIB_DIR$ac_delim 11698CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11699CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11700CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11701STLIB_LD!$STLIB_LD$ac_delim 11702SHLIB_LD!$SHLIB_LD$ac_delim 11703SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11704SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11705LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11706CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11707LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11708TCL_DBGX!$TCL_DBGX$ac_delim 11709MAKE_LIB!$MAKE_LIB$ac_delim 11710MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11711MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11712MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11713RANLIB_STUB!$RANLIB_STUB$ac_delim 11714VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11715VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11716LIBXML2_INCLUDEDIR!$LIBXML2_INCLUDEDIR$ac_delim 11717LIBXML2_LIBDIR!$LIBXML2_LIBDIR$ac_delim 11718LIBXSLT_INCLUDEDIR!$LIBXSLT_INCLUDEDIR$ac_delim 11719LIBXSLT_LIBDIR!$LIBXSLT_LIBDIR$ac_delim 11720LIBEXSLT_INCLUDEDIR!$LIBEXSLT_INCLUDEDIR$ac_delim 11721LIBEXSLT_LIBDIR!$LIBEXSLT_LIBDIR$ac_delim 11722ICONV_LIBDIR!$ICONV_LIBDIR$ac_delim 11723TCLSH_PROG!$TCLSH_PROG$ac_delim 11724LIBOBJS!$LIBOBJS$ac_delim 11725LTLIBOBJS!$LTLIBOBJS$ac_delim 11726_ACEOF 11727 11728 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then 11729 break 11730 elif $ac_last_try; then 11731 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11732echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11733 { (exit 1); exit 1; }; } 11734 else 11735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11736 fi 11737done 11738 11739ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11740if test -n "$ac_eof"; then 11741 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11742 ac_eof=`expr $ac_eof + 1` 11743fi 11744 11745cat >>$CONFIG_STATUS <<_ACEOF 11746cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11747/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11748_ACEOF 11749sed ' 11750s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11751s/^/s,@/; s/!/@,|#_!!_#|/ 11752:n 11753t n 11754s/'"$ac_delim"'$/,g/; t 11755s/$/\\/; p 11756N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11757' >>$CONFIG_STATUS <conf$$subs.sed 11758rm -f conf$$subs.sed 11759cat >>$CONFIG_STATUS <<_ACEOF 11760:end 11761s/|#_!!_#|//g 11762CEOF$ac_eof 11763_ACEOF 11764 11765 11766# VPATH may cause trouble with some makes, so we remove $(srcdir), 11767# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11768# trailing colons and then remove the whole line if VPATH becomes empty 11769# (actually we leave an empty line to preserve line numbers). 11770if test "x$srcdir" = x.; then 11771 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11772s/:*\$(srcdir):*/:/ 11773s/:*\${srcdir}:*/:/ 11774s/:*@srcdir@:*/:/ 11775s/^\([^=]*=[ ]*\):*/\1/ 11776s/:*$// 11777s/^[^=]*=[ ]*$// 11778}' 11779fi 11780 11781cat >>$CONFIG_STATUS <<\_ACEOF 11782fi # test -n "$CONFIG_FILES" 11783 11784 11785for ac_tag in :F $CONFIG_FILES 11786do 11787 case $ac_tag in 11788 :[FHLC]) ac_mode=$ac_tag; continue;; 11789 esac 11790 case $ac_mode$ac_tag in 11791 :[FHL]*:*);; 11792 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11793echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11794 { (exit 1); exit 1; }; };; 11795 :[FH]-) ac_tag=-:-;; 11796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11797 esac 11798 ac_save_IFS=$IFS 11799 IFS=: 11800 set x $ac_tag 11801 IFS=$ac_save_IFS 11802 shift 11803 ac_file=$1 11804 shift 11805 11806 case $ac_mode in 11807 :L) ac_source=$1;; 11808 :[FH]) 11809 ac_file_inputs= 11810 for ac_f 11811 do 11812 case $ac_f in 11813 -) ac_f="$tmp/stdin";; 11814 *) # Look for the file first in the build tree, then in the source tree 11815 # (if the path is not absolute). The absolute path cannot be DOS-style, 11816 # because $ac_f cannot contain `:'. 11817 test -f "$ac_f" || 11818 case $ac_f in 11819 [\\/$]*) false;; 11820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11821 esac || 11822 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11823echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11824 { (exit 1); exit 1; }; };; 11825 esac 11826 ac_file_inputs="$ac_file_inputs $ac_f" 11827 done 11828 11829 # Let's still pretend it is `configure' which instantiates (i.e., don't 11830 # use $as_me), people would be surprised to read: 11831 # /* config.h. Generated by config.status. */ 11832 configure_input="Generated from "`IFS=: 11833 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11834 if test x"$ac_file" != x-; then 11835 configure_input="$ac_file. $configure_input" 11836 { echo "$as_me:$LINENO: creating $ac_file" >&5 11837echo "$as_me: creating $ac_file" >&6;} 11838 fi 11839 11840 case $ac_tag in 11841 *:-:* | *:-) cat >"$tmp/stdin";; 11842 esac 11843 ;; 11844 esac 11845 11846 ac_dir=`$as_dirname -- "$ac_file" || 11847$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11848 X"$ac_file" : 'X\(//\)[^/]' \| \ 11849 X"$ac_file" : 'X\(//\)$' \| \ 11850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11851echo X"$ac_file" | 11852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11853 s//\1/ 11854 q 11855 } 11856 /^X\(\/\/\)[^/].*/{ 11857 s//\1/ 11858 q 11859 } 11860 /^X\(\/\/\)$/{ 11861 s//\1/ 11862 q 11863 } 11864 /^X\(\/\).*/{ 11865 s//\1/ 11866 q 11867 } 11868 s/.*/./; q'` 11869 { as_dir="$ac_dir" 11870 case $as_dir in #( 11871 -*) as_dir=./$as_dir;; 11872 esac 11873 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11874 as_dirs= 11875 while :; do 11876 case $as_dir in #( 11877 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11878 *) as_qdir=$as_dir;; 11879 esac 11880 as_dirs="'$as_qdir' $as_dirs" 11881 as_dir=`$as_dirname -- "$as_dir" || 11882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11883 X"$as_dir" : 'X\(//\)[^/]' \| \ 11884 X"$as_dir" : 'X\(//\)$' \| \ 11885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11886echo X"$as_dir" | 11887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11888 s//\1/ 11889 q 11890 } 11891 /^X\(\/\/\)[^/].*/{ 11892 s//\1/ 11893 q 11894 } 11895 /^X\(\/\/\)$/{ 11896 s//\1/ 11897 q 11898 } 11899 /^X\(\/\).*/{ 11900 s//\1/ 11901 q 11902 } 11903 s/.*/./; q'` 11904 test -d "$as_dir" && break 11905 done 11906 test -z "$as_dirs" || eval "mkdir $as_dirs" 11907 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11908echo "$as_me: error: cannot create directory $as_dir" >&2;} 11909 { (exit 1); exit 1; }; }; } 11910 ac_builddir=. 11911 11912case "$ac_dir" in 11913.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11914*) 11915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11916 # A ".." for each directory in $ac_dir_suffix. 11917 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11918 case $ac_top_builddir_sub in 11919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11921 esac ;; 11922esac 11923ac_abs_top_builddir=$ac_pwd 11924ac_abs_builddir=$ac_pwd$ac_dir_suffix 11925# for backward compatibility: 11926ac_top_builddir=$ac_top_build_prefix 11927 11928case $srcdir in 11929 .) # We are building in place. 11930 ac_srcdir=. 11931 ac_top_srcdir=$ac_top_builddir_sub 11932 ac_abs_top_srcdir=$ac_pwd ;; 11933 [\\/]* | ?:[\\/]* ) # Absolute name. 11934 ac_srcdir=$srcdir$ac_dir_suffix; 11935 ac_top_srcdir=$srcdir 11936 ac_abs_top_srcdir=$srcdir ;; 11937 *) # Relative name. 11938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11939 ac_top_srcdir=$ac_top_build_prefix$srcdir 11940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11941esac 11942ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11943 11944 11945 case $ac_mode in 11946 :F) 11947 # 11948 # CONFIG_FILE 11949 # 11950 11951 case $INSTALL in 11952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11954 esac 11955_ACEOF 11956 11957cat >>$CONFIG_STATUS <<\_ACEOF 11958# If the template does not know about datarootdir, expand it. 11959# FIXME: This hack should be removed a few years after 2.60. 11960ac_datarootdir_hack=; ac_datarootdir_seen= 11961 11962case `sed -n '/datarootdir/ { 11963 p 11964 q 11965} 11966/@datadir@/p 11967/@docdir@/p 11968/@infodir@/p 11969/@localedir@/p 11970/@mandir@/p 11971' $ac_file_inputs` in 11972*datarootdir*) ac_datarootdir_seen=yes;; 11973*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11974 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11975echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11976_ACEOF 11977cat >>$CONFIG_STATUS <<_ACEOF 11978 ac_datarootdir_hack=' 11979 s&@datadir@&$datadir&g 11980 s&@docdir@&$docdir&g 11981 s&@infodir@&$infodir&g 11982 s&@localedir@&$localedir&g 11983 s&@mandir@&$mandir&g 11984 s&\\\${datarootdir}&$datarootdir&g' ;; 11985esac 11986_ACEOF 11987 11988# Neutralize VPATH when `$srcdir' = `.'. 11989# Shell code in configure.ac might set extrasub. 11990# FIXME: do we really want to maintain this feature? 11991cat >>$CONFIG_STATUS <<_ACEOF 11992 sed "$ac_vpsub 11993$extrasub 11994_ACEOF 11995cat >>$CONFIG_STATUS <<\_ACEOF 11996:t 11997/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11998s&@configure_input@&$configure_input&;t t 11999s&@top_builddir@&$ac_top_builddir_sub&;t t 12000s&@srcdir@&$ac_srcdir&;t t 12001s&@abs_srcdir@&$ac_abs_srcdir&;t t 12002s&@top_srcdir@&$ac_top_srcdir&;t t 12003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12004s&@builddir@&$ac_builddir&;t t 12005s&@abs_builddir@&$ac_abs_builddir&;t t 12006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12007s&@INSTALL@&$ac_INSTALL&;t t 12008$ac_datarootdir_hack 12009" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12010 12011test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12012 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12013 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12014 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12015which seems to be undefined. Please make sure it is defined." >&5 12016echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12017which seems to be undefined. Please make sure it is defined." >&2;} 12018 12019 rm -f "$tmp/stdin" 12020 case $ac_file in 12021 -) cat "$tmp/out"; rm -f "$tmp/out";; 12022 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12023 esac 12024 ;; 12025 12026 12027 12028 esac 12029 12030done # for ac_tag 12031 12032 12033{ (exit 0); exit 0; } 12034_ACEOF 12035chmod +x $CONFIG_STATUS 12036ac_clean_files=$ac_clean_files_save 12037 12038 12039# configure is writing to config.log, and then calls config.status. 12040# config.status does its own redirection, appending to config.log. 12041# Unfortunately, on DOS this fails, as config.log is still kept open 12042# by configure, so config.status won't be able to write to it; its 12043# output is simply discarded. So we exec the FD to /dev/null, 12044# effectively closing config.log, so it can be properly (re)opened and 12045# appended to by config.status. When coming back to configure, we 12046# need to make the FD available again. 12047if test "$no_create" != yes; then 12048 ac_cs_success=: 12049 ac_config_status_args= 12050 test "$silent" = yes && 12051 ac_config_status_args="$ac_config_status_args --quiet" 12052 exec 5>/dev/null 12053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12054 exec 5>>config.log 12055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12056 # would make configure fail if this is the last instruction. 12057 $ac_cs_success || { (exit 1); exit 1; } 12058fi 12059 12060 12061#-------------------------------------------------------------------- 12062