1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for Tktable 2.10. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME='Tktable' 574PACKAGE_TARNAME='tktable' 575PACKAGE_VERSION='2.10' 576PACKAGE_STRING='Tktable 2.10' 577PACKAGE_BUGREPORT='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='SHELL 616PATH_SEPARATOR 617PACKAGE_NAME 618PACKAGE_TARNAME 619PACKAGE_VERSION 620PACKAGE_STRING 621PACKAGE_BUGREPORT 622exec_prefix 623prefix 624program_transform_name 625bindir 626sbindir 627libexecdir 628datarootdir 629datadir 630sysconfdir 631sharedstatedir 632localstatedir 633includedir 634oldincludedir 635docdir 636infodir 637htmldir 638dvidir 639pdfdir 640psdir 641libdir 642localedir 643mandir 644DEFS 645ECHO_C 646ECHO_N 647ECHO_T 648LIBS 649build_alias 650host_alias 651target_alias 652CYGPATH 653EXEEXT 654PKG_LIB_FILE 655PKG_STUB_LIB_FILE 656PKG_STUB_SOURCES 657PKG_STUB_OBJECTS 658PKG_TCL_SOURCES 659PKG_HEADERS 660PKG_INCLUDES 661PKG_LIBS 662PKG_CFLAGS 663TCL_VERSION 664TCL_PATCH_LEVEL 665TCL_BIN_DIR 666TCL_SRC_DIR 667TCL_LIB_FILE 668TCL_LIB_FLAG 669TCL_LIB_SPEC 670TCL_STUB_LIB_FILE 671TCL_STUB_LIB_FLAG 672TCL_STUB_LIB_SPEC 673CLEANFILES 674TCL_LIBS 675TCL_DEFS 676TCL_EXTRA_CFLAGS 677TCL_LD_FLAGS 678TCL_SHLIB_LD_LIBS 679TK_VERSION 680TK_BIN_DIR 681TK_SRC_DIR 682TK_LIB_FILE 683TK_LIB_FLAG 684TK_LIB_SPEC 685TK_STUB_LIB_FILE 686TK_STUB_LIB_FLAG 687TK_STUB_LIB_SPEC 688TK_LIBS 689TK_XINCLUDES 690CC 691CFLAGS 692LDFLAGS 693CPPFLAGS 694ac_ct_CC 695OBJEXT 696CPP 697INSTALL_PROGRAM 698INSTALL_SCRIPT 699INSTALL_DATA 700SET_MAKE 701RANLIB 702GREP 703EGREP 704MATH_LIBS 705PKG_SOURCES 706PKG_OBJECTS 707TCL_INCLUDES 708TK_INCLUDES 709XMKMF 710TCL_THREADS 711SHARED_BUILD 712AR 713CELIB_DIR 714CFLAGS_DEBUG 715CFLAGS_OPTIMIZE 716CFLAGS_WARNING 717STLIB_LD 718SHLIB_LD 719SHLIB_LD_LIBS 720SHLIB_CFLAGS 721LD_LIBRARY_PATH_VAR 722CFLAGS_DEFAULT 723LDFLAGS_DEFAULT 724TCL_DBGX 725MAKE_LIB 726MAKE_SHARED_LIB 727MAKE_STATIC_LIB 728MAKE_STUB_LIB 729RANLIB_STUB 730VC_MANIFEST_EMBED_DLL 731VC_MANIFEST_EMBED_EXE 732TCLSH_PROG 733WISH_PROG 734LIBOBJS 735LTLIBOBJS' 736ac_subst_files='' 737 ac_precious_vars='build_alias 738host_alias 739target_alias 740CC 741CFLAGS 742LDFLAGS 743LIBS 744CPPFLAGS 745CPP 746XMKMF' 747 748 749# Initialize some variables set by options. 750ac_init_help= 751ac_init_version=false 752# The variables have the same names as the options, with 753# dashes changed to underlines. 754cache_file=/dev/null 755exec_prefix=NONE 756no_create= 757no_recursion= 758prefix=NONE 759program_prefix=NONE 760program_suffix=NONE 761program_transform_name=s,x,x, 762silent= 763site= 764srcdir= 765verbose= 766x_includes=NONE 767x_libraries=NONE 768 769# Installation directory options. 770# These are left unexpanded so users can "make install exec_prefix=/foo" 771# and all the variables that are supposed to be based on exec_prefix 772# by default will actually change. 773# Use braces instead of parens because sh, perl, etc. also accept them. 774# (The list follows the same order as the GNU Coding Standards.) 775bindir='${exec_prefix}/bin' 776sbindir='${exec_prefix}/sbin' 777libexecdir='${exec_prefix}/libexec' 778datarootdir='${prefix}/share' 779datadir='${datarootdir}' 780sysconfdir='${prefix}/etc' 781sharedstatedir='${prefix}/com' 782localstatedir='${prefix}/var' 783includedir='${prefix}/include' 784oldincludedir='/usr/include' 785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 786infodir='${datarootdir}/info' 787htmldir='${docdir}' 788dvidir='${docdir}' 789pdfdir='${docdir}' 790psdir='${docdir}' 791libdir='${exec_prefix}/lib' 792localedir='${datarootdir}/locale' 793mandir='${datarootdir}/man' 794 795ac_prev= 796ac_dashdash= 797for ac_option 798do 799 # If the previous option needs an argument, assign it. 800 if test -n "$ac_prev"; then 801 eval $ac_prev=\$ac_option 802 ac_prev= 803 continue 804 fi 805 806 case $ac_option in 807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 808 *) ac_optarg=yes ;; 809 esac 810 811 # Accept the important Cygnus configure options, so we can diagnose typos. 812 813 case $ac_dashdash$ac_option in 814 --) 815 ac_dashdash=yes ;; 816 817 -bindir | --bindir | --bindi | --bind | --bin | --bi) 818 ac_prev=bindir ;; 819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 820 bindir=$ac_optarg ;; 821 822 -build | --build | --buil | --bui | --bu) 823 ac_prev=build_alias ;; 824 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 825 build_alias=$ac_optarg ;; 826 827 -cache-file | --cache-file | --cache-fil | --cache-fi \ 828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 829 ac_prev=cache_file ;; 830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 832 cache_file=$ac_optarg ;; 833 834 --config-cache | -C) 835 cache_file=config.cache ;; 836 837 -datadir | --datadir | --datadi | --datad) 838 ac_prev=datadir ;; 839 -datadir=* | --datadir=* | --datadi=* | --datad=*) 840 datadir=$ac_optarg ;; 841 842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 843 | --dataroo | --dataro | --datar) 844 ac_prev=datarootdir ;; 845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 847 datarootdir=$ac_optarg ;; 848 849 -disable-* | --disable-*) 850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 851 # Reject names that are not valid shell variable names. 852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 854 { (exit 1); exit 1; }; } 855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 856 eval enable_$ac_feature=no ;; 857 858 -docdir | --docdir | --docdi | --doc | --do) 859 ac_prev=docdir ;; 860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 861 docdir=$ac_optarg ;; 862 863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 864 ac_prev=dvidir ;; 865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 866 dvidir=$ac_optarg ;; 867 868 -enable-* | --enable-*) 869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 870 # Reject names that are not valid shell variable names. 871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 873 { (exit 1); exit 1; }; } 874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 875 eval enable_$ac_feature=\$ac_optarg ;; 876 877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 879 | --exec | --exe | --ex) 880 ac_prev=exec_prefix ;; 881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 883 | --exec=* | --exe=* | --ex=*) 884 exec_prefix=$ac_optarg ;; 885 886 -gas | --gas | --ga | --g) 887 # Obsolete; use --with-gas. 888 with_gas=yes ;; 889 890 -help | --help | --hel | --he | -h) 891 ac_init_help=long ;; 892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 893 ac_init_help=recursive ;; 894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 895 ac_init_help=short ;; 896 897 -host | --host | --hos | --ho) 898 ac_prev=host_alias ;; 899 -host=* | --host=* | --hos=* | --ho=*) 900 host_alias=$ac_optarg ;; 901 902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 903 ac_prev=htmldir ;; 904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 905 | --ht=*) 906 htmldir=$ac_optarg ;; 907 908 -includedir | --includedir | --includedi | --included | --include \ 909 | --includ | --inclu | --incl | --inc) 910 ac_prev=includedir ;; 911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 912 | --includ=* | --inclu=* | --incl=* | --inc=*) 913 includedir=$ac_optarg ;; 914 915 -infodir | --infodir | --infodi | --infod | --info | --inf) 916 ac_prev=infodir ;; 917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 918 infodir=$ac_optarg ;; 919 920 -libdir | --libdir | --libdi | --libd) 921 ac_prev=libdir ;; 922 -libdir=* | --libdir=* | --libdi=* | --libd=*) 923 libdir=$ac_optarg ;; 924 925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 926 | --libexe | --libex | --libe) 927 ac_prev=libexecdir ;; 928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 929 | --libexe=* | --libex=* | --libe=*) 930 libexecdir=$ac_optarg ;; 931 932 -localedir | --localedir | --localedi | --localed | --locale) 933 ac_prev=localedir ;; 934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 935 localedir=$ac_optarg ;; 936 937 -localstatedir | --localstatedir | --localstatedi | --localstated \ 938 | --localstate | --localstat | --localsta | --localst | --locals) 939 ac_prev=localstatedir ;; 940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 942 localstatedir=$ac_optarg ;; 943 944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 945 ac_prev=mandir ;; 946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 947 mandir=$ac_optarg ;; 948 949 -nfp | --nfp | --nf) 950 # Obsolete; use --without-fp. 951 with_fp=no ;; 952 953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 954 | --no-cr | --no-c | -n) 955 no_create=yes ;; 956 957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 959 no_recursion=yes ;; 960 961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 963 | --oldin | --oldi | --old | --ol | --o) 964 ac_prev=oldincludedir ;; 965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 968 oldincludedir=$ac_optarg ;; 969 970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 971 ac_prev=prefix ;; 972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 973 prefix=$ac_optarg ;; 974 975 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 976 | --program-pre | --program-pr | --program-p) 977 ac_prev=program_prefix ;; 978 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 980 program_prefix=$ac_optarg ;; 981 982 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 983 | --program-suf | --program-su | --program-s) 984 ac_prev=program_suffix ;; 985 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 987 program_suffix=$ac_optarg ;; 988 989 -program-transform-name | --program-transform-name \ 990 | --program-transform-nam | --program-transform-na \ 991 | --program-transform-n | --program-transform- \ 992 | --program-transform | --program-transfor \ 993 | --program-transfo | --program-transf \ 994 | --program-trans | --program-tran \ 995 | --progr-tra | --program-tr | --program-t) 996 ac_prev=program_transform_name ;; 997 -program-transform-name=* | --program-transform-name=* \ 998 | --program-transform-nam=* | --program-transform-na=* \ 999 | --program-transform-n=* | --program-transform-=* \ 1000 | --program-transform=* | --program-transfor=* \ 1001 | --program-transfo=* | --program-transf=* \ 1002 | --program-trans=* | --program-tran=* \ 1003 | --progr-tra=* | --program-tr=* | --program-t=*) 1004 program_transform_name=$ac_optarg ;; 1005 1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1007 ac_prev=pdfdir ;; 1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1009 pdfdir=$ac_optarg ;; 1010 1011 -psdir | --psdir | --psdi | --psd | --ps) 1012 ac_prev=psdir ;; 1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1014 psdir=$ac_optarg ;; 1015 1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1017 | -silent | --silent | --silen | --sile | --sil) 1018 silent=yes ;; 1019 1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1021 ac_prev=sbindir ;; 1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1023 | --sbi=* | --sb=*) 1024 sbindir=$ac_optarg ;; 1025 1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1028 | --sharedst | --shareds | --shared | --share | --shar \ 1029 | --sha | --sh) 1030 ac_prev=sharedstatedir ;; 1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1034 | --sha=* | --sh=*) 1035 sharedstatedir=$ac_optarg ;; 1036 1037 -site | --site | --sit) 1038 ac_prev=site ;; 1039 -site=* | --site=* | --sit=*) 1040 site=$ac_optarg ;; 1041 1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1043 ac_prev=srcdir ;; 1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1045 srcdir=$ac_optarg ;; 1046 1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1048 | --syscon | --sysco | --sysc | --sys | --sy) 1049 ac_prev=sysconfdir ;; 1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1052 sysconfdir=$ac_optarg ;; 1053 1054 -target | --target | --targe | --targ | --tar | --ta | --t) 1055 ac_prev=target_alias ;; 1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1057 target_alias=$ac_optarg ;; 1058 1059 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1060 verbose=yes ;; 1061 1062 -version | --version | --versio | --versi | --vers | -V) 1063 ac_init_version=: ;; 1064 1065 -with-* | --with-*) 1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1072 eval with_$ac_package=\$ac_optarg ;; 1073 1074 -without-* | --without-*) 1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1079 { (exit 1); exit 1; }; } 1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1081 eval with_$ac_package=no ;; 1082 1083 --x) 1084 # Obsolete; use --with-x. 1085 with_x=yes ;; 1086 1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1088 | --x-incl | --x-inc | --x-in | --x-i) 1089 ac_prev=x_includes ;; 1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1092 x_includes=$ac_optarg ;; 1093 1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1096 ac_prev=x_libraries ;; 1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1099 x_libraries=$ac_optarg ;; 1100 1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1102Try \`$0 --help' for more information." >&2 1103 { (exit 1); exit 1; }; } 1104 ;; 1105 1106 *=*) 1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1111 { (exit 1); exit 1; }; } 1112 eval $ac_envvar=\$ac_optarg 1113 export $ac_envvar ;; 1114 1115 *) 1116 # FIXME: should be removed in autoconf 3.0. 1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1121 ;; 1122 1123 esac 1124done 1125 1126if test -n "$ac_prev"; then 1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1129 { (exit 1); exit 1; }; } 1130fi 1131 1132# Be sure to have absolute directory names. 1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1136 libdir localedir mandir 1137do 1138 eval ac_val=\$$ac_var 1139 case $ac_val in 1140 [\\/$]* | ?:[\\/]* ) continue;; 1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1142 esac 1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1144 { (exit 1); exit 1; }; } 1145done 1146 1147# There might be people who depend on the old broken behavior: `$host' 1148# used to hold the argument of --host etc. 1149# FIXME: To remove some day. 1150build=$build_alias 1151host=$host_alias 1152target=$target_alias 1153 1154# FIXME: To remove some day. 1155if test "x$host_alias" != x; then 1156 if test "x$build_alias" = x; then 1157 cross_compiling=maybe 1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1159 If a cross compiler is detected then cross compile mode will be used." >&2 1160 elif test "x$build_alias" != "x$host_alias"; then 1161 cross_compiling=yes 1162 fi 1163fi 1164 1165ac_tool_prefix= 1166test -n "$host_alias" && ac_tool_prefix=$host_alias- 1167 1168test "$silent" = yes && exec 6>/dev/null 1169 1170 1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1172ac_ls_di=`ls -di .` && 1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1175 { (exit 1); exit 1; }; } 1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1178 { (exit 1); exit 1; }; } 1179 1180 1181# Find the source files, if location was not specified. 1182if test -z "$srcdir"; then 1183 ac_srcdir_defaulted=yes 1184 # Try the directory containing this script, then the parent directory. 1185 ac_confdir=`$as_dirname -- "$0" || 1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1187 X"$0" : 'X\(//\)[^/]' \| \ 1188 X"$0" : 'X\(//\)$' \| \ 1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1190echo X"$0" | 1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1192 s//\1/ 1193 q 1194 } 1195 /^X\(\/\/\)[^/].*/{ 1196 s//\1/ 1197 q 1198 } 1199 /^X\(\/\/\)$/{ 1200 s//\1/ 1201 q 1202 } 1203 /^X\(\/\).*/{ 1204 s//\1/ 1205 q 1206 } 1207 s/.*/./; q'` 1208 srcdir=$ac_confdir 1209 if test ! -r "$srcdir/$ac_unique_file"; then 1210 srcdir=.. 1211 fi 1212else 1213 ac_srcdir_defaulted=no 1214fi 1215if test ! -r "$srcdir/$ac_unique_file"; then 1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1218 { (exit 1); exit 1; }; } 1219fi 1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1221ac_abs_confdir=`( 1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1223 { (exit 1); exit 1; }; } 1224 pwd)` 1225# When building in place, set srcdir=. 1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1227 srcdir=. 1228fi 1229# Remove unnecessary trailing slashes from srcdir. 1230# Double slashes in file names in object file debugging info 1231# mess up M-x gdb in Emacs. 1232case $srcdir in 1233*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1234esac 1235for ac_var in $ac_precious_vars; do 1236 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1237 eval ac_env_${ac_var}_value=\$${ac_var} 1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1239 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1240done 1241 1242# 1243# Report the --help message. 1244# 1245if test "$ac_init_help" = "long"; then 1246 # Omit some internal or obsolete options to make the list less imposing. 1247 # This message is too long to be a string in the A/UX 3.1 sh. 1248 cat <<_ACEOF 1249\`configure' configures Tktable 2.10 to adapt to many kinds of systems. 1250 1251Usage: $0 [OPTION]... [VAR=VALUE]... 1252 1253To assign environment variables (e.g., CC, CFLAGS...), specify them as 1254VAR=VALUE. See below for descriptions of some of the useful variables. 1255 1256Defaults for the options are specified in brackets. 1257 1258Configuration: 1259 -h, --help display this help and exit 1260 --help=short display options specific to this package 1261 --help=recursive display the short help of all the included packages 1262 -V, --version display version information and exit 1263 -q, --quiet, --silent do not print \`checking...' messages 1264 --cache-file=FILE cache test results in FILE [disabled] 1265 -C, --config-cache alias for \`--cache-file=config.cache' 1266 -n, --no-create do not create output files 1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1268 1269Installation directories: 1270 --prefix=PREFIX install architecture-independent files in PREFIX 1271 [$ac_default_prefix] 1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1273 [PREFIX] 1274 1275By default, \`make install' will install all the files in 1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1278for instance \`--prefix=\$HOME'. 1279 1280For better control, use the options below. 1281 1282Fine tuning of the installation directories: 1283 --bindir=DIR user executables [EPREFIX/bin] 1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1289 --libdir=DIR object code libraries [EPREFIX/lib] 1290 --includedir=DIR C header files [PREFIX/include] 1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1297 --docdir=DIR documentation root [DATAROOTDIR/doc/tktable] 1298 --htmldir=DIR html documentation [DOCDIR] 1299 --dvidir=DIR dvi documentation [DOCDIR] 1300 --pdfdir=DIR pdf documentation [DOCDIR] 1301 --psdir=DIR ps documentation [DOCDIR] 1302_ACEOF 1303 1304 cat <<\_ACEOF 1305 1306X features: 1307 --x-includes=DIR X include files are in DIR 1308 --x-libraries=DIR X library files are in DIR 1309_ACEOF 1310fi 1311 1312if test -n "$ac_init_help"; then 1313 case $ac_init_help in 1314 short | recursive ) echo "Configuration of Tktable 2.10:";; 1315 esac 1316 cat <<\_ACEOF 1317 1318Optional Features: 1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1321 --enable-threads build with threads 1322 --enable-shared build and link with shared libraries (default: on) 1323 --enable-64bit enable 64bit support (default: off) 1324 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1325 --disable-rpath disable rpath support (default: on) 1326 --enable-wince enable Win/CE support (where applicable) 1327 --enable-symbols build with debugging symbols (default: off) 1328 1329Optional Packages: 1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1332 --with-tcl directory containing tcl configuration 1333 (tclConfig.sh) 1334 --with-tk directory containing tk configuration (tkConfig.sh) 1335 --with-tclinclude directory containing the public Tcl header files 1336 --with-tkinclude directory containing the public Tk header files 1337 --with-x use the X Window System 1338 --with-celib=DIR use Windows/CE support library from DIR 1339 1340Some influential environment variables: 1341 CC C compiler command 1342 CFLAGS C compiler flags 1343 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1344 nonstandard directory <lib dir> 1345 LIBS libraries to pass to the linker, e.g. -l<library> 1346 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1347 you have headers in a nonstandard directory <include dir> 1348 CPP C preprocessor 1349 XMKMF Path to xmkmf, Makefile generator for X Window System 1350 1351Use these variables to override the choices made by `configure' or to help 1352it to find libraries and programs with nonstandard names/locations. 1353 1354_ACEOF 1355ac_status=$? 1356fi 1357 1358if test "$ac_init_help" = "recursive"; then 1359 # If there are subdirs, report their specific --help. 1360 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1361 test -d "$ac_dir" || continue 1362 ac_builddir=. 1363 1364case "$ac_dir" in 1365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1366*) 1367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1368 # A ".." for each directory in $ac_dir_suffix. 1369 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1370 case $ac_top_builddir_sub in 1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1373 esac ;; 1374esac 1375ac_abs_top_builddir=$ac_pwd 1376ac_abs_builddir=$ac_pwd$ac_dir_suffix 1377# for backward compatibility: 1378ac_top_builddir=$ac_top_build_prefix 1379 1380case $srcdir in 1381 .) # We are building in place. 1382 ac_srcdir=. 1383 ac_top_srcdir=$ac_top_builddir_sub 1384 ac_abs_top_srcdir=$ac_pwd ;; 1385 [\\/]* | ?:[\\/]* ) # Absolute name. 1386 ac_srcdir=$srcdir$ac_dir_suffix; 1387 ac_top_srcdir=$srcdir 1388 ac_abs_top_srcdir=$srcdir ;; 1389 *) # Relative name. 1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1391 ac_top_srcdir=$ac_top_build_prefix$srcdir 1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1393esac 1394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1395 1396 cd "$ac_dir" || { ac_status=$?; continue; } 1397 # Check for guested configure. 1398 if test -f "$ac_srcdir/configure.gnu"; then 1399 echo && 1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1401 elif test -f "$ac_srcdir/configure"; then 1402 echo && 1403 $SHELL "$ac_srcdir/configure" --help=recursive 1404 else 1405 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1406 fi || ac_status=$? 1407 cd "$ac_pwd" || { ac_status=$?; break; } 1408 done 1409fi 1410 1411test -n "$ac_init_help" && exit $ac_status 1412if $ac_init_version; then 1413 cat <<\_ACEOF 1414Tktable configure 2.10 1415generated by GNU Autoconf 2.61 1416 1417Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14182002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1419This configure script is free software; the Free Software Foundation 1420gives unlimited permission to copy, distribute and modify it. 1421_ACEOF 1422 exit 1423fi 1424cat >config.log <<_ACEOF 1425This file contains any messages produced by compilers while 1426running configure, to aid debugging if configure makes a mistake. 1427 1428It was created by Tktable $as_me 2.10, which was 1429generated by GNU Autoconf 2.61. Invocation command line was 1430 1431 $ $0 $@ 1432 1433_ACEOF 1434exec 5>>config.log 1435{ 1436cat <<_ASUNAME 1437## --------- ## 1438## Platform. ## 1439## --------- ## 1440 1441hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1442uname -m = `(uname -m) 2>/dev/null || echo unknown` 1443uname -r = `(uname -r) 2>/dev/null || echo unknown` 1444uname -s = `(uname -s) 2>/dev/null || echo unknown` 1445uname -v = `(uname -v) 2>/dev/null || echo unknown` 1446 1447/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1448/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1449 1450/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1451/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1452/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1453/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1454/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1455/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1456/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1457 1458_ASUNAME 1459 1460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1461for as_dir in $PATH 1462do 1463 IFS=$as_save_IFS 1464 test -z "$as_dir" && as_dir=. 1465 echo "PATH: $as_dir" 1466done 1467IFS=$as_save_IFS 1468 1469} >&5 1470 1471cat >&5 <<_ACEOF 1472 1473 1474## ----------- ## 1475## Core tests. ## 1476## ----------- ## 1477 1478_ACEOF 1479 1480 1481# Keep a trace of the command line. 1482# Strip out --no-create and --no-recursion so they do not pile up. 1483# Strip out --silent because we don't want to record it for future runs. 1484# Also quote any args containing shell meta-characters. 1485# Make two passes to allow for proper duplicate-argument suppression. 1486ac_configure_args= 1487ac_configure_args0= 1488ac_configure_args1= 1489ac_must_keep_next=false 1490for ac_pass in 1 2 1491do 1492 for ac_arg 1493 do 1494 case $ac_arg in 1495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1497 | -silent | --silent | --silen | --sile | --sil) 1498 continue ;; 1499 *\'*) 1500 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1501 esac 1502 case $ac_pass in 1503 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1504 2) 1505 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1506 if test $ac_must_keep_next = true; then 1507 ac_must_keep_next=false # Got value, back to normal. 1508 else 1509 case $ac_arg in 1510 *=* | --config-cache | -C | -disable-* | --disable-* \ 1511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1513 | -with-* | --with-* | -without-* | --without-* | --x) 1514 case "$ac_configure_args0 " in 1515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1516 esac 1517 ;; 1518 -* ) ac_must_keep_next=true ;; 1519 esac 1520 fi 1521 ac_configure_args="$ac_configure_args '$ac_arg'" 1522 ;; 1523 esac 1524 done 1525done 1526$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1527$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1528 1529# When interrupted or exit'd, cleanup temporary files, and complete 1530# config.log. We remove comments because anyway the quotes in there 1531# would cause problems or look ugly. 1532# WARNING: Use '\'' to represent an apostrophe within the trap. 1533# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1534trap 'exit_status=$? 1535 # Save into config.log some information that might help in debugging. 1536 { 1537 echo 1538 1539 cat <<\_ASBOX 1540## ---------------- ## 1541## Cache variables. ## 1542## ---------------- ## 1543_ASBOX 1544 echo 1545 # The following way of writing the cache mishandles newlines in values, 1546( 1547 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1548 eval ac_val=\$$ac_var 1549 case $ac_val in #( 1550 *${as_nl}*) 1551 case $ac_var in #( 1552 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1553echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1554 esac 1555 case $ac_var in #( 1556 _ | IFS | as_nl) ;; #( 1557 *) $as_unset $ac_var ;; 1558 esac ;; 1559 esac 1560 done 1561 (set) 2>&1 | 1562 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1563 *${as_nl}ac_space=\ *) 1564 sed -n \ 1565 "s/'\''/'\''\\\\'\'''\''/g; 1566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1567 ;; #( 1568 *) 1569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1570 ;; 1571 esac | 1572 sort 1573) 1574 echo 1575 1576 cat <<\_ASBOX 1577## ----------------- ## 1578## Output variables. ## 1579## ----------------- ## 1580_ASBOX 1581 echo 1582 for ac_var in $ac_subst_vars 1583 do 1584 eval ac_val=\$$ac_var 1585 case $ac_val in 1586 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1587 esac 1588 echo "$ac_var='\''$ac_val'\''" 1589 done | sort 1590 echo 1591 1592 if test -n "$ac_subst_files"; then 1593 cat <<\_ASBOX 1594## ------------------- ## 1595## File substitutions. ## 1596## ------------------- ## 1597_ASBOX 1598 echo 1599 for ac_var in $ac_subst_files 1600 do 1601 eval ac_val=\$$ac_var 1602 case $ac_val in 1603 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1604 esac 1605 echo "$ac_var='\''$ac_val'\''" 1606 done | sort 1607 echo 1608 fi 1609 1610 if test -s confdefs.h; then 1611 cat <<\_ASBOX 1612## ----------- ## 1613## confdefs.h. ## 1614## ----------- ## 1615_ASBOX 1616 echo 1617 cat confdefs.h 1618 echo 1619 fi 1620 test "$ac_signal" != 0 && 1621 echo "$as_me: caught signal $ac_signal" 1622 echo "$as_me: exit $exit_status" 1623 } >&5 1624 rm -f core *.core core.conftest.* && 1625 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1626 exit $exit_status 1627' 0 1628for ac_signal in 1 2 13 15; do 1629 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1630done 1631ac_signal=0 1632 1633# confdefs.h avoids OS command line length limits that DEFS can exceed. 1634rm -f -r conftest* confdefs.h 1635 1636# Predefined preprocessor variables. 1637 1638cat >>confdefs.h <<_ACEOF 1639#define PACKAGE_NAME "$PACKAGE_NAME" 1640_ACEOF 1641 1642 1643cat >>confdefs.h <<_ACEOF 1644#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1645_ACEOF 1646 1647 1648cat >>confdefs.h <<_ACEOF 1649#define PACKAGE_VERSION "$PACKAGE_VERSION" 1650_ACEOF 1651 1652 1653cat >>confdefs.h <<_ACEOF 1654#define PACKAGE_STRING "$PACKAGE_STRING" 1655_ACEOF 1656 1657 1658cat >>confdefs.h <<_ACEOF 1659#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1660_ACEOF 1661 1662 1663# Let the site file select an alternate cache file if it wants to. 1664# Prefer explicitly selected file to automatically selected ones. 1665if test -n "$CONFIG_SITE"; then 1666 set x "$CONFIG_SITE" 1667elif test "x$prefix" != xNONE; then 1668 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1669else 1670 set x "$ac_default_prefix/share/config.site" \ 1671 "$ac_default_prefix/etc/config.site" 1672fi 1673shift 1674for ac_site_file 1675do 1676 if test -r "$ac_site_file"; then 1677 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1678echo "$as_me: loading site script $ac_site_file" >&6;} 1679 sed 's/^/| /' "$ac_site_file" >&5 1680 . "$ac_site_file" 1681 fi 1682done 1683 1684if test -r "$cache_file"; then 1685 # Some versions of bash will fail to source /dev/null (special 1686 # files actually), so we avoid doing that. 1687 if test -f "$cache_file"; then 1688 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1689echo "$as_me: loading cache $cache_file" >&6;} 1690 case $cache_file in 1691 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1692 *) . "./$cache_file";; 1693 esac 1694 fi 1695else 1696 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1697echo "$as_me: creating cache $cache_file" >&6;} 1698 >$cache_file 1699fi 1700 1701# Check that the precious variables saved in the cache have kept the same 1702# value. 1703ac_cache_corrupted=false 1704for ac_var in $ac_precious_vars; do 1705 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1706 eval ac_new_set=\$ac_env_${ac_var}_set 1707 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1708 eval ac_new_val=\$ac_env_${ac_var}_value 1709 case $ac_old_set,$ac_new_set in 1710 set,) 1711 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1712echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1713 ac_cache_corrupted=: ;; 1714 ,set) 1715 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1716echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1717 ac_cache_corrupted=: ;; 1718 ,);; 1719 *) 1720 if test "x$ac_old_val" != "x$ac_new_val"; then 1721 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1722echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1723 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1724echo "$as_me: former value: $ac_old_val" >&2;} 1725 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1726echo "$as_me: current value: $ac_new_val" >&2;} 1727 ac_cache_corrupted=: 1728 fi;; 1729 esac 1730 # Pass precious variables to config.status. 1731 if test "$ac_new_set" = set; then 1732 case $ac_new_val in 1733 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1734 *) ac_arg=$ac_var=$ac_new_val ;; 1735 esac 1736 case " $ac_configure_args " in 1737 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1738 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1739 esac 1740 fi 1741done 1742if $ac_cache_corrupted; then 1743 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1744echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1745 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1746echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1747 { (exit 1); exit 1; }; } 1748fi 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774ac_ext=c 1775ac_cpp='$CPP $CPPFLAGS' 1776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1778ac_compiler_gnu=$ac_cv_c_compiler_gnu 1779 1780 1781 1782#-------------------------------------------------------------------- 1783# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1784# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1785# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1786#-------------------------------------------------------------------- 1787 1788 1789 # TEA extensions pass this us the version of TEA they think they 1790 # are compatible with. 1791 TEA_VERSION="3.9" 1792 1793 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1794echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1795 if test x"${PACKAGE_NAME}" = x ; then 1796 { { echo "$as_me:$LINENO: error: 1797The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1798echo "$as_me: error: 1799The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1800 { (exit 1); exit 1; }; } 1801 fi 1802 if test x"3.9" = x ; then 1803 { { echo "$as_me:$LINENO: error: 1804TEA version not specified." >&5 1805echo "$as_me: error: 1806TEA version not specified." >&2;} 1807 { (exit 1); exit 1; }; } 1808 elif test "3.9" != "${TEA_VERSION}" ; then 1809 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1810echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1811 else 1812 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1813echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1814 fi 1815 case "`uname -s`" in 1816 *win32*|*WIN32*|*MINGW32_*) 1817 # Extract the first word of "cygpath", so it can be a program name with args. 1818set dummy cygpath; ac_word=$2 1819{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1821if test "${ac_cv_prog_CYGPATH+set}" = set; then 1822 echo $ECHO_N "(cached) $ECHO_C" >&6 1823else 1824 if test -n "$CYGPATH"; then 1825 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1826else 1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1828for as_dir in $PATH 1829do 1830 IFS=$as_save_IFS 1831 test -z "$as_dir" && as_dir=. 1832 for ac_exec_ext in '' $ac_executable_extensions; do 1833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1834 ac_cv_prog_CYGPATH="cygpath -w" 1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1836 break 2 1837 fi 1838done 1839done 1840IFS=$as_save_IFS 1841 1842 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1843fi 1844fi 1845CYGPATH=$ac_cv_prog_CYGPATH 1846if test -n "$CYGPATH"; then 1847 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1848echo "${ECHO_T}$CYGPATH" >&6; } 1849else 1850 { echo "$as_me:$LINENO: result: no" >&5 1851echo "${ECHO_T}no" >&6; } 1852fi 1853 1854 1855 EXEEXT=".exe" 1856 TEA_PLATFORM="windows" 1857 ;; 1858 *CYGWIN_*) 1859 CYGPATH=echo 1860 EXEEXT=".exe" 1861 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1862 ;; 1863 *) 1864 CYGPATH=echo 1865 EXEEXT="" 1866 TEA_PLATFORM="unix" 1867 ;; 1868 esac 1869 1870 # Check if exec_prefix is set. If not use fall back to prefix. 1871 # Note when adjusted, so that TEA_PREFIX can correct for this. 1872 # This is needed for recursive configures, since autoconf propagates 1873 # $prefix, but not $exec_prefix (doh!). 1874 if test x$exec_prefix = xNONE ; then 1875 exec_prefix_default=yes 1876 exec_prefix=$prefix 1877 fi 1878 1879 1880 1881 1882 # This package name must be replaced statically for AC_SUBST to work 1883 1884 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1885 1886 1887 # We AC_SUBST these here to ensure they are subst'ed, 1888 # in case the user doesn't call TEA_ADD_... 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898ac_aux_dir= 1899for ac_dir in tclconfig "$srcdir"/tclconfig; do 1900 if test -f "$ac_dir/install-sh"; then 1901 ac_aux_dir=$ac_dir 1902 ac_install_sh="$ac_aux_dir/install-sh -c" 1903 break 1904 elif test -f "$ac_dir/install.sh"; then 1905 ac_aux_dir=$ac_dir 1906 ac_install_sh="$ac_aux_dir/install.sh -c" 1907 break 1908 elif test -f "$ac_dir/shtool"; then 1909 ac_aux_dir=$ac_dir 1910 ac_install_sh="$ac_aux_dir/shtool install -c" 1911 break 1912 fi 1913done 1914if test -z "$ac_aux_dir"; then 1915 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1916echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1917 { (exit 1); exit 1; }; } 1918fi 1919 1920# These three variables are undocumented and unsupported, 1921# and are intended to be withdrawn in a future Autoconf release. 1922# They can cause serious problems if a builder's source tree is in a directory 1923# whose full name contains unusual characters. 1924ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1925ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1926ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1927 1928 1929 1930#-------------------------------------------------------------------- 1931# Load the tclConfig.sh file 1932#-------------------------------------------------------------------- 1933 1934 1935 1936 # 1937 # Ok, lets find the tcl configuration 1938 # First, look for one uninstalled. 1939 # the alternative search directory is invoked by --with-tcl 1940 # 1941 1942 if test x"${no_tcl}" = x ; then 1943 # we reset no_tcl in case something fails here 1944 no_tcl=true 1945 1946# Check whether --with-tcl was given. 1947if test "${with_tcl+set}" = set; then 1948 withval=$with_tcl; with_tclconfig="${withval}" 1949fi 1950 1951 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1952echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1953 if test "${ac_cv_c_tclconfig+set}" = set; then 1954 echo $ECHO_N "(cached) $ECHO_C" >&6 1955else 1956 1957 1958 # First check to see if --with-tcl was specified. 1959 if test x"${with_tclconfig}" != x ; then 1960 case "${with_tclconfig}" in 1961 */tclConfig.sh ) 1962 if test -f "${with_tclconfig}"; then 1963 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1964echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1965 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1966 fi ;; 1967 esac 1968 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1969 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1970 else 1971 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1972echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1973 { (exit 1); exit 1; }; } 1974 fi 1975 fi 1976 1977 # then check for a private Tcl installation 1978 if test x"${ac_cv_c_tclconfig}" = x ; then 1979 for i in \ 1980 ../tcl \ 1981 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1982 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1983 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1984 ../../tcl \ 1985 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1986 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1987 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1988 ../../../tcl \ 1989 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1990 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1991 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1992 if test "${TEA_PLATFORM}" = "windows" \ 1993 -a -f "$i/win/tclConfig.sh" ; then 1994 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1995 break 1996 fi 1997 if test -f "$i/unix/tclConfig.sh" ; then 1998 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1999 break 2000 fi 2001 done 2002 fi 2003 2004 # on Darwin, check in Framework installation locations 2005 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2006 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2007 `ls -d /Library/Frameworks 2>/dev/null` \ 2008 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2009 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2010 ; do 2011 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2012 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2013 break 2014 fi 2015 done 2016 fi 2017 2018 # TEA specific: on Windows, check in common installation locations 2019 if test "${TEA_PLATFORM}" = "windows" \ 2020 -a x"${ac_cv_c_tclconfig}" = x ; then 2021 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2022 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2023 ; do 2024 if test -f "$i/tclConfig.sh" ; then 2025 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2026 break 2027 fi 2028 done 2029 fi 2030 2031 # check in a few common install locations 2032 if test x"${ac_cv_c_tclconfig}" = x ; then 2033 for i in `ls -d ${libdir} 2>/dev/null` \ 2034 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2035 `ls -d ${prefix}/lib 2>/dev/null` \ 2036 `ls -d /usr/local/lib 2>/dev/null` \ 2037 `ls -d /usr/contrib/lib 2>/dev/null` \ 2038 `ls -d /usr/lib 2>/dev/null` \ 2039 `ls -d /usr/lib64 2>/dev/null` \ 2040 ; do 2041 if test -f "$i/tclConfig.sh" ; then 2042 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2043 break 2044 fi 2045 done 2046 fi 2047 2048 # check in a few other private locations 2049 if test x"${ac_cv_c_tclconfig}" = x ; then 2050 for i in \ 2051 ${srcdir}/../tcl \ 2052 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2053 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2054 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2055 if test "${TEA_PLATFORM}" = "windows" \ 2056 -a -f "$i/win/tclConfig.sh" ; then 2057 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2058 break 2059 fi 2060 if test -f "$i/unix/tclConfig.sh" ; then 2061 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2062 break 2063 fi 2064 done 2065 fi 2066 2067fi 2068 2069 2070 if test x"${ac_cv_c_tclconfig}" = x ; then 2071 TCL_BIN_DIR="# no Tcl configs found" 2072 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2073echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2074 { (exit 1); exit 1; }; } 2075 else 2076 no_tcl= 2077 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2078 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2079echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2080 fi 2081 fi 2082 2083 2084 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2085echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2086 2087 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2088 { echo "$as_me:$LINENO: result: loading" >&5 2089echo "${ECHO_T}loading" >&6; } 2090 . "${TCL_BIN_DIR}/tclConfig.sh" 2091 else 2092 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2093echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2094 fi 2095 2096 # eval is required to do the TCL_DBGX substitution 2097 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2098 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2099 2100 # If the TCL_BIN_DIR is the build directory (not the install directory), 2101 # then set the common variable name to the value of the build variables. 2102 # For example, the variable TCL_LIB_SPEC will be set to the value 2103 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2104 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2105 # installed and uninstalled version of Tcl. 2106 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2107 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2108 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2109 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2110 elif test "`uname -s`" = "Darwin"; then 2111 # If Tcl was built as a framework, attempt to use the libraries 2112 # from the framework at the given location so that linking works 2113 # against Tcl.framework installed in an arbitrary location. 2114 case ${TCL_DEFS} in 2115 *TCL_FRAMEWORK*) 2116 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2117 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2118 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2119 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2120 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2121 break 2122 fi 2123 done 2124 fi 2125 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2126 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2127 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2128 fi 2129 ;; 2130 esac 2131 fi 2132 2133 # eval is required to do the TCL_DBGX substitution 2134 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2135 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2136 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2137 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 case "`uname -s`" in 2153 *CYGWIN_*) 2154 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2155echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2156 case ${TCL_EXTRA_CFLAGS} in 2157 *-mwin32*|*-mno-cygwin*) 2158 TEA_PLATFORM="windows" 2159 CFLAGS="$CFLAGS -mwin32" 2160 { echo "$as_me:$LINENO: result: win32" >&5 2161echo "${ECHO_T}win32" >&6; } 2162 ;; 2163 *) 2164 TEA_PLATFORM="unix" 2165 { echo "$as_me:$LINENO: result: unix" >&5 2166echo "${ECHO_T}unix" >&6; } 2167 ;; 2168 esac 2169 EXEEXT=".exe" 2170 ;; 2171 *) 2172 ;; 2173 esac 2174 2175 # Do this here as we have fully defined TEA_PLATFORM now 2176 if test "${TEA_PLATFORM}" = "windows" ; then 2177 # The BUILD_$pkg is to define the correct extern storage class 2178 # handling when making this package 2179 2180cat >>confdefs.h <<_ACEOF 2181#define BUILD_${PACKAGE_NAME} 2182_ACEOF 2183 2184 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2185 fi 2186 2187 # TEA specific: 2188 2189 2190 2191 2192 2193 2194 2195 2196#-------------------------------------------------------------------- 2197# Load the tkConfig.sh file if necessary (Tk extension) 2198#-------------------------------------------------------------------- 2199 2200 2201 # 2202 # Ok, lets find the tk configuration 2203 # First, look for one uninstalled. 2204 # the alternative search directory is invoked by --with-tk 2205 # 2206 2207 if test x"${no_tk}" = x ; then 2208 # we reset no_tk in case something fails here 2209 no_tk=true 2210 2211# Check whether --with-tk was given. 2212if test "${with_tk+set}" = set; then 2213 withval=$with_tk; with_tkconfig="${withval}" 2214fi 2215 2216 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2217echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2218 if test "${ac_cv_c_tkconfig+set}" = set; then 2219 echo $ECHO_N "(cached) $ECHO_C" >&6 2220else 2221 2222 2223 # First check to see if --with-tkconfig was specified. 2224 if test x"${with_tkconfig}" != x ; then 2225 case "${with_tkconfig}" in 2226 */tkConfig.sh ) 2227 if test -f "${with_tkconfig}"; then 2228 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2229echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2230 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2231 fi ;; 2232 esac 2233 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2234 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2235 else 2236 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2237echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2238 { (exit 1); exit 1; }; } 2239 fi 2240 fi 2241 2242 # then check for a private Tk library 2243 if test x"${ac_cv_c_tkconfig}" = x ; then 2244 for i in \ 2245 ../tk \ 2246 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2247 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2248 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2249 ../../tk \ 2250 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2251 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2252 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2253 ../../../tk \ 2254 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2255 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2256 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2257 if test "${TEA_PLATFORM}" = "windows" \ 2258 -a -f "$i/win/tkConfig.sh" ; then 2259 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2260 break 2261 fi 2262 if test -f "$i/unix/tkConfig.sh" ; then 2263 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2264 break 2265 fi 2266 done 2267 fi 2268 2269 # on Darwin, check in Framework installation locations 2270 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2271 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2272 `ls -d /Library/Frameworks 2>/dev/null` \ 2273 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2274 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2275 ; do 2276 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2277 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2278 break 2279 fi 2280 done 2281 fi 2282 2283 # check in a few common install locations 2284 if test x"${ac_cv_c_tkconfig}" = x ; then 2285 for i in `ls -d ${libdir} 2>/dev/null` \ 2286 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2287 `ls -d ${prefix}/lib 2>/dev/null` \ 2288 `ls -d /usr/local/lib 2>/dev/null` \ 2289 `ls -d /usr/contrib/lib 2>/dev/null` \ 2290 `ls -d /usr/lib 2>/dev/null` \ 2291 `ls -d /usr/lib64 2>/dev/null` \ 2292 ; do 2293 if test -f "$i/tkConfig.sh" ; then 2294 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2295 break 2296 fi 2297 done 2298 fi 2299 2300 # TEA specific: on Windows, check in common installation locations 2301 if test "${TEA_PLATFORM}" = "windows" \ 2302 -a x"${ac_cv_c_tkconfig}" = x ; then 2303 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2304 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2305 ; do 2306 if test -f "$i/tkConfig.sh" ; then 2307 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2308 break 2309 fi 2310 done 2311 fi 2312 2313 # check in a few other private locations 2314 if test x"${ac_cv_c_tkconfig}" = x ; then 2315 for i in \ 2316 ${srcdir}/../tk \ 2317 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2318 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2319 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2320 if test "${TEA_PLATFORM}" = "windows" \ 2321 -a -f "$i/win/tkConfig.sh" ; then 2322 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2323 break 2324 fi 2325 if test -f "$i/unix/tkConfig.sh" ; then 2326 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2327 break 2328 fi 2329 done 2330 fi 2331 2332fi 2333 2334 2335 if test x"${ac_cv_c_tkconfig}" = x ; then 2336 TK_BIN_DIR="# no Tk configs found" 2337 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2338echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2339 { (exit 1); exit 1; }; } 2340 else 2341 no_tk= 2342 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2343 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2344echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2345 fi 2346 fi 2347 2348 2349 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2350echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2351 2352 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2353 { echo "$as_me:$LINENO: result: loading" >&5 2354echo "${ECHO_T}loading" >&6; } 2355 . "${TK_BIN_DIR}/tkConfig.sh" 2356 else 2357 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2358echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2359 fi 2360 2361 # eval is required to do the TK_DBGX substitution 2362 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2363 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2364 2365 # If the TK_BIN_DIR is the build directory (not the install directory), 2366 # then set the common variable name to the value of the build variables. 2367 # For example, the variable TK_LIB_SPEC will be set to the value 2368 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2369 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2370 # installed and uninstalled version of Tcl. 2371 if test -f "${TK_BIN_DIR}/Makefile" ; then 2372 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2373 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2374 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2375 elif test "`uname -s`" = "Darwin"; then 2376 # If Tk was built as a framework, attempt to use the libraries 2377 # from the framework at the given location so that linking works 2378 # against Tk.framework installed in an arbitrary location. 2379 case ${TK_DEFS} in 2380 *TK_FRAMEWORK*) 2381 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2382 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2383 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2384 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2385 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2386 break 2387 fi 2388 done 2389 fi 2390 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2391 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2392 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2393 fi 2394 ;; 2395 esac 2396 fi 2397 2398 # eval is required to do the TK_DBGX substitution 2399 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2400 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2401 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2402 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2403 2404 # TEA specific: Ensure windowingsystem is defined 2405 if test "${TEA_PLATFORM}" = "unix" ; then 2406 case ${TK_DEFS} in 2407 *MAC_OSX_TK*) 2408 2409cat >>confdefs.h <<\_ACEOF 2410#define MAC_OSX_TK 1 2411_ACEOF 2412 2413 TEA_WINDOWINGSYSTEM="aqua" 2414 ;; 2415 *) 2416 TEA_WINDOWINGSYSTEM="x11" 2417 ;; 2418 esac 2419 elif test "${TEA_PLATFORM}" = "windows" ; then 2420 TEA_WINDOWINGSYSTEM="win32" 2421 fi 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 # TEA specific: 2436 2437 2438 2439 2440#----------------------------------------------------------------------- 2441# Handle the --prefix=... option by defaulting to what Tcl gave. 2442# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2443#----------------------------------------------------------------------- 2444 2445 2446 if test "${prefix}" = "NONE"; then 2447 prefix_default=yes 2448 if test x"${TCL_PREFIX}" != x; then 2449 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2450echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2451 prefix=${TCL_PREFIX} 2452 else 2453 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2454echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2455 prefix=/usr/local 2456 fi 2457 fi 2458 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2459 -o x"${exec_prefix_default}" = x"yes" ; then 2460 if test x"${TCL_EXEC_PREFIX}" != x; then 2461 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2462echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2463 exec_prefix=${TCL_EXEC_PREFIX} 2464 else 2465 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2466echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2467 exec_prefix=$prefix 2468 fi 2469 fi 2470 2471 2472#----------------------------------------------------------------------- 2473# Standard compiler checks. 2474# This sets up CC by using the CC env var, or looks for gcc otherwise. 2475# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2476# the basic setup necessary to compile executables. 2477#----------------------------------------------------------------------- 2478 2479 2480 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2481 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2482 2483 # If the user did not set CFLAGS, set it now to keep 2484 # the AC_PROG_CC macro from adding "-g -O2". 2485 if test "${CFLAGS+set}" != "set" ; then 2486 CFLAGS="" 2487 fi 2488 2489 ac_ext=c 2490ac_cpp='$CPP $CPPFLAGS' 2491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2493ac_compiler_gnu=$ac_cv_c_compiler_gnu 2494if test -n "$ac_tool_prefix"; then 2495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2496set dummy ${ac_tool_prefix}gcc; ac_word=$2 2497{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2499if test "${ac_cv_prog_CC+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 if test -n "$CC"; then 2503 ac_cv_prog_CC="$CC" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2512 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517done 2518IFS=$as_save_IFS 2519 2520fi 2521fi 2522CC=$ac_cv_prog_CC 2523if test -n "$CC"; then 2524 { echo "$as_me:$LINENO: result: $CC" >&5 2525echo "${ECHO_T}$CC" >&6; } 2526else 2527 { echo "$as_me:$LINENO: result: no" >&5 2528echo "${ECHO_T}no" >&6; } 2529fi 2530 2531 2532fi 2533if test -z "$ac_cv_prog_CC"; then 2534 ac_ct_CC=$CC 2535 # Extract the first word of "gcc", so it can be a program name with args. 2536set dummy gcc; ac_word=$2 2537{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2540 echo $ECHO_N "(cached) $ECHO_C" >&6 2541else 2542 if test -n "$ac_ct_CC"; then 2543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2544else 2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2546for as_dir in $PATH 2547do 2548 IFS=$as_save_IFS 2549 test -z "$as_dir" && as_dir=. 2550 for ac_exec_ext in '' $ac_executable_extensions; do 2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2552 ac_cv_prog_ac_ct_CC="gcc" 2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2554 break 2 2555 fi 2556done 2557done 2558IFS=$as_save_IFS 2559 2560fi 2561fi 2562ac_ct_CC=$ac_cv_prog_ac_ct_CC 2563if test -n "$ac_ct_CC"; then 2564 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2565echo "${ECHO_T}$ac_ct_CC" >&6; } 2566else 2567 { echo "$as_me:$LINENO: result: no" >&5 2568echo "${ECHO_T}no" >&6; } 2569fi 2570 2571 if test "x$ac_ct_CC" = x; then 2572 CC="" 2573 else 2574 case $cross_compiling:$ac_tool_warned in 2575yes:) 2576{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2577whose name does not start with the host triplet. If you think this 2578configuration is useful to you, please write to autoconf@gnu.org." >&5 2579echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2580whose name does not start with the host triplet. If you think this 2581configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2582ac_tool_warned=yes ;; 2583esac 2584 CC=$ac_ct_CC 2585 fi 2586else 2587 CC="$ac_cv_prog_CC" 2588fi 2589 2590if test -z "$CC"; then 2591 if test -n "$ac_tool_prefix"; then 2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2593set dummy ${ac_tool_prefix}cc; ac_word=$2 2594{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2596if test "${ac_cv_prog_CC+set}" = set; then 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 2598else 2599 if test -n "$CC"; then 2600 ac_cv_prog_CC="$CC" # Let the user override the test. 2601else 2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2603for as_dir in $PATH 2604do 2605 IFS=$as_save_IFS 2606 test -z "$as_dir" && as_dir=. 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2609 ac_cv_prog_CC="${ac_tool_prefix}cc" 2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2611 break 2 2612 fi 2613done 2614done 2615IFS=$as_save_IFS 2616 2617fi 2618fi 2619CC=$ac_cv_prog_CC 2620if test -n "$CC"; then 2621 { echo "$as_me:$LINENO: result: $CC" >&5 2622echo "${ECHO_T}$CC" >&6; } 2623else 2624 { echo "$as_me:$LINENO: result: no" >&5 2625echo "${ECHO_T}no" >&6; } 2626fi 2627 2628 2629 fi 2630fi 2631if test -z "$CC"; then 2632 # Extract the first word of "cc", so it can be a program name with args. 2633set dummy cc; ac_word=$2 2634{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2636if test "${ac_cv_prog_CC+set}" = set; then 2637 echo $ECHO_N "(cached) $ECHO_C" >&6 2638else 2639 if test -n "$CC"; then 2640 ac_cv_prog_CC="$CC" # Let the user override the test. 2641else 2642 ac_prog_rejected=no 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2651 ac_prog_rejected=yes 2652 continue 2653 fi 2654 ac_cv_prog_CC="cc" 2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2656 break 2 2657 fi 2658done 2659done 2660IFS=$as_save_IFS 2661 2662if test $ac_prog_rejected = yes; then 2663 # We found a bogon in the path, so make sure we never use it. 2664 set dummy $ac_cv_prog_CC 2665 shift 2666 if test $# != 0; then 2667 # We chose a different compiler from the bogus one. 2668 # However, it has the same basename, so the bogon will be chosen 2669 # first if we set CC to just the basename; use the full file name. 2670 shift 2671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2672 fi 2673fi 2674fi 2675fi 2676CC=$ac_cv_prog_CC 2677if test -n "$CC"; then 2678 { echo "$as_me:$LINENO: result: $CC" >&5 2679echo "${ECHO_T}$CC" >&6; } 2680else 2681 { echo "$as_me:$LINENO: result: no" >&5 2682echo "${ECHO_T}no" >&6; } 2683fi 2684 2685 2686fi 2687if test -z "$CC"; then 2688 if test -n "$ac_tool_prefix"; then 2689 for ac_prog in cl.exe 2690 do 2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2692set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2693{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2695if test "${ac_cv_prog_CC+set}" = set; then 2696 echo $ECHO_N "(cached) $ECHO_C" >&6 2697else 2698 if test -n "$CC"; then 2699 ac_cv_prog_CC="$CC" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718CC=$ac_cv_prog_CC 2719if test -n "$CC"; then 2720 { echo "$as_me:$LINENO: result: $CC" >&5 2721echo "${ECHO_T}$CC" >&6; } 2722else 2723 { echo "$as_me:$LINENO: result: no" >&5 2724echo "${ECHO_T}no" >&6; } 2725fi 2726 2727 2728 test -n "$CC" && break 2729 done 2730fi 2731if test -z "$CC"; then 2732 ac_ct_CC=$CC 2733 for ac_prog in cl.exe 2734do 2735 # Extract the first word of "$ac_prog", so it can be a program name with args. 2736set dummy $ac_prog; ac_word=$2 2737{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2740 echo $ECHO_N "(cached) $ECHO_C" >&6 2741else 2742 if test -n "$ac_ct_CC"; then 2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2744else 2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2746for as_dir in $PATH 2747do 2748 IFS=$as_save_IFS 2749 test -z "$as_dir" && as_dir=. 2750 for ac_exec_ext in '' $ac_executable_extensions; do 2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2752 ac_cv_prog_ac_ct_CC="$ac_prog" 2753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2754 break 2 2755 fi 2756done 2757done 2758IFS=$as_save_IFS 2759 2760fi 2761fi 2762ac_ct_CC=$ac_cv_prog_ac_ct_CC 2763if test -n "$ac_ct_CC"; then 2764 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2765echo "${ECHO_T}$ac_ct_CC" >&6; } 2766else 2767 { echo "$as_me:$LINENO: result: no" >&5 2768echo "${ECHO_T}no" >&6; } 2769fi 2770 2771 2772 test -n "$ac_ct_CC" && break 2773done 2774 2775 if test "x$ac_ct_CC" = x; then 2776 CC="" 2777 else 2778 case $cross_compiling:$ac_tool_warned in 2779yes:) 2780{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2781whose name does not start with the host triplet. If you think this 2782configuration is useful to you, please write to autoconf@gnu.org." >&5 2783echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2784whose name does not start with the host triplet. If you think this 2785configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2786ac_tool_warned=yes ;; 2787esac 2788 CC=$ac_ct_CC 2789 fi 2790fi 2791 2792fi 2793 2794 2795test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2796See \`config.log' for more details." >&5 2797echo "$as_me: error: no acceptable C compiler found in \$PATH 2798See \`config.log' for more details." >&2;} 2799 { (exit 1); exit 1; }; } 2800 2801# Provide some information about the compiler. 2802echo "$as_me:$LINENO: checking for C compiler version" >&5 2803ac_compiler=`set X $ac_compile; echo $2` 2804{ (ac_try="$ac_compiler --version >&5" 2805case "(($ac_try" in 2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807 *) ac_try_echo=$ac_try;; 2808esac 2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2810 (eval "$ac_compiler --version >&5") 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); } 2814{ (ac_try="$ac_compiler -v >&5" 2815case "(($ac_try" in 2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2817 *) ac_try_echo=$ac_try;; 2818esac 2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2820 (eval "$ac_compiler -v >&5") 2>&5 2821 ac_status=$? 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); } 2824{ (ac_try="$ac_compiler -V >&5" 2825case "(($ac_try" in 2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2827 *) ac_try_echo=$ac_try;; 2828esac 2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2830 (eval "$ac_compiler -V >&5") 2>&5 2831 ac_status=$? 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); } 2834 2835cat >conftest.$ac_ext <<_ACEOF 2836/* confdefs.h. */ 2837_ACEOF 2838cat confdefs.h >>conftest.$ac_ext 2839cat >>conftest.$ac_ext <<_ACEOF 2840/* end confdefs.h. */ 2841 2842int 2843main () 2844{ 2845 2846 ; 2847 return 0; 2848} 2849_ACEOF 2850ac_clean_files_save=$ac_clean_files 2851ac_clean_files="$ac_clean_files a.out a.exe b.out" 2852# Try to create an executable without -o first, disregard a.out. 2853# It will help us diagnose broken compilers, and finding out an intuition 2854# of exeext. 2855{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2856echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2857ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2858# 2859# List of possible output files, starting from the most likely. 2860# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2861# only as a last resort. b.out is created by i960 compilers. 2862ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2863# 2864# The IRIX 6 linker writes into existing files which may not be 2865# executable, retaining their permissions. Remove them first so a 2866# subsequent execution test works. 2867ac_rmfiles= 2868for ac_file in $ac_files 2869do 2870 case $ac_file in 2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2873 esac 2874done 2875rm -f $ac_rmfiles 2876 2877if { (ac_try="$ac_link_default" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2883 (eval "$ac_link_default") 2>&5 2884 ac_status=$? 2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); }; then 2887 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2888# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2889# in a Makefile. We should not override ac_cv_exeext if it was cached, 2890# so that the user can short-circuit this test for compilers unknown to 2891# Autoconf. 2892for ac_file in $ac_files '' 2893do 2894 test -f "$ac_file" || continue 2895 case $ac_file in 2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2897 ;; 2898 [ab].out ) 2899 # We found the default executable, but exeext='' is most 2900 # certainly right. 2901 break;; 2902 *.* ) 2903 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2904 then :; else 2905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2906 fi 2907 # We set ac_cv_exeext here because the later test for it is not 2908 # safe: cross compilers may not add the suffix if given an `-o' 2909 # argument, so we may need to know it at that point already. 2910 # Even if this section looks crufty: it has the advantage of 2911 # actually working. 2912 break;; 2913 * ) 2914 break;; 2915 esac 2916done 2917test "$ac_cv_exeext" = no && ac_cv_exeext= 2918 2919else 2920 ac_file='' 2921fi 2922 2923{ echo "$as_me:$LINENO: result: $ac_file" >&5 2924echo "${ECHO_T}$ac_file" >&6; } 2925if test -z "$ac_file"; then 2926 echo "$as_me: failed program was:" >&5 2927sed 's/^/| /' conftest.$ac_ext >&5 2928 2929{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2930See \`config.log' for more details." >&5 2931echo "$as_me: error: C compiler cannot create executables 2932See \`config.log' for more details." >&2;} 2933 { (exit 77); exit 77; }; } 2934fi 2935 2936ac_exeext=$ac_cv_exeext 2937 2938# Check that the compiler produces executables we can run. If not, either 2939# the compiler is broken, or we cross compile. 2940{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2941echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2942# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2943# If not cross compiling, check that we can run a simple program. 2944if test "$cross_compiling" != yes; then 2945 if { ac_try='./$ac_file' 2946 { (case "(($ac_try" in 2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2948 *) ac_try_echo=$ac_try;; 2949esac 2950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2951 (eval "$ac_try") 2>&5 2952 ac_status=$? 2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2954 (exit $ac_status); }; }; then 2955 cross_compiling=no 2956 else 2957 if test "$cross_compiling" = maybe; then 2958 cross_compiling=yes 2959 else 2960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2961If you meant to cross compile, use \`--host'. 2962See \`config.log' for more details." >&5 2963echo "$as_me: error: cannot run C compiled programs. 2964If you meant to cross compile, use \`--host'. 2965See \`config.log' for more details." >&2;} 2966 { (exit 1); exit 1; }; } 2967 fi 2968 fi 2969fi 2970{ echo "$as_me:$LINENO: result: yes" >&5 2971echo "${ECHO_T}yes" >&6; } 2972 2973rm -f a.out a.exe conftest$ac_cv_exeext b.out 2974ac_clean_files=$ac_clean_files_save 2975# Check that the compiler produces executables we can run. If not, either 2976# the compiler is broken, or we cross compile. 2977{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2978echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2979{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2980echo "${ECHO_T}$cross_compiling" >&6; } 2981 2982{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2983echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2984if { (ac_try="$ac_link" 2985case "(($ac_try" in 2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2987 *) ac_try_echo=$ac_try;; 2988esac 2989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2990 (eval "$ac_link") 2>&5 2991 ac_status=$? 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); }; then 2994 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2995# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2996# work properly (i.e., refer to `conftest.exe'), while it won't with 2997# `rm'. 2998for ac_file in conftest.exe conftest conftest.*; do 2999 test -f "$ac_file" || continue 3000 case $ac_file in 3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3003 break;; 3004 * ) break;; 3005 esac 3006done 3007else 3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3009See \`config.log' for more details." >&5 3010echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3011See \`config.log' for more details." >&2;} 3012 { (exit 1); exit 1; }; } 3013fi 3014 3015rm -f conftest$ac_cv_exeext 3016{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3017echo "${ECHO_T}$ac_cv_exeext" >&6; } 3018 3019rm -f conftest.$ac_ext 3020EXEEXT=$ac_cv_exeext 3021ac_exeext=$EXEEXT 3022{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3023echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3024if test "${ac_cv_objext+set}" = set; then 3025 echo $ECHO_N "(cached) $ECHO_C" >&6 3026else 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.o conftest.obj 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>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); }; then 3053 for ac_file in conftest.o conftest.obj conftest.*; do 3054 test -f "$ac_file" || continue; 3055 case $ac_file in 3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3058 break;; 3059 esac 3060done 3061else 3062 echo "$as_me: failed program was:" >&5 3063sed 's/^/| /' conftest.$ac_ext >&5 3064 3065{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3066See \`config.log' for more details." >&5 3067echo "$as_me: error: cannot compute suffix of object files: cannot compile 3068See \`config.log' for more details." >&2;} 3069 { (exit 1); exit 1; }; } 3070fi 3071 3072rm -f conftest.$ac_cv_objext conftest.$ac_ext 3073fi 3074{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3075echo "${ECHO_T}$ac_cv_objext" >&6; } 3076OBJEXT=$ac_cv_objext 3077ac_objext=$OBJEXT 3078{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3079echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3080if test "${ac_cv_c_compiler_gnu+set}" = set; then 3081 echo $ECHO_N "(cached) $ECHO_C" >&6 3082else 3083 cat >conftest.$ac_ext <<_ACEOF 3084/* confdefs.h. */ 3085_ACEOF 3086cat confdefs.h >>conftest.$ac_ext 3087cat >>conftest.$ac_ext <<_ACEOF 3088/* end confdefs.h. */ 3089 3090int 3091main () 3092{ 3093#ifndef __GNUC__ 3094 choke me 3095#endif 3096 3097 ; 3098 return 0; 3099} 3100_ACEOF 3101rm -f conftest.$ac_objext 3102if { (ac_try="$ac_compile" 3103case "(($ac_try" in 3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3105 *) ac_try_echo=$ac_try;; 3106esac 3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3108 (eval "$ac_compile") 2>conftest.er1 3109 ac_status=$? 3110 grep -v '^ *+' conftest.er1 >conftest.err 3111 rm -f conftest.er1 3112 cat conftest.err >&5 3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3114 (exit $ac_status); } && { 3115 test -z "$ac_c_werror_flag" || 3116 test ! -s conftest.err 3117 } && test -s conftest.$ac_objext; then 3118 ac_compiler_gnu=yes 3119else 3120 echo "$as_me: failed program was:" >&5 3121sed 's/^/| /' conftest.$ac_ext >&5 3122 3123 ac_compiler_gnu=no 3124fi 3125 3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3127ac_cv_c_compiler_gnu=$ac_compiler_gnu 3128 3129fi 3130{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3131echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3132GCC=`test $ac_compiler_gnu = yes && echo yes` 3133ac_test_CFLAGS=${CFLAGS+set} 3134ac_save_CFLAGS=$CFLAGS 3135{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3136echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3137if test "${ac_cv_prog_cc_g+set}" = set; then 3138 echo $ECHO_N "(cached) $ECHO_C" >&6 3139else 3140 ac_save_c_werror_flag=$ac_c_werror_flag 3141 ac_c_werror_flag=yes 3142 ac_cv_prog_cc_g=no 3143 CFLAGS="-g" 3144 cat >conftest.$ac_ext <<_ACEOF 3145/* confdefs.h. */ 3146_ACEOF 3147cat confdefs.h >>conftest.$ac_ext 3148cat >>conftest.$ac_ext <<_ACEOF 3149/* end confdefs.h. */ 3150 3151int 3152main () 3153{ 3154 3155 ; 3156 return 0; 3157} 3158_ACEOF 3159rm -f conftest.$ac_objext 3160if { (ac_try="$ac_compile" 3161case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_compile") 2>conftest.er1 3167 ac_status=$? 3168 grep -v '^ *+' conftest.er1 >conftest.err 3169 rm -f conftest.er1 3170 cat conftest.err >&5 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); } && { 3173 test -z "$ac_c_werror_flag" || 3174 test ! -s conftest.err 3175 } && test -s conftest.$ac_objext; then 3176 ac_cv_prog_cc_g=yes 3177else 3178 echo "$as_me: failed program was:" >&5 3179sed 's/^/| /' conftest.$ac_ext >&5 3180 3181 CFLAGS="" 3182 cat >conftest.$ac_ext <<_ACEOF 3183/* confdefs.h. */ 3184_ACEOF 3185cat confdefs.h >>conftest.$ac_ext 3186cat >>conftest.$ac_ext <<_ACEOF 3187/* end confdefs.h. */ 3188 3189int 3190main () 3191{ 3192 3193 ; 3194 return 0; 3195} 3196_ACEOF 3197rm -f conftest.$ac_objext 3198if { (ac_try="$ac_compile" 3199case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202esac 3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3204 (eval "$ac_compile") 2>conftest.er1 3205 ac_status=$? 3206 grep -v '^ *+' conftest.er1 >conftest.err 3207 rm -f conftest.er1 3208 cat conftest.err >&5 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); } && { 3211 test -z "$ac_c_werror_flag" || 3212 test ! -s conftest.err 3213 } && test -s conftest.$ac_objext; then 3214 : 3215else 3216 echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219 ac_c_werror_flag=$ac_save_c_werror_flag 3220 CFLAGS="-g" 3221 cat >conftest.$ac_ext <<_ACEOF 3222/* confdefs.h. */ 3223_ACEOF 3224cat confdefs.h >>conftest.$ac_ext 3225cat >>conftest.$ac_ext <<_ACEOF 3226/* end confdefs.h. */ 3227 3228int 3229main () 3230{ 3231 3232 ; 3233 return 0; 3234} 3235_ACEOF 3236rm -f conftest.$ac_objext 3237if { (ac_try="$ac_compile" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3243 (eval "$ac_compile") 2>conftest.er1 3244 ac_status=$? 3245 grep -v '^ *+' conftest.er1 >conftest.err 3246 rm -f conftest.er1 3247 cat conftest.err >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && { 3250 test -z "$ac_c_werror_flag" || 3251 test ! -s conftest.err 3252 } && test -s conftest.$ac_objext; then 3253 ac_cv_prog_cc_g=yes 3254else 3255 echo "$as_me: failed program was:" >&5 3256sed 's/^/| /' conftest.$ac_ext >&5 3257 3258 3259fi 3260 3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3262fi 3263 3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3265fi 3266 3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3268 ac_c_werror_flag=$ac_save_c_werror_flag 3269fi 3270{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3271echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3272if test "$ac_test_CFLAGS" = set; then 3273 CFLAGS=$ac_save_CFLAGS 3274elif test $ac_cv_prog_cc_g = yes; then 3275 if test "$GCC" = yes; then 3276 CFLAGS="-g -O2" 3277 else 3278 CFLAGS="-g" 3279 fi 3280else 3281 if test "$GCC" = yes; then 3282 CFLAGS="-O2" 3283 else 3284 CFLAGS= 3285 fi 3286fi 3287{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3288echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3289if test "${ac_cv_prog_cc_c89+set}" = set; then 3290 echo $ECHO_N "(cached) $ECHO_C" >&6 3291else 3292 ac_cv_prog_cc_c89=no 3293ac_save_CC=$CC 3294cat >conftest.$ac_ext <<_ACEOF 3295/* confdefs.h. */ 3296_ACEOF 3297cat confdefs.h >>conftest.$ac_ext 3298cat >>conftest.$ac_ext <<_ACEOF 3299/* end confdefs.h. */ 3300#include <stdarg.h> 3301#include <stdio.h> 3302#include <sys/types.h> 3303#include <sys/stat.h> 3304/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3305struct buf { int x; }; 3306FILE * (*rcsopen) (struct buf *, struct stat *, int); 3307static char *e (p, i) 3308 char **p; 3309 int i; 3310{ 3311 return p[i]; 3312} 3313static char *f (char * (*g) (char **, int), char **p, ...) 3314{ 3315 char *s; 3316 va_list v; 3317 va_start (v,p); 3318 s = g (p, va_arg (v,int)); 3319 va_end (v); 3320 return s; 3321} 3322 3323/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3324 function prototypes and stuff, but not '\xHH' hex character constants. 3325 These don't provoke an error unfortunately, instead are silently treated 3326 as 'x'. The following induces an error, until -std is added to get 3327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3328 array size at least. It's necessary to write '\x00'==0 to get something 3329 that's true only with -std. */ 3330int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3331 3332/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3333 inside strings and character constants. */ 3334#define FOO(x) 'x' 3335int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3336 3337int test (int i, double x); 3338struct s1 {int (*f) (int a);}; 3339struct s2 {int (*f) (double a);}; 3340int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3341int argc; 3342char **argv; 3343int 3344main () 3345{ 3346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3347 ; 3348 return 0; 3349} 3350_ACEOF 3351for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3353do 3354 CC="$ac_save_CC $ac_arg" 3355 rm -f conftest.$ac_objext 3356if { (ac_try="$ac_compile" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3362 (eval "$ac_compile") 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } && { 3369 test -z "$ac_c_werror_flag" || 3370 test ! -s conftest.err 3371 } && test -s conftest.$ac_objext; then 3372 ac_cv_prog_cc_c89=$ac_arg 3373else 3374 echo "$as_me: failed program was:" >&5 3375sed 's/^/| /' conftest.$ac_ext >&5 3376 3377 3378fi 3379 3380rm -f core conftest.err conftest.$ac_objext 3381 test "x$ac_cv_prog_cc_c89" != "xno" && break 3382done 3383rm -f conftest.$ac_ext 3384CC=$ac_save_CC 3385 3386fi 3387# AC_CACHE_VAL 3388case "x$ac_cv_prog_cc_c89" in 3389 x) 3390 { echo "$as_me:$LINENO: result: none needed" >&5 3391echo "${ECHO_T}none needed" >&6; } ;; 3392 xno) 3393 { echo "$as_me:$LINENO: result: unsupported" >&5 3394echo "${ECHO_T}unsupported" >&6; } ;; 3395 *) 3396 CC="$CC $ac_cv_prog_cc_c89" 3397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3398echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3399esac 3400 3401 3402ac_ext=c 3403ac_cpp='$CPP $CPPFLAGS' 3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3406ac_compiler_gnu=$ac_cv_c_compiler_gnu 3407 3408 ac_ext=c 3409ac_cpp='$CPP $CPPFLAGS' 3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3412ac_compiler_gnu=$ac_cv_c_compiler_gnu 3413{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3414echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3415# On Suns, sometimes $CPP names a directory. 3416if test -n "$CPP" && test -d "$CPP"; then 3417 CPP= 3418fi 3419if test -z "$CPP"; then 3420 if test "${ac_cv_prog_CPP+set}" = set; then 3421 echo $ECHO_N "(cached) $ECHO_C" >&6 3422else 3423 # Double quotes because CPP needs to be expanded 3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3425 do 3426 ac_preproc_ok=false 3427for ac_c_preproc_warn_flag in '' yes 3428do 3429 # Use a header file that comes with gcc, so configuring glibc 3430 # with a fresh cross-compiler works. 3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3432 # <limits.h> exists even on freestanding compilers. 3433 # On the NeXT, cc -E runs the code through the compiler's parser, 3434 # not just through cpp. "Syntax error" is here to catch this case. 3435 cat >conftest.$ac_ext <<_ACEOF 3436/* confdefs.h. */ 3437_ACEOF 3438cat confdefs.h >>conftest.$ac_ext 3439cat >>conftest.$ac_ext <<_ACEOF 3440/* end confdefs.h. */ 3441#ifdef __STDC__ 3442# include <limits.h> 3443#else 3444# include <assert.h> 3445#endif 3446 Syntax error 3447_ACEOF 3448if { (ac_try="$ac_cpp conftest.$ac_ext" 3449case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452esac 3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3455 ac_status=$? 3456 grep -v '^ *+' conftest.er1 >conftest.err 3457 rm -f conftest.er1 3458 cat conftest.err >&5 3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); } >/dev/null && { 3461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3462 test ! -s conftest.err 3463 }; then 3464 : 3465else 3466 echo "$as_me: failed program was:" >&5 3467sed 's/^/| /' conftest.$ac_ext >&5 3468 3469 # Broken: fails on valid input. 3470continue 3471fi 3472 3473rm -f conftest.err conftest.$ac_ext 3474 3475 # OK, works on sane cases. Now check whether nonexistent headers 3476 # can be detected and how. 3477 cat >conftest.$ac_ext <<_ACEOF 3478/* confdefs.h. */ 3479_ACEOF 3480cat confdefs.h >>conftest.$ac_ext 3481cat >>conftest.$ac_ext <<_ACEOF 3482/* end confdefs.h. */ 3483#include <ac_nonexistent.h> 3484_ACEOF 3485if { (ac_try="$ac_cpp conftest.$ac_ext" 3486case "(($ac_try" in 3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3488 *) ac_try_echo=$ac_try;; 3489esac 3490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3492 ac_status=$? 3493 grep -v '^ *+' conftest.er1 >conftest.err 3494 rm -f conftest.er1 3495 cat conftest.err >&5 3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3497 (exit $ac_status); } >/dev/null && { 3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3499 test ! -s conftest.err 3500 }; then 3501 # Broken: success on invalid input. 3502continue 3503else 3504 echo "$as_me: failed program was:" >&5 3505sed 's/^/| /' conftest.$ac_ext >&5 3506 3507 # Passes both tests. 3508ac_preproc_ok=: 3509break 3510fi 3511 3512rm -f conftest.err conftest.$ac_ext 3513 3514done 3515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3516rm -f conftest.err conftest.$ac_ext 3517if $ac_preproc_ok; then 3518 break 3519fi 3520 3521 done 3522 ac_cv_prog_CPP=$CPP 3523 3524fi 3525 CPP=$ac_cv_prog_CPP 3526else 3527 ac_cv_prog_CPP=$CPP 3528fi 3529{ echo "$as_me:$LINENO: result: $CPP" >&5 3530echo "${ECHO_T}$CPP" >&6; } 3531ac_preproc_ok=false 3532for ac_c_preproc_warn_flag in '' yes 3533do 3534 # Use a header file that comes with gcc, so configuring glibc 3535 # with a fresh cross-compiler works. 3536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3537 # <limits.h> exists even on freestanding compilers. 3538 # On the NeXT, cc -E runs the code through the compiler's parser, 3539 # not just through cpp. "Syntax error" is here to catch this case. 3540 cat >conftest.$ac_ext <<_ACEOF 3541/* confdefs.h. */ 3542_ACEOF 3543cat confdefs.h >>conftest.$ac_ext 3544cat >>conftest.$ac_ext <<_ACEOF 3545/* end confdefs.h. */ 3546#ifdef __STDC__ 3547# include <limits.h> 3548#else 3549# include <assert.h> 3550#endif 3551 Syntax error 3552_ACEOF 3553if { (ac_try="$ac_cpp conftest.$ac_ext" 3554case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3560 ac_status=$? 3561 grep -v '^ *+' conftest.er1 >conftest.err 3562 rm -f conftest.er1 3563 cat conftest.err >&5 3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); } >/dev/null && { 3566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3567 test ! -s conftest.err 3568 }; then 3569 : 3570else 3571 echo "$as_me: failed program was:" >&5 3572sed 's/^/| /' conftest.$ac_ext >&5 3573 3574 # Broken: fails on valid input. 3575continue 3576fi 3577 3578rm -f conftest.err conftest.$ac_ext 3579 3580 # OK, works on sane cases. Now check whether nonexistent headers 3581 # can be detected and how. 3582 cat >conftest.$ac_ext <<_ACEOF 3583/* confdefs.h. */ 3584_ACEOF 3585cat confdefs.h >>conftest.$ac_ext 3586cat >>conftest.$ac_ext <<_ACEOF 3587/* end confdefs.h. */ 3588#include <ac_nonexistent.h> 3589_ACEOF 3590if { (ac_try="$ac_cpp conftest.$ac_ext" 3591case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3597 ac_status=$? 3598 grep -v '^ *+' conftest.er1 >conftest.err 3599 rm -f conftest.er1 3600 cat conftest.err >&5 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); } >/dev/null && { 3603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3604 test ! -s conftest.err 3605 }; then 3606 # Broken: success on invalid input. 3607continue 3608else 3609 echo "$as_me: failed program was:" >&5 3610sed 's/^/| /' conftest.$ac_ext >&5 3611 3612 # Passes both tests. 3613ac_preproc_ok=: 3614break 3615fi 3616 3617rm -f conftest.err conftest.$ac_ext 3618 3619done 3620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3621rm -f conftest.err conftest.$ac_ext 3622if $ac_preproc_ok; then 3623 : 3624else 3625 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3626See \`config.log' for more details." >&5 3627echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3628See \`config.log' for more details." >&2;} 3629 { (exit 1); exit 1; }; } 3630fi 3631 3632ac_ext=c 3633ac_cpp='$CPP $CPPFLAGS' 3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3636ac_compiler_gnu=$ac_cv_c_compiler_gnu 3637 3638 3639 # Find a good install program. We prefer a C program (faster), 3640# so one script is as good as another. But avoid the broken or 3641# incompatible versions: 3642# SysV /etc/install, /usr/sbin/install 3643# SunOS /usr/etc/install 3644# IRIX /sbin/install 3645# AIX /bin/install 3646# AmigaOS /C/install, which installs bootblocks on floppy discs 3647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3648# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3650# OS/2's system install, which has a completely different semantic 3651# ./install, which can be erroneously created by make from ./install.sh. 3652{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3653echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3654if test -z "$INSTALL"; then 3655if test "${ac_cv_path_install+set}" = set; then 3656 echo $ECHO_N "(cached) $ECHO_C" >&6 3657else 3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659for as_dir in $PATH 3660do 3661 IFS=$as_save_IFS 3662 test -z "$as_dir" && as_dir=. 3663 # Account for people who put trailing slashes in PATH elements. 3664case $as_dir/ in 3665 ./ | .// | /cC/* | \ 3666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3667 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3668 /usr/ucb/* ) ;; 3669 *) 3670 # OSF1 and SCO ODT 3.0 have their own names for install. 3671 # Don't use installbsd from OSF since it installs stuff as root 3672 # by default. 3673 for ac_prog in ginstall scoinst install; do 3674 for ac_exec_ext in '' $ac_executable_extensions; do 3675 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3676 if test $ac_prog = install && 3677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3678 # AIX install. It has an incompatible calling convention. 3679 : 3680 elif test $ac_prog = install && 3681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3682 # program-specific install script used by HP pwplus--don't use. 3683 : 3684 else 3685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3686 break 3 3687 fi 3688 fi 3689 done 3690 done 3691 ;; 3692esac 3693done 3694IFS=$as_save_IFS 3695 3696 3697fi 3698 if test "${ac_cv_path_install+set}" = set; then 3699 INSTALL=$ac_cv_path_install 3700 else 3701 # As a last resort, use the slow shell script. Don't cache a 3702 # value for INSTALL within a source directory, because that will 3703 # break other packages using the cache if that directory is 3704 # removed, or if the value is a relative name. 3705 INSTALL=$ac_install_sh 3706 fi 3707fi 3708{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3709echo "${ECHO_T}$INSTALL" >&6; } 3710 3711# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3712# It thinks the first close brace ends the variable substitution. 3713test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3714 3715test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3716 3717test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3718 3719 3720 #-------------------------------------------------------------------- 3721 # Checks to see if the make program sets the $MAKE variable. 3722 #-------------------------------------------------------------------- 3723 3724 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3725echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3726set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3727if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3728 echo $ECHO_N "(cached) $ECHO_C" >&6 3729else 3730 cat >conftest.make <<\_ACEOF 3731SHELL = /bin/sh 3732all: 3733 @echo '@@@%%%=$(MAKE)=@@@%%%' 3734_ACEOF 3735# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3736case `${MAKE-make} -f conftest.make 2>/dev/null` in 3737 *@@@%%%=?*=@@@%%%*) 3738 eval ac_cv_prog_make_${ac_make}_set=yes;; 3739 *) 3740 eval ac_cv_prog_make_${ac_make}_set=no;; 3741esac 3742rm -f conftest.make 3743fi 3744if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3745 { echo "$as_me:$LINENO: result: yes" >&5 3746echo "${ECHO_T}yes" >&6; } 3747 SET_MAKE= 3748else 3749 { echo "$as_me:$LINENO: result: no" >&5 3750echo "${ECHO_T}no" >&6; } 3751 SET_MAKE="MAKE=${MAKE-make}" 3752fi 3753 3754 3755 #-------------------------------------------------------------------- 3756 # Find ranlib 3757 #-------------------------------------------------------------------- 3758 3759 if test -n "$ac_tool_prefix"; then 3760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3761set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3764if test "${ac_cv_prog_RANLIB+set}" = set; then 3765 echo $ECHO_N "(cached) $ECHO_C" >&6 3766else 3767 if test -n "$RANLIB"; then 3768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3769else 3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH 3772do 3773 IFS=$as_save_IFS 3774 test -z "$as_dir" && as_dir=. 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781done 3782done 3783IFS=$as_save_IFS 3784 3785fi 3786fi 3787RANLIB=$ac_cv_prog_RANLIB 3788if test -n "$RANLIB"; then 3789 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3790echo "${ECHO_T}$RANLIB" >&6; } 3791else 3792 { echo "$as_me:$LINENO: result: no" >&5 3793echo "${ECHO_T}no" >&6; } 3794fi 3795 3796 3797fi 3798if test -z "$ac_cv_prog_RANLIB"; then 3799 ac_ct_RANLIB=$RANLIB 3800 # Extract the first word of "ranlib", so it can be a program name with args. 3801set dummy ranlib; ac_word=$2 3802{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3804if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3805 echo $ECHO_N "(cached) $ECHO_C" >&6 3806else 3807 if test -n "$ac_ct_RANLIB"; then 3808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3809else 3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3811for as_dir in $PATH 3812do 3813 IFS=$as_save_IFS 3814 test -z "$as_dir" && as_dir=. 3815 for ac_exec_ext in '' $ac_executable_extensions; do 3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3817 ac_cv_prog_ac_ct_RANLIB="ranlib" 3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3819 break 2 3820 fi 3821done 3822done 3823IFS=$as_save_IFS 3824 3825fi 3826fi 3827ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3828if test -n "$ac_ct_RANLIB"; then 3829 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3830echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3831else 3832 { echo "$as_me:$LINENO: result: no" >&5 3833echo "${ECHO_T}no" >&6; } 3834fi 3835 3836 if test "x$ac_ct_RANLIB" = x; then 3837 RANLIB=":" 3838 else 3839 case $cross_compiling:$ac_tool_warned in 3840yes:) 3841{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3842whose name does not start with the host triplet. If you think this 3843configuration is useful to you, please write to autoconf@gnu.org." >&5 3844echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3845whose name does not start with the host triplet. If you think this 3846configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3847ac_tool_warned=yes ;; 3848esac 3849 RANLIB=$ac_ct_RANLIB 3850 fi 3851else 3852 RANLIB="$ac_cv_prog_RANLIB" 3853fi 3854 3855 3856 #-------------------------------------------------------------------- 3857 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3858 #-------------------------------------------------------------------- 3859 3860 3861 3862 3863 3864 3865{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3866echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3867if test "${ac_cv_path_GREP+set}" = set; then 3868 echo $ECHO_N "(cached) $ECHO_C" >&6 3869else 3870 # Extract the first word of "grep ggrep" to use in msg output 3871if test -z "$GREP"; then 3872set dummy grep ggrep; ac_prog_name=$2 3873if test "${ac_cv_path_GREP+set}" = set; then 3874 echo $ECHO_N "(cached) $ECHO_C" >&6 3875else 3876 ac_path_GREP_found=false 3877# Loop through the user's path and test for each of PROGNAME-LIST 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3880do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_prog in grep ggrep; do 3884 for ac_exec_ext in '' $ac_executable_extensions; do 3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3887 # Check for GNU ac_path_GREP and select it if it is found. 3888 # Check for GNU $ac_path_GREP 3889case `"$ac_path_GREP" --version 2>&1` in 3890*GNU*) 3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3892*) 3893 ac_count=0 3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3895 while : 3896 do 3897 cat "conftest.in" "conftest.in" >"conftest.tmp" 3898 mv "conftest.tmp" "conftest.in" 3899 cp "conftest.in" "conftest.nl" 3900 echo 'GREP' >> "conftest.nl" 3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3903 ac_count=`expr $ac_count + 1` 3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3905 # Best one so far, save it but keep looking for a better one 3906 ac_cv_path_GREP="$ac_path_GREP" 3907 ac_path_GREP_max=$ac_count 3908 fi 3909 # 10*(2^10) chars as input seems more than enough 3910 test $ac_count -gt 10 && break 3911 done 3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3913esac 3914 3915 3916 $ac_path_GREP_found && break 3 3917 done 3918done 3919 3920done 3921IFS=$as_save_IFS 3922 3923 3924fi 3925 3926GREP="$ac_cv_path_GREP" 3927if test -z "$GREP"; then 3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3930 { (exit 1); exit 1; }; } 3931fi 3932 3933else 3934 ac_cv_path_GREP=$GREP 3935fi 3936 3937 3938fi 3939{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3940echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3941 GREP="$ac_cv_path_GREP" 3942 3943 3944{ echo "$as_me:$LINENO: checking for egrep" >&5 3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3946if test "${ac_cv_path_EGREP+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948else 3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3950 then ac_cv_path_EGREP="$GREP -E" 3951 else 3952 # Extract the first word of "egrep" to use in msg output 3953if test -z "$EGREP"; then 3954set dummy egrep; ac_prog_name=$2 3955if test "${ac_cv_path_EGREP+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 ac_path_EGREP_found=false 3959# Loop through the user's path and test for each of PROGNAME-LIST 3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3962do 3963 IFS=$as_save_IFS 3964 test -z "$as_dir" && as_dir=. 3965 for ac_prog in egrep; do 3966 for ac_exec_ext in '' $ac_executable_extensions; do 3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3968 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3969 # Check for GNU ac_path_EGREP and select it if it is found. 3970 # Check for GNU $ac_path_EGREP 3971case `"$ac_path_EGREP" --version 2>&1` in 3972*GNU*) 3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3974*) 3975 ac_count=0 3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3977 while : 3978 do 3979 cat "conftest.in" "conftest.in" >"conftest.tmp" 3980 mv "conftest.tmp" "conftest.in" 3981 cp "conftest.in" "conftest.nl" 3982 echo 'EGREP' >> "conftest.nl" 3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3985 ac_count=`expr $ac_count + 1` 3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3987 # Best one so far, save it but keep looking for a better one 3988 ac_cv_path_EGREP="$ac_path_EGREP" 3989 ac_path_EGREP_max=$ac_count 3990 fi 3991 # 10*(2^10) chars as input seems more than enough 3992 test $ac_count -gt 10 && break 3993 done 3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3995esac 3996 3997 3998 $ac_path_EGREP_found && break 3 3999 done 4000done 4001 4002done 4003IFS=$as_save_IFS 4004 4005 4006fi 4007 4008EGREP="$ac_cv_path_EGREP" 4009if test -z "$EGREP"; then 4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4012 { (exit 1); exit 1; }; } 4013fi 4014 4015else 4016 ac_cv_path_EGREP=$EGREP 4017fi 4018 4019 4020 fi 4021fi 4022{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4023echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4024 EGREP="$ac_cv_path_EGREP" 4025 4026 4027{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4028echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4029if test "${ac_cv_header_stdc+set}" = set; then 4030 echo $ECHO_N "(cached) $ECHO_C" >&6 4031else 4032 cat >conftest.$ac_ext <<_ACEOF 4033/* confdefs.h. */ 4034_ACEOF 4035cat confdefs.h >>conftest.$ac_ext 4036cat >>conftest.$ac_ext <<_ACEOF 4037/* end confdefs.h. */ 4038#include <stdlib.h> 4039#include <stdarg.h> 4040#include <string.h> 4041#include <float.h> 4042 4043int 4044main () 4045{ 4046 4047 ; 4048 return 0; 4049} 4050_ACEOF 4051rm -f conftest.$ac_objext 4052if { (ac_try="$ac_compile" 4053case "(($ac_try" in 4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4055 *) ac_try_echo=$ac_try;; 4056esac 4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4058 (eval "$ac_compile") 2>conftest.er1 4059 ac_status=$? 4060 grep -v '^ *+' conftest.er1 >conftest.err 4061 rm -f conftest.er1 4062 cat conftest.err >&5 4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); } && { 4065 test -z "$ac_c_werror_flag" || 4066 test ! -s conftest.err 4067 } && test -s conftest.$ac_objext; then 4068 ac_cv_header_stdc=yes 4069else 4070 echo "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073 ac_cv_header_stdc=no 4074fi 4075 4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4077 4078if test $ac_cv_header_stdc = yes; then 4079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4080 cat >conftest.$ac_ext <<_ACEOF 4081/* confdefs.h. */ 4082_ACEOF 4083cat confdefs.h >>conftest.$ac_ext 4084cat >>conftest.$ac_ext <<_ACEOF 4085/* end confdefs.h. */ 4086#include <string.h> 4087 4088_ACEOF 4089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4090 $EGREP "memchr" >/dev/null 2>&1; then 4091 : 4092else 4093 ac_cv_header_stdc=no 4094fi 4095rm -f -r conftest* 4096 4097fi 4098 4099if test $ac_cv_header_stdc = yes; then 4100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4101 cat >conftest.$ac_ext <<_ACEOF 4102/* confdefs.h. */ 4103_ACEOF 4104cat confdefs.h >>conftest.$ac_ext 4105cat >>conftest.$ac_ext <<_ACEOF 4106/* end confdefs.h. */ 4107#include <stdlib.h> 4108 4109_ACEOF 4110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4111 $EGREP "free" >/dev/null 2>&1; then 4112 : 4113else 4114 ac_cv_header_stdc=no 4115fi 4116rm -f -r conftest* 4117 4118fi 4119 4120if test $ac_cv_header_stdc = yes; then 4121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4122 if test "$cross_compiling" = yes; then 4123 : 4124else 4125 cat >conftest.$ac_ext <<_ACEOF 4126/* confdefs.h. */ 4127_ACEOF 4128cat confdefs.h >>conftest.$ac_ext 4129cat >>conftest.$ac_ext <<_ACEOF 4130/* end confdefs.h. */ 4131#include <ctype.h> 4132#include <stdlib.h> 4133#if ((' ' & 0x0FF) == 0x020) 4134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4136#else 4137# define ISLOWER(c) \ 4138 (('a' <= (c) && (c) <= 'i') \ 4139 || ('j' <= (c) && (c) <= 'r') \ 4140 || ('s' <= (c) && (c) <= 'z')) 4141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4142#endif 4143 4144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4145int 4146main () 4147{ 4148 int i; 4149 for (i = 0; i < 256; i++) 4150 if (XOR (islower (i), ISLOWER (i)) 4151 || toupper (i) != TOUPPER (i)) 4152 return 2; 4153 return 0; 4154} 4155_ACEOF 4156rm -f conftest$ac_exeext 4157if { (ac_try="$ac_link" 4158case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161esac 4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4163 (eval "$ac_link") 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4167 { (case "(($ac_try" in 4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4169 *) ac_try_echo=$ac_try;; 4170esac 4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4172 (eval "$ac_try") 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); }; }; then 4176 : 4177else 4178 echo "$as_me: program exited with status $ac_status" >&5 4179echo "$as_me: failed program was:" >&5 4180sed 's/^/| /' conftest.$ac_ext >&5 4181 4182( exit $ac_status ) 4183ac_cv_header_stdc=no 4184fi 4185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4186fi 4187 4188 4189fi 4190fi 4191{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4192echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4193if test $ac_cv_header_stdc = yes; then 4194 4195cat >>confdefs.h <<\_ACEOF 4196#define STDC_HEADERS 1 4197_ACEOF 4198 4199fi 4200 4201# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4212 inttypes.h stdint.h unistd.h 4213do 4214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4215{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4218 echo $ECHO_N "(cached) $ECHO_C" >&6 4219else 4220 cat >conftest.$ac_ext <<_ACEOF 4221/* confdefs.h. */ 4222_ACEOF 4223cat confdefs.h >>conftest.$ac_ext 4224cat >>conftest.$ac_ext <<_ACEOF 4225/* end confdefs.h. */ 4226$ac_includes_default 4227 4228#include <$ac_header> 4229_ACEOF 4230rm -f conftest.$ac_objext 4231if { (ac_try="$ac_compile" 4232case "(($ac_try" in 4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4234 *) ac_try_echo=$ac_try;; 4235esac 4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4237 (eval "$ac_compile") 2>conftest.er1 4238 ac_status=$? 4239 grep -v '^ *+' conftest.er1 >conftest.err 4240 rm -f conftest.er1 4241 cat conftest.err >&5 4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4243 (exit $ac_status); } && { 4244 test -z "$ac_c_werror_flag" || 4245 test ! -s conftest.err 4246 } && test -s conftest.$ac_objext; then 4247 eval "$as_ac_Header=yes" 4248else 4249 echo "$as_me: failed program was:" >&5 4250sed 's/^/| /' conftest.$ac_ext >&5 4251 4252 eval "$as_ac_Header=no" 4253fi 4254 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256fi 4257ac_res=`eval echo '${'$as_ac_Header'}'` 4258 { echo "$as_me:$LINENO: result: $ac_res" >&5 4259echo "${ECHO_T}$ac_res" >&6; } 4260if test `eval echo '${'$as_ac_Header'}'` = yes; then 4261 cat >>confdefs.h <<_ACEOF 4262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4263_ACEOF 4264 4265fi 4266 4267done 4268 4269 4270 4271 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4272 4273 4274 #------------------------------------------------------------------------ 4275 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4276 # It makes compiling go faster. (This is only a performance feature.) 4277 #------------------------------------------------------------------------ 4278 4279 if test -z "$no_pipe" -a -n "$GCC"; then 4280 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4281echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4282if test "${tcl_cv_cc_pipe+set}" = set; then 4283 echo $ECHO_N "(cached) $ECHO_C" >&6 4284else 4285 4286 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4287 cat >conftest.$ac_ext <<_ACEOF 4288/* confdefs.h. */ 4289_ACEOF 4290cat confdefs.h >>conftest.$ac_ext 4291cat >>conftest.$ac_ext <<_ACEOF 4292/* end confdefs.h. */ 4293 4294int 4295main () 4296{ 4297 4298 ; 4299 return 0; 4300} 4301_ACEOF 4302rm -f conftest.$ac_objext 4303if { (ac_try="$ac_compile" 4304case "(($ac_try" in 4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4306 *) ac_try_echo=$ac_try;; 4307esac 4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4309 (eval "$ac_compile") 2>conftest.er1 4310 ac_status=$? 4311 grep -v '^ *+' conftest.er1 >conftest.err 4312 rm -f conftest.er1 4313 cat conftest.err >&5 4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4315 (exit $ac_status); } && { 4316 test -z "$ac_c_werror_flag" || 4317 test ! -s conftest.err 4318 } && test -s conftest.$ac_objext; then 4319 tcl_cv_cc_pipe=yes 4320else 4321 echo "$as_me: failed program was:" >&5 4322sed 's/^/| /' conftest.$ac_ext >&5 4323 4324 tcl_cv_cc_pipe=no 4325fi 4326 4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4328 CFLAGS=$hold_cflags 4329fi 4330{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4331echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4332 if test $tcl_cv_cc_pipe = yes; then 4333 CFLAGS="$CFLAGS -pipe" 4334 fi 4335 fi 4336 4337 #-------------------------------------------------------------------- 4338 # Common compiler flag setup 4339 #-------------------------------------------------------------------- 4340 4341 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4342echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4343if test "${ac_cv_c_bigendian+set}" = set; then 4344 echo $ECHO_N "(cached) $ECHO_C" >&6 4345else 4346 # See if sys/param.h defines the BYTE_ORDER macro. 4347cat >conftest.$ac_ext <<_ACEOF 4348/* confdefs.h. */ 4349_ACEOF 4350cat confdefs.h >>conftest.$ac_ext 4351cat >>conftest.$ac_ext <<_ACEOF 4352/* end confdefs.h. */ 4353#include <sys/types.h> 4354#include <sys/param.h> 4355 4356int 4357main () 4358{ 4359#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4360 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4361 bogus endian macros 4362#endif 4363 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368rm -f conftest.$ac_objext 4369if { (ac_try="$ac_compile" 4370case "(($ac_try" in 4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4372 *) ac_try_echo=$ac_try;; 4373esac 4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4375 (eval "$ac_compile") 2>conftest.er1 4376 ac_status=$? 4377 grep -v '^ *+' conftest.er1 >conftest.err 4378 rm -f conftest.er1 4379 cat conftest.err >&5 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); } && { 4382 test -z "$ac_c_werror_flag" || 4383 test ! -s conftest.err 4384 } && test -s conftest.$ac_objext; then 4385 # It does; now see whether it defined to BIG_ENDIAN or not. 4386cat >conftest.$ac_ext <<_ACEOF 4387/* confdefs.h. */ 4388_ACEOF 4389cat confdefs.h >>conftest.$ac_ext 4390cat >>conftest.$ac_ext <<_ACEOF 4391/* end confdefs.h. */ 4392#include <sys/types.h> 4393#include <sys/param.h> 4394 4395int 4396main () 4397{ 4398#if BYTE_ORDER != BIG_ENDIAN 4399 not big endian 4400#endif 4401 4402 ; 4403 return 0; 4404} 4405_ACEOF 4406rm -f conftest.$ac_objext 4407if { (ac_try="$ac_compile" 4408case "(($ac_try" in 4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4410 *) ac_try_echo=$ac_try;; 4411esac 4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4413 (eval "$ac_compile") 2>conftest.er1 4414 ac_status=$? 4415 grep -v '^ *+' conftest.er1 >conftest.err 4416 rm -f conftest.er1 4417 cat conftest.err >&5 4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4419 (exit $ac_status); } && { 4420 test -z "$ac_c_werror_flag" || 4421 test ! -s conftest.err 4422 } && test -s conftest.$ac_objext; then 4423 ac_cv_c_bigendian=yes 4424else 4425 echo "$as_me: failed program was:" >&5 4426sed 's/^/| /' conftest.$ac_ext >&5 4427 4428 ac_cv_c_bigendian=no 4429fi 4430 4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4432else 4433 echo "$as_me: failed program was:" >&5 4434sed 's/^/| /' conftest.$ac_ext >&5 4435 4436 # It does not; compile a test program. 4437if test "$cross_compiling" = yes; then 4438 # try to guess the endianness by grepping values into an object file 4439 ac_cv_c_bigendian=unknown 4440 cat >conftest.$ac_ext <<_ACEOF 4441/* confdefs.h. */ 4442_ACEOF 4443cat confdefs.h >>conftest.$ac_ext 4444cat >>conftest.$ac_ext <<_ACEOF 4445/* end confdefs.h. */ 4446short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4447short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4448void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4449short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4450short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4451void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4452int 4453main () 4454{ 4455 _ascii (); _ebcdic (); 4456 ; 4457 return 0; 4458} 4459_ACEOF 4460rm -f conftest.$ac_objext 4461if { (ac_try="$ac_compile" 4462case "(($ac_try" in 4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4464 *) ac_try_echo=$ac_try;; 4465esac 4466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4467 (eval "$ac_compile") 2>conftest.er1 4468 ac_status=$? 4469 grep -v '^ *+' conftest.er1 >conftest.err 4470 rm -f conftest.er1 4471 cat conftest.err >&5 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); } && { 4474 test -z "$ac_c_werror_flag" || 4475 test ! -s conftest.err 4476 } && test -s conftest.$ac_objext; then 4477 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4478 ac_cv_c_bigendian=yes 4479fi 4480if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4481 if test "$ac_cv_c_bigendian" = unknown; then 4482 ac_cv_c_bigendian=no 4483 else 4484 # finding both strings is unlikely to happen, but who knows? 4485 ac_cv_c_bigendian=unknown 4486 fi 4487fi 4488else 4489 echo "$as_me: failed program was:" >&5 4490sed 's/^/| /' conftest.$ac_ext >&5 4491 4492 4493fi 4494 4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4496else 4497 cat >conftest.$ac_ext <<_ACEOF 4498/* confdefs.h. */ 4499_ACEOF 4500cat confdefs.h >>conftest.$ac_ext 4501cat >>conftest.$ac_ext <<_ACEOF 4502/* end confdefs.h. */ 4503$ac_includes_default 4504int 4505main () 4506{ 4507 4508 /* Are we little or big endian? From Harbison&Steele. */ 4509 union 4510 { 4511 long int l; 4512 char c[sizeof (long int)]; 4513 } u; 4514 u.l = 1; 4515 return u.c[sizeof (long int) - 1] == 1; 4516 4517 ; 4518 return 0; 4519} 4520_ACEOF 4521rm -f conftest$ac_exeext 4522if { (ac_try="$ac_link" 4523case "(($ac_try" in 4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4525 *) ac_try_echo=$ac_try;; 4526esac 4527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4528 (eval "$ac_link") 2>&5 4529 ac_status=$? 4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4532 { (case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4537 (eval "$ac_try") 2>&5 4538 ac_status=$? 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); }; }; then 4541 ac_cv_c_bigendian=no 4542else 4543 echo "$as_me: program exited with status $ac_status" >&5 4544echo "$as_me: failed program was:" >&5 4545sed 's/^/| /' conftest.$ac_ext >&5 4546 4547( exit $ac_status ) 4548ac_cv_c_bigendian=yes 4549fi 4550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4551fi 4552 4553 4554fi 4555 4556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4557fi 4558{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4559echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4560case $ac_cv_c_bigendian in 4561 yes) 4562 4563cat >>confdefs.h <<\_ACEOF 4564#define WORDS_BIGENDIAN 1 4565_ACEOF 4566 ;; 4567 no) 4568 ;; 4569 *) 4570 { { echo "$as_me:$LINENO: error: unknown endianness 4571presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4572echo "$as_me: error: unknown endianness 4573presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4574 { (exit 1); exit 1; }; } ;; 4575esac 4576 4577 if test "${TEA_PLATFORM}" = "unix" ; then 4578 4579 #-------------------------------------------------------------------- 4580 # On a few very rare systems, all of the libm.a stuff is 4581 # already in libc.a. Set compiler flags accordingly. 4582 # Also, Linux requires the "ieee" library for math to work 4583 # right (and it must appear before "-lm"). 4584 #-------------------------------------------------------------------- 4585 4586 { echo "$as_me:$LINENO: checking for sin" >&5 4587echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4588if test "${ac_cv_func_sin+set}" = set; then 4589 echo $ECHO_N "(cached) $ECHO_C" >&6 4590else 4591 cat >conftest.$ac_ext <<_ACEOF 4592/* confdefs.h. */ 4593_ACEOF 4594cat confdefs.h >>conftest.$ac_ext 4595cat >>conftest.$ac_ext <<_ACEOF 4596/* end confdefs.h. */ 4597/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4598 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4599#define sin innocuous_sin 4600 4601/* System header to define __stub macros and hopefully few prototypes, 4602 which can conflict with char sin (); below. 4603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4604 <limits.h> exists even on freestanding compilers. */ 4605 4606#ifdef __STDC__ 4607# include <limits.h> 4608#else 4609# include <assert.h> 4610#endif 4611 4612#undef sin 4613 4614/* Override any GCC internal prototype to avoid an error. 4615 Use char because int might match the return type of a GCC 4616 builtin and then its argument prototype would still apply. */ 4617#ifdef __cplusplus 4618extern "C" 4619#endif 4620char sin (); 4621/* The GNU C library defines this for functions which it implements 4622 to always fail with ENOSYS. Some functions are actually named 4623 something starting with __ and the normal name is an alias. */ 4624#if defined __stub_sin || defined __stub___sin 4625choke me 4626#endif 4627 4628int 4629main () 4630{ 4631return sin (); 4632 ; 4633 return 0; 4634} 4635_ACEOF 4636rm -f conftest.$ac_objext conftest$ac_exeext 4637if { (ac_try="$ac_link" 4638case "(($ac_try" in 4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4640 *) ac_try_echo=$ac_try;; 4641esac 4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4643 (eval "$ac_link") 2>conftest.er1 4644 ac_status=$? 4645 grep -v '^ *+' conftest.er1 >conftest.err 4646 rm -f conftest.er1 4647 cat conftest.err >&5 4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4649 (exit $ac_status); } && { 4650 test -z "$ac_c_werror_flag" || 4651 test ! -s conftest.err 4652 } && test -s conftest$ac_exeext && 4653 $as_test_x conftest$ac_exeext; then 4654 ac_cv_func_sin=yes 4655else 4656 echo "$as_me: failed program was:" >&5 4657sed 's/^/| /' conftest.$ac_ext >&5 4658 4659 ac_cv_func_sin=no 4660fi 4661 4662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4663 conftest$ac_exeext conftest.$ac_ext 4664fi 4665{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4666echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4667if test $ac_cv_func_sin = yes; then 4668 MATH_LIBS="" 4669else 4670 MATH_LIBS="-lm" 4671fi 4672 4673 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4674echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4675if test "${ac_cv_lib_ieee_main+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677else 4678 ac_check_lib_save_LIBS=$LIBS 4679LIBS="-lieee $LIBS" 4680cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686 4687 4688int 4689main () 4690{ 4691return main (); 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696rm -f conftest.$ac_objext conftest$ac_exeext 4697if { (ac_try="$ac_link" 4698case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701esac 4702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4703 (eval "$ac_link") 2>conftest.er1 4704 ac_status=$? 4705 grep -v '^ *+' conftest.er1 >conftest.err 4706 rm -f conftest.er1 4707 cat conftest.err >&5 4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4709 (exit $ac_status); } && { 4710 test -z "$ac_c_werror_flag" || 4711 test ! -s conftest.err 4712 } && test -s conftest$ac_exeext && 4713 $as_test_x conftest$ac_exeext; then 4714 ac_cv_lib_ieee_main=yes 4715else 4716 echo "$as_me: failed program was:" >&5 4717sed 's/^/| /' conftest.$ac_ext >&5 4718 4719 ac_cv_lib_ieee_main=no 4720fi 4721 4722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4723 conftest$ac_exeext conftest.$ac_ext 4724LIBS=$ac_check_lib_save_LIBS 4725fi 4726{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4727echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4728if test $ac_cv_lib_ieee_main = yes; then 4729 MATH_LIBS="-lieee $MATH_LIBS" 4730fi 4731 4732 4733 #-------------------------------------------------------------------- 4734 # Interactive UNIX requires -linet instead of -lsocket, plus it 4735 # needs net/errno.h to define the socket-related error codes. 4736 #-------------------------------------------------------------------- 4737 4738 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4739echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4740if test "${ac_cv_lib_inet_main+set}" = set; then 4741 echo $ECHO_N "(cached) $ECHO_C" >&6 4742else 4743 ac_check_lib_save_LIBS=$LIBS 4744LIBS="-linet $LIBS" 4745cat >conftest.$ac_ext <<_ACEOF 4746/* confdefs.h. */ 4747_ACEOF 4748cat confdefs.h >>conftest.$ac_ext 4749cat >>conftest.$ac_ext <<_ACEOF 4750/* end confdefs.h. */ 4751 4752 4753int 4754main () 4755{ 4756return main (); 4757 ; 4758 return 0; 4759} 4760_ACEOF 4761rm -f conftest.$ac_objext conftest$ac_exeext 4762if { (ac_try="$ac_link" 4763case "(($ac_try" in 4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4765 *) ac_try_echo=$ac_try;; 4766esac 4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4768 (eval "$ac_link") 2>conftest.er1 4769 ac_status=$? 4770 grep -v '^ *+' conftest.er1 >conftest.err 4771 rm -f conftest.er1 4772 cat conftest.err >&5 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); } && { 4775 test -z "$ac_c_werror_flag" || 4776 test ! -s conftest.err 4777 } && test -s conftest$ac_exeext && 4778 $as_test_x conftest$ac_exeext; then 4779 ac_cv_lib_inet_main=yes 4780else 4781 echo "$as_me: failed program was:" >&5 4782sed 's/^/| /' conftest.$ac_ext >&5 4783 4784 ac_cv_lib_inet_main=no 4785fi 4786 4787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4788 conftest$ac_exeext conftest.$ac_ext 4789LIBS=$ac_check_lib_save_LIBS 4790fi 4791{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4792echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4793if test $ac_cv_lib_inet_main = yes; then 4794 LIBS="$LIBS -linet" 4795fi 4796 4797 if test "${ac_cv_header_net_errno_h+set}" = set; then 4798 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4799echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4800if test "${ac_cv_header_net_errno_h+set}" = set; then 4801 echo $ECHO_N "(cached) $ECHO_C" >&6 4802fi 4803{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4804echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4805else 4806 # Is the header compilable? 4807{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4808echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4809cat >conftest.$ac_ext <<_ACEOF 4810/* confdefs.h. */ 4811_ACEOF 4812cat confdefs.h >>conftest.$ac_ext 4813cat >>conftest.$ac_ext <<_ACEOF 4814/* end confdefs.h. */ 4815$ac_includes_default 4816#include <net/errno.h> 4817_ACEOF 4818rm -f conftest.$ac_objext 4819if { (ac_try="$ac_compile" 4820case "(($ac_try" in 4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4822 *) ac_try_echo=$ac_try;; 4823esac 4824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4825 (eval "$ac_compile") 2>conftest.er1 4826 ac_status=$? 4827 grep -v '^ *+' conftest.er1 >conftest.err 4828 rm -f conftest.er1 4829 cat conftest.err >&5 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); } && { 4832 test -z "$ac_c_werror_flag" || 4833 test ! -s conftest.err 4834 } && test -s conftest.$ac_objext; then 4835 ac_header_compiler=yes 4836else 4837 echo "$as_me: failed program was:" >&5 4838sed 's/^/| /' conftest.$ac_ext >&5 4839 4840 ac_header_compiler=no 4841fi 4842 4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4844{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4845echo "${ECHO_T}$ac_header_compiler" >&6; } 4846 4847# Is the header present? 4848{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4849echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4850cat >conftest.$ac_ext <<_ACEOF 4851/* confdefs.h. */ 4852_ACEOF 4853cat confdefs.h >>conftest.$ac_ext 4854cat >>conftest.$ac_ext <<_ACEOF 4855/* end confdefs.h. */ 4856#include <net/errno.h> 4857_ACEOF 4858if { (ac_try="$ac_cpp conftest.$ac_ext" 4859case "(($ac_try" in 4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4861 *) ac_try_echo=$ac_try;; 4862esac 4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4865 ac_status=$? 4866 grep -v '^ *+' conftest.er1 >conftest.err 4867 rm -f conftest.er1 4868 cat conftest.err >&5 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } >/dev/null && { 4871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4872 test ! -s conftest.err 4873 }; then 4874 ac_header_preproc=yes 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 ac_header_preproc=no 4880fi 4881 4882rm -f conftest.err conftest.$ac_ext 4883{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4884echo "${ECHO_T}$ac_header_preproc" >&6; } 4885 4886# So? What about this header? 4887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4888 yes:no: ) 4889 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4890echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4891 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4892echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4893 ac_header_preproc=yes 4894 ;; 4895 no:yes:* ) 4896 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4897echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4898 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4899echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4900 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4901echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4902 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4903echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4904 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4905echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4906 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4907echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4908 4909 ;; 4910esac 4911{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4912echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4913if test "${ac_cv_header_net_errno_h+set}" = set; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915else 4916 ac_cv_header_net_errno_h=$ac_header_preproc 4917fi 4918{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4919echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4920 4921fi 4922if test $ac_cv_header_net_errno_h = yes; then 4923 4924 4925cat >>confdefs.h <<\_ACEOF 4926#define HAVE_NET_ERRNO_H 1 4927_ACEOF 4928 4929fi 4930 4931 4932 4933 #-------------------------------------------------------------------- 4934 # Check for the existence of the -lsocket and -lnsl libraries. 4935 # The order here is important, so that they end up in the right 4936 # order in the command line generated by make. Here are some 4937 # special considerations: 4938 # 1. Use "connect" and "accept" to check for -lsocket, and 4939 # "gethostbyname" to check for -lnsl. 4940 # 2. Use each function name only once: can't redo a check because 4941 # autoconf caches the results of the last check and won't redo it. 4942 # 3. Use -lnsl and -lsocket only if they supply procedures that 4943 # aren't already present in the normal libraries. This is because 4944 # IRIX 5.2 has libraries, but they aren't needed and they're 4945 # bogus: they goof up name resolution if used. 4946 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4947 # To get around this problem, check for both libraries together 4948 # if -lsocket doesn't work by itself. 4949 #-------------------------------------------------------------------- 4950 4951 tcl_checkBoth=0 4952 { echo "$as_me:$LINENO: checking for connect" >&5 4953echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4954if test "${ac_cv_func_connect+set}" = set; then 4955 echo $ECHO_N "(cached) $ECHO_C" >&6 4956else 4957 cat >conftest.$ac_ext <<_ACEOF 4958/* confdefs.h. */ 4959_ACEOF 4960cat confdefs.h >>conftest.$ac_ext 4961cat >>conftest.$ac_ext <<_ACEOF 4962/* end confdefs.h. */ 4963/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4964 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4965#define connect innocuous_connect 4966 4967/* System header to define __stub macros and hopefully few prototypes, 4968 which can conflict with char connect (); below. 4969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4970 <limits.h> exists even on freestanding compilers. */ 4971 4972#ifdef __STDC__ 4973# include <limits.h> 4974#else 4975# include <assert.h> 4976#endif 4977 4978#undef connect 4979 4980/* Override any GCC internal prototype to avoid an error. 4981 Use char because int might match the return type of a GCC 4982 builtin and then its argument prototype would still apply. */ 4983#ifdef __cplusplus 4984extern "C" 4985#endif 4986char connect (); 4987/* The GNU C library defines this for functions which it implements 4988 to always fail with ENOSYS. Some functions are actually named 4989 something starting with __ and the normal name is an alias. */ 4990#if defined __stub_connect || defined __stub___connect 4991choke me 4992#endif 4993 4994int 4995main () 4996{ 4997return connect (); 4998 ; 4999 return 0; 5000} 5001_ACEOF 5002rm -f conftest.$ac_objext conftest$ac_exeext 5003if { (ac_try="$ac_link" 5004case "(($ac_try" in 5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5006 *) ac_try_echo=$ac_try;; 5007esac 5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5009 (eval "$ac_link") 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } && { 5016 test -z "$ac_c_werror_flag" || 5017 test ! -s conftest.err 5018 } && test -s conftest$ac_exeext && 5019 $as_test_x conftest$ac_exeext; then 5020 ac_cv_func_connect=yes 5021else 5022 echo "$as_me: failed program was:" >&5 5023sed 's/^/| /' conftest.$ac_ext >&5 5024 5025 ac_cv_func_connect=no 5026fi 5027 5028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5029 conftest$ac_exeext conftest.$ac_ext 5030fi 5031{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5032echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5033if test $ac_cv_func_connect = yes; then 5034 tcl_checkSocket=0 5035else 5036 tcl_checkSocket=1 5037fi 5038 5039 if test "$tcl_checkSocket" = 1; then 5040 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5041echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5042if test "${ac_cv_func_setsockopt+set}" = set; then 5043 echo $ECHO_N "(cached) $ECHO_C" >&6 5044else 5045 cat >conftest.$ac_ext <<_ACEOF 5046/* confdefs.h. */ 5047_ACEOF 5048cat confdefs.h >>conftest.$ac_ext 5049cat >>conftest.$ac_ext <<_ACEOF 5050/* end confdefs.h. */ 5051/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5052 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5053#define setsockopt innocuous_setsockopt 5054 5055/* System header to define __stub macros and hopefully few prototypes, 5056 which can conflict with char setsockopt (); below. 5057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5058 <limits.h> exists even on freestanding compilers. */ 5059 5060#ifdef __STDC__ 5061# include <limits.h> 5062#else 5063# include <assert.h> 5064#endif 5065 5066#undef setsockopt 5067 5068/* Override any GCC internal prototype to avoid an error. 5069 Use char because int might match the return type of a GCC 5070 builtin and then its argument prototype would still apply. */ 5071#ifdef __cplusplus 5072extern "C" 5073#endif 5074char setsockopt (); 5075/* The GNU C library defines this for functions which it implements 5076 to always fail with ENOSYS. Some functions are actually named 5077 something starting with __ and the normal name is an alias. */ 5078#if defined __stub_setsockopt || defined __stub___setsockopt 5079choke me 5080#endif 5081 5082int 5083main () 5084{ 5085return setsockopt (); 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090rm -f conftest.$ac_objext conftest$ac_exeext 5091if { (ac_try="$ac_link" 5092case "(($ac_try" in 5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5094 *) ac_try_echo=$ac_try;; 5095esac 5096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5097 (eval "$ac_link") 2>conftest.er1 5098 ac_status=$? 5099 grep -v '^ *+' conftest.er1 >conftest.err 5100 rm -f conftest.er1 5101 cat conftest.err >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); } && { 5104 test -z "$ac_c_werror_flag" || 5105 test ! -s conftest.err 5106 } && test -s conftest$ac_exeext && 5107 $as_test_x conftest$ac_exeext; then 5108 ac_cv_func_setsockopt=yes 5109else 5110 echo "$as_me: failed program was:" >&5 5111sed 's/^/| /' conftest.$ac_ext >&5 5112 5113 ac_cv_func_setsockopt=no 5114fi 5115 5116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5117 conftest$ac_exeext conftest.$ac_ext 5118fi 5119{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5120echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5121if test $ac_cv_func_setsockopt = yes; then 5122 : 5123else 5124 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5125echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5126if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5127 echo $ECHO_N "(cached) $ECHO_C" >&6 5128else 5129 ac_check_lib_save_LIBS=$LIBS 5130LIBS="-lsocket $LIBS" 5131cat >conftest.$ac_ext <<_ACEOF 5132/* confdefs.h. */ 5133_ACEOF 5134cat confdefs.h >>conftest.$ac_ext 5135cat >>conftest.$ac_ext <<_ACEOF 5136/* end confdefs.h. */ 5137 5138/* Override any GCC internal prototype to avoid an error. 5139 Use char because int might match the return type of a GCC 5140 builtin and then its argument prototype would still apply. */ 5141#ifdef __cplusplus 5142extern "C" 5143#endif 5144char setsockopt (); 5145int 5146main () 5147{ 5148return setsockopt (); 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153rm -f conftest.$ac_objext conftest$ac_exeext 5154if { (ac_try="$ac_link" 5155case "(($ac_try" in 5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5157 *) ac_try_echo=$ac_try;; 5158esac 5159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5160 (eval "$ac_link") 2>conftest.er1 5161 ac_status=$? 5162 grep -v '^ *+' conftest.er1 >conftest.err 5163 rm -f conftest.er1 5164 cat conftest.err >&5 5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5166 (exit $ac_status); } && { 5167 test -z "$ac_c_werror_flag" || 5168 test ! -s conftest.err 5169 } && test -s conftest$ac_exeext && 5170 $as_test_x conftest$ac_exeext; then 5171 ac_cv_lib_socket_setsockopt=yes 5172else 5173 echo "$as_me: failed program was:" >&5 5174sed 's/^/| /' conftest.$ac_ext >&5 5175 5176 ac_cv_lib_socket_setsockopt=no 5177fi 5178 5179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5180 conftest$ac_exeext conftest.$ac_ext 5181LIBS=$ac_check_lib_save_LIBS 5182fi 5183{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5184echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5185if test $ac_cv_lib_socket_setsockopt = yes; then 5186 LIBS="$LIBS -lsocket" 5187else 5188 tcl_checkBoth=1 5189fi 5190 5191fi 5192 5193 fi 5194 if test "$tcl_checkBoth" = 1; then 5195 tk_oldLibs=$LIBS 5196 LIBS="$LIBS -lsocket -lnsl" 5197 { echo "$as_me:$LINENO: checking for accept" >&5 5198echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5199if test "${ac_cv_func_accept+set}" = set; then 5200 echo $ECHO_N "(cached) $ECHO_C" >&6 5201else 5202 cat >conftest.$ac_ext <<_ACEOF 5203/* confdefs.h. */ 5204_ACEOF 5205cat confdefs.h >>conftest.$ac_ext 5206cat >>conftest.$ac_ext <<_ACEOF 5207/* end confdefs.h. */ 5208/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5209 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5210#define accept innocuous_accept 5211 5212/* System header to define __stub macros and hopefully few prototypes, 5213 which can conflict with char accept (); below. 5214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5215 <limits.h> exists even on freestanding compilers. */ 5216 5217#ifdef __STDC__ 5218# include <limits.h> 5219#else 5220# include <assert.h> 5221#endif 5222 5223#undef accept 5224 5225/* Override any GCC internal prototype to avoid an error. 5226 Use char because int might match the return type of a GCC 5227 builtin and then its argument prototype would still apply. */ 5228#ifdef __cplusplus 5229extern "C" 5230#endif 5231char accept (); 5232/* The GNU C library defines this for functions which it implements 5233 to always fail with ENOSYS. Some functions are actually named 5234 something starting with __ and the normal name is an alias. */ 5235#if defined __stub_accept || defined __stub___accept 5236choke me 5237#endif 5238 5239int 5240main () 5241{ 5242return accept (); 5243 ; 5244 return 0; 5245} 5246_ACEOF 5247rm -f conftest.$ac_objext conftest$ac_exeext 5248if { (ac_try="$ac_link" 5249case "(($ac_try" in 5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5251 *) ac_try_echo=$ac_try;; 5252esac 5253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5254 (eval "$ac_link") 2>conftest.er1 5255 ac_status=$? 5256 grep -v '^ *+' conftest.er1 >conftest.err 5257 rm -f conftest.er1 5258 cat conftest.err >&5 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 (exit $ac_status); } && { 5261 test -z "$ac_c_werror_flag" || 5262 test ! -s conftest.err 5263 } && test -s conftest$ac_exeext && 5264 $as_test_x conftest$ac_exeext; then 5265 ac_cv_func_accept=yes 5266else 5267 echo "$as_me: failed program was:" >&5 5268sed 's/^/| /' conftest.$ac_ext >&5 5269 5270 ac_cv_func_accept=no 5271fi 5272 5273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5274 conftest$ac_exeext conftest.$ac_ext 5275fi 5276{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5277echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5278if test $ac_cv_func_accept = yes; then 5279 tcl_checkNsl=0 5280else 5281 LIBS=$tk_oldLibs 5282fi 5283 5284 fi 5285 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5286echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5287if test "${ac_cv_func_gethostbyname+set}" = set; then 5288 echo $ECHO_N "(cached) $ECHO_C" >&6 5289else 5290 cat >conftest.$ac_ext <<_ACEOF 5291/* confdefs.h. */ 5292_ACEOF 5293cat confdefs.h >>conftest.$ac_ext 5294cat >>conftest.$ac_ext <<_ACEOF 5295/* end confdefs.h. */ 5296/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5297 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5298#define gethostbyname innocuous_gethostbyname 5299 5300/* System header to define __stub macros and hopefully few prototypes, 5301 which can conflict with char gethostbyname (); below. 5302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5303 <limits.h> exists even on freestanding compilers. */ 5304 5305#ifdef __STDC__ 5306# include <limits.h> 5307#else 5308# include <assert.h> 5309#endif 5310 5311#undef gethostbyname 5312 5313/* Override any GCC internal prototype to avoid an error. 5314 Use char because int might match the return type of a GCC 5315 builtin and then its argument prototype would still apply. */ 5316#ifdef __cplusplus 5317extern "C" 5318#endif 5319char gethostbyname (); 5320/* The GNU C library defines this for functions which it implements 5321 to always fail with ENOSYS. Some functions are actually named 5322 something starting with __ and the normal name is an alias. */ 5323#if defined __stub_gethostbyname || defined __stub___gethostbyname 5324choke me 5325#endif 5326 5327int 5328main () 5329{ 5330return gethostbyname (); 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335rm -f conftest.$ac_objext conftest$ac_exeext 5336if { (ac_try="$ac_link" 5337case "(($ac_try" in 5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5339 *) ac_try_echo=$ac_try;; 5340esac 5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5342 (eval "$ac_link") 2>conftest.er1 5343 ac_status=$? 5344 grep -v '^ *+' conftest.er1 >conftest.err 5345 rm -f conftest.er1 5346 cat conftest.err >&5 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5348 (exit $ac_status); } && { 5349 test -z "$ac_c_werror_flag" || 5350 test ! -s conftest.err 5351 } && test -s conftest$ac_exeext && 5352 $as_test_x conftest$ac_exeext; then 5353 ac_cv_func_gethostbyname=yes 5354else 5355 echo "$as_me: failed program was:" >&5 5356sed 's/^/| /' conftest.$ac_ext >&5 5357 5358 ac_cv_func_gethostbyname=no 5359fi 5360 5361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5362 conftest$ac_exeext conftest.$ac_ext 5363fi 5364{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5365echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5366if test $ac_cv_func_gethostbyname = yes; then 5367 : 5368else 5369 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5370echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5371if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5372 echo $ECHO_N "(cached) $ECHO_C" >&6 5373else 5374 ac_check_lib_save_LIBS=$LIBS 5375LIBS="-lnsl $LIBS" 5376cat >conftest.$ac_ext <<_ACEOF 5377/* confdefs.h. */ 5378_ACEOF 5379cat confdefs.h >>conftest.$ac_ext 5380cat >>conftest.$ac_ext <<_ACEOF 5381/* end confdefs.h. */ 5382 5383/* Override any GCC internal prototype to avoid an error. 5384 Use char because int might match the return type of a GCC 5385 builtin and then its argument prototype would still apply. */ 5386#ifdef __cplusplus 5387extern "C" 5388#endif 5389char gethostbyname (); 5390int 5391main () 5392{ 5393return gethostbyname (); 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398rm -f conftest.$ac_objext conftest$ac_exeext 5399if { (ac_try="$ac_link" 5400case "(($ac_try" in 5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5402 *) ac_try_echo=$ac_try;; 5403esac 5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5405 (eval "$ac_link") 2>conftest.er1 5406 ac_status=$? 5407 grep -v '^ *+' conftest.er1 >conftest.err 5408 rm -f conftest.er1 5409 cat conftest.err >&5 5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5411 (exit $ac_status); } && { 5412 test -z "$ac_c_werror_flag" || 5413 test ! -s conftest.err 5414 } && test -s conftest$ac_exeext && 5415 $as_test_x conftest$ac_exeext; then 5416 ac_cv_lib_nsl_gethostbyname=yes 5417else 5418 echo "$as_me: failed program was:" >&5 5419sed 's/^/| /' conftest.$ac_ext >&5 5420 5421 ac_cv_lib_nsl_gethostbyname=no 5422fi 5423 5424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5425 conftest$ac_exeext conftest.$ac_ext 5426LIBS=$ac_check_lib_save_LIBS 5427fi 5428{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5429echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5430if test $ac_cv_lib_nsl_gethostbyname = yes; then 5431 LIBS="$LIBS -lnsl" 5432fi 5433 5434fi 5435 5436 5437 # TEA specific: Don't perform the eval of the libraries here because 5438 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5439 5440 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5441 5442 5443 5444 5445 { echo "$as_me:$LINENO: checking dirent.h" >&5 5446echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5447if test "${tcl_cv_dirent_h+set}" = set; then 5448 echo $ECHO_N "(cached) $ECHO_C" >&6 5449else 5450 5451 cat >conftest.$ac_ext <<_ACEOF 5452/* confdefs.h. */ 5453_ACEOF 5454cat confdefs.h >>conftest.$ac_ext 5455cat >>conftest.$ac_ext <<_ACEOF 5456/* end confdefs.h. */ 5457#include <sys/types.h> 5458#include <dirent.h> 5459int 5460main () 5461{ 5462 5463#ifndef _POSIX_SOURCE 5464# ifdef __Lynx__ 5465 /* 5466 * Generate compilation error to make the test fail: Lynx headers 5467 * are only valid if really in the POSIX environment. 5468 */ 5469 5470 missing_procedure(); 5471# endif 5472#endif 5473DIR *d; 5474struct dirent *entryPtr; 5475char *p; 5476d = opendir("foobar"); 5477entryPtr = readdir(d); 5478p = entryPtr->d_name; 5479closedir(d); 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485rm -f conftest.$ac_objext conftest$ac_exeext 5486if { (ac_try="$ac_link" 5487case "(($ac_try" in 5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5489 *) ac_try_echo=$ac_try;; 5490esac 5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5492 (eval "$ac_link") 2>conftest.er1 5493 ac_status=$? 5494 grep -v '^ *+' conftest.er1 >conftest.err 5495 rm -f conftest.er1 5496 cat conftest.err >&5 5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 (exit $ac_status); } && { 5499 test -z "$ac_c_werror_flag" || 5500 test ! -s conftest.err 5501 } && test -s conftest$ac_exeext && 5502 $as_test_x conftest$ac_exeext; then 5503 tcl_cv_dirent_h=yes 5504else 5505 echo "$as_me: failed program was:" >&5 5506sed 's/^/| /' conftest.$ac_ext >&5 5507 5508 tcl_cv_dirent_h=no 5509fi 5510 5511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5512 conftest$ac_exeext conftest.$ac_ext 5513fi 5514{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5515echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5516 5517 if test $tcl_cv_dirent_h = no; then 5518 5519cat >>confdefs.h <<\_ACEOF 5520#define NO_DIRENT_H 1 5521_ACEOF 5522 5523 fi 5524 5525 # TEA specific: 5526 if test "${ac_cv_header_errno_h+set}" = set; then 5527 { echo "$as_me:$LINENO: checking for errno.h" >&5 5528echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5529if test "${ac_cv_header_errno_h+set}" = set; then 5530 echo $ECHO_N "(cached) $ECHO_C" >&6 5531fi 5532{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5533echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5534else 5535 # Is the header compilable? 5536{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5537echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5538cat >conftest.$ac_ext <<_ACEOF 5539/* confdefs.h. */ 5540_ACEOF 5541cat confdefs.h >>conftest.$ac_ext 5542cat >>conftest.$ac_ext <<_ACEOF 5543/* end confdefs.h. */ 5544$ac_includes_default 5545#include <errno.h> 5546_ACEOF 5547rm -f conftest.$ac_objext 5548if { (ac_try="$ac_compile" 5549case "(($ac_try" in 5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5551 *) ac_try_echo=$ac_try;; 5552esac 5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5554 (eval "$ac_compile") 2>conftest.er1 5555 ac_status=$? 5556 grep -v '^ *+' conftest.er1 >conftest.err 5557 rm -f conftest.er1 5558 cat conftest.err >&5 5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5560 (exit $ac_status); } && { 5561 test -z "$ac_c_werror_flag" || 5562 test ! -s conftest.err 5563 } && test -s conftest.$ac_objext; then 5564 ac_header_compiler=yes 5565else 5566 echo "$as_me: failed program was:" >&5 5567sed 's/^/| /' conftest.$ac_ext >&5 5568 5569 ac_header_compiler=no 5570fi 5571 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5574echo "${ECHO_T}$ac_header_compiler" >&6; } 5575 5576# Is the header present? 5577{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5578echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5579cat >conftest.$ac_ext <<_ACEOF 5580/* confdefs.h. */ 5581_ACEOF 5582cat confdefs.h >>conftest.$ac_ext 5583cat >>conftest.$ac_ext <<_ACEOF 5584/* end confdefs.h. */ 5585#include <errno.h> 5586_ACEOF 5587if { (ac_try="$ac_cpp conftest.$ac_ext" 5588case "(($ac_try" in 5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5590 *) ac_try_echo=$ac_try;; 5591esac 5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5594 ac_status=$? 5595 grep -v '^ *+' conftest.er1 >conftest.err 5596 rm -f conftest.er1 5597 cat conftest.err >&5 5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5599 (exit $ac_status); } >/dev/null && { 5600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5601 test ! -s conftest.err 5602 }; then 5603 ac_header_preproc=yes 5604else 5605 echo "$as_me: failed program was:" >&5 5606sed 's/^/| /' conftest.$ac_ext >&5 5607 5608 ac_header_preproc=no 5609fi 5610 5611rm -f conftest.err conftest.$ac_ext 5612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5613echo "${ECHO_T}$ac_header_preproc" >&6; } 5614 5615# So? What about this header? 5616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5617 yes:no: ) 5618 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5619echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5620 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5621echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5622 ac_header_preproc=yes 5623 ;; 5624 no:yes:* ) 5625 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5626echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5627 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5628echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5629 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5630echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5631 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5632echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5633 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5634echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5635 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5636echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5637 5638 ;; 5639esac 5640{ echo "$as_me:$LINENO: checking for errno.h" >&5 5641echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5642if test "${ac_cv_header_errno_h+set}" = set; then 5643 echo $ECHO_N "(cached) $ECHO_C" >&6 5644else 5645 ac_cv_header_errno_h=$ac_header_preproc 5646fi 5647{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5648echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5649 5650fi 5651if test $ac_cv_header_errno_h = yes; then 5652 : 5653else 5654 5655cat >>confdefs.h <<\_ACEOF 5656#define NO_ERRNO_H 1 5657_ACEOF 5658 5659fi 5660 5661 5662 if test "${ac_cv_header_float_h+set}" = set; then 5663 { echo "$as_me:$LINENO: checking for float.h" >&5 5664echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5665if test "${ac_cv_header_float_h+set}" = set; then 5666 echo $ECHO_N "(cached) $ECHO_C" >&6 5667fi 5668{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5669echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5670else 5671 # Is the header compilable? 5672{ echo "$as_me:$LINENO: checking float.h usability" >&5 5673echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5674cat >conftest.$ac_ext <<_ACEOF 5675/* confdefs.h. */ 5676_ACEOF 5677cat confdefs.h >>conftest.$ac_ext 5678cat >>conftest.$ac_ext <<_ACEOF 5679/* end confdefs.h. */ 5680$ac_includes_default 5681#include <float.h> 5682_ACEOF 5683rm -f conftest.$ac_objext 5684if { (ac_try="$ac_compile" 5685case "(($ac_try" in 5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5687 *) ac_try_echo=$ac_try;; 5688esac 5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5690 (eval "$ac_compile") 2>conftest.er1 5691 ac_status=$? 5692 grep -v '^ *+' conftest.er1 >conftest.err 5693 rm -f conftest.er1 5694 cat conftest.err >&5 5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5696 (exit $ac_status); } && { 5697 test -z "$ac_c_werror_flag" || 5698 test ! -s conftest.err 5699 } && test -s conftest.$ac_objext; then 5700 ac_header_compiler=yes 5701else 5702 echo "$as_me: failed program was:" >&5 5703sed 's/^/| /' conftest.$ac_ext >&5 5704 5705 ac_header_compiler=no 5706fi 5707 5708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5710echo "${ECHO_T}$ac_header_compiler" >&6; } 5711 5712# Is the header present? 5713{ echo "$as_me:$LINENO: checking float.h presence" >&5 5714echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5715cat >conftest.$ac_ext <<_ACEOF 5716/* confdefs.h. */ 5717_ACEOF 5718cat confdefs.h >>conftest.$ac_ext 5719cat >>conftest.$ac_ext <<_ACEOF 5720/* end confdefs.h. */ 5721#include <float.h> 5722_ACEOF 5723if { (ac_try="$ac_cpp conftest.$ac_ext" 5724case "(($ac_try" in 5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5726 *) ac_try_echo=$ac_try;; 5727esac 5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5730 ac_status=$? 5731 grep -v '^ *+' conftest.er1 >conftest.err 5732 rm -f conftest.er1 5733 cat conftest.err >&5 5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5735 (exit $ac_status); } >/dev/null && { 5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5737 test ! -s conftest.err 5738 }; then 5739 ac_header_preproc=yes 5740else 5741 echo "$as_me: failed program was:" >&5 5742sed 's/^/| /' conftest.$ac_ext >&5 5743 5744 ac_header_preproc=no 5745fi 5746 5747rm -f conftest.err conftest.$ac_ext 5748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5749echo "${ECHO_T}$ac_header_preproc" >&6; } 5750 5751# So? What about this header? 5752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5753 yes:no: ) 5754 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5755echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5756 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5757echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5758 ac_header_preproc=yes 5759 ;; 5760 no:yes:* ) 5761 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5762echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5763 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5764echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5765 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5766echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5767 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5768echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5769 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5770echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5771 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5772echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5773 5774 ;; 5775esac 5776{ echo "$as_me:$LINENO: checking for float.h" >&5 5777echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5778if test "${ac_cv_header_float_h+set}" = set; then 5779 echo $ECHO_N "(cached) $ECHO_C" >&6 5780else 5781 ac_cv_header_float_h=$ac_header_preproc 5782fi 5783{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5784echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5785 5786fi 5787if test $ac_cv_header_float_h = yes; then 5788 : 5789else 5790 5791cat >>confdefs.h <<\_ACEOF 5792#define NO_FLOAT_H 1 5793_ACEOF 5794 5795fi 5796 5797 5798 if test "${ac_cv_header_values_h+set}" = set; then 5799 { echo "$as_me:$LINENO: checking for values.h" >&5 5800echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5801if test "${ac_cv_header_values_h+set}" = set; then 5802 echo $ECHO_N "(cached) $ECHO_C" >&6 5803fi 5804{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5805echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5806else 5807 # Is the header compilable? 5808{ echo "$as_me:$LINENO: checking values.h usability" >&5 5809echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5810cat >conftest.$ac_ext <<_ACEOF 5811/* confdefs.h. */ 5812_ACEOF 5813cat confdefs.h >>conftest.$ac_ext 5814cat >>conftest.$ac_ext <<_ACEOF 5815/* end confdefs.h. */ 5816$ac_includes_default 5817#include <values.h> 5818_ACEOF 5819rm -f conftest.$ac_objext 5820if { (ac_try="$ac_compile" 5821case "(($ac_try" in 5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5823 *) ac_try_echo=$ac_try;; 5824esac 5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5826 (eval "$ac_compile") 2>conftest.er1 5827 ac_status=$? 5828 grep -v '^ *+' conftest.er1 >conftest.err 5829 rm -f conftest.er1 5830 cat conftest.err >&5 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5832 (exit $ac_status); } && { 5833 test -z "$ac_c_werror_flag" || 5834 test ! -s conftest.err 5835 } && test -s conftest.$ac_objext; then 5836 ac_header_compiler=yes 5837else 5838 echo "$as_me: failed program was:" >&5 5839sed 's/^/| /' conftest.$ac_ext >&5 5840 5841 ac_header_compiler=no 5842fi 5843 5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5845{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5846echo "${ECHO_T}$ac_header_compiler" >&6; } 5847 5848# Is the header present? 5849{ echo "$as_me:$LINENO: checking values.h presence" >&5 5850echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5851cat >conftest.$ac_ext <<_ACEOF 5852/* confdefs.h. */ 5853_ACEOF 5854cat confdefs.h >>conftest.$ac_ext 5855cat >>conftest.$ac_ext <<_ACEOF 5856/* end confdefs.h. */ 5857#include <values.h> 5858_ACEOF 5859if { (ac_try="$ac_cpp conftest.$ac_ext" 5860case "(($ac_try" in 5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5862 *) ac_try_echo=$ac_try;; 5863esac 5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5866 ac_status=$? 5867 grep -v '^ *+' conftest.er1 >conftest.err 5868 rm -f conftest.er1 5869 cat conftest.err >&5 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); } >/dev/null && { 5872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5873 test ! -s conftest.err 5874 }; then 5875 ac_header_preproc=yes 5876else 5877 echo "$as_me: failed program was:" >&5 5878sed 's/^/| /' conftest.$ac_ext >&5 5879 5880 ac_header_preproc=no 5881fi 5882 5883rm -f conftest.err conftest.$ac_ext 5884{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5885echo "${ECHO_T}$ac_header_preproc" >&6; } 5886 5887# So? What about this header? 5888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5889 yes:no: ) 5890 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5891echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5892 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5893echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5894 ac_header_preproc=yes 5895 ;; 5896 no:yes:* ) 5897 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5898echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5899 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5900echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5901 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5902echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5903 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5904echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5905 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5906echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5907 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5908echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5909 5910 ;; 5911esac 5912{ echo "$as_me:$LINENO: checking for values.h" >&5 5913echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5914if test "${ac_cv_header_values_h+set}" = set; then 5915 echo $ECHO_N "(cached) $ECHO_C" >&6 5916else 5917 ac_cv_header_values_h=$ac_header_preproc 5918fi 5919{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5920echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5921 5922fi 5923if test $ac_cv_header_values_h = yes; then 5924 : 5925else 5926 5927cat >>confdefs.h <<\_ACEOF 5928#define NO_VALUES_H 1 5929_ACEOF 5930 5931fi 5932 5933 5934 if test "${ac_cv_header_limits_h+set}" = set; then 5935 { echo "$as_me:$LINENO: checking for limits.h" >&5 5936echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5937if test "${ac_cv_header_limits_h+set}" = set; then 5938 echo $ECHO_N "(cached) $ECHO_C" >&6 5939fi 5940{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5941echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5942else 5943 # Is the header compilable? 5944{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5945echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5946cat >conftest.$ac_ext <<_ACEOF 5947/* confdefs.h. */ 5948_ACEOF 5949cat confdefs.h >>conftest.$ac_ext 5950cat >>conftest.$ac_ext <<_ACEOF 5951/* end confdefs.h. */ 5952$ac_includes_default 5953#include <limits.h> 5954_ACEOF 5955rm -f conftest.$ac_objext 5956if { (ac_try="$ac_compile" 5957case "(($ac_try" in 5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5959 *) ac_try_echo=$ac_try;; 5960esac 5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5962 (eval "$ac_compile") 2>conftest.er1 5963 ac_status=$? 5964 grep -v '^ *+' conftest.er1 >conftest.err 5965 rm -f conftest.er1 5966 cat conftest.err >&5 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); } && { 5969 test -z "$ac_c_werror_flag" || 5970 test ! -s conftest.err 5971 } && test -s conftest.$ac_objext; then 5972 ac_header_compiler=yes 5973else 5974 echo "$as_me: failed program was:" >&5 5975sed 's/^/| /' conftest.$ac_ext >&5 5976 5977 ac_header_compiler=no 5978fi 5979 5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5981{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5982echo "${ECHO_T}$ac_header_compiler" >&6; } 5983 5984# Is the header present? 5985{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5986echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5987cat >conftest.$ac_ext <<_ACEOF 5988/* confdefs.h. */ 5989_ACEOF 5990cat confdefs.h >>conftest.$ac_ext 5991cat >>conftest.$ac_ext <<_ACEOF 5992/* end confdefs.h. */ 5993#include <limits.h> 5994_ACEOF 5995if { (ac_try="$ac_cpp conftest.$ac_ext" 5996case "(($ac_try" in 5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5998 *) ac_try_echo=$ac_try;; 5999esac 6000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6002 ac_status=$? 6003 grep -v '^ *+' conftest.er1 >conftest.err 6004 rm -f conftest.er1 6005 cat conftest.err >&5 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); } >/dev/null && { 6008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6009 test ! -s conftest.err 6010 }; then 6011 ac_header_preproc=yes 6012else 6013 echo "$as_me: failed program was:" >&5 6014sed 's/^/| /' conftest.$ac_ext >&5 6015 6016 ac_header_preproc=no 6017fi 6018 6019rm -f conftest.err conftest.$ac_ext 6020{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6021echo "${ECHO_T}$ac_header_preproc" >&6; } 6022 6023# So? What about this header? 6024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6025 yes:no: ) 6026 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6027echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6028 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6029echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6030 ac_header_preproc=yes 6031 ;; 6032 no:yes:* ) 6033 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6034echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6035 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6036echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6037 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6038echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6039 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6040echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6041 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6042echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6043 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6044echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6045 6046 ;; 6047esac 6048{ echo "$as_me:$LINENO: checking for limits.h" >&5 6049echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6050if test "${ac_cv_header_limits_h+set}" = set; then 6051 echo $ECHO_N "(cached) $ECHO_C" >&6 6052else 6053 ac_cv_header_limits_h=$ac_header_preproc 6054fi 6055{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6056echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6057 6058fi 6059if test $ac_cv_header_limits_h = yes; then 6060 6061cat >>confdefs.h <<\_ACEOF 6062#define HAVE_LIMITS_H 1 6063_ACEOF 6064 6065else 6066 6067cat >>confdefs.h <<\_ACEOF 6068#define NO_LIMITS_H 1 6069_ACEOF 6070 6071fi 6072 6073 6074 if test "${ac_cv_header_stdlib_h+set}" = set; then 6075 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6076echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6077if test "${ac_cv_header_stdlib_h+set}" = set; then 6078 echo $ECHO_N "(cached) $ECHO_C" >&6 6079fi 6080{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6081echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6082else 6083 # Is the header compilable? 6084{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6085echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6086cat >conftest.$ac_ext <<_ACEOF 6087/* confdefs.h. */ 6088_ACEOF 6089cat confdefs.h >>conftest.$ac_ext 6090cat >>conftest.$ac_ext <<_ACEOF 6091/* end confdefs.h. */ 6092$ac_includes_default 6093#include <stdlib.h> 6094_ACEOF 6095rm -f conftest.$ac_objext 6096if { (ac_try="$ac_compile" 6097case "(($ac_try" in 6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6099 *) ac_try_echo=$ac_try;; 6100esac 6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6102 (eval "$ac_compile") 2>conftest.er1 6103 ac_status=$? 6104 grep -v '^ *+' conftest.er1 >conftest.err 6105 rm -f conftest.er1 6106 cat conftest.err >&5 6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6108 (exit $ac_status); } && { 6109 test -z "$ac_c_werror_flag" || 6110 test ! -s conftest.err 6111 } && test -s conftest.$ac_objext; then 6112 ac_header_compiler=yes 6113else 6114 echo "$as_me: failed program was:" >&5 6115sed 's/^/| /' conftest.$ac_ext >&5 6116 6117 ac_header_compiler=no 6118fi 6119 6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6122echo "${ECHO_T}$ac_header_compiler" >&6; } 6123 6124# Is the header present? 6125{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6126echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6127cat >conftest.$ac_ext <<_ACEOF 6128/* confdefs.h. */ 6129_ACEOF 6130cat confdefs.h >>conftest.$ac_ext 6131cat >>conftest.$ac_ext <<_ACEOF 6132/* end confdefs.h. */ 6133#include <stdlib.h> 6134_ACEOF 6135if { (ac_try="$ac_cpp conftest.$ac_ext" 6136case "(($ac_try" in 6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6138 *) ac_try_echo=$ac_try;; 6139esac 6140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6142 ac_status=$? 6143 grep -v '^ *+' conftest.er1 >conftest.err 6144 rm -f conftest.er1 6145 cat conftest.err >&5 6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6147 (exit $ac_status); } >/dev/null && { 6148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6149 test ! -s conftest.err 6150 }; then 6151 ac_header_preproc=yes 6152else 6153 echo "$as_me: failed program was:" >&5 6154sed 's/^/| /' conftest.$ac_ext >&5 6155 6156 ac_header_preproc=no 6157fi 6158 6159rm -f conftest.err conftest.$ac_ext 6160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6161echo "${ECHO_T}$ac_header_preproc" >&6; } 6162 6163# So? What about this header? 6164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6165 yes:no: ) 6166 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6167echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6168 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6169echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6170 ac_header_preproc=yes 6171 ;; 6172 no:yes:* ) 6173 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6174echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6175 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6176echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6177 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6178echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6179 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6180echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6181 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6182echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6183 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6184echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6185 6186 ;; 6187esac 6188{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6189echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6190if test "${ac_cv_header_stdlib_h+set}" = set; then 6191 echo $ECHO_N "(cached) $ECHO_C" >&6 6192else 6193 ac_cv_header_stdlib_h=$ac_header_preproc 6194fi 6195{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6196echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6197 6198fi 6199if test $ac_cv_header_stdlib_h = yes; then 6200 tcl_ok=1 6201else 6202 tcl_ok=0 6203fi 6204 6205 6206 cat >conftest.$ac_ext <<_ACEOF 6207/* confdefs.h. */ 6208_ACEOF 6209cat confdefs.h >>conftest.$ac_ext 6210cat >>conftest.$ac_ext <<_ACEOF 6211/* end confdefs.h. */ 6212#include <stdlib.h> 6213 6214_ACEOF 6215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6216 $EGREP "strtol" >/dev/null 2>&1; then 6217 : 6218else 6219 tcl_ok=0 6220fi 6221rm -f -r conftest* 6222 6223 cat >conftest.$ac_ext <<_ACEOF 6224/* confdefs.h. */ 6225_ACEOF 6226cat confdefs.h >>conftest.$ac_ext 6227cat >>conftest.$ac_ext <<_ACEOF 6228/* end confdefs.h. */ 6229#include <stdlib.h> 6230 6231_ACEOF 6232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6233 $EGREP "strtoul" >/dev/null 2>&1; then 6234 : 6235else 6236 tcl_ok=0 6237fi 6238rm -f -r conftest* 6239 6240 cat >conftest.$ac_ext <<_ACEOF 6241/* confdefs.h. */ 6242_ACEOF 6243cat confdefs.h >>conftest.$ac_ext 6244cat >>conftest.$ac_ext <<_ACEOF 6245/* end confdefs.h. */ 6246#include <stdlib.h> 6247 6248_ACEOF 6249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6250 $EGREP "strtod" >/dev/null 2>&1; then 6251 : 6252else 6253 tcl_ok=0 6254fi 6255rm -f -r conftest* 6256 6257 if test $tcl_ok = 0; then 6258 6259cat >>confdefs.h <<\_ACEOF 6260#define NO_STDLIB_H 1 6261_ACEOF 6262 6263 fi 6264 if test "${ac_cv_header_string_h+set}" = set; then 6265 { echo "$as_me:$LINENO: checking for string.h" >&5 6266echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6267if test "${ac_cv_header_string_h+set}" = set; then 6268 echo $ECHO_N "(cached) $ECHO_C" >&6 6269fi 6270{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6271echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6272else 6273 # Is the header compilable? 6274{ echo "$as_me:$LINENO: checking string.h usability" >&5 6275echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6276cat >conftest.$ac_ext <<_ACEOF 6277/* confdefs.h. */ 6278_ACEOF 6279cat confdefs.h >>conftest.$ac_ext 6280cat >>conftest.$ac_ext <<_ACEOF 6281/* end confdefs.h. */ 6282$ac_includes_default 6283#include <string.h> 6284_ACEOF 6285rm -f conftest.$ac_objext 6286if { (ac_try="$ac_compile" 6287case "(($ac_try" in 6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6289 *) ac_try_echo=$ac_try;; 6290esac 6291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6292 (eval "$ac_compile") 2>conftest.er1 6293 ac_status=$? 6294 grep -v '^ *+' conftest.er1 >conftest.err 6295 rm -f conftest.er1 6296 cat conftest.err >&5 6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); } && { 6299 test -z "$ac_c_werror_flag" || 6300 test ! -s conftest.err 6301 } && test -s conftest.$ac_objext; then 6302 ac_header_compiler=yes 6303else 6304 echo "$as_me: failed program was:" >&5 6305sed 's/^/| /' conftest.$ac_ext >&5 6306 6307 ac_header_compiler=no 6308fi 6309 6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6312echo "${ECHO_T}$ac_header_compiler" >&6; } 6313 6314# Is the header present? 6315{ echo "$as_me:$LINENO: checking string.h presence" >&5 6316echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6317cat >conftest.$ac_ext <<_ACEOF 6318/* confdefs.h. */ 6319_ACEOF 6320cat confdefs.h >>conftest.$ac_ext 6321cat >>conftest.$ac_ext <<_ACEOF 6322/* end confdefs.h. */ 6323#include <string.h> 6324_ACEOF 6325if { (ac_try="$ac_cpp conftest.$ac_ext" 6326case "(($ac_try" in 6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6328 *) ac_try_echo=$ac_try;; 6329esac 6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6332 ac_status=$? 6333 grep -v '^ *+' conftest.er1 >conftest.err 6334 rm -f conftest.er1 6335 cat conftest.err >&5 6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6337 (exit $ac_status); } >/dev/null && { 6338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6339 test ! -s conftest.err 6340 }; then 6341 ac_header_preproc=yes 6342else 6343 echo "$as_me: failed program was:" >&5 6344sed 's/^/| /' conftest.$ac_ext >&5 6345 6346 ac_header_preproc=no 6347fi 6348 6349rm -f conftest.err conftest.$ac_ext 6350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6351echo "${ECHO_T}$ac_header_preproc" >&6; } 6352 6353# So? What about this header? 6354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6355 yes:no: ) 6356 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6357echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6358 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6359echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6360 ac_header_preproc=yes 6361 ;; 6362 no:yes:* ) 6363 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6364echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6365 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6366echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6367 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6368echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6369 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6370echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6371 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6372echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6373 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6374echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6375 6376 ;; 6377esac 6378{ echo "$as_me:$LINENO: checking for string.h" >&5 6379echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6380if test "${ac_cv_header_string_h+set}" = set; then 6381 echo $ECHO_N "(cached) $ECHO_C" >&6 6382else 6383 ac_cv_header_string_h=$ac_header_preproc 6384fi 6385{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6386echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6387 6388fi 6389if test $ac_cv_header_string_h = yes; then 6390 tcl_ok=1 6391else 6392 tcl_ok=0 6393fi 6394 6395 6396 cat >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#include <string.h> 6403 6404_ACEOF 6405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6406 $EGREP "strstr" >/dev/null 2>&1; then 6407 : 6408else 6409 tcl_ok=0 6410fi 6411rm -f -r conftest* 6412 6413 cat >conftest.$ac_ext <<_ACEOF 6414/* confdefs.h. */ 6415_ACEOF 6416cat confdefs.h >>conftest.$ac_ext 6417cat >>conftest.$ac_ext <<_ACEOF 6418/* end confdefs.h. */ 6419#include <string.h> 6420 6421_ACEOF 6422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6423 $EGREP "strerror" >/dev/null 2>&1; then 6424 : 6425else 6426 tcl_ok=0 6427fi 6428rm -f -r conftest* 6429 6430 6431 # See also memmove check below for a place where NO_STRING_H can be 6432 # set and why. 6433 6434 if test $tcl_ok = 0; then 6435 6436cat >>confdefs.h <<\_ACEOF 6437#define NO_STRING_H 1 6438_ACEOF 6439 6440 fi 6441 6442 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6443 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6444echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6445if test "${ac_cv_header_sys_wait_h+set}" = set; then 6446 echo $ECHO_N "(cached) $ECHO_C" >&6 6447fi 6448{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6449echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6450else 6451 # Is the header compilable? 6452{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6453echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6454cat >conftest.$ac_ext <<_ACEOF 6455/* confdefs.h. */ 6456_ACEOF 6457cat confdefs.h >>conftest.$ac_ext 6458cat >>conftest.$ac_ext <<_ACEOF 6459/* end confdefs.h. */ 6460$ac_includes_default 6461#include <sys/wait.h> 6462_ACEOF 6463rm -f conftest.$ac_objext 6464if { (ac_try="$ac_compile" 6465case "(($ac_try" in 6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6467 *) ac_try_echo=$ac_try;; 6468esac 6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6470 (eval "$ac_compile") 2>conftest.er1 6471 ac_status=$? 6472 grep -v '^ *+' conftest.er1 >conftest.err 6473 rm -f conftest.er1 6474 cat conftest.err >&5 6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6476 (exit $ac_status); } && { 6477 test -z "$ac_c_werror_flag" || 6478 test ! -s conftest.err 6479 } && test -s conftest.$ac_objext; then 6480 ac_header_compiler=yes 6481else 6482 echo "$as_me: failed program was:" >&5 6483sed 's/^/| /' conftest.$ac_ext >&5 6484 6485 ac_header_compiler=no 6486fi 6487 6488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6489{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6490echo "${ECHO_T}$ac_header_compiler" >&6; } 6491 6492# Is the header present? 6493{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6494echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6495cat >conftest.$ac_ext <<_ACEOF 6496/* confdefs.h. */ 6497_ACEOF 6498cat confdefs.h >>conftest.$ac_ext 6499cat >>conftest.$ac_ext <<_ACEOF 6500/* end confdefs.h. */ 6501#include <sys/wait.h> 6502_ACEOF 6503if { (ac_try="$ac_cpp conftest.$ac_ext" 6504case "(($ac_try" in 6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6506 *) ac_try_echo=$ac_try;; 6507esac 6508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6510 ac_status=$? 6511 grep -v '^ *+' conftest.er1 >conftest.err 6512 rm -f conftest.er1 6513 cat conftest.err >&5 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6515 (exit $ac_status); } >/dev/null && { 6516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6517 test ! -s conftest.err 6518 }; then 6519 ac_header_preproc=yes 6520else 6521 echo "$as_me: failed program was:" >&5 6522sed 's/^/| /' conftest.$ac_ext >&5 6523 6524 ac_header_preproc=no 6525fi 6526 6527rm -f conftest.err conftest.$ac_ext 6528{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6529echo "${ECHO_T}$ac_header_preproc" >&6; } 6530 6531# So? What about this header? 6532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6533 yes:no: ) 6534 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6535echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6536 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6537echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6538 ac_header_preproc=yes 6539 ;; 6540 no:yes:* ) 6541 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6542echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6543 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6544echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6545 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6546echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6547 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6548echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6549 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6550echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6551 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6552echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6553 6554 ;; 6555esac 6556{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6557echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6558if test "${ac_cv_header_sys_wait_h+set}" = set; then 6559 echo $ECHO_N "(cached) $ECHO_C" >&6 6560else 6561 ac_cv_header_sys_wait_h=$ac_header_preproc 6562fi 6563{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6564echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6565 6566fi 6567if test $ac_cv_header_sys_wait_h = yes; then 6568 : 6569else 6570 6571cat >>confdefs.h <<\_ACEOF 6572#define NO_SYS_WAIT_H 1 6573_ACEOF 6574 6575fi 6576 6577 6578 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6579 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6580echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6581if test "${ac_cv_header_dlfcn_h+set}" = set; then 6582 echo $ECHO_N "(cached) $ECHO_C" >&6 6583fi 6584{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6585echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6586else 6587 # Is the header compilable? 6588{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6589echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6590cat >conftest.$ac_ext <<_ACEOF 6591/* confdefs.h. */ 6592_ACEOF 6593cat confdefs.h >>conftest.$ac_ext 6594cat >>conftest.$ac_ext <<_ACEOF 6595/* end confdefs.h. */ 6596$ac_includes_default 6597#include <dlfcn.h> 6598_ACEOF 6599rm -f conftest.$ac_objext 6600if { (ac_try="$ac_compile" 6601case "(($ac_try" in 6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6603 *) ac_try_echo=$ac_try;; 6604esac 6605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6606 (eval "$ac_compile") 2>conftest.er1 6607 ac_status=$? 6608 grep -v '^ *+' conftest.er1 >conftest.err 6609 rm -f conftest.er1 6610 cat conftest.err >&5 6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6612 (exit $ac_status); } && { 6613 test -z "$ac_c_werror_flag" || 6614 test ! -s conftest.err 6615 } && test -s conftest.$ac_objext; then 6616 ac_header_compiler=yes 6617else 6618 echo "$as_me: failed program was:" >&5 6619sed 's/^/| /' conftest.$ac_ext >&5 6620 6621 ac_header_compiler=no 6622fi 6623 6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6626echo "${ECHO_T}$ac_header_compiler" >&6; } 6627 6628# Is the header present? 6629{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6630echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6631cat >conftest.$ac_ext <<_ACEOF 6632/* confdefs.h. */ 6633_ACEOF 6634cat confdefs.h >>conftest.$ac_ext 6635cat >>conftest.$ac_ext <<_ACEOF 6636/* end confdefs.h. */ 6637#include <dlfcn.h> 6638_ACEOF 6639if { (ac_try="$ac_cpp conftest.$ac_ext" 6640case "(($ac_try" in 6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6642 *) ac_try_echo=$ac_try;; 6643esac 6644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6646 ac_status=$? 6647 grep -v '^ *+' conftest.er1 >conftest.err 6648 rm -f conftest.er1 6649 cat conftest.err >&5 6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6651 (exit $ac_status); } >/dev/null && { 6652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6653 test ! -s conftest.err 6654 }; then 6655 ac_header_preproc=yes 6656else 6657 echo "$as_me: failed program was:" >&5 6658sed 's/^/| /' conftest.$ac_ext >&5 6659 6660 ac_header_preproc=no 6661fi 6662 6663rm -f conftest.err conftest.$ac_ext 6664{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6665echo "${ECHO_T}$ac_header_preproc" >&6; } 6666 6667# So? What about this header? 6668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6669 yes:no: ) 6670 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6671echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6672 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6673echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6674 ac_header_preproc=yes 6675 ;; 6676 no:yes:* ) 6677 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6678echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6679 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6680echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6681 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6682echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6683 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6684echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6685 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6686echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6687 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6688echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6689 6690 ;; 6691esac 6692{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6693echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6694if test "${ac_cv_header_dlfcn_h+set}" = set; then 6695 echo $ECHO_N "(cached) $ECHO_C" >&6 6696else 6697 ac_cv_header_dlfcn_h=$ac_header_preproc 6698fi 6699{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6700echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6701 6702fi 6703if test $ac_cv_header_dlfcn_h = yes; then 6704 : 6705else 6706 6707cat >>confdefs.h <<\_ACEOF 6708#define NO_DLFCN_H 1 6709_ACEOF 6710 6711fi 6712 6713 6714 6715 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6716 6717for ac_header in sys/param.h 6718do 6719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6721 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6724 echo $ECHO_N "(cached) $ECHO_C" >&6 6725fi 6726ac_res=`eval echo '${'$as_ac_Header'}'` 6727 { echo "$as_me:$LINENO: result: $ac_res" >&5 6728echo "${ECHO_T}$ac_res" >&6; } 6729else 6730 # Is the header compilable? 6731{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6733cat >conftest.$ac_ext <<_ACEOF 6734/* confdefs.h. */ 6735_ACEOF 6736cat confdefs.h >>conftest.$ac_ext 6737cat >>conftest.$ac_ext <<_ACEOF 6738/* end confdefs.h. */ 6739$ac_includes_default 6740#include <$ac_header> 6741_ACEOF 6742rm -f conftest.$ac_objext 6743if { (ac_try="$ac_compile" 6744case "(($ac_try" in 6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6746 *) ac_try_echo=$ac_try;; 6747esac 6748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6749 (eval "$ac_compile") 2>conftest.er1 6750 ac_status=$? 6751 grep -v '^ *+' conftest.er1 >conftest.err 6752 rm -f conftest.er1 6753 cat conftest.err >&5 6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); } && { 6756 test -z "$ac_c_werror_flag" || 6757 test ! -s conftest.err 6758 } && test -s conftest.$ac_objext; then 6759 ac_header_compiler=yes 6760else 6761 echo "$as_me: failed program was:" >&5 6762sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 ac_header_compiler=no 6765fi 6766 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6769echo "${ECHO_T}$ac_header_compiler" >&6; } 6770 6771# Is the header present? 6772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6774cat >conftest.$ac_ext <<_ACEOF 6775/* confdefs.h. */ 6776_ACEOF 6777cat confdefs.h >>conftest.$ac_ext 6778cat >>conftest.$ac_ext <<_ACEOF 6779/* end confdefs.h. */ 6780#include <$ac_header> 6781_ACEOF 6782if { (ac_try="$ac_cpp conftest.$ac_ext" 6783case "(($ac_try" in 6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6785 *) ac_try_echo=$ac_try;; 6786esac 6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6789 ac_status=$? 6790 grep -v '^ *+' conftest.er1 >conftest.err 6791 rm -f conftest.er1 6792 cat conftest.err >&5 6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6794 (exit $ac_status); } >/dev/null && { 6795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6796 test ! -s conftest.err 6797 }; then 6798 ac_header_preproc=yes 6799else 6800 echo "$as_me: failed program was:" >&5 6801sed 's/^/| /' conftest.$ac_ext >&5 6802 6803 ac_header_preproc=no 6804fi 6805 6806rm -f conftest.err conftest.$ac_ext 6807{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6808echo "${ECHO_T}$ac_header_preproc" >&6; } 6809 6810# So? What about this header? 6811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6812 yes:no: ) 6813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6817 ac_header_preproc=yes 6818 ;; 6819 no:yes:* ) 6820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6832 6833 ;; 6834esac 6835{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6838 echo $ECHO_N "(cached) $ECHO_C" >&6 6839else 6840 eval "$as_ac_Header=\$ac_header_preproc" 6841fi 6842ac_res=`eval echo '${'$as_ac_Header'}'` 6843 { echo "$as_me:$LINENO: result: $ac_res" >&5 6844echo "${ECHO_T}$ac_res" >&6; } 6845 6846fi 6847if test `eval echo '${'$as_ac_Header'}'` = yes; then 6848 cat >>confdefs.h <<_ACEOF 6849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6850_ACEOF 6851 6852fi 6853 6854done 6855 6856 6857 # Let the user call this, because if it triggers, they will 6858 # need a compat/strtod.c that is correct. Users can also 6859 # use Tcl_GetDouble(FromObj) instead. 6860 #TEA_BUGGY_STRTOD 6861 fi 6862 6863 6864#----------------------------------------------------------------------- 6865# __CHANGE__ 6866# Specify the C source files to compile in TEA_ADD_SOURCES, 6867# public headers that need to be installed in TEA_ADD_HEADERS, 6868# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6869# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6870# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6871# and PKG_TCL_SOURCES. 6872#----------------------------------------------------------------------- 6873 6874 6875 vars="tkTable.c tkTableWin.c tkTableTag.c tkTableEdit.c 6876 tkTableCell.c tkTableCellSort.c tkTableCmds.c tkTableUtil.c" 6877 for i in $vars; do 6878 case $i in 6879 \$*) 6880 # allow $-var names 6881 PKG_SOURCES="$PKG_SOURCES $i" 6882 PKG_OBJECTS="$PKG_OBJECTS $i" 6883 ;; 6884 *) 6885 # check for existence - allows for generic/win/unix VPATH 6886 # To add more dirs here (like 'src'), you have to update VPATH 6887 # in Makefile.in as well 6888 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6889 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6890 -a ! -f "${srcdir}/macosx/$i" \ 6891 ; then 6892 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6893echo "$as_me: error: could not find source file '$i'" >&2;} 6894 { (exit 1); exit 1; }; } 6895 fi 6896 PKG_SOURCES="$PKG_SOURCES $i" 6897 # this assumes it is in a VPATH dir 6898 i=`basename $i` 6899 # handle user calling this before or after TEA_SETUP_COMPILER 6900 if test x"${OBJEXT}" != x ; then 6901 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6902 else 6903 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6904 fi 6905 PKG_OBJECTS="$PKG_OBJECTS $j" 6906 ;; 6907 esac 6908 done 6909 6910 6911 6912# PostScript is on the drawing board 6913#TEA_ADD_SOURCES([tkTablePs.c]) 6914# This header isn't really meant for distribution 6915#TEA_ADD_HEADERS([generic/tkTable.h]) 6916 6917 vars="-I. -I\"`${CYGPATH} ${srcdir}/generic`\"" 6918 for i in $vars; do 6919 PKG_INCLUDES="$PKG_INCLUDES $i" 6920 done 6921 6922 6923 6924 PKG_CFLAGS="$PKG_CFLAGS " 6925 6926 6927 6928 vars="" 6929 for i in $vars; do 6930 # check for existence - allows for generic/win/unix VPATH 6931 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6932 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6933 -a ! -f "${srcdir}/macosx/$i" \ 6934 ; then 6935 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6936echo "$as_me: error: could not find stub source file '$i'" >&2;} 6937 { (exit 1); exit 1; }; } 6938 fi 6939 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6940 # this assumes it is in a VPATH dir 6941 i=`basename $i` 6942 # handle user calling this before or after TEA_SETUP_COMPILER 6943 if test x"${OBJEXT}" != x ; then 6944 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6945 else 6946 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6947 fi 6948 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6949 done 6950 6951 6952 6953 6954 vars="library/tkTable.tcl library/tktable.py" 6955 for i in $vars; do 6956 # check for existence, be strict because it is installed 6957 if test ! -f "${srcdir}/$i" ; then 6958 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6959echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6960 { (exit 1); exit 1; }; } 6961 fi 6962 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6963 done 6964 6965 6966 6967#-------------------------------------------------------------------- 6968# __CHANGE__ 6969# Choose which headers you need. Extension authors should try very 6970# hard to only rely on the Tcl public header files. Internal headers 6971# contain private data structures and are subject to change without 6972# notice. 6973# This MUST be called after TEA_PATH_TCLCONFIG/TEA_LOAD_TCLCONFIG 6974#-------------------------------------------------------------------- 6975 6976 6977 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6978echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6979 6980 6981# Check whether --with-tclinclude was given. 6982if test "${with_tclinclude+set}" = set; then 6983 withval=$with_tclinclude; with_tclinclude=${withval} 6984fi 6985 6986 6987 if test "${ac_cv_c_tclh+set}" = set; then 6988 echo $ECHO_N "(cached) $ECHO_C" >&6 6989else 6990 6991 # Use the value from --with-tclinclude, if it was given 6992 6993 if test x"${with_tclinclude}" != x ; then 6994 if test -f "${with_tclinclude}/tcl.h" ; then 6995 ac_cv_c_tclh=${with_tclinclude} 6996 else 6997 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6998echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6999 { (exit 1); exit 1; }; } 7000 fi 7001 else 7002 list="" 7003 if test "`uname -s`" = "Darwin"; then 7004 # If Tcl was built as a framework, attempt to use 7005 # the framework's Headers directory 7006 case ${TCL_DEFS} in 7007 *TCL_FRAMEWORK*) 7008 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7009 ;; 7010 esac 7011 fi 7012 7013 # Look in the source dir only if Tcl is not installed, 7014 # and in that situation, look there before installed locations. 7015 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7016 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7017 fi 7018 7019 # Check order: pkg --prefix location, Tcl's --prefix location, 7020 # relative to directory of tclConfig.sh. 7021 7022 eval "temp_includedir=${includedir}" 7023 list="$list \ 7024 `ls -d ${temp_includedir} 2>/dev/null` \ 7025 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7026 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7027 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7028 list="$list /usr/local/include /usr/include" 7029 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7030 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7031 list="$list `ls -d ${d} 2>/dev/null`" 7032 fi 7033 fi 7034 for i in $list ; do 7035 if test -f "$i/tcl.h" ; then 7036 ac_cv_c_tclh=$i 7037 break 7038 fi 7039 done 7040 fi 7041 7042fi 7043 7044 7045 # Print a message based on how we determined the include path 7046 7047 if test x"${ac_cv_c_tclh}" = x ; then 7048 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7049echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7050 { (exit 1); exit 1; }; } 7051 else 7052 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7053echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7054 fi 7055 7056 # Convert to a native path and substitute into the output files. 7057 7058 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7059 7060 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7061 7062 7063 7064 7065 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7066echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7067 7068 7069# Check whether --with-tkinclude was given. 7070if test "${with_tkinclude+set}" = set; then 7071 withval=$with_tkinclude; with_tkinclude=${withval} 7072fi 7073 7074 7075 if test "${ac_cv_c_tkh+set}" = set; then 7076 echo $ECHO_N "(cached) $ECHO_C" >&6 7077else 7078 7079 # Use the value from --with-tkinclude, if it was given 7080 7081 if test x"${with_tkinclude}" != x ; then 7082 if test -f "${with_tkinclude}/tk.h" ; then 7083 ac_cv_c_tkh=${with_tkinclude} 7084 else 7085 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7086echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7087 { (exit 1); exit 1; }; } 7088 fi 7089 else 7090 list="" 7091 if test "`uname -s`" = "Darwin"; then 7092 # If Tk was built as a framework, attempt to use 7093 # the framework's Headers directory. 7094 case ${TK_DEFS} in 7095 *TK_FRAMEWORK*) 7096 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7097 ;; 7098 esac 7099 fi 7100 7101 # Look in the source dir only if Tk is not installed, 7102 # and in that situation, look there before installed locations. 7103 if test -f "${TK_BIN_DIR}/Makefile" ; then 7104 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7105 fi 7106 7107 # Check order: pkg --prefix location, Tk's --prefix location, 7108 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7109 # relative to directory of tclConfig.sh. 7110 7111 eval "temp_includedir=${includedir}" 7112 list="$list \ 7113 `ls -d ${temp_includedir} 2>/dev/null` \ 7114 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7115 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7116 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7117 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7118 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7119 list="$list /usr/local/include /usr/include" 7120 if test x"${TK_INCLUDE_SPEC}" != x ; then 7121 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7122 list="$list `ls -d ${d} 2>/dev/null`" 7123 fi 7124 fi 7125 for i in $list ; do 7126 if test -f "$i/tk.h" ; then 7127 ac_cv_c_tkh=$i 7128 break 7129 fi 7130 done 7131 fi 7132 7133fi 7134 7135 7136 # Print a message based on how we determined the include path 7137 7138 if test x"${ac_cv_c_tkh}" = x ; then 7139 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7140echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7141 { (exit 1); exit 1; }; } 7142 else 7143 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7144echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7145 fi 7146 7147 # Convert to a native path and substitute into the output files. 7148 7149 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7150 7151 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7152 7153 7154 7155 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7156 # On Windows and Aqua, we need the X compat headers 7157 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7158echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7159 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7160 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7161 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7162 7163 fi 7164 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7165echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7166 fi 7167 7168#TEA_PRIVATE_TCL_HEADERS 7169#TEA_PRIVATE_TK_HEADERS 7170 7171#-------------------------------------------------------------------- 7172# For Unix/Tk builds, make sure that the X libraries/headers are found. 7173#-------------------------------------------------------------------- 7174 7175 7176 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 7177 7178 { echo "$as_me:$LINENO: checking for X" >&5 7179echo $ECHO_N "checking for X... $ECHO_C" >&6; } 7180 7181 7182# Check whether --with-x was given. 7183if test "${with_x+set}" = set; then 7184 withval=$with_x; 7185fi 7186 7187# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7188if test "x$with_x" = xno; then 7189 # The user explicitly disabled X. 7190 have_x=disabled 7191else 7192 case $x_includes,$x_libraries in #( 7193 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 7194echo "$as_me: error: Cannot use X directory names containing '" >&2;} 7195 { (exit 1); exit 1; }; };; #( 7196 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 7197 echo $ECHO_N "(cached) $ECHO_C" >&6 7198else 7199 # One or both of the vars are not set, and there is no cached value. 7200ac_x_includes=no ac_x_libraries=no 7201rm -f -r conftest.dir 7202if mkdir conftest.dir; then 7203 cd conftest.dir 7204 cat >Imakefile <<'_ACEOF' 7205incroot: 7206 @echo incroot='${INCROOT}' 7207usrlibdir: 7208 @echo usrlibdir='${USRLIBDIR}' 7209libdir: 7210 @echo libdir='${LIBDIR}' 7211_ACEOF 7212 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7214 for ac_var in incroot usrlibdir libdir; do 7215 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7216 done 7217 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7218 for ac_extension in a so sl dylib la dll; do 7219 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7220 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7221 ac_im_usrlibdir=$ac_im_libdir; break 7222 fi 7223 done 7224 # Screen out bogus values from the imake configuration. They are 7225 # bogus both because they are the default anyway, and because 7226 # using them would break gcc on systems where it needs fixed includes. 7227 case $ac_im_incroot in 7228 /usr/include) ac_x_includes= ;; 7229 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7230 esac 7231 case $ac_im_usrlibdir in 7232 /usr/lib | /lib) ;; 7233 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7234 esac 7235 fi 7236 cd .. 7237 rm -f -r conftest.dir 7238fi 7239 7240# Standard set of common directories for X headers. 7241# Check X11 before X11Rn because it is often a symlink to the current release. 7242ac_x_header_dirs=' 7243/usr/X11/include 7244/usr/X11R6/include 7245/usr/X11R5/include 7246/usr/X11R4/include 7247 7248/usr/include/X11 7249/usr/include/X11R6 7250/usr/include/X11R5 7251/usr/include/X11R4 7252 7253/usr/local/X11/include 7254/usr/local/X11R6/include 7255/usr/local/X11R5/include 7256/usr/local/X11R4/include 7257 7258/usr/local/include/X11 7259/usr/local/include/X11R6 7260/usr/local/include/X11R5 7261/usr/local/include/X11R4 7262 7263/usr/X386/include 7264/usr/x386/include 7265/usr/XFree86/include/X11 7266 7267/usr/include 7268/usr/local/include 7269/usr/unsupported/include 7270/usr/athena/include 7271/usr/local/x11r5/include 7272/usr/lpp/Xamples/include 7273 7274/usr/openwin/include 7275/usr/openwin/share/include' 7276 7277if test "$ac_x_includes" = no; then 7278 # Guess where to find include files, by looking for Xlib.h. 7279 # First, try using that file with no special directory specified. 7280 cat >conftest.$ac_ext <<_ACEOF 7281/* confdefs.h. */ 7282_ACEOF 7283cat confdefs.h >>conftest.$ac_ext 7284cat >>conftest.$ac_ext <<_ACEOF 7285/* end confdefs.h. */ 7286#include <X11/Xlib.h> 7287_ACEOF 7288if { (ac_try="$ac_cpp conftest.$ac_ext" 7289case "(($ac_try" in 7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7291 *) ac_try_echo=$ac_try;; 7292esac 7293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7295 ac_status=$? 7296 grep -v '^ *+' conftest.er1 >conftest.err 7297 rm -f conftest.er1 7298 cat conftest.err >&5 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); } >/dev/null && { 7301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7302 test ! -s conftest.err 7303 }; then 7304 # We can compile using X headers with no special include directory. 7305ac_x_includes= 7306else 7307 echo "$as_me: failed program was:" >&5 7308sed 's/^/| /' conftest.$ac_ext >&5 7309 7310 for ac_dir in $ac_x_header_dirs; do 7311 if test -r "$ac_dir/X11/Xlib.h"; then 7312 ac_x_includes=$ac_dir 7313 break 7314 fi 7315done 7316fi 7317 7318rm -f conftest.err conftest.$ac_ext 7319fi # $ac_x_includes = no 7320 7321if test "$ac_x_libraries" = no; then 7322 # Check for the libraries. 7323 # See if we find them without any special options. 7324 # Don't add to $LIBS permanently. 7325 ac_save_LIBS=$LIBS 7326 LIBS="-lX11 $LIBS" 7327 cat >conftest.$ac_ext <<_ACEOF 7328/* confdefs.h. */ 7329_ACEOF 7330cat confdefs.h >>conftest.$ac_ext 7331cat >>conftest.$ac_ext <<_ACEOF 7332/* end confdefs.h. */ 7333#include <X11/Xlib.h> 7334int 7335main () 7336{ 7337XrmInitialize () 7338 ; 7339 return 0; 7340} 7341_ACEOF 7342rm -f conftest.$ac_objext conftest$ac_exeext 7343if { (ac_try="$ac_link" 7344case "(($ac_try" in 7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7346 *) ac_try_echo=$ac_try;; 7347esac 7348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7349 (eval "$ac_link") 2>conftest.er1 7350 ac_status=$? 7351 grep -v '^ *+' conftest.er1 >conftest.err 7352 rm -f conftest.er1 7353 cat conftest.err >&5 7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7355 (exit $ac_status); } && { 7356 test -z "$ac_c_werror_flag" || 7357 test ! -s conftest.err 7358 } && test -s conftest$ac_exeext && 7359 $as_test_x conftest$ac_exeext; then 7360 LIBS=$ac_save_LIBS 7361# We can link X programs with no special library path. 7362ac_x_libraries= 7363else 7364 echo "$as_me: failed program was:" >&5 7365sed 's/^/| /' conftest.$ac_ext >&5 7366 7367 LIBS=$ac_save_LIBS 7368for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7369do 7370 # Don't even attempt the hair of trying to link an X program! 7371 for ac_extension in a so sl dylib la dll; do 7372 if test -r "$ac_dir/libX11.$ac_extension"; then 7373 ac_x_libraries=$ac_dir 7374 break 2 7375 fi 7376 done 7377done 7378fi 7379 7380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7381 conftest$ac_exeext conftest.$ac_ext 7382fi # $ac_x_libraries = no 7383 7384case $ac_x_includes,$ac_x_libraries in #( 7385 no,* | *,no | *\'*) 7386 # Didn't find X, or a directory has "'" in its name. 7387 ac_cv_have_x="have_x=no";; #( 7388 *) 7389 # Record where we found X for the cache. 7390 ac_cv_have_x="have_x=yes\ 7391 ac_x_includes='$ac_x_includes'\ 7392 ac_x_libraries='$ac_x_libraries'" 7393esac 7394fi 7395;; #( 7396 *) have_x=yes;; 7397 esac 7398 eval "$ac_cv_have_x" 7399fi # $with_x != no 7400 7401if test "$have_x" != yes; then 7402 { echo "$as_me:$LINENO: result: $have_x" >&5 7403echo "${ECHO_T}$have_x" >&6; } 7404 no_x=yes 7405else 7406 # If each of the values was on the command line, it overrides each guess. 7407 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7408 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7409 # Update the cache value to reflect the command line values. 7410 ac_cv_have_x="have_x=yes\ 7411 ac_x_includes='$x_includes'\ 7412 ac_x_libraries='$x_libraries'" 7413 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 7414echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 7415fi 7416 7417 not_really_there="" 7418 if test "$no_x" = ""; then 7419 if test "$x_includes" = ""; then 7420 cat >conftest.$ac_ext <<_ACEOF 7421/* confdefs.h. */ 7422_ACEOF 7423cat confdefs.h >>conftest.$ac_ext 7424cat >>conftest.$ac_ext <<_ACEOF 7425/* end confdefs.h. */ 7426#include <X11/XIntrinsic.h> 7427_ACEOF 7428if { (ac_try="$ac_cpp conftest.$ac_ext" 7429case "(($ac_try" in 7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7431 *) ac_try_echo=$ac_try;; 7432esac 7433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7435 ac_status=$? 7436 grep -v '^ *+' conftest.er1 >conftest.err 7437 rm -f conftest.er1 7438 cat conftest.err >&5 7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7440 (exit $ac_status); } >/dev/null && { 7441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7442 test ! -s conftest.err 7443 }; then 7444 : 7445else 7446 echo "$as_me: failed program was:" >&5 7447sed 's/^/| /' conftest.$ac_ext >&5 7448 7449 not_really_there="yes" 7450fi 7451 7452rm -f conftest.err conftest.$ac_ext 7453 else 7454 if test ! -r $x_includes/X11/Intrinsic.h; then 7455 not_really_there="yes" 7456 fi 7457 fi 7458 fi 7459 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 7460 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7461echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7462 found_xincludes="no" 7463 cat >conftest.$ac_ext <<_ACEOF 7464/* confdefs.h. */ 7465_ACEOF 7466cat confdefs.h >>conftest.$ac_ext 7467cat >>conftest.$ac_ext <<_ACEOF 7468/* end confdefs.h. */ 7469#include <X11/Intrinsic.h> 7470_ACEOF 7471if { (ac_try="$ac_cpp conftest.$ac_ext" 7472case "(($ac_try" in 7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7474 *) ac_try_echo=$ac_try;; 7475esac 7476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7478 ac_status=$? 7479 grep -v '^ *+' conftest.er1 >conftest.err 7480 rm -f conftest.er1 7481 cat conftest.err >&5 7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7483 (exit $ac_status); } >/dev/null && { 7484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7485 test ! -s conftest.err 7486 }; then 7487 found_xincludes="yes" 7488else 7489 echo "$as_me: failed program was:" >&5 7490sed 's/^/| /' conftest.$ac_ext >&5 7491 7492 found_xincludes="no" 7493fi 7494 7495rm -f conftest.err conftest.$ac_ext 7496 if test "$found_xincludes" = "no"; then 7497 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" 7498 for i in $dirs ; do 7499 if test -r $i/X11/Intrinsic.h; then 7500 { echo "$as_me:$LINENO: result: $i" >&5 7501echo "${ECHO_T}$i" >&6; } 7502 XINCLUDES=" -I$i" 7503 found_xincludes="yes" 7504 break 7505 fi 7506 done 7507 fi 7508 else 7509 if test "$x_includes" != ""; then 7510 XINCLUDES="-I$x_includes" 7511 found_xincludes="yes" 7512 fi 7513 fi 7514 if test "$found_xincludes" = "no"; then 7515 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 7516echo "${ECHO_T}couldn't find any!" >&6; } 7517 fi 7518 7519 if test "$no_x" = yes; then 7520 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 7521echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 7522 XLIBSW=nope 7523 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 7524 for i in $dirs ; do 7525 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 7526 { echo "$as_me:$LINENO: result: $i" >&5 7527echo "${ECHO_T}$i" >&6; } 7528 XLIBSW="-L$i -lX11" 7529 x_libraries="$i" 7530 break 7531 fi 7532 done 7533 else 7534 if test "$x_libraries" = ""; then 7535 XLIBSW=-lX11 7536 else 7537 XLIBSW="-L$x_libraries -lX11" 7538 fi 7539 fi 7540 if test "$XLIBSW" = nope ; then 7541 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 7542echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 7543if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 7544 echo $ECHO_N "(cached) $ECHO_C" >&6 7545else 7546 ac_check_lib_save_LIBS=$LIBS 7547LIBS="-lXwindow $LIBS" 7548cat >conftest.$ac_ext <<_ACEOF 7549/* confdefs.h. */ 7550_ACEOF 7551cat confdefs.h >>conftest.$ac_ext 7552cat >>conftest.$ac_ext <<_ACEOF 7553/* end confdefs.h. */ 7554 7555/* Override any GCC internal prototype to avoid an error. 7556 Use char because int might match the return type of a GCC 7557 builtin and then its argument prototype would still apply. */ 7558#ifdef __cplusplus 7559extern "C" 7560#endif 7561char XCreateWindow (); 7562int 7563main () 7564{ 7565return XCreateWindow (); 7566 ; 7567 return 0; 7568} 7569_ACEOF 7570rm -f conftest.$ac_objext conftest$ac_exeext 7571if { (ac_try="$ac_link" 7572case "(($ac_try" in 7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7574 *) ac_try_echo=$ac_try;; 7575esac 7576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7577 (eval "$ac_link") 2>conftest.er1 7578 ac_status=$? 7579 grep -v '^ *+' conftest.er1 >conftest.err 7580 rm -f conftest.er1 7581 cat conftest.err >&5 7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7583 (exit $ac_status); } && { 7584 test -z "$ac_c_werror_flag" || 7585 test ! -s conftest.err 7586 } && test -s conftest$ac_exeext && 7587 $as_test_x conftest$ac_exeext; then 7588 ac_cv_lib_Xwindow_XCreateWindow=yes 7589else 7590 echo "$as_me: failed program was:" >&5 7591sed 's/^/| /' conftest.$ac_ext >&5 7592 7593 ac_cv_lib_Xwindow_XCreateWindow=no 7594fi 7595 7596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7597 conftest$ac_exeext conftest.$ac_ext 7598LIBS=$ac_check_lib_save_LIBS 7599fi 7600{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 7601echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 7602if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 7603 XLIBSW=-lXwindow 7604fi 7605 7606 fi 7607 if test "$XLIBSW" = nope ; then 7608 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 7609echo "${ECHO_T}could not find any! Using -lX11." >&6; } 7610 XLIBSW=-lX11 7611 fi 7612 # TEA specific: 7613 if test x"${XLIBSW}" != x ; then 7614 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 7615 fi 7616 7617 fi 7618 7619 7620#-------------------------------------------------------------------- 7621# __CHANGE__ 7622# A few miscellaneous platform-specific items: 7623# 7624# Define a special symbol for Windows (BUILD_Tktable in this case) so 7625# that we create the export library with the dll. 7626# 7627# Windows creates a few extra files that need to be cleaned up. 7628# You can add more files to clean if your extension creates any extra 7629# files. 7630# 7631# TEA_ADD any extra compiler/build info here. 7632#-------------------------------------------------------------------- 7633 7634if test "${TEA_PLATFORM}" = "windows" ; then 7635 cat >>confdefs.h <<_ACEOF 7636#define BUILD_Tktable 1 7637_ACEOF 7638 7639 CLEANFILES="pkgIndex.tcl tkTable.tcl.h *.lib *.dll *.exp *.ilk *.pdb *.pch" 7640 7641 vars="gdi32.lib user32.lib" 7642 for i in $vars; do 7643 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7644 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7645 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7646 fi 7647 PKG_LIBS="$PKG_LIBS $i" 7648 done 7649 7650 7651else 7652 CLEANFILES="pkgIndex.tcl tkTable.tcl.h" 7653fi 7654 7655 7656#-------------------------------------------------------------------- 7657# Check whether --enable-threads or --disable-threads was given. 7658# So far only Tcl responds to this one. 7659#-------------------------------------------------------------------- 7660 7661 7662 # Check whether --enable-threads was given. 7663if test "${enable_threads+set}" = set; then 7664 enableval=$enable_threads; tcl_ok=$enableval 7665else 7666 tcl_ok=yes 7667fi 7668 7669 7670 if test "${enable_threads+set}" = set; then 7671 enableval="$enable_threads" 7672 tcl_ok=$enableval 7673 else 7674 tcl_ok=yes 7675 fi 7676 7677 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7678 TCL_THREADS=1 7679 7680 if test "${TEA_PLATFORM}" != "windows" ; then 7681 # We are always OK on Windows, so check what this platform wants: 7682 7683 # USE_THREAD_ALLOC tells us to try the special thread-based 7684 # allocator that significantly reduces lock contention 7685 7686cat >>confdefs.h <<\_ACEOF 7687#define USE_THREAD_ALLOC 1 7688_ACEOF 7689 7690 7691cat >>confdefs.h <<\_ACEOF 7692#define _REENTRANT 1 7693_ACEOF 7694 7695 if test "`uname -s`" = "SunOS" ; then 7696 7697cat >>confdefs.h <<\_ACEOF 7698#define _POSIX_PTHREAD_SEMANTICS 1 7699_ACEOF 7700 7701 fi 7702 7703cat >>confdefs.h <<\_ACEOF 7704#define _THREAD_SAFE 1 7705_ACEOF 7706 7707 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7708echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7709if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7710 echo $ECHO_N "(cached) $ECHO_C" >&6 7711else 7712 ac_check_lib_save_LIBS=$LIBS 7713LIBS="-lpthread $LIBS" 7714cat >conftest.$ac_ext <<_ACEOF 7715/* confdefs.h. */ 7716_ACEOF 7717cat confdefs.h >>conftest.$ac_ext 7718cat >>conftest.$ac_ext <<_ACEOF 7719/* end confdefs.h. */ 7720 7721/* Override any GCC internal prototype to avoid an error. 7722 Use char because int might match the return type of a GCC 7723 builtin and then its argument prototype would still apply. */ 7724#ifdef __cplusplus 7725extern "C" 7726#endif 7727char pthread_mutex_init (); 7728int 7729main () 7730{ 7731return pthread_mutex_init (); 7732 ; 7733 return 0; 7734} 7735_ACEOF 7736rm -f conftest.$ac_objext conftest$ac_exeext 7737if { (ac_try="$ac_link" 7738case "(($ac_try" in 7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7740 *) ac_try_echo=$ac_try;; 7741esac 7742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7743 (eval "$ac_link") 2>conftest.er1 7744 ac_status=$? 7745 grep -v '^ *+' conftest.er1 >conftest.err 7746 rm -f conftest.er1 7747 cat conftest.err >&5 7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7749 (exit $ac_status); } && { 7750 test -z "$ac_c_werror_flag" || 7751 test ! -s conftest.err 7752 } && test -s conftest$ac_exeext && 7753 $as_test_x conftest$ac_exeext; then 7754 ac_cv_lib_pthread_pthread_mutex_init=yes 7755else 7756 echo "$as_me: failed program was:" >&5 7757sed 's/^/| /' conftest.$ac_ext >&5 7758 7759 ac_cv_lib_pthread_pthread_mutex_init=no 7760fi 7761 7762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7763 conftest$ac_exeext conftest.$ac_ext 7764LIBS=$ac_check_lib_save_LIBS 7765fi 7766{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7767echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7768if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7769 tcl_ok=yes 7770else 7771 tcl_ok=no 7772fi 7773 7774 if test "$tcl_ok" = "no"; then 7775 # Check a little harder for __pthread_mutex_init in the same 7776 # library, as some systems hide it there until pthread.h is 7777 # defined. We could alternatively do an AC_TRY_COMPILE with 7778 # pthread.h, but that will work with libpthread really doesn't 7779 # exist, like AIX 4.2. [Bug: 4359] 7780 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7781echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7782if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7783 echo $ECHO_N "(cached) $ECHO_C" >&6 7784else 7785 ac_check_lib_save_LIBS=$LIBS 7786LIBS="-lpthread $LIBS" 7787cat >conftest.$ac_ext <<_ACEOF 7788/* confdefs.h. */ 7789_ACEOF 7790cat confdefs.h >>conftest.$ac_ext 7791cat >>conftest.$ac_ext <<_ACEOF 7792/* end confdefs.h. */ 7793 7794/* Override any GCC internal prototype to avoid an error. 7795 Use char because int might match the return type of a GCC 7796 builtin and then its argument prototype would still apply. */ 7797#ifdef __cplusplus 7798extern "C" 7799#endif 7800char __pthread_mutex_init (); 7801int 7802main () 7803{ 7804return __pthread_mutex_init (); 7805 ; 7806 return 0; 7807} 7808_ACEOF 7809rm -f conftest.$ac_objext conftest$ac_exeext 7810if { (ac_try="$ac_link" 7811case "(($ac_try" in 7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7813 *) ac_try_echo=$ac_try;; 7814esac 7815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7816 (eval "$ac_link") 2>conftest.er1 7817 ac_status=$? 7818 grep -v '^ *+' conftest.er1 >conftest.err 7819 rm -f conftest.er1 7820 cat conftest.err >&5 7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7822 (exit $ac_status); } && { 7823 test -z "$ac_c_werror_flag" || 7824 test ! -s conftest.err 7825 } && test -s conftest$ac_exeext && 7826 $as_test_x conftest$ac_exeext; then 7827 ac_cv_lib_pthread___pthread_mutex_init=yes 7828else 7829 echo "$as_me: failed program was:" >&5 7830sed 's/^/| /' conftest.$ac_ext >&5 7831 7832 ac_cv_lib_pthread___pthread_mutex_init=no 7833fi 7834 7835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7836 conftest$ac_exeext conftest.$ac_ext 7837LIBS=$ac_check_lib_save_LIBS 7838fi 7839{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7840echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7841if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7842 tcl_ok=yes 7843else 7844 tcl_ok=no 7845fi 7846 7847 fi 7848 7849 if test "$tcl_ok" = "yes"; then 7850 # The space is needed 7851 THREADS_LIBS=" -lpthread" 7852 else 7853 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7854echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7855if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7856 echo $ECHO_N "(cached) $ECHO_C" >&6 7857else 7858 ac_check_lib_save_LIBS=$LIBS 7859LIBS="-lpthreads $LIBS" 7860cat >conftest.$ac_ext <<_ACEOF 7861/* confdefs.h. */ 7862_ACEOF 7863cat confdefs.h >>conftest.$ac_ext 7864cat >>conftest.$ac_ext <<_ACEOF 7865/* end confdefs.h. */ 7866 7867/* Override any GCC internal prototype to avoid an error. 7868 Use char because int might match the return type of a GCC 7869 builtin and then its argument prototype would still apply. */ 7870#ifdef __cplusplus 7871extern "C" 7872#endif 7873char pthread_mutex_init (); 7874int 7875main () 7876{ 7877return pthread_mutex_init (); 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882rm -f conftest.$ac_objext conftest$ac_exeext 7883if { (ac_try="$ac_link" 7884case "(($ac_try" in 7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7886 *) ac_try_echo=$ac_try;; 7887esac 7888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7889 (eval "$ac_link") 2>conftest.er1 7890 ac_status=$? 7891 grep -v '^ *+' conftest.er1 >conftest.err 7892 rm -f conftest.er1 7893 cat conftest.err >&5 7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7895 (exit $ac_status); } && { 7896 test -z "$ac_c_werror_flag" || 7897 test ! -s conftest.err 7898 } && test -s conftest$ac_exeext && 7899 $as_test_x conftest$ac_exeext; then 7900 ac_cv_lib_pthreads_pthread_mutex_init=yes 7901else 7902 echo "$as_me: failed program was:" >&5 7903sed 's/^/| /' conftest.$ac_ext >&5 7904 7905 ac_cv_lib_pthreads_pthread_mutex_init=no 7906fi 7907 7908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7909 conftest$ac_exeext conftest.$ac_ext 7910LIBS=$ac_check_lib_save_LIBS 7911fi 7912{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7913echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7914if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7915 tcl_ok=yes 7916else 7917 tcl_ok=no 7918fi 7919 7920 if test "$tcl_ok" = "yes"; then 7921 # The space is needed 7922 THREADS_LIBS=" -lpthreads" 7923 else 7924 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7925echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7926if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7927 echo $ECHO_N "(cached) $ECHO_C" >&6 7928else 7929 ac_check_lib_save_LIBS=$LIBS 7930LIBS="-lc $LIBS" 7931cat >conftest.$ac_ext <<_ACEOF 7932/* confdefs.h. */ 7933_ACEOF 7934cat confdefs.h >>conftest.$ac_ext 7935cat >>conftest.$ac_ext <<_ACEOF 7936/* end confdefs.h. */ 7937 7938/* Override any GCC internal prototype to avoid an error. 7939 Use char because int might match the return type of a GCC 7940 builtin and then its argument prototype would still apply. */ 7941#ifdef __cplusplus 7942extern "C" 7943#endif 7944char pthread_mutex_init (); 7945int 7946main () 7947{ 7948return pthread_mutex_init (); 7949 ; 7950 return 0; 7951} 7952_ACEOF 7953rm -f conftest.$ac_objext conftest$ac_exeext 7954if { (ac_try="$ac_link" 7955case "(($ac_try" in 7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7957 *) ac_try_echo=$ac_try;; 7958esac 7959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7960 (eval "$ac_link") 2>conftest.er1 7961 ac_status=$? 7962 grep -v '^ *+' conftest.er1 >conftest.err 7963 rm -f conftest.er1 7964 cat conftest.err >&5 7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7966 (exit $ac_status); } && { 7967 test -z "$ac_c_werror_flag" || 7968 test ! -s conftest.err 7969 } && test -s conftest$ac_exeext && 7970 $as_test_x conftest$ac_exeext; then 7971 ac_cv_lib_c_pthread_mutex_init=yes 7972else 7973 echo "$as_me: failed program was:" >&5 7974sed 's/^/| /' conftest.$ac_ext >&5 7975 7976 ac_cv_lib_c_pthread_mutex_init=no 7977fi 7978 7979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7980 conftest$ac_exeext conftest.$ac_ext 7981LIBS=$ac_check_lib_save_LIBS 7982fi 7983{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7984echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7985if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7986 tcl_ok=yes 7987else 7988 tcl_ok=no 7989fi 7990 7991 if test "$tcl_ok" = "no"; then 7992 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7993echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7994if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996else 7997 ac_check_lib_save_LIBS=$LIBS 7998LIBS="-lc_r $LIBS" 7999cat >conftest.$ac_ext <<_ACEOF 8000/* confdefs.h. */ 8001_ACEOF 8002cat confdefs.h >>conftest.$ac_ext 8003cat >>conftest.$ac_ext <<_ACEOF 8004/* end confdefs.h. */ 8005 8006/* Override any GCC internal prototype to avoid an error. 8007 Use char because int might match the return type of a GCC 8008 builtin and then its argument prototype would still apply. */ 8009#ifdef __cplusplus 8010extern "C" 8011#endif 8012char pthread_mutex_init (); 8013int 8014main () 8015{ 8016return pthread_mutex_init (); 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021rm -f conftest.$ac_objext conftest$ac_exeext 8022if { (ac_try="$ac_link" 8023case "(($ac_try" in 8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8025 *) ac_try_echo=$ac_try;; 8026esac 8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8028 (eval "$ac_link") 2>conftest.er1 8029 ac_status=$? 8030 grep -v '^ *+' conftest.er1 >conftest.err 8031 rm -f conftest.er1 8032 cat conftest.err >&5 8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8034 (exit $ac_status); } && { 8035 test -z "$ac_c_werror_flag" || 8036 test ! -s conftest.err 8037 } && test -s conftest$ac_exeext && 8038 $as_test_x conftest$ac_exeext; then 8039 ac_cv_lib_c_r_pthread_mutex_init=yes 8040else 8041 echo "$as_me: failed program was:" >&5 8042sed 's/^/| /' conftest.$ac_ext >&5 8043 8044 ac_cv_lib_c_r_pthread_mutex_init=no 8045fi 8046 8047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8048 conftest$ac_exeext conftest.$ac_ext 8049LIBS=$ac_check_lib_save_LIBS 8050fi 8051{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 8052echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 8053if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 8054 tcl_ok=yes 8055else 8056 tcl_ok=no 8057fi 8058 8059 if test "$tcl_ok" = "yes"; then 8060 # The space is needed 8061 THREADS_LIBS=" -pthread" 8062 else 8063 TCL_THREADS=0 8064 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 8065echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 8066 fi 8067 fi 8068 fi 8069 fi 8070 fi 8071 else 8072 TCL_THREADS=0 8073 fi 8074 # Do checking message here to not mess up interleaved configure output 8075 { echo "$as_me:$LINENO: checking for building with threads" >&5 8076echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 8077 if test "${TCL_THREADS}" = 1; then 8078 8079cat >>confdefs.h <<\_ACEOF 8080#define TCL_THREADS 1 8081_ACEOF 8082 8083 { echo "$as_me:$LINENO: result: yes (default)" >&5 8084echo "${ECHO_T}yes (default)" >&6; } 8085 else 8086 { echo "$as_me:$LINENO: result: no" >&5 8087echo "${ECHO_T}no" >&6; } 8088 fi 8089 # TCL_THREADS sanity checking. See if our request for building with 8090 # threads is the same as the way Tcl was built. If not, warn the user. 8091 case ${TCL_DEFS} in 8092 *THREADS=1*) 8093 if test "${TCL_THREADS}" = "0"; then 8094 { echo "$as_me:$LINENO: WARNING: 8095 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 8096 that IS thread-enabled. It is recommended to use --enable-threads." >&5 8097echo "$as_me: WARNING: 8098 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 8099 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 8100 fi 8101 ;; 8102 *) 8103 if test "${TCL_THREADS}" = "1"; then 8104 { echo "$as_me:$LINENO: WARNING: 8105 --enable-threads requested, but building against a Tcl that is NOT 8106 thread-enabled. This is an OK configuration that will also run in 8107 a thread-enabled core." >&5 8108echo "$as_me: WARNING: 8109 --enable-threads requested, but building against a Tcl that is NOT 8110 thread-enabled. This is an OK configuration that will also run in 8111 a thread-enabled core." >&2;} 8112 fi 8113 ;; 8114 esac 8115 8116 8117 8118#-------------------------------------------------------------------- 8119# The statement below defines a collection of symbols related to 8120# building as a shared library instead of a static library. 8121#-------------------------------------------------------------------- 8122 8123 8124 { echo "$as_me:$LINENO: checking how to build libraries" >&5 8125echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 8126 # Check whether --enable-shared was given. 8127if test "${enable_shared+set}" = set; then 8128 enableval=$enable_shared; tcl_ok=$enableval 8129else 8130 tcl_ok=yes 8131fi 8132 8133 8134 if test "${enable_shared+set}" = set; then 8135 enableval="$enable_shared" 8136 tcl_ok=$enableval 8137 else 8138 tcl_ok=yes 8139 fi 8140 8141 if test "$tcl_ok" = "yes" ; then 8142 { echo "$as_me:$LINENO: result: shared" >&5 8143echo "${ECHO_T}shared" >&6; } 8144 SHARED_BUILD=1 8145 else 8146 { echo "$as_me:$LINENO: result: static" >&5 8147echo "${ECHO_T}static" >&6; } 8148 SHARED_BUILD=0 8149 8150cat >>confdefs.h <<\_ACEOF 8151#define STATIC_BUILD 1 8152_ACEOF 8153 8154 fi 8155 8156 8157 8158#-------------------------------------------------------------------- 8159# This macro figures out what flags to use with the compiler/linker 8160# when building shared/static debug/optimized objects. This information 8161# can be taken from the tclConfig.sh file, but this figures it all out. 8162#-------------------------------------------------------------------- 8163 8164 8165 8166 8167 # Step 0.a: Enable 64 bit support? 8168 8169 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8170echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8171 # Check whether --enable-64bit was given. 8172if test "${enable_64bit+set}" = set; then 8173 enableval=$enable_64bit; do64bit=$enableval 8174else 8175 do64bit=no 8176fi 8177 8178 { echo "$as_me:$LINENO: result: $do64bit" >&5 8179echo "${ECHO_T}$do64bit" >&6; } 8180 8181 # Step 0.b: Enable Solaris 64 bit VIS support? 8182 8183 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8184echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8185 # Check whether --enable-64bit-vis was given. 8186if test "${enable_64bit_vis+set}" = set; then 8187 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8188else 8189 do64bitVIS=no 8190fi 8191 8192 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8193echo "${ECHO_T}$do64bitVIS" >&6; } 8194 # Force 64bit on with VIS 8195 if test "$do64bitVIS" = "yes"; then 8196 do64bit=yes 8197fi 8198 8199 8200 # Step 0.c: Check if visibility support is available. Do this here so 8201 # that platform specific alternatives can be used below if this fails. 8202 8203 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8204echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8205if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8206 echo $ECHO_N "(cached) $ECHO_C" >&6 8207else 8208 8209 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8210 cat >conftest.$ac_ext <<_ACEOF 8211/* confdefs.h. */ 8212_ACEOF 8213cat confdefs.h >>conftest.$ac_ext 8214cat >>conftest.$ac_ext <<_ACEOF 8215/* end confdefs.h. */ 8216 8217 extern __attribute__((__visibility__("hidden"))) void f(void); 8218 void f(void) {} 8219int 8220main () 8221{ 8222f(); 8223 ; 8224 return 0; 8225} 8226_ACEOF 8227rm -f conftest.$ac_objext conftest$ac_exeext 8228if { (ac_try="$ac_link" 8229case "(($ac_try" in 8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8231 *) ac_try_echo=$ac_try;; 8232esac 8233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8234 (eval "$ac_link") 2>conftest.er1 8235 ac_status=$? 8236 grep -v '^ *+' conftest.er1 >conftest.err 8237 rm -f conftest.er1 8238 cat conftest.err >&5 8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8240 (exit $ac_status); } && { 8241 test -z "$ac_c_werror_flag" || 8242 test ! -s conftest.err 8243 } && test -s conftest$ac_exeext && 8244 $as_test_x conftest$ac_exeext; then 8245 tcl_cv_cc_visibility_hidden=yes 8246else 8247 echo "$as_me: failed program was:" >&5 8248sed 's/^/| /' conftest.$ac_ext >&5 8249 8250 tcl_cv_cc_visibility_hidden=no 8251fi 8252 8253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8254 conftest$ac_exeext conftest.$ac_ext 8255 CFLAGS=$hold_cflags 8256fi 8257{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8258echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8259 if test $tcl_cv_cc_visibility_hidden = yes; then 8260 8261 8262cat >>confdefs.h <<\_ACEOF 8263#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8264_ACEOF 8265 8266 8267fi 8268 8269 8270 # Step 0.d: Disable -rpath support? 8271 8272 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8273echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8274 # Check whether --enable-rpath was given. 8275if test "${enable_rpath+set}" = set; then 8276 enableval=$enable_rpath; doRpath=$enableval 8277else 8278 doRpath=yes 8279fi 8280 8281 { echo "$as_me:$LINENO: result: $doRpath" >&5 8282echo "${ECHO_T}$doRpath" >&6; } 8283 8284 # TEA specific: Cross-compiling options for Windows/CE builds? 8285 8286 if test "${TEA_PLATFORM}" = windows; then 8287 8288 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8289echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8290 # Check whether --enable-wince was given. 8291if test "${enable_wince+set}" = set; then 8292 enableval=$enable_wince; doWince=$enableval 8293else 8294 doWince=no 8295fi 8296 8297 { echo "$as_me:$LINENO: result: $doWince" >&5 8298echo "${ECHO_T}$doWince" >&6; } 8299 8300fi 8301 8302 8303 # Set the variable "system" to hold the name and version number 8304 # for the system. 8305 8306 8307 { echo "$as_me:$LINENO: checking system version" >&5 8308echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8309if test "${tcl_cv_sys_version+set}" = set; then 8310 echo $ECHO_N "(cached) $ECHO_C" >&6 8311else 8312 8313 # TEA specific: 8314 if test "${TEA_PLATFORM}" = "windows" ; then 8315 tcl_cv_sys_version=windows 8316 else 8317 tcl_cv_sys_version=`uname -s`-`uname -r` 8318 if test "$?" -ne 0 ; then 8319 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8320echo "$as_me: WARNING: can't find uname command" >&2;} 8321 tcl_cv_sys_version=unknown 8322 else 8323 if test "`uname -s`" = "AIX" ; then 8324 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8325 fi 8326 fi 8327 fi 8328 8329fi 8330{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8331echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8332 system=$tcl_cv_sys_version 8333 8334 8335 # Require ranlib early so we can override it in special cases below. 8336 8337 8338 8339 # Set configuration options based on system name and version. 8340 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8341 # "windows" case and removed some core-only vars. 8342 8343 do64bit_ok=no 8344 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8345 SHLIB_LD_LIBS='${LIBS}' 8346 # When ld needs options to work in 64-bit mode, put them in 8347 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8348 # is disabled by the user. [Bug 1016796] 8349 LDFLAGS_ARCH="" 8350 UNSHARED_LIB_SUFFIX="" 8351 # TEA specific: use PACKAGE_VERSION instead of VERSION 8352 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8353 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8354 TCL_LIB_VERSIONS_OK=ok 8355 CFLAGS_DEBUG=-g 8356 CFLAGS_OPTIMIZE=-O 8357 if test "$GCC" = yes; then 8358 8359 # TEA specific: 8360 CFLAGS_OPTIMIZE=-O2 8361 CFLAGS_WARNING="-Wall" 8362 8363else 8364 CFLAGS_WARNING="" 8365fi 8366 8367 # Extract the first word of "ar", so it can be a program name with args. 8368set dummy ar; ac_word=$2 8369{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8371if test "${ac_cv_prog_AR+set}" = set; then 8372 echo $ECHO_N "(cached) $ECHO_C" >&6 8373else 8374 if test -n "$AR"; then 8375 ac_cv_prog_AR="$AR" # Let the user override the test. 8376else 8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8378for as_dir in $PATH 8379do 8380 IFS=$as_save_IFS 8381 test -z "$as_dir" && as_dir=. 8382 for ac_exec_ext in '' $ac_executable_extensions; do 8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8384 ac_cv_prog_AR="ar" 8385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8386 break 2 8387 fi 8388done 8389done 8390IFS=$as_save_IFS 8391 8392fi 8393fi 8394AR=$ac_cv_prog_AR 8395if test -n "$AR"; then 8396 { echo "$as_me:$LINENO: result: $AR" >&5 8397echo "${ECHO_T}$AR" >&6; } 8398else 8399 { echo "$as_me:$LINENO: result: no" >&5 8400echo "${ECHO_T}no" >&6; } 8401fi 8402 8403 8404 STLIB_LD='${AR} cr' 8405 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8406 if test "x$SHLIB_VERSION" = x; then 8407 SHLIB_VERSION="1.0" 8408fi 8409 8410 case $system in 8411 # TEA specific: 8412 windows) 8413 # This is a 2-stage check to make sure we have the 64-bit SDK 8414 # We have to know where the SDK is installed. 8415 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8416 # MACHINE is IX86 for LINK, but this is used by the manifest, 8417 # which requires x86|amd64|ia64. 8418 MACHINE="X86" 8419 if test "$do64bit" != "no" ; then 8420 if test "x${MSSDK}x" = "xx" ; then 8421 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8422 fi 8423 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8424 PATH64="" 8425 case "$do64bit" in 8426 amd64|x64|yes) 8427 MACHINE="AMD64" ; # default to AMD64 64-bit build 8428 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8429 ;; 8430 ia64) 8431 MACHINE="IA64" 8432 PATH64="${MSSDK}/Bin/Win64" 8433 ;; 8434 esac 8435 if test ! -d "${PATH64}" ; then 8436 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8437echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8438 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8439echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8440 do64bit="no" 8441 else 8442 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8443echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8444 do64bit_ok="yes" 8445 fi 8446 fi 8447 8448 if test "$doWince" != "no" ; then 8449 if test "$do64bit" != "no" ; then 8450 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8451echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8452 { (exit 1); exit 1; }; } 8453 fi 8454 if test "$GCC" = "yes" ; then 8455 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8456echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8457 { (exit 1); exit 1; }; } 8458 fi 8459 8460 # First, look for one uninstalled. 8461 # the alternative search directory is invoked by --with-celib 8462 8463 if test x"${no_celib}" = x ; then 8464 # we reset no_celib in case something fails here 8465 no_celib=true 8466 8467# Check whether --with-celib was given. 8468if test "${with_celib+set}" = set; then 8469 withval=$with_celib; with_celibconfig=${withval} 8470fi 8471 8472 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8473echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8474 if test "${ac_cv_c_celibconfig+set}" = set; then 8475 echo $ECHO_N "(cached) $ECHO_C" >&6 8476else 8477 8478 # First check to see if --with-celibconfig was specified. 8479 if test x"${with_celibconfig}" != x ; then 8480 if test -d "${with_celibconfig}/inc" ; then 8481 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8482 else 8483 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8484echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8485 { (exit 1); exit 1; }; } 8486 fi 8487 fi 8488 8489 # then check for a celib library 8490 if test x"${ac_cv_c_celibconfig}" = x ; then 8491 for i in \ 8492 ../celib-palm-3.0 \ 8493 ../celib \ 8494 ../../celib-palm-3.0 \ 8495 ../../celib \ 8496 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8497 ${srcdir}/../celib-palm-3.0 \ 8498 ${srcdir}/../celib \ 8499 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8500 ; do 8501 if test -d "$i/inc" ; then 8502 ac_cv_c_celibconfig=`(cd $i; pwd)` 8503 break 8504 fi 8505 done 8506 fi 8507 8508fi 8509 8510 if test x"${ac_cv_c_celibconfig}" = x ; then 8511 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8512echo "$as_me: error: Cannot find celib support library directory" >&2;} 8513 { (exit 1); exit 1; }; } 8514 else 8515 no_celib= 8516 CELIB_DIR=${ac_cv_c_celibconfig} 8517 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8518 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8519echo "${ECHO_T}found $CELIB_DIR" >&6; } 8520 fi 8521 fi 8522 8523 # Set defaults for common evc4/PPC2003 setup 8524 # Currently Tcl requires 300+, possibly 420+ for sockets 8525 CEVERSION=420; # could be 211 300 301 400 420 ... 8526 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8527 ARCH=ARM; # could be ARM MIPS X86EM ... 8528 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8529 if test "$doWince" != "yes"; then 8530 # If !yes then the user specified something 8531 # Reset ARCH to allow user to skip specifying it 8532 ARCH= 8533 eval `echo $doWince | awk -F, '{ \ 8534 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8535 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8536 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8537 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8538 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8539 }'` 8540 if test "x${ARCH}" = "x" ; then 8541 ARCH=$TARGETCPU; 8542 fi 8543 fi 8544 OSVERSION=WCE$CEVERSION; 8545 if test "x${WCEROOT}" = "x" ; then 8546 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8547 if test ! -d "${WCEROOT}" ; then 8548 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8549 fi 8550 fi 8551 if test "x${SDKROOT}" = "x" ; then 8552 SDKROOT="C:/Program Files/Windows CE Tools" 8553 if test ! -d "${SDKROOT}" ; then 8554 SDKROOT="C:/Windows CE Tools" 8555 fi 8556 fi 8557 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8558 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8559 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8560 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8561 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8562echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8563 { (exit 1); exit 1; }; } 8564 doWince="no" 8565 else 8566 # We could PATH_NOSPACE these, but that's not important, 8567 # as long as we quote them when used. 8568 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8569 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8570 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8571 fi 8572 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8573 fi 8574 fi 8575 8576 if test "$GCC" != "yes" ; then 8577 if test "${SHARED_BUILD}" = "0" ; then 8578 runtime=-MT 8579 else 8580 runtime=-MD 8581 fi 8582 8583 if test "$do64bit" != "no" ; then 8584 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8585 CC="\"${PATH64}/cl.exe\"" 8586 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8587 RC="\"${MSSDK}/bin/rc.exe\"" 8588 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8589 LINKBIN="\"${PATH64}/link.exe\"" 8590 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8591 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8592 # Avoid 'unresolved external symbol __security_cookie' 8593 # errors, c.f. http://support.microsoft.com/?id=894573 8594 8595 vars="bufferoverflowU.lib" 8596 for i in $vars; do 8597 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8598 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8599 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8600 fi 8601 PKG_LIBS="$PKG_LIBS $i" 8602 done 8603 8604 8605 elif test "$doWince" != "no" ; then 8606 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8607 if test "${TARGETCPU}" = "X86"; then 8608 CC="\"${CEBINROOT}/cl.exe\"" 8609 else 8610 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8611 fi 8612 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8613 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8614 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8615 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8616 if test "${SHARED_BUILD}" = "1" ; then 8617 # Static CE builds require static celib as well 8618 defs="${defs} _DLL" 8619 fi 8620 for i in $defs ; do 8621 8622cat >>confdefs.h <<_ACEOF 8623#define $i 1 8624_ACEOF 8625 8626 done 8627 8628cat >>confdefs.h <<_ACEOF 8629#define _WIN32_WCE $CEVERSION 8630_ACEOF 8631 8632 8633cat >>confdefs.h <<_ACEOF 8634#define UNDER_CE $CEVERSION 8635_ACEOF 8636 8637 CFLAGS_DEBUG="-nologo -Zi -Od" 8638 CFLAGS_OPTIMIZE="-nologo -Ox" 8639 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8640 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8641 LINKBIN="\"${CEBINROOT}/link.exe\"" 8642 8643 else 8644 RC="rc" 8645 lflags="-nologo" 8646 LINKBIN="link" 8647 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8648 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8649 fi 8650 fi 8651 8652 if test "$GCC" = "yes"; then 8653 # mingw gcc mode 8654 RC="windres" 8655 CFLAGS_DEBUG="-g" 8656 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8657 SHLIB_LD="$CC -shared" 8658 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8659 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8660 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8661 else 8662 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8663 # link -lib only works when -lib is the first arg 8664 STLIB_LD="${LINKBIN} -lib ${lflags}" 8665 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8666 PATHTYPE=-w 8667 # For information on what debugtype is most useful, see: 8668 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8669 # and also 8670 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8671 # This essentially turns it all on. 8672 LDFLAGS_DEBUG="-debug -debugtype:cv" 8673 LDFLAGS_OPTIMIZE="-release" 8674 if test "$doWince" != "no" ; then 8675 LDFLAGS_CONSOLE="-link ${lflags}" 8676 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8677 else 8678 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8679 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8680 fi 8681 fi 8682 8683 SHLIB_SUFFIX=".dll" 8684 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8685 8686 TCL_LIB_VERSIONS_OK=nodots 8687 ;; 8688 AIX-*) 8689 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8690 8691 # AIX requires the _r compiler when gcc isn't being used 8692 case "${CC}" in 8693 *_r|*_r\ *) 8694 # ok ... 8695 ;; 8696 *) 8697 # Make sure only first arg gets _r 8698 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8699 ;; 8700 esac 8701 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8702echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8703 8704fi 8705 8706 LIBS="$LIBS -lc" 8707 SHLIB_CFLAGS="" 8708 SHLIB_SUFFIX=".so" 8709 8710 LD_LIBRARY_PATH_VAR="LIBPATH" 8711 8712 # Check to enable 64-bit flags for compiler/linker 8713 if test "$do64bit" = yes; then 8714 8715 if test "$GCC" = yes; then 8716 8717 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8718echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8719 8720else 8721 8722 do64bit_ok=yes 8723 CFLAGS="$CFLAGS -q64" 8724 LDFLAGS_ARCH="-q64" 8725 RANLIB="${RANLIB} -X64" 8726 AR="${AR} -X64" 8727 SHLIB_LD_FLAGS="-b64" 8728 8729fi 8730 8731 8732fi 8733 8734 8735 if test "`uname -m`" = ia64; then 8736 8737 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8738 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8739 if test "$GCC" = yes; then 8740 8741 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8742 8743else 8744 8745 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8746 8747fi 8748 8749 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8750 8751else 8752 8753 if test "$GCC" = yes; then 8754 8755 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8756 8757else 8758 8759 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8760 LDFLAGS="$LDFLAGS -brtl" 8761 8762fi 8763 8764 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8765 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8766 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8767 8768fi 8769 8770 ;; 8771 BeOS*) 8772 SHLIB_CFLAGS="-fPIC" 8773 SHLIB_LD='${CC} -nostart' 8774 SHLIB_SUFFIX=".so" 8775 8776 #----------------------------------------------------------- 8777 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8778 # -lsocket, even if the network functions are in -lnet which 8779 # is always linked to, for compatibility. 8780 #----------------------------------------------------------- 8781 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8782echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8783if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8784 echo $ECHO_N "(cached) $ECHO_C" >&6 8785else 8786 ac_check_lib_save_LIBS=$LIBS 8787LIBS="-lbind $LIBS" 8788cat >conftest.$ac_ext <<_ACEOF 8789/* confdefs.h. */ 8790_ACEOF 8791cat confdefs.h >>conftest.$ac_ext 8792cat >>conftest.$ac_ext <<_ACEOF 8793/* end confdefs.h. */ 8794 8795/* Override any GCC internal prototype to avoid an error. 8796 Use char because int might match the return type of a GCC 8797 builtin and then its argument prototype would still apply. */ 8798#ifdef __cplusplus 8799extern "C" 8800#endif 8801char inet_ntoa (); 8802int 8803main () 8804{ 8805return inet_ntoa (); 8806 ; 8807 return 0; 8808} 8809_ACEOF 8810rm -f conftest.$ac_objext conftest$ac_exeext 8811if { (ac_try="$ac_link" 8812case "(($ac_try" in 8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8814 *) ac_try_echo=$ac_try;; 8815esac 8816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8817 (eval "$ac_link") 2>conftest.er1 8818 ac_status=$? 8819 grep -v '^ *+' conftest.er1 >conftest.err 8820 rm -f conftest.er1 8821 cat conftest.err >&5 8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8823 (exit $ac_status); } && { 8824 test -z "$ac_c_werror_flag" || 8825 test ! -s conftest.err 8826 } && test -s conftest$ac_exeext && 8827 $as_test_x conftest$ac_exeext; then 8828 ac_cv_lib_bind_inet_ntoa=yes 8829else 8830 echo "$as_me: failed program was:" >&5 8831sed 's/^/| /' conftest.$ac_ext >&5 8832 8833 ac_cv_lib_bind_inet_ntoa=no 8834fi 8835 8836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8837 conftest$ac_exeext conftest.$ac_ext 8838LIBS=$ac_check_lib_save_LIBS 8839fi 8840{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8841echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8842if test $ac_cv_lib_bind_inet_ntoa = yes; then 8843 LIBS="$LIBS -lbind -lsocket" 8844fi 8845 8846 ;; 8847 BSD/OS-4.*) 8848 SHLIB_CFLAGS="-export-dynamic -fPIC" 8849 SHLIB_LD='${CC} -shared' 8850 SHLIB_SUFFIX=".so" 8851 LDFLAGS="$LDFLAGS -export-dynamic" 8852 CC_SEARCH_FLAGS="" 8853 LD_SEARCH_FLAGS="" 8854 ;; 8855 CYGWIN_*) 8856 SHLIB_CFLAGS="" 8857 SHLIB_LD='${CC} -shared' 8858 SHLIB_SUFFIX=".dll" 8859 EXE_SUFFIX=".exe" 8860 CC_SEARCH_FLAGS="" 8861 LD_SEARCH_FLAGS="" 8862 ;; 8863 Haiku*) 8864 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8865 SHLIB_CFLAGS="-fPIC" 8866 SHLIB_SUFFIX=".so" 8867 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8868 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8869echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8870if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8871 echo $ECHO_N "(cached) $ECHO_C" >&6 8872else 8873 ac_check_lib_save_LIBS=$LIBS 8874LIBS="-lnetwork $LIBS" 8875cat >conftest.$ac_ext <<_ACEOF 8876/* confdefs.h. */ 8877_ACEOF 8878cat confdefs.h >>conftest.$ac_ext 8879cat >>conftest.$ac_ext <<_ACEOF 8880/* end confdefs.h. */ 8881 8882/* Override any GCC internal prototype to avoid an error. 8883 Use char because int might match the return type of a GCC 8884 builtin and then its argument prototype would still apply. */ 8885#ifdef __cplusplus 8886extern "C" 8887#endif 8888char inet_ntoa (); 8889int 8890main () 8891{ 8892return inet_ntoa (); 8893 ; 8894 return 0; 8895} 8896_ACEOF 8897rm -f conftest.$ac_objext conftest$ac_exeext 8898if { (ac_try="$ac_link" 8899case "(($ac_try" in 8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8901 *) ac_try_echo=$ac_try;; 8902esac 8903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8904 (eval "$ac_link") 2>conftest.er1 8905 ac_status=$? 8906 grep -v '^ *+' conftest.er1 >conftest.err 8907 rm -f conftest.er1 8908 cat conftest.err >&5 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8910 (exit $ac_status); } && { 8911 test -z "$ac_c_werror_flag" || 8912 test ! -s conftest.err 8913 } && test -s conftest$ac_exeext && 8914 $as_test_x conftest$ac_exeext; then 8915 ac_cv_lib_network_inet_ntoa=yes 8916else 8917 echo "$as_me: failed program was:" >&5 8918sed 's/^/| /' conftest.$ac_ext >&5 8919 8920 ac_cv_lib_network_inet_ntoa=no 8921fi 8922 8923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8924 conftest$ac_exeext conftest.$ac_ext 8925LIBS=$ac_check_lib_save_LIBS 8926fi 8927{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8928echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8929if test $ac_cv_lib_network_inet_ntoa = yes; then 8930 LIBS="$LIBS -lnetwork" 8931fi 8932 8933 ;; 8934 HP-UX-*.11.*) 8935 # Use updated header definitions where possible 8936 8937cat >>confdefs.h <<\_ACEOF 8938#define _XOPEN_SOURCE_EXTENDED 1 8939_ACEOF 8940 8941 # TEA specific: Needed by Tcl, but not most extensions 8942 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8943 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8944 8945 if test "`uname -m`" = ia64; then 8946 8947 SHLIB_SUFFIX=".so" 8948 # Use newer C++ library for C++ extensions 8949 #if test "$GCC" != "yes" ; then 8950 # CPPFLAGS="-AA" 8951 #fi 8952 8953else 8954 8955 SHLIB_SUFFIX=".sl" 8956 8957fi 8958 8959 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8960echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8961if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8962 echo $ECHO_N "(cached) $ECHO_C" >&6 8963else 8964 ac_check_lib_save_LIBS=$LIBS 8965LIBS="-ldld $LIBS" 8966cat >conftest.$ac_ext <<_ACEOF 8967/* confdefs.h. */ 8968_ACEOF 8969cat confdefs.h >>conftest.$ac_ext 8970cat >>conftest.$ac_ext <<_ACEOF 8971/* end confdefs.h. */ 8972 8973/* Override any GCC internal prototype to avoid an error. 8974 Use char because int might match the return type of a GCC 8975 builtin and then its argument prototype would still apply. */ 8976#ifdef __cplusplus 8977extern "C" 8978#endif 8979char shl_load (); 8980int 8981main () 8982{ 8983return shl_load (); 8984 ; 8985 return 0; 8986} 8987_ACEOF 8988rm -f conftest.$ac_objext conftest$ac_exeext 8989if { (ac_try="$ac_link" 8990case "(($ac_try" in 8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8992 *) ac_try_echo=$ac_try;; 8993esac 8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8995 (eval "$ac_link") 2>conftest.er1 8996 ac_status=$? 8997 grep -v '^ *+' conftest.er1 >conftest.err 8998 rm -f conftest.er1 8999 cat conftest.err >&5 9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001 (exit $ac_status); } && { 9002 test -z "$ac_c_werror_flag" || 9003 test ! -s conftest.err 9004 } && test -s conftest$ac_exeext && 9005 $as_test_x conftest$ac_exeext; then 9006 ac_cv_lib_dld_shl_load=yes 9007else 9008 echo "$as_me: failed program was:" >&5 9009sed 's/^/| /' conftest.$ac_ext >&5 9010 9011 ac_cv_lib_dld_shl_load=no 9012fi 9013 9014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9015 conftest$ac_exeext conftest.$ac_ext 9016LIBS=$ac_check_lib_save_LIBS 9017fi 9018{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9019echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9020if test $ac_cv_lib_dld_shl_load = yes; then 9021 tcl_ok=yes 9022else 9023 tcl_ok=no 9024fi 9025 9026 if test "$tcl_ok" = yes; then 9027 9028 LDFLAGS="$LDFLAGS -E" 9029 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 9030 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 9031 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 9032 9033fi 9034 9035 if test "$GCC" = yes; then 9036 9037 SHLIB_LD='${CC} -shared' 9038 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9039 9040else 9041 9042 CFLAGS="$CFLAGS -z" 9043 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 9044 #CFLAGS="$CFLAGS +DAportable" 9045 SHLIB_CFLAGS="+z" 9046 SHLIB_LD="ld -b" 9047 9048fi 9049 9050 9051 # Check to enable 64-bit flags for compiler/linker 9052 if test "$do64bit" = "yes"; then 9053 9054 if test "$GCC" = yes; then 9055 9056 case `${CC} -dumpmachine` in 9057 hppa64*) 9058 # 64-bit gcc in use. Fix flags for GNU ld. 9059 do64bit_ok=yes 9060 SHLIB_LD='${CC} -shared' 9061 if test $doRpath = yes; then 9062 9063 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9064fi 9065 9066 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9067 ;; 9068 *) 9069 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9070echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 9071 ;; 9072 esac 9073 9074else 9075 9076 do64bit_ok=yes 9077 CFLAGS="$CFLAGS +DD64" 9078 LDFLAGS_ARCH="+DD64" 9079 9080fi 9081 9082 9083fi 9084 ;; 9085 IRIX-6.*) 9086 SHLIB_CFLAGS="" 9087 SHLIB_LD="ld -n32 -shared -rdata_shared" 9088 SHLIB_SUFFIX=".so" 9089 if test $doRpath = yes; then 9090 9091 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9092 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9093fi 9094 9095 if test "$GCC" = yes; then 9096 9097 CFLAGS="$CFLAGS -mabi=n32" 9098 LDFLAGS="$LDFLAGS -mabi=n32" 9099 9100else 9101 9102 case $system in 9103 IRIX-6.3) 9104 # Use to build 6.2 compatible binaries on 6.3. 9105 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 9106 ;; 9107 *) 9108 CFLAGS="$CFLAGS -n32" 9109 ;; 9110 esac 9111 LDFLAGS="$LDFLAGS -n32" 9112 9113fi 9114 9115 ;; 9116 IRIX64-6.*) 9117 SHLIB_CFLAGS="" 9118 SHLIB_LD="ld -n32 -shared -rdata_shared" 9119 SHLIB_SUFFIX=".so" 9120 if test $doRpath = yes; then 9121 9122 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9123 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9124fi 9125 9126 9127 # Check to enable 64-bit flags for compiler/linker 9128 9129 if test "$do64bit" = yes; then 9130 9131 if test "$GCC" = yes; then 9132 9133 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 9134echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 9135 9136else 9137 9138 do64bit_ok=yes 9139 SHLIB_LD="ld -64 -shared -rdata_shared" 9140 CFLAGS="$CFLAGS -64" 9141 LDFLAGS_ARCH="-64" 9142 9143fi 9144 9145 9146fi 9147 9148 ;; 9149 Linux*) 9150 SHLIB_CFLAGS="-fPIC" 9151 SHLIB_SUFFIX=".so" 9152 9153 # TEA specific: 9154 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9155 9156 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9157 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9158 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9159 if test $doRpath = yes; then 9160 9161 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9162fi 9163 9164 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9165 if test "`uname -m`" = "alpha"; then 9166 CFLAGS="$CFLAGS -mieee" 9167fi 9168 9169 if test $do64bit = yes; then 9170 9171 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9172echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9173if test "${tcl_cv_cc_m64+set}" = set; then 9174 echo $ECHO_N "(cached) $ECHO_C" >&6 9175else 9176 9177 hold_cflags=$CFLAGS 9178 CFLAGS="$CFLAGS -m64" 9179 cat >conftest.$ac_ext <<_ACEOF 9180/* confdefs.h. */ 9181_ACEOF 9182cat confdefs.h >>conftest.$ac_ext 9183cat >>conftest.$ac_ext <<_ACEOF 9184/* end confdefs.h. */ 9185 9186int 9187main () 9188{ 9189 9190 ; 9191 return 0; 9192} 9193_ACEOF 9194rm -f conftest.$ac_objext conftest$ac_exeext 9195if { (ac_try="$ac_link" 9196case "(($ac_try" in 9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9198 *) ac_try_echo=$ac_try;; 9199esac 9200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9201 (eval "$ac_link") 2>conftest.er1 9202 ac_status=$? 9203 grep -v '^ *+' conftest.er1 >conftest.err 9204 rm -f conftest.er1 9205 cat conftest.err >&5 9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 (exit $ac_status); } && { 9208 test -z "$ac_c_werror_flag" || 9209 test ! -s conftest.err 9210 } && test -s conftest$ac_exeext && 9211 $as_test_x conftest$ac_exeext; then 9212 tcl_cv_cc_m64=yes 9213else 9214 echo "$as_me: failed program was:" >&5 9215sed 's/^/| /' conftest.$ac_ext >&5 9216 9217 tcl_cv_cc_m64=no 9218fi 9219 9220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9221 conftest$ac_exeext conftest.$ac_ext 9222 CFLAGS=$hold_cflags 9223fi 9224{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9225echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9226 if test $tcl_cv_cc_m64 = yes; then 9227 9228 CFLAGS="$CFLAGS -m64" 9229 do64bit_ok=yes 9230 9231fi 9232 9233 9234fi 9235 9236 9237 # The combo of gcc + glibc has a bug related to inlining of 9238 # functions like strtod(). The -fno-builtin flag should address 9239 # this problem but it does not work. The -fno-inline flag is kind 9240 # of overkill but it works. Disable inlining only when one of the 9241 # files in compat/*.c is being linked in. 9242 9243 if test x"${USE_COMPAT}" != x; then 9244 CFLAGS="$CFLAGS -fno-inline" 9245fi 9246 9247 9248 ;; 9249 GNU*) 9250 SHLIB_CFLAGS="-fPIC" 9251 SHLIB_SUFFIX=".so" 9252 9253 SHLIB_LD='${CC} -shared' 9254 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9255 CC_SEARCH_FLAGS="" 9256 LD_SEARCH_FLAGS="" 9257 if test "`uname -m`" = "alpha"; then 9258 CFLAGS="$CFLAGS -mieee" 9259fi 9260 9261 ;; 9262 Lynx*) 9263 SHLIB_CFLAGS="-fPIC" 9264 SHLIB_SUFFIX=".so" 9265 CFLAGS_OPTIMIZE=-02 9266 SHLIB_LD='${CC} -shared' 9267 LD_FLAGS="-Wl,--export-dynamic" 9268 if test $doRpath = yes; then 9269 9270 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9271 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9272fi 9273 9274 ;; 9275 OpenBSD-*) 9276 SHLIB_CFLAGS="-fPIC" 9277 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9278 SHLIB_SUFFIX=".so" 9279 if test $doRpath = yes; then 9280 9281 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9282fi 9283 9284 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9285 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9286 { echo "$as_me:$LINENO: checking for ELF" >&5 9287echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9288if test "${tcl_cv_ld_elf+set}" = set; then 9289 echo $ECHO_N "(cached) $ECHO_C" >&6 9290else 9291 9292 cat >conftest.$ac_ext <<_ACEOF 9293/* confdefs.h. */ 9294_ACEOF 9295cat confdefs.h >>conftest.$ac_ext 9296cat >>conftest.$ac_ext <<_ACEOF 9297/* end confdefs.h. */ 9298 9299#ifdef __ELF__ 9300 yes 9301#endif 9302 9303_ACEOF 9304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9305 $EGREP "yes" >/dev/null 2>&1; then 9306 tcl_cv_ld_elf=yes 9307else 9308 tcl_cv_ld_elf=no 9309fi 9310rm -f -r conftest* 9311 9312fi 9313{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9314echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9315 if test $tcl_cv_ld_elf = yes; then 9316 9317 LDFLAGS=-Wl,-export-dynamic 9318 9319else 9320 LDFLAGS="" 9321fi 9322 9323 if test "${TCL_THREADS}" = "1"; then 9324 9325 # OpenBSD builds and links with -pthread, never -lpthread. 9326 LIBS=`echo $LIBS | sed s/-lpthread//` 9327 CFLAGS="$CFLAGS -pthread" 9328 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9329 9330fi 9331 9332 # OpenBSD doesn't do version numbers with dots. 9333 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9334 TCL_LIB_VERSIONS_OK=nodots 9335 ;; 9336 NetBSD-*|FreeBSD-[3-4].*) 9337 # FreeBSD 3.* and greater have ELF. 9338 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9339 SHLIB_CFLAGS="-fPIC" 9340 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9341 SHLIB_SUFFIX=".so" 9342 LDFLAGS="$LDFLAGS -export-dynamic" 9343 if test $doRpath = yes; then 9344 9345 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9346fi 9347 9348 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9349 if test "${TCL_THREADS}" = "1"; then 9350 9351 # The -pthread needs to go in the CFLAGS, not LIBS 9352 LIBS=`echo $LIBS | sed s/-pthread//` 9353 CFLAGS="$CFLAGS -pthread" 9354 LDFLAGS="$LDFLAGS -pthread" 9355 9356fi 9357 9358 case $system in 9359 FreeBSD-3.*) 9360 # FreeBSD-3 doesn't handle version numbers with dots. 9361 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9362 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9363 TCL_LIB_VERSIONS_OK=nodots 9364 ;; 9365 esac 9366 ;; 9367 FreeBSD-*) 9368 # This configuration from FreeBSD Ports. 9369 SHLIB_CFLAGS="-fPIC" 9370 SHLIB_LD="${CC} -shared" 9371 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9372 SHLIB_SUFFIX=".so" 9373 LDFLAGS="" 9374 if test $doRpath = yes; then 9375 9376 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9377 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9378fi 9379 9380 if test "${TCL_THREADS}" = "1"; then 9381 9382 # The -pthread needs to go in the LDFLAGS, not LIBS 9383 LIBS=`echo $LIBS | sed s/-pthread//` 9384 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9385 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9386fi 9387 9388 # Version numbers are dot-stripped by system policy. 9389 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9390 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9391 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9392 TCL_LIB_VERSIONS_OK=nodots 9393 ;; 9394 Darwin-*) 9395 CFLAGS_OPTIMIZE="-Os" 9396 SHLIB_CFLAGS="-fno-common" 9397 # To avoid discrepancies between what headers configure sees during 9398 # preprocessing tests and compiling tests, move any -isysroot and 9399 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9400 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9401 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9402 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9403 CFLAGS="`echo " ${CFLAGS}" | \ 9404 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9405 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9406 if test $do64bit = yes; then 9407 9408 case `arch` in 9409 ppc) 9410 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9411echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9412if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9413 echo $ECHO_N "(cached) $ECHO_C" >&6 9414else 9415 9416 hold_cflags=$CFLAGS 9417 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9418 cat >conftest.$ac_ext <<_ACEOF 9419/* confdefs.h. */ 9420_ACEOF 9421cat confdefs.h >>conftest.$ac_ext 9422cat >>conftest.$ac_ext <<_ACEOF 9423/* end confdefs.h. */ 9424 9425int 9426main () 9427{ 9428 9429 ; 9430 return 0; 9431} 9432_ACEOF 9433rm -f conftest.$ac_objext conftest$ac_exeext 9434if { (ac_try="$ac_link" 9435case "(($ac_try" in 9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9437 *) ac_try_echo=$ac_try;; 9438esac 9439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9440 (eval "$ac_link") 2>conftest.er1 9441 ac_status=$? 9442 grep -v '^ *+' conftest.er1 >conftest.err 9443 rm -f conftest.er1 9444 cat conftest.err >&5 9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9446 (exit $ac_status); } && { 9447 test -z "$ac_c_werror_flag" || 9448 test ! -s conftest.err 9449 } && test -s conftest$ac_exeext && 9450 $as_test_x conftest$ac_exeext; then 9451 tcl_cv_cc_arch_ppc64=yes 9452else 9453 echo "$as_me: failed program was:" >&5 9454sed 's/^/| /' conftest.$ac_ext >&5 9455 9456 tcl_cv_cc_arch_ppc64=no 9457fi 9458 9459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9460 conftest$ac_exeext conftest.$ac_ext 9461 CFLAGS=$hold_cflags 9462fi 9463{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9464echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9465 if test $tcl_cv_cc_arch_ppc64 = yes; then 9466 9467 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9468 do64bit_ok=yes 9469 9470fi 9471;; 9472 i386) 9473 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9474echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9475if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9476 echo $ECHO_N "(cached) $ECHO_C" >&6 9477else 9478 9479 hold_cflags=$CFLAGS 9480 CFLAGS="$CFLAGS -arch x86_64" 9481 cat >conftest.$ac_ext <<_ACEOF 9482/* confdefs.h. */ 9483_ACEOF 9484cat confdefs.h >>conftest.$ac_ext 9485cat >>conftest.$ac_ext <<_ACEOF 9486/* end confdefs.h. */ 9487 9488int 9489main () 9490{ 9491 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496rm -f conftest.$ac_objext conftest$ac_exeext 9497if { (ac_try="$ac_link" 9498case "(($ac_try" in 9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9500 *) ac_try_echo=$ac_try;; 9501esac 9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9503 (eval "$ac_link") 2>conftest.er1 9504 ac_status=$? 9505 grep -v '^ *+' conftest.er1 >conftest.err 9506 rm -f conftest.er1 9507 cat conftest.err >&5 9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9509 (exit $ac_status); } && { 9510 test -z "$ac_c_werror_flag" || 9511 test ! -s conftest.err 9512 } && test -s conftest$ac_exeext && 9513 $as_test_x conftest$ac_exeext; then 9514 tcl_cv_cc_arch_x86_64=yes 9515else 9516 echo "$as_me: failed program was:" >&5 9517sed 's/^/| /' conftest.$ac_ext >&5 9518 9519 tcl_cv_cc_arch_x86_64=no 9520fi 9521 9522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9523 conftest$ac_exeext conftest.$ac_ext 9524 CFLAGS=$hold_cflags 9525fi 9526{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9527echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9528 if test $tcl_cv_cc_arch_x86_64 = yes; then 9529 9530 CFLAGS="$CFLAGS -arch x86_64" 9531 do64bit_ok=yes 9532 9533fi 9534;; 9535 *) 9536 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9537echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9538 esac 9539 9540else 9541 9542 # Check for combined 32-bit and 64-bit fat build 9543 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9544 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9545 9546 fat_32_64=yes 9547fi 9548 9549 9550fi 9551 9552 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9553 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9554 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9555echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9556if test "${tcl_cv_ld_single_module+set}" = set; then 9557 echo $ECHO_N "(cached) $ECHO_C" >&6 9558else 9559 9560 hold_ldflags=$LDFLAGS 9561 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9562 cat >conftest.$ac_ext <<_ACEOF 9563/* confdefs.h. */ 9564_ACEOF 9565cat confdefs.h >>conftest.$ac_ext 9566cat >>conftest.$ac_ext <<_ACEOF 9567/* end confdefs.h. */ 9568 9569int 9570main () 9571{ 9572int i; 9573 ; 9574 return 0; 9575} 9576_ACEOF 9577rm -f conftest.$ac_objext conftest$ac_exeext 9578if { (ac_try="$ac_link" 9579case "(($ac_try" in 9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9581 *) ac_try_echo=$ac_try;; 9582esac 9583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9584 (eval "$ac_link") 2>conftest.er1 9585 ac_status=$? 9586 grep -v '^ *+' conftest.er1 >conftest.err 9587 rm -f conftest.er1 9588 cat conftest.err >&5 9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9590 (exit $ac_status); } && { 9591 test -z "$ac_c_werror_flag" || 9592 test ! -s conftest.err 9593 } && test -s conftest$ac_exeext && 9594 $as_test_x conftest$ac_exeext; then 9595 tcl_cv_ld_single_module=yes 9596else 9597 echo "$as_me: failed program was:" >&5 9598sed 's/^/| /' conftest.$ac_ext >&5 9599 9600 tcl_cv_ld_single_module=no 9601fi 9602 9603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9604 conftest$ac_exeext conftest.$ac_ext 9605 LDFLAGS=$hold_ldflags 9606fi 9607{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9608echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9609 if test $tcl_cv_ld_single_module = yes; then 9610 9611 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9612 9613fi 9614 9615 # TEA specific: link shlib with current and compatiblity version flags 9616 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9617 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9618 SHLIB_SUFFIX=".dylib" 9619 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9620 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9621 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9622 9623 LDFLAGS="$LDFLAGS -prebind" 9624fi 9625 9626 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9627 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9628echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9629if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9630 echo $ECHO_N "(cached) $ECHO_C" >&6 9631else 9632 9633 hold_ldflags=$LDFLAGS 9634 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9635 cat >conftest.$ac_ext <<_ACEOF 9636/* confdefs.h. */ 9637_ACEOF 9638cat confdefs.h >>conftest.$ac_ext 9639cat >>conftest.$ac_ext <<_ACEOF 9640/* end confdefs.h. */ 9641 9642int 9643main () 9644{ 9645int i; 9646 ; 9647 return 0; 9648} 9649_ACEOF 9650rm -f conftest.$ac_objext conftest$ac_exeext 9651if { (ac_try="$ac_link" 9652case "(($ac_try" in 9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9654 *) ac_try_echo=$ac_try;; 9655esac 9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9657 (eval "$ac_link") 2>conftest.er1 9658 ac_status=$? 9659 grep -v '^ *+' conftest.er1 >conftest.err 9660 rm -f conftest.er1 9661 cat conftest.err >&5 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 (exit $ac_status); } && { 9664 test -z "$ac_c_werror_flag" || 9665 test ! -s conftest.err 9666 } && test -s conftest$ac_exeext && 9667 $as_test_x conftest$ac_exeext; then 9668 tcl_cv_ld_search_paths_first=yes 9669else 9670 echo "$as_me: failed program was:" >&5 9671sed 's/^/| /' conftest.$ac_ext >&5 9672 9673 tcl_cv_ld_search_paths_first=no 9674fi 9675 9676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9677 conftest$ac_exeext conftest.$ac_ext 9678 LDFLAGS=$hold_ldflags 9679fi 9680{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9681echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9682 if test $tcl_cv_ld_search_paths_first = yes; then 9683 9684 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9685 9686fi 9687 9688 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9689 9690 9691cat >>confdefs.h <<\_ACEOF 9692#define MODULE_SCOPE __private_extern__ 9693_ACEOF 9694 9695 tcl_cv_cc_visibility_hidden=yes 9696 9697fi 9698 9699 CC_SEARCH_FLAGS="" 9700 LD_SEARCH_FLAGS="" 9701 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9702 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9703 # extensions, verify that 64-bit build is possible. 9704 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9705 9706 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9707 9708 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9709echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9710if test "${tcl_cv_lib_x11_64+set}" = set; then 9711 echo $ECHO_N "(cached) $ECHO_C" >&6 9712else 9713 9714 for v in CFLAGS CPPFLAGS LDFLAGS; do 9715 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9716 done 9717 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9718 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9719 cat >conftest.$ac_ext <<_ACEOF 9720/* confdefs.h. */ 9721_ACEOF 9722cat confdefs.h >>conftest.$ac_ext 9723cat >>conftest.$ac_ext <<_ACEOF 9724/* end confdefs.h. */ 9725#include <X11/Xlib.h> 9726int 9727main () 9728{ 9729XrmInitialize(); 9730 ; 9731 return 0; 9732} 9733_ACEOF 9734rm -f conftest.$ac_objext conftest$ac_exeext 9735if { (ac_try="$ac_link" 9736case "(($ac_try" in 9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9738 *) ac_try_echo=$ac_try;; 9739esac 9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9741 (eval "$ac_link") 2>conftest.er1 9742 ac_status=$? 9743 grep -v '^ *+' conftest.er1 >conftest.err 9744 rm -f conftest.er1 9745 cat conftest.err >&5 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 (exit $ac_status); } && { 9748 test -z "$ac_c_werror_flag" || 9749 test ! -s conftest.err 9750 } && test -s conftest$ac_exeext && 9751 $as_test_x conftest$ac_exeext; then 9752 tcl_cv_lib_x11_64=yes 9753else 9754 echo "$as_me: failed program was:" >&5 9755sed 's/^/| /' conftest.$ac_ext >&5 9756 9757 tcl_cv_lib_x11_64=no 9758fi 9759 9760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9761 conftest$ac_exeext conftest.$ac_ext 9762 for v in CFLAGS CPPFLAGS LDFLAGS; do 9763 eval $v'="$hold_'$v'"' 9764 done 9765fi 9766{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9767echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9768 9769fi 9770 9771 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9772 9773 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9774echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9775if test "${tcl_cv_lib_tk_64+set}" = set; then 9776 echo $ECHO_N "(cached) $ECHO_C" >&6 9777else 9778 9779 for v in CFLAGS CPPFLAGS LDFLAGS; do 9780 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9781 done 9782 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9783 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9784 cat >conftest.$ac_ext <<_ACEOF 9785/* confdefs.h. */ 9786_ACEOF 9787cat confdefs.h >>conftest.$ac_ext 9788cat >>conftest.$ac_ext <<_ACEOF 9789/* end confdefs.h. */ 9790#include <tk.h> 9791int 9792main () 9793{ 9794Tk_InitStubs(NULL, "", 0); 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799rm -f conftest.$ac_objext conftest$ac_exeext 9800if { (ac_try="$ac_link" 9801case "(($ac_try" in 9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9803 *) ac_try_echo=$ac_try;; 9804esac 9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9806 (eval "$ac_link") 2>conftest.er1 9807 ac_status=$? 9808 grep -v '^ *+' conftest.er1 >conftest.err 9809 rm -f conftest.er1 9810 cat conftest.err >&5 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9812 (exit $ac_status); } && { 9813 test -z "$ac_c_werror_flag" || 9814 test ! -s conftest.err 9815 } && test -s conftest$ac_exeext && 9816 $as_test_x conftest$ac_exeext; then 9817 tcl_cv_lib_tk_64=yes 9818else 9819 echo "$as_me: failed program was:" >&5 9820sed 's/^/| /' conftest.$ac_ext >&5 9821 9822 tcl_cv_lib_tk_64=no 9823fi 9824 9825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9826 conftest$ac_exeext conftest.$ac_ext 9827 for v in CFLAGS CPPFLAGS LDFLAGS; do 9828 eval $v'="$hold_'$v'"' 9829 done 9830fi 9831{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9832echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9833 9834fi 9835 9836 # remove 64-bit arch flags from CFLAGS et al. if configuration 9837 # does not support 64-bit. 9838 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9839 9840 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9841echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9842 for v in CFLAGS CPPFLAGS LDFLAGS; do 9843 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9844 done 9845fi 9846 9847 9848fi 9849 9850 ;; 9851 OS/390-*) 9852 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9853 9854cat >>confdefs.h <<\_ACEOF 9855#define _OE_SOCKETS 1 9856_ACEOF 9857 9858 ;; 9859 OSF1-V*) 9860 # Digital OSF/1 9861 SHLIB_CFLAGS="" 9862 if test "$SHARED_BUILD" = 1; then 9863 9864 SHLIB_LD='ld -shared -expect_unresolved "*"' 9865 9866else 9867 9868 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9869 9870fi 9871 9872 SHLIB_SUFFIX=".so" 9873 if test $doRpath = yes; then 9874 9875 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9876 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9877fi 9878 9879 if test "$GCC" = yes; then 9880 CFLAGS="$CFLAGS -mieee" 9881else 9882 9883 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9884fi 9885 9886 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9887 if test "${TCL_THREADS}" = 1; then 9888 9889 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9890 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9891 LIBS=`echo $LIBS | sed s/-lpthreads//` 9892 if test "$GCC" = yes; then 9893 9894 LIBS="$LIBS -lpthread -lmach -lexc" 9895 9896else 9897 9898 CFLAGS="$CFLAGS -pthread" 9899 LDFLAGS="$LDFLAGS -pthread" 9900 9901fi 9902 9903 9904fi 9905 9906 ;; 9907 QNX-6*) 9908 # QNX RTP 9909 # This may work for all QNX, but it was only reported for v6. 9910 SHLIB_CFLAGS="-fPIC" 9911 SHLIB_LD="ld -Bshareable -x" 9912 SHLIB_LD_LIBS="" 9913 SHLIB_SUFFIX=".so" 9914 CC_SEARCH_FLAGS="" 9915 LD_SEARCH_FLAGS="" 9916 ;; 9917 SCO_SV-3.2*) 9918 if test "$GCC" = yes; then 9919 9920 SHLIB_CFLAGS="-fPIC -melf" 9921 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9922 9923else 9924 9925 SHLIB_CFLAGS="-Kpic -belf" 9926 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9927 9928fi 9929 9930 SHLIB_LD="ld -G" 9931 SHLIB_LD_LIBS="" 9932 SHLIB_SUFFIX=".so" 9933 CC_SEARCH_FLAGS="" 9934 LD_SEARCH_FLAGS="" 9935 ;; 9936 SunOS-5.[0-6]) 9937 # Careful to not let 5.10+ fall into this case 9938 9939 # Note: If _REENTRANT isn't defined, then Solaris 9940 # won't define thread-safe library routines. 9941 9942 9943cat >>confdefs.h <<\_ACEOF 9944#define _REENTRANT 1 9945_ACEOF 9946 9947 9948cat >>confdefs.h <<\_ACEOF 9949#define _POSIX_PTHREAD_SEMANTICS 1 9950_ACEOF 9951 9952 9953 SHLIB_CFLAGS="-KPIC" 9954 SHLIB_SUFFIX=".so" 9955 if test "$GCC" = yes; then 9956 9957 SHLIB_LD='${CC} -shared' 9958 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9959 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9960 9961else 9962 9963 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9964 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9965 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9966 9967fi 9968 9969 ;; 9970 SunOS-5*) 9971 # Note: If _REENTRANT isn't defined, then Solaris 9972 # won't define thread-safe library routines. 9973 9974 9975cat >>confdefs.h <<\_ACEOF 9976#define _REENTRANT 1 9977_ACEOF 9978 9979 9980cat >>confdefs.h <<\_ACEOF 9981#define _POSIX_PTHREAD_SEMANTICS 1 9982_ACEOF 9983 9984 9985 SHLIB_CFLAGS="-KPIC" 9986 9987 # Check to enable 64-bit flags for compiler/linker 9988 if test "$do64bit" = yes; then 9989 9990 arch=`isainfo` 9991 if test "$arch" = "sparcv9 sparc"; then 9992 9993 if test "$GCC" = yes; then 9994 9995 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9996 9997 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9998echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9999 10000else 10001 10002 do64bit_ok=yes 10003 CFLAGS="$CFLAGS -m64 -mcpu=v9" 10004 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 10005 SHLIB_CFLAGS="-fPIC" 10006 10007fi 10008 10009 10010else 10011 10012 do64bit_ok=yes 10013 if test "$do64bitVIS" = yes; then 10014 10015 CFLAGS="$CFLAGS -xarch=v9a" 10016 LDFLAGS_ARCH="-xarch=v9a" 10017 10018else 10019 10020 CFLAGS="$CFLAGS -xarch=v9" 10021 LDFLAGS_ARCH="-xarch=v9" 10022 10023fi 10024 10025 # Solaris 64 uses this as well 10026 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 10027 10028fi 10029 10030 10031else 10032 if test "$arch" = "amd64 i386"; then 10033 10034 if test "$GCC" = yes; then 10035 10036 case $system in 10037 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10038 do64bit_ok=yes 10039 CFLAGS="$CFLAGS -m64" 10040 LDFLAGS="$LDFLAGS -m64";; 10041 *) 10042 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 10043echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 10044 esac 10045 10046else 10047 10048 do64bit_ok=yes 10049 case $system in 10050 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 10051 CFLAGS="$CFLAGS -m64" 10052 LDFLAGS="$LDFLAGS -m64";; 10053 *) 10054 CFLAGS="$CFLAGS -xarch=amd64" 10055 LDFLAGS="$LDFLAGS -xarch=amd64";; 10056 esac 10057 10058fi 10059 10060 10061else 10062 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 10063echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 10064fi 10065 10066fi 10067 10068 10069fi 10070 10071 10072 SHLIB_SUFFIX=".so" 10073 if test "$GCC" = yes; then 10074 10075 SHLIB_LD='${CC} -shared' 10076 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10077 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 10078 if test "$do64bit_ok" = yes; then 10079 10080 if test "$arch" = "sparcv9 sparc"; then 10081 10082 # We need to specify -static-libgcc or we need to 10083 # add the path to the sparv9 libgcc. 10084 # JH: static-libgcc is necessary for core Tcl, but may 10085 # not be necessary for extensions. 10086 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 10087 # for finding sparcv9 libgcc, get the regular libgcc 10088 # path, remove so name and append 'sparcv9' 10089 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 10090 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 10091 10092else 10093 if test "$arch" = "amd64 i386"; then 10094 10095 # JH: static-libgcc is necessary for core Tcl, but may 10096 # not be necessary for extensions. 10097 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 10098 10099fi 10100 10101fi 10102 10103 10104fi 10105 10106 10107else 10108 10109 case $system in 10110 SunOS-5.[1-9][0-9]*) 10111 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 10112 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 10113 *) 10114 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 10115 esac 10116 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 10117 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 10118 10119fi 10120 10121 ;; 10122 esac 10123 10124 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 10125 10126 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 10127echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 10128 10129fi 10130 10131 10132 10133 10134 # Add in the arch flags late to ensure it wasn't removed. 10135 # Not necessary in TEA, but this is aligned with core 10136 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 10137 10138 # If we're running gcc, then change the C flags for compiling shared 10139 # libraries to the right flags for gcc, instead of those for the 10140 # standard manufacturer compiler. 10141 10142 if test "$GCC" = yes; then 10143 10144 case $system in 10145 AIX-*) ;; 10146 BSD/OS*) ;; 10147 CYGWIN_*) ;; 10148 IRIX*) ;; 10149 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10150 Darwin-*) ;; 10151 SCO_SV-3.2*) ;; 10152 windows) ;; 10153 *) SHLIB_CFLAGS="-fPIC" ;; 10154 esac 10155fi 10156 10157 10158 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10159 10160 10161cat >>confdefs.h <<\_ACEOF 10162#define MODULE_SCOPE extern 10163_ACEOF 10164 10165 10166cat >>confdefs.h <<\_ACEOF 10167#define NO_VIZ 10168_ACEOF 10169 10170 10171fi 10172 10173 10174 if test "$SHARED_LIB_SUFFIX" = ""; then 10175 10176 # TEA specific: use PACKAGE_VERSION instead of VERSION 10177 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10178fi 10179 10180 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10181 10182 # TEA specific: use PACKAGE_VERSION instead of VERSION 10183 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10184fi 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 # These must be called after we do the basic CFLAGS checks and 10200 # verify any possible 64-bit or similar switches are necessary 10201 10202 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10203echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10204 tcl_flags="" 10205 10206 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10207 echo $ECHO_N "(cached) $ECHO_C" >&6 10208else 10209 cat >conftest.$ac_ext <<_ACEOF 10210/* confdefs.h. */ 10211_ACEOF 10212cat confdefs.h >>conftest.$ac_ext 10213cat >>conftest.$ac_ext <<_ACEOF 10214/* end confdefs.h. */ 10215#include <stdlib.h> 10216int 10217main () 10218{ 10219char *p = (char *)strtoll; char *q = (char *)strtoull; 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224rm -f conftest.$ac_objext 10225if { (ac_try="$ac_compile" 10226case "(($ac_try" in 10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10228 *) ac_try_echo=$ac_try;; 10229esac 10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10231 (eval "$ac_compile") 2>conftest.er1 10232 ac_status=$? 10233 grep -v '^ *+' conftest.er1 >conftest.err 10234 rm -f conftest.er1 10235 cat conftest.err >&5 10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10237 (exit $ac_status); } && { 10238 test -z "$ac_c_werror_flag" || 10239 test ! -s conftest.err 10240 } && test -s conftest.$ac_objext; then 10241 tcl_cv_flag__isoc99_source=no 10242else 10243 echo "$as_me: failed program was:" >&5 10244sed 's/^/| /' conftest.$ac_ext >&5 10245 10246 cat >conftest.$ac_ext <<_ACEOF 10247/* confdefs.h. */ 10248_ACEOF 10249cat confdefs.h >>conftest.$ac_ext 10250cat >>conftest.$ac_ext <<_ACEOF 10251/* end confdefs.h. */ 10252#define _ISOC99_SOURCE 1 10253#include <stdlib.h> 10254int 10255main () 10256{ 10257char *p = (char *)strtoll; char *q = (char *)strtoull; 10258 ; 10259 return 0; 10260} 10261_ACEOF 10262rm -f conftest.$ac_objext 10263if { (ac_try="$ac_compile" 10264case "(($ac_try" in 10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10266 *) ac_try_echo=$ac_try;; 10267esac 10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10269 (eval "$ac_compile") 2>conftest.er1 10270 ac_status=$? 10271 grep -v '^ *+' conftest.er1 >conftest.err 10272 rm -f conftest.er1 10273 cat conftest.err >&5 10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10275 (exit $ac_status); } && { 10276 test -z "$ac_c_werror_flag" || 10277 test ! -s conftest.err 10278 } && test -s conftest.$ac_objext; then 10279 tcl_cv_flag__isoc99_source=yes 10280else 10281 echo "$as_me: failed program was:" >&5 10282sed 's/^/| /' conftest.$ac_ext >&5 10283 10284 tcl_cv_flag__isoc99_source=no 10285fi 10286 10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10288fi 10289 10290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10291fi 10292 10293 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10294 10295cat >>confdefs.h <<\_ACEOF 10296#define _ISOC99_SOURCE 1 10297_ACEOF 10298 10299 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10300 fi 10301 10302 10303 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10304 echo $ECHO_N "(cached) $ECHO_C" >&6 10305else 10306 cat >conftest.$ac_ext <<_ACEOF 10307/* confdefs.h. */ 10308_ACEOF 10309cat confdefs.h >>conftest.$ac_ext 10310cat >>conftest.$ac_ext <<_ACEOF 10311/* end confdefs.h. */ 10312#include <sys/stat.h> 10313int 10314main () 10315{ 10316struct stat64 buf; int i = stat64("/", &buf); 10317 ; 10318 return 0; 10319} 10320_ACEOF 10321rm -f conftest.$ac_objext 10322if { (ac_try="$ac_compile" 10323case "(($ac_try" in 10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10325 *) ac_try_echo=$ac_try;; 10326esac 10327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10328 (eval "$ac_compile") 2>conftest.er1 10329 ac_status=$? 10330 grep -v '^ *+' conftest.er1 >conftest.err 10331 rm -f conftest.er1 10332 cat conftest.err >&5 10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 (exit $ac_status); } && { 10335 test -z "$ac_c_werror_flag" || 10336 test ! -s conftest.err 10337 } && test -s conftest.$ac_objext; then 10338 tcl_cv_flag__largefile64_source=no 10339else 10340 echo "$as_me: failed program was:" >&5 10341sed 's/^/| /' conftest.$ac_ext >&5 10342 10343 cat >conftest.$ac_ext <<_ACEOF 10344/* confdefs.h. */ 10345_ACEOF 10346cat confdefs.h >>conftest.$ac_ext 10347cat >>conftest.$ac_ext <<_ACEOF 10348/* end confdefs.h. */ 10349#define _LARGEFILE64_SOURCE 1 10350#include <sys/stat.h> 10351int 10352main () 10353{ 10354struct stat64 buf; int i = stat64("/", &buf); 10355 ; 10356 return 0; 10357} 10358_ACEOF 10359rm -f conftest.$ac_objext 10360if { (ac_try="$ac_compile" 10361case "(($ac_try" in 10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10363 *) ac_try_echo=$ac_try;; 10364esac 10365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10366 (eval "$ac_compile") 2>conftest.er1 10367 ac_status=$? 10368 grep -v '^ *+' conftest.er1 >conftest.err 10369 rm -f conftest.er1 10370 cat conftest.err >&5 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 (exit $ac_status); } && { 10373 test -z "$ac_c_werror_flag" || 10374 test ! -s conftest.err 10375 } && test -s conftest.$ac_objext; then 10376 tcl_cv_flag__largefile64_source=yes 10377else 10378 echo "$as_me: failed program was:" >&5 10379sed 's/^/| /' conftest.$ac_ext >&5 10380 10381 tcl_cv_flag__largefile64_source=no 10382fi 10383 10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10385fi 10386 10387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10388fi 10389 10390 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10391 10392cat >>confdefs.h <<\_ACEOF 10393#define _LARGEFILE64_SOURCE 1 10394_ACEOF 10395 10396 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10397 fi 10398 10399 10400 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10401 echo $ECHO_N "(cached) $ECHO_C" >&6 10402else 10403 cat >conftest.$ac_ext <<_ACEOF 10404/* confdefs.h. */ 10405_ACEOF 10406cat confdefs.h >>conftest.$ac_ext 10407cat >>conftest.$ac_ext <<_ACEOF 10408/* end confdefs.h. */ 10409#include <sys/stat.h> 10410int 10411main () 10412{ 10413char *p = (char *)open64; 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418rm -f conftest.$ac_objext 10419if { (ac_try="$ac_compile" 10420case "(($ac_try" in 10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10422 *) ac_try_echo=$ac_try;; 10423esac 10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10425 (eval "$ac_compile") 2>conftest.er1 10426 ac_status=$? 10427 grep -v '^ *+' conftest.er1 >conftest.err 10428 rm -f conftest.er1 10429 cat conftest.err >&5 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 (exit $ac_status); } && { 10432 test -z "$ac_c_werror_flag" || 10433 test ! -s conftest.err 10434 } && test -s conftest.$ac_objext; then 10435 tcl_cv_flag__largefile_source64=no 10436else 10437 echo "$as_me: failed program was:" >&5 10438sed 's/^/| /' conftest.$ac_ext >&5 10439 10440 cat >conftest.$ac_ext <<_ACEOF 10441/* confdefs.h. */ 10442_ACEOF 10443cat confdefs.h >>conftest.$ac_ext 10444cat >>conftest.$ac_ext <<_ACEOF 10445/* end confdefs.h. */ 10446#define _LARGEFILE_SOURCE64 1 10447#include <sys/stat.h> 10448int 10449main () 10450{ 10451char *p = (char *)open64; 10452 ; 10453 return 0; 10454} 10455_ACEOF 10456rm -f conftest.$ac_objext 10457if { (ac_try="$ac_compile" 10458case "(($ac_try" in 10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10460 *) ac_try_echo=$ac_try;; 10461esac 10462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10463 (eval "$ac_compile") 2>conftest.er1 10464 ac_status=$? 10465 grep -v '^ *+' conftest.er1 >conftest.err 10466 rm -f conftest.er1 10467 cat conftest.err >&5 10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10469 (exit $ac_status); } && { 10470 test -z "$ac_c_werror_flag" || 10471 test ! -s conftest.err 10472 } && test -s conftest.$ac_objext; then 10473 tcl_cv_flag__largefile_source64=yes 10474else 10475 echo "$as_me: failed program was:" >&5 10476sed 's/^/| /' conftest.$ac_ext >&5 10477 10478 tcl_cv_flag__largefile_source64=no 10479fi 10480 10481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10482fi 10483 10484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10485fi 10486 10487 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10488 10489cat >>confdefs.h <<\_ACEOF 10490#define _LARGEFILE_SOURCE64 1 10491_ACEOF 10492 10493 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10494 fi 10495 10496 if test "x${tcl_flags}" = "x" ; then 10497 { echo "$as_me:$LINENO: result: none" >&5 10498echo "${ECHO_T}none" >&6; } 10499 else 10500 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10501echo "${ECHO_T}${tcl_flags}" >&6; } 10502 fi 10503 10504 10505 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10506echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10507 if test "${tcl_cv_type_64bit+set}" = set; then 10508 echo $ECHO_N "(cached) $ECHO_C" >&6 10509else 10510 10511 tcl_cv_type_64bit=none 10512 # See if the compiler knows natively about __int64 10513 cat >conftest.$ac_ext <<_ACEOF 10514/* confdefs.h. */ 10515_ACEOF 10516cat confdefs.h >>conftest.$ac_ext 10517cat >>conftest.$ac_ext <<_ACEOF 10518/* end confdefs.h. */ 10519 10520int 10521main () 10522{ 10523__int64 value = (__int64) 0; 10524 ; 10525 return 0; 10526} 10527_ACEOF 10528rm -f conftest.$ac_objext 10529if { (ac_try="$ac_compile" 10530case "(($ac_try" in 10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10532 *) ac_try_echo=$ac_try;; 10533esac 10534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10535 (eval "$ac_compile") 2>conftest.er1 10536 ac_status=$? 10537 grep -v '^ *+' conftest.er1 >conftest.err 10538 rm -f conftest.er1 10539 cat conftest.err >&5 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); } && { 10542 test -z "$ac_c_werror_flag" || 10543 test ! -s conftest.err 10544 } && test -s conftest.$ac_objext; then 10545 tcl_type_64bit=__int64 10546else 10547 echo "$as_me: failed program was:" >&5 10548sed 's/^/| /' conftest.$ac_ext >&5 10549 10550 tcl_type_64bit="long long" 10551fi 10552 10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10554 # See if we should use long anyway Note that we substitute in the 10555 # type that is our current guess for a 64-bit type inside this check 10556 # program, so it should be modified only carefully... 10557 cat >conftest.$ac_ext <<_ACEOF 10558/* confdefs.h. */ 10559_ACEOF 10560cat confdefs.h >>conftest.$ac_ext 10561cat >>conftest.$ac_ext <<_ACEOF 10562/* end confdefs.h. */ 10563 10564int 10565main () 10566{ 10567switch (0) { 10568 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10569 } 10570 ; 10571 return 0; 10572} 10573_ACEOF 10574rm -f conftest.$ac_objext 10575if { (ac_try="$ac_compile" 10576case "(($ac_try" in 10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10578 *) ac_try_echo=$ac_try;; 10579esac 10580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10581 (eval "$ac_compile") 2>conftest.er1 10582 ac_status=$? 10583 grep -v '^ *+' conftest.er1 >conftest.err 10584 rm -f conftest.er1 10585 cat conftest.err >&5 10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10587 (exit $ac_status); } && { 10588 test -z "$ac_c_werror_flag" || 10589 test ! -s conftest.err 10590 } && test -s conftest.$ac_objext; then 10591 tcl_cv_type_64bit=${tcl_type_64bit} 10592else 10593 echo "$as_me: failed program was:" >&5 10594sed 's/^/| /' conftest.$ac_ext >&5 10595 10596 10597fi 10598 10599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10600fi 10601 10602 if test "${tcl_cv_type_64bit}" = none ; then 10603 10604cat >>confdefs.h <<\_ACEOF 10605#define TCL_WIDE_INT_IS_LONG 1 10606_ACEOF 10607 10608 { echo "$as_me:$LINENO: result: using long" >&5 10609echo "${ECHO_T}using long" >&6; } 10610 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10611 -a "${TEA_PLATFORM}" = "windows" ; then 10612 # TEA specific: We actually want to use the default tcl.h checks in 10613 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10614 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10615echo "${ECHO_T}using Tcl header defaults" >&6; } 10616 else 10617 10618cat >>confdefs.h <<_ACEOF 10619#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10620_ACEOF 10621 10622 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10623echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10624 10625 # Now check for auxiliary declarations 10626 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10627echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10628if test "${tcl_cv_struct_dirent64+set}" = set; then 10629 echo $ECHO_N "(cached) $ECHO_C" >&6 10630else 10631 10632 cat >conftest.$ac_ext <<_ACEOF 10633/* confdefs.h. */ 10634_ACEOF 10635cat confdefs.h >>conftest.$ac_ext 10636cat >>conftest.$ac_ext <<_ACEOF 10637/* end confdefs.h. */ 10638#include <sys/types.h> 10639#include <sys/dirent.h> 10640int 10641main () 10642{ 10643struct dirent64 p; 10644 ; 10645 return 0; 10646} 10647_ACEOF 10648rm -f conftest.$ac_objext 10649if { (ac_try="$ac_compile" 10650case "(($ac_try" in 10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10652 *) ac_try_echo=$ac_try;; 10653esac 10654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10655 (eval "$ac_compile") 2>conftest.er1 10656 ac_status=$? 10657 grep -v '^ *+' conftest.er1 >conftest.err 10658 rm -f conftest.er1 10659 cat conftest.err >&5 10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10661 (exit $ac_status); } && { 10662 test -z "$ac_c_werror_flag" || 10663 test ! -s conftest.err 10664 } && test -s conftest.$ac_objext; then 10665 tcl_cv_struct_dirent64=yes 10666else 10667 echo "$as_me: failed program was:" >&5 10668sed 's/^/| /' conftest.$ac_ext >&5 10669 10670 tcl_cv_struct_dirent64=no 10671fi 10672 10673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10674fi 10675{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10676echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10677 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10678 10679cat >>confdefs.h <<\_ACEOF 10680#define HAVE_STRUCT_DIRENT64 1 10681_ACEOF 10682 10683 fi 10684 10685 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10686echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10687if test "${tcl_cv_struct_stat64+set}" = set; then 10688 echo $ECHO_N "(cached) $ECHO_C" >&6 10689else 10690 10691 cat >conftest.$ac_ext <<_ACEOF 10692/* confdefs.h. */ 10693_ACEOF 10694cat confdefs.h >>conftest.$ac_ext 10695cat >>conftest.$ac_ext <<_ACEOF 10696/* end confdefs.h. */ 10697#include <sys/stat.h> 10698int 10699main () 10700{ 10701struct stat64 p; 10702 10703 ; 10704 return 0; 10705} 10706_ACEOF 10707rm -f conftest.$ac_objext 10708if { (ac_try="$ac_compile" 10709case "(($ac_try" in 10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10711 *) ac_try_echo=$ac_try;; 10712esac 10713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10714 (eval "$ac_compile") 2>conftest.er1 10715 ac_status=$? 10716 grep -v '^ *+' conftest.er1 >conftest.err 10717 rm -f conftest.er1 10718 cat conftest.err >&5 10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10720 (exit $ac_status); } && { 10721 test -z "$ac_c_werror_flag" || 10722 test ! -s conftest.err 10723 } && test -s conftest.$ac_objext; then 10724 tcl_cv_struct_stat64=yes 10725else 10726 echo "$as_me: failed program was:" >&5 10727sed 's/^/| /' conftest.$ac_ext >&5 10728 10729 tcl_cv_struct_stat64=no 10730fi 10731 10732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10733fi 10734{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10735echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10736 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10737 10738cat >>confdefs.h <<\_ACEOF 10739#define HAVE_STRUCT_STAT64 1 10740_ACEOF 10741 10742 fi 10743 10744 10745 10746for ac_func in open64 lseek64 10747do 10748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10749{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10752 echo $ECHO_N "(cached) $ECHO_C" >&6 10753else 10754 cat >conftest.$ac_ext <<_ACEOF 10755/* confdefs.h. */ 10756_ACEOF 10757cat confdefs.h >>conftest.$ac_ext 10758cat >>conftest.$ac_ext <<_ACEOF 10759/* end confdefs.h. */ 10760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10762#define $ac_func innocuous_$ac_func 10763 10764/* System header to define __stub macros and hopefully few prototypes, 10765 which can conflict with char $ac_func (); below. 10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10767 <limits.h> exists even on freestanding compilers. */ 10768 10769#ifdef __STDC__ 10770# include <limits.h> 10771#else 10772# include <assert.h> 10773#endif 10774 10775#undef $ac_func 10776 10777/* Override any GCC internal prototype to avoid an error. 10778 Use char because int might match the return type of a GCC 10779 builtin and then its argument prototype would still apply. */ 10780#ifdef __cplusplus 10781extern "C" 10782#endif 10783char $ac_func (); 10784/* The GNU C library defines this for functions which it implements 10785 to always fail with ENOSYS. Some functions are actually named 10786 something starting with __ and the normal name is an alias. */ 10787#if defined __stub_$ac_func || defined __stub___$ac_func 10788choke me 10789#endif 10790 10791int 10792main () 10793{ 10794return $ac_func (); 10795 ; 10796 return 0; 10797} 10798_ACEOF 10799rm -f conftest.$ac_objext conftest$ac_exeext 10800if { (ac_try="$ac_link" 10801case "(($ac_try" in 10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10803 *) ac_try_echo=$ac_try;; 10804esac 10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10806 (eval "$ac_link") 2>conftest.er1 10807 ac_status=$? 10808 grep -v '^ *+' conftest.er1 >conftest.err 10809 rm -f conftest.er1 10810 cat conftest.err >&5 10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10812 (exit $ac_status); } && { 10813 test -z "$ac_c_werror_flag" || 10814 test ! -s conftest.err 10815 } && test -s conftest$ac_exeext && 10816 $as_test_x conftest$ac_exeext; then 10817 eval "$as_ac_var=yes" 10818else 10819 echo "$as_me: failed program was:" >&5 10820sed 's/^/| /' conftest.$ac_ext >&5 10821 10822 eval "$as_ac_var=no" 10823fi 10824 10825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10826 conftest$ac_exeext conftest.$ac_ext 10827fi 10828ac_res=`eval echo '${'$as_ac_var'}'` 10829 { echo "$as_me:$LINENO: result: $ac_res" >&5 10830echo "${ECHO_T}$ac_res" >&6; } 10831if test `eval echo '${'$as_ac_var'}'` = yes; then 10832 cat >>confdefs.h <<_ACEOF 10833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10834_ACEOF 10835 10836fi 10837done 10838 10839 { echo "$as_me:$LINENO: checking for off64_t" >&5 10840echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10841 if test "${tcl_cv_type_off64_t+set}" = set; then 10842 echo $ECHO_N "(cached) $ECHO_C" >&6 10843else 10844 10845 cat >conftest.$ac_ext <<_ACEOF 10846/* confdefs.h. */ 10847_ACEOF 10848cat confdefs.h >>conftest.$ac_ext 10849cat >>conftest.$ac_ext <<_ACEOF 10850/* end confdefs.h. */ 10851#include <sys/types.h> 10852int 10853main () 10854{ 10855off64_t offset; 10856 10857 ; 10858 return 0; 10859} 10860_ACEOF 10861rm -f conftest.$ac_objext 10862if { (ac_try="$ac_compile" 10863case "(($ac_try" in 10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10865 *) ac_try_echo=$ac_try;; 10866esac 10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10868 (eval "$ac_compile") 2>conftest.er1 10869 ac_status=$? 10870 grep -v '^ *+' conftest.er1 >conftest.err 10871 rm -f conftest.er1 10872 cat conftest.err >&5 10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10874 (exit $ac_status); } && { 10875 test -z "$ac_c_werror_flag" || 10876 test ! -s conftest.err 10877 } && test -s conftest.$ac_objext; then 10878 tcl_cv_type_off64_t=yes 10879else 10880 echo "$as_me: failed program was:" >&5 10881sed 's/^/| /' conftest.$ac_ext >&5 10882 10883 tcl_cv_type_off64_t=no 10884fi 10885 10886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10887fi 10888 10889 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10890 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10891 test "x${ac_cv_func_open64}" = "xyes" ; then 10892 10893cat >>confdefs.h <<\_ACEOF 10894#define HAVE_TYPE_OFF64_T 1 10895_ACEOF 10896 10897 { echo "$as_me:$LINENO: result: yes" >&5 10898echo "${ECHO_T}yes" >&6; } 10899 else 10900 { echo "$as_me:$LINENO: result: no" >&5 10901echo "${ECHO_T}no" >&6; } 10902 fi 10903 fi 10904 10905 10906 10907#-------------------------------------------------------------------- 10908# Set the default compiler switches based on the --enable-symbols 10909# option. 10910#-------------------------------------------------------------------- 10911 10912 10913 10914 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10915echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10916 # Check whether --enable-symbols was given. 10917if test "${enable_symbols+set}" = set; then 10918 enableval=$enable_symbols; tcl_ok=$enableval 10919else 10920 tcl_ok=no 10921fi 10922 10923 DBGX="" 10924 if test "$tcl_ok" = "no"; then 10925 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10926 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10927 { echo "$as_me:$LINENO: result: no" >&5 10928echo "${ECHO_T}no" >&6; } 10929 else 10930 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10931 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10932 if test "$tcl_ok" = "yes"; then 10933 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10934echo "${ECHO_T}yes (standard debugging)" >&6; } 10935 fi 10936 fi 10937 # TEA specific: 10938 if test "${TEA_PLATFORM}" != "windows" ; then 10939 LDFLAGS_DEFAULT="${LDFLAGS}" 10940 fi 10941 10942 10943 10944 10945 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10946 10947cat >>confdefs.h <<\_ACEOF 10948#define TCL_MEM_DEBUG 1 10949_ACEOF 10950 10951 fi 10952 10953 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10954 if test "$tcl_ok" = "all"; then 10955 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10956echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10957 else 10958 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10959echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10960 fi 10961 fi 10962 10963 10964#-------------------------------------------------------------------- 10965# Everyone should be linking against the Tcl stub library. If you 10966# can't for some reason, remove this definition. If you aren't using 10967# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10968# link against the non-stubbed Tcl library. 10969#-------------------------------------------------------------------- 10970 10971cat >>confdefs.h <<\_ACEOF 10972#define USE_TCL_STUBS 1 10973_ACEOF 10974 10975cat >>confdefs.h <<\_ACEOF 10976#define USE_TK_STUBS 1 10977_ACEOF 10978 10979 10980#-------------------------------------------------------------------- 10981# This macro generates a line to use when building a library. It 10982# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10983# and TEA_LOAD_TCLCONFIG macros above. 10984#-------------------------------------------------------------------- 10985 10986 10987 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10988 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10989 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10990 cat >conftest.$ac_ext <<_ACEOF 10991/* confdefs.h. */ 10992_ACEOF 10993cat confdefs.h >>conftest.$ac_ext 10994cat >>conftest.$ac_ext <<_ACEOF 10995/* end confdefs.h. */ 10996 10997#if defined(_MSC_VER) && _MSC_VER >= 1400 10998print("manifest needed") 10999#endif 11000 11001_ACEOF 11002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11003 $EGREP "manifest needed" >/dev/null 2>&1; then 11004 11005 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11006 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11007 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11008 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11009 11010 CLEANFILES="$CLEANFILES *.manifest" 11011 11012 11013fi 11014rm -f -r conftest* 11015 11016 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11017 else 11018 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11019 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11020 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11021 fi 11022 11023 if test "${SHARED_BUILD}" = "1" ; then 11024 MAKE_LIB="${MAKE_SHARED_LIB} " 11025 else 11026 MAKE_LIB="${MAKE_STATIC_LIB} " 11027 fi 11028 11029 #-------------------------------------------------------------------- 11030 # Shared libraries and static libraries have different names. 11031 # Use the double eval to make sure any variables in the suffix is 11032 # substituted. (@@@ Might not be necessary anymore) 11033 #-------------------------------------------------------------------- 11034 11035 if test "${TEA_PLATFORM}" = "windows" ; then 11036 if test "${SHARED_BUILD}" = "1" ; then 11037 # We force the unresolved linking of symbols that are really in 11038 # the private libraries of Tcl and Tk. 11039 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11040 if test x"${TK_BIN_DIR}" != x ; then 11041 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11042 fi 11043 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11044 else 11045 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11046 fi 11047 # Some packages build their own stubs libraries 11048 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11049 if test "$GCC" = "yes"; then 11050 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11051 fi 11052 # These aren't needed on Windows (either MSVC or gcc) 11053 RANLIB=: 11054 RANLIB_STUB=: 11055 else 11056 RANLIB_STUB="${RANLIB}" 11057 if test "${SHARED_BUILD}" = "1" ; then 11058 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11059 if test x"${TK_BIN_DIR}" != x ; then 11060 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11061 fi 11062 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11063 RANLIB=: 11064 else 11065 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11066 fi 11067 # Some packages build their own stubs libraries 11068 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11069 fi 11070 11071 # These are escaped so that only CFLAGS is picked up at configure time. 11072 # The other values will be substituted at make time. 11073 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11074 if test "${SHARED_BUILD}" = "1" ; then 11075 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11076 fi 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087#-------------------------------------------------------------------- 11088# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11089# file during the install process. Don't run the TCLSH_PROG through 11090# ${CYGPATH} because it's being used directly by make. 11091# Require that we use a tclsh shell version 8.2 or later since earlier 11092# versions have bugs in the pkg_mkIndex routine. 11093#-------------------------------------------------------------------- 11094 11095 11096 { echo "$as_me:$LINENO: checking for tclsh" >&5 11097echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11098 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11099 # tclConfig.sh is in Tcl build directory 11100 if test "${TEA_PLATFORM}" = "windows"; then 11101 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11102 else 11103 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11104 fi 11105 else 11106 # tclConfig.sh is in install location 11107 if test "${TEA_PLATFORM}" = "windows"; then 11108 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11109 else 11110 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11111 fi 11112 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11113 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11114 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11115 for i in $list ; do 11116 if test -f "$i/${TCLSH_PROG}" ; then 11117 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11118 break 11119 fi 11120 done 11121 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11122 fi 11123 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11124echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11125 11126 11127 11128 { echo "$as_me:$LINENO: checking for wish" >&5 11129echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11130 if test -f "${TK_BIN_DIR}/Makefile" ; then 11131 # tkConfig.sh is in Tk build directory 11132 if test "${TEA_PLATFORM}" = "windows"; then 11133 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11134 else 11135 WISH_PROG="${TK_BIN_DIR}/wish" 11136 fi 11137 else 11138 # tkConfig.sh is in install location 11139 if test "${TEA_PLATFORM}" = "windows"; then 11140 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11141 else 11142 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11143 fi 11144 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11145 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11146 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11147 for i in $list ; do 11148 if test -f "$i/${WISH_PROG}" ; then 11149 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11150 break 11151 fi 11152 done 11153 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11154 fi 11155 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11156echo "${ECHO_T}${WISH_PROG}" >&6; } 11157 11158 11159 11160#-------------------------------------------------------------------- 11161# Finally, substitute all of the various values into the Makefile. 11162#-------------------------------------------------------------------- 11163 11164ac_config_files="$ac_config_files Makefile" 11165 11166cat >confcache <<\_ACEOF 11167# This file is a shell script that caches the results of configure 11168# tests run on this system so they can be shared between configure 11169# scripts and configure runs, see configure's option --config-cache. 11170# It is not useful on other systems. If it contains results you don't 11171# want to keep, you may remove or edit it. 11172# 11173# config.status only pays attention to the cache file if you give it 11174# the --recheck option to rerun configure. 11175# 11176# `ac_cv_env_foo' variables (set or unset) will be overridden when 11177# loading this file, other *unset* `ac_cv_foo' will be assigned the 11178# following values. 11179 11180_ACEOF 11181 11182# The following way of writing the cache mishandles newlines in values, 11183# but we know of no workaround that is simple, portable, and efficient. 11184# So, we kill variables containing newlines. 11185# Ultrix sh set writes to stderr and can't be redirected directly, 11186# and sets the high bit in the cache file unless we assign to the vars. 11187( 11188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11189 eval ac_val=\$$ac_var 11190 case $ac_val in #( 11191 *${as_nl}*) 11192 case $ac_var in #( 11193 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11194echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11195 esac 11196 case $ac_var in #( 11197 _ | IFS | as_nl) ;; #( 11198 *) $as_unset $ac_var ;; 11199 esac ;; 11200 esac 11201 done 11202 11203 (set) 2>&1 | 11204 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11205 *${as_nl}ac_space=\ *) 11206 # `set' does not quote correctly, so add quotes (double-quote 11207 # substitution turns \\\\ into \\, and sed turns \\ into \). 11208 sed -n \ 11209 "s/'/'\\\\''/g; 11210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11211 ;; #( 11212 *) 11213 # `set' quotes correctly as required by POSIX, so do not add quotes. 11214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11215 ;; 11216 esac | 11217 sort 11218) | 11219 sed ' 11220 /^ac_cv_env_/b end 11221 t clear 11222 :clear 11223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11224 t end 11225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11226 :end' >>confcache 11227if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11228 if test -w "$cache_file"; then 11229 test "x$cache_file" != "x/dev/null" && 11230 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11231echo "$as_me: updating cache $cache_file" >&6;} 11232 cat confcache >$cache_file 11233 else 11234 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11235echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11236 fi 11237fi 11238rm -f confcache 11239 11240test "x$prefix" = xNONE && prefix=$ac_default_prefix 11241# Let make expand exec_prefix. 11242test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11243 11244# Transform confdefs.h into DEFS. 11245# Protect against shell expansion while executing Makefile rules. 11246# Protect against Makefile macro expansion. 11247# 11248# If the first sed substitution is executed (which looks for macros that 11249# take arguments), then branch to the quote section. Otherwise, 11250# look for a macro that doesn't take arguments. 11251ac_script=' 11252t clear 11253:clear 11254s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11255t quote 11256s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11257t quote 11258b any 11259:quote 11260s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11261s/\[/\\&/g 11262s/\]/\\&/g 11263s/\$/$$/g 11264H 11265:any 11266${ 11267 g 11268 s/^\n// 11269 s/\n/ /g 11270 p 11271} 11272' 11273DEFS=`sed -n "$ac_script" confdefs.h` 11274 11275 11276ac_libobjs= 11277ac_ltlibobjs= 11278for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11279 # 1. Remove the extension, and $U if already installed. 11280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11281 ac_i=`echo "$ac_i" | sed "$ac_script"` 11282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11283 # will be set to the directory where LIBOBJS objects are built. 11284 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11285 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11286done 11287LIBOBJS=$ac_libobjs 11288 11289LTLIBOBJS=$ac_ltlibobjs 11290 11291 11292CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11293 11294: ${CONFIG_STATUS=./config.status} 11295ac_clean_files_save=$ac_clean_files 11296ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11297{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11298echo "$as_me: creating $CONFIG_STATUS" >&6;} 11299cat >$CONFIG_STATUS <<_ACEOF 11300#! $SHELL 11301# Generated by $as_me. 11302# Run this file to recreate the current configuration. 11303# Compiler output produced by configure, useful for debugging 11304# configure, is in config.log if it exists. 11305 11306debug=false 11307ac_cs_recheck=false 11308ac_cs_silent=false 11309SHELL=\${CONFIG_SHELL-$SHELL} 11310_ACEOF 11311 11312cat >>$CONFIG_STATUS <<\_ACEOF 11313## --------------------- ## 11314## M4sh Initialization. ## 11315## --------------------- ## 11316 11317# Be more Bourne compatible 11318DUALCASE=1; export DUALCASE # for MKS sh 11319if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11320 emulate sh 11321 NULLCMD=: 11322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11323 # is contrary to our usage. Disable this feature. 11324 alias -g '${1+"$@"}'='"$@"' 11325 setopt NO_GLOB_SUBST 11326else 11327 case `(set -o) 2>/dev/null` in 11328 *posix*) set -o posix ;; 11329esac 11330 11331fi 11332 11333 11334 11335 11336# PATH needs CR 11337# Avoid depending upon Character Ranges. 11338as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11339as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11340as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11341as_cr_digits='0123456789' 11342as_cr_alnum=$as_cr_Letters$as_cr_digits 11343 11344# The user is always right. 11345if test "${PATH_SEPARATOR+set}" != set; then 11346 echo "#! /bin/sh" >conf$$.sh 11347 echo "exit 0" >>conf$$.sh 11348 chmod +x conf$$.sh 11349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11350 PATH_SEPARATOR=';' 11351 else 11352 PATH_SEPARATOR=: 11353 fi 11354 rm -f conf$$.sh 11355fi 11356 11357# Support unset when possible. 11358if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11359 as_unset=unset 11360else 11361 as_unset=false 11362fi 11363 11364 11365# IFS 11366# We need space, tab and new line, in precisely that order. Quoting is 11367# there to prevent editors from complaining about space-tab. 11368# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11369# splitting by setting IFS to empty value.) 11370as_nl=' 11371' 11372IFS=" "" $as_nl" 11373 11374# Find who we are. Look in the path if we contain no directory separator. 11375case $0 in 11376 *[\\/]* ) as_myself=$0 ;; 11377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11378for as_dir in $PATH 11379do 11380 IFS=$as_save_IFS 11381 test -z "$as_dir" && as_dir=. 11382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11383done 11384IFS=$as_save_IFS 11385 11386 ;; 11387esac 11388# We did not find ourselves, most probably we were run as `sh COMMAND' 11389# in which case we are not to be found in the path. 11390if test "x$as_myself" = x; then 11391 as_myself=$0 11392fi 11393if test ! -f "$as_myself"; then 11394 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11395 { (exit 1); exit 1; } 11396fi 11397 11398# Work around bugs in pre-3.0 UWIN ksh. 11399for as_var in ENV MAIL MAILPATH 11400do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11401done 11402PS1='$ ' 11403PS2='> ' 11404PS4='+ ' 11405 11406# NLS nuisances. 11407for as_var in \ 11408 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11409 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11410 LC_TELEPHONE LC_TIME 11411do 11412 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11413 eval $as_var=C; export $as_var 11414 else 11415 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11416 fi 11417done 11418 11419# Required to use basename. 11420if expr a : '\(a\)' >/dev/null 2>&1 && 11421 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11422 as_expr=expr 11423else 11424 as_expr=false 11425fi 11426 11427if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11428 as_basename=basename 11429else 11430 as_basename=false 11431fi 11432 11433 11434# Name of the executable. 11435as_me=`$as_basename -- "$0" || 11436$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11437 X"$0" : 'X\(//\)$' \| \ 11438 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11439echo X/"$0" | 11440 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11441 s//\1/ 11442 q 11443 } 11444 /^X\/\(\/\/\)$/{ 11445 s//\1/ 11446 q 11447 } 11448 /^X\/\(\/\).*/{ 11449 s//\1/ 11450 q 11451 } 11452 s/.*/./; q'` 11453 11454# CDPATH. 11455$as_unset CDPATH 11456 11457 11458 11459 as_lineno_1=$LINENO 11460 as_lineno_2=$LINENO 11461 test "x$as_lineno_1" != "x$as_lineno_2" && 11462 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11463 11464 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11465 # uniformly replaced by the line number. The first 'sed' inserts a 11466 # line-number line after each line using $LINENO; the second 'sed' 11467 # does the real work. The second script uses 'N' to pair each 11468 # line-number line with the line containing $LINENO, and appends 11469 # trailing '-' during substitution so that $LINENO is not a special 11470 # case at line end. 11471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11472 # scripts with optimization help from Paolo Bonzini. Blame Lee 11473 # E. McMahon (1931-1989) for sed's syntax. :-) 11474 sed -n ' 11475 p 11476 /[$]LINENO/= 11477 ' <$as_myself | 11478 sed ' 11479 s/[$]LINENO.*/&-/ 11480 t lineno 11481 b 11482 :lineno 11483 N 11484 :loop 11485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11486 t loop 11487 s/-\n.*// 11488 ' >$as_me.lineno && 11489 chmod +x "$as_me.lineno" || 11490 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11491 { (exit 1); exit 1; }; } 11492 11493 # Don't try to exec as it changes $[0], causing all sort of problems 11494 # (the dirname of $[0] is not the place where we might find the 11495 # original and so on. Autoconf is especially sensitive to this). 11496 . "./$as_me.lineno" 11497 # Exit status is that of the last command. 11498 exit 11499} 11500 11501 11502if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11503 as_dirname=dirname 11504else 11505 as_dirname=false 11506fi 11507 11508ECHO_C= ECHO_N= ECHO_T= 11509case `echo -n x` in 11510-n*) 11511 case `echo 'x\c'` in 11512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11513 *) ECHO_C='\c';; 11514 esac;; 11515*) 11516 ECHO_N='-n';; 11517esac 11518 11519if expr a : '\(a\)' >/dev/null 2>&1 && 11520 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11521 as_expr=expr 11522else 11523 as_expr=false 11524fi 11525 11526rm -f conf$$ conf$$.exe conf$$.file 11527if test -d conf$$.dir; then 11528 rm -f conf$$.dir/conf$$.file 11529else 11530 rm -f conf$$.dir 11531 mkdir conf$$.dir 11532fi 11533echo >conf$$.file 11534if ln -s conf$$.file conf$$ 2>/dev/null; then 11535 as_ln_s='ln -s' 11536 # ... but there are two gotchas: 11537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11539 # In both cases, we have to default to `cp -p'. 11540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11541 as_ln_s='cp -p' 11542elif ln conf$$.file conf$$ 2>/dev/null; then 11543 as_ln_s=ln 11544else 11545 as_ln_s='cp -p' 11546fi 11547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11548rmdir conf$$.dir 2>/dev/null 11549 11550if mkdir -p . 2>/dev/null; then 11551 as_mkdir_p=: 11552else 11553 test -d ./-p && rmdir ./-p 11554 as_mkdir_p=false 11555fi 11556 11557if test -x / >/dev/null 2>&1; then 11558 as_test_x='test -x' 11559else 11560 if ls -dL / >/dev/null 2>&1; then 11561 as_ls_L_option=L 11562 else 11563 as_ls_L_option= 11564 fi 11565 as_test_x=' 11566 eval sh -c '\'' 11567 if test -d "$1"; then 11568 test -d "$1/."; 11569 else 11570 case $1 in 11571 -*)set "./$1";; 11572 esac; 11573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11574 ???[sx]*):;;*)false;;esac;fi 11575 '\'' sh 11576 ' 11577fi 11578as_executable_p=$as_test_x 11579 11580# Sed expression to map a string onto a valid CPP name. 11581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11582 11583# Sed expression to map a string onto a valid variable name. 11584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11585 11586 11587exec 6>&1 11588 11589# Save the log message, to keep $[0] and so on meaningful, and to 11590# report actual input values of CONFIG_FILES etc. instead of their 11591# values after options handling. 11592ac_log=" 11593This file was extended by Tktable $as_me 2.10, which was 11594generated by GNU Autoconf 2.61. Invocation command line was 11595 11596 CONFIG_FILES = $CONFIG_FILES 11597 CONFIG_HEADERS = $CONFIG_HEADERS 11598 CONFIG_LINKS = $CONFIG_LINKS 11599 CONFIG_COMMANDS = $CONFIG_COMMANDS 11600 $ $0 $@ 11601 11602on `(hostname || uname -n) 2>/dev/null | sed 1q` 11603" 11604 11605_ACEOF 11606 11607cat >>$CONFIG_STATUS <<_ACEOF 11608# Files that config.status was made for. 11609config_files="$ac_config_files" 11610 11611_ACEOF 11612 11613cat >>$CONFIG_STATUS <<\_ACEOF 11614ac_cs_usage="\ 11615\`$as_me' instantiates files from templates according to the 11616current configuration. 11617 11618Usage: $0 [OPTIONS] [FILE]... 11619 11620 -h, --help print this help, then exit 11621 -V, --version print version number and configuration settings, then exit 11622 -q, --quiet do not print progress messages 11623 -d, --debug don't remove temporary files 11624 --recheck update $as_me by reconfiguring in the same conditions 11625 --file=FILE[:TEMPLATE] 11626 instantiate the configuration file FILE 11627 11628Configuration files: 11629$config_files 11630 11631Report bugs to <bug-autoconf@gnu.org>." 11632 11633_ACEOF 11634cat >>$CONFIG_STATUS <<_ACEOF 11635ac_cs_version="\\ 11636Tktable config.status 2.10 11637configured by $0, generated by GNU Autoconf 2.61, 11638 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11639 11640Copyright (C) 2006 Free Software Foundation, Inc. 11641This config.status script is free software; the Free Software Foundation 11642gives unlimited permission to copy, distribute and modify it." 11643 11644ac_pwd='$ac_pwd' 11645srcdir='$srcdir' 11646INSTALL='$INSTALL' 11647_ACEOF 11648 11649cat >>$CONFIG_STATUS <<\_ACEOF 11650# If no file are specified by the user, then we need to provide default 11651# value. By we need to know if files were specified by the user. 11652ac_need_defaults=: 11653while test $# != 0 11654do 11655 case $1 in 11656 --*=*) 11657 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11659 ac_shift=: 11660 ;; 11661 *) 11662 ac_option=$1 11663 ac_optarg=$2 11664 ac_shift=shift 11665 ;; 11666 esac 11667 11668 case $ac_option in 11669 # Handling of the options. 11670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11671 ac_cs_recheck=: ;; 11672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11673 echo "$ac_cs_version"; exit ;; 11674 --debug | --debu | --deb | --de | --d | -d ) 11675 debug=: ;; 11676 --file | --fil | --fi | --f ) 11677 $ac_shift 11678 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11679 ac_need_defaults=false;; 11680 --he | --h | --help | --hel | -h ) 11681 echo "$ac_cs_usage"; exit ;; 11682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11683 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11684 ac_cs_silent=: ;; 11685 11686 # This is an error. 11687 -*) { echo "$as_me: error: unrecognized option: $1 11688Try \`$0 --help' for more information." >&2 11689 { (exit 1); exit 1; }; } ;; 11690 11691 *) ac_config_targets="$ac_config_targets $1" 11692 ac_need_defaults=false ;; 11693 11694 esac 11695 shift 11696done 11697 11698ac_configure_extra_args= 11699 11700if $ac_cs_silent; then 11701 exec 6>/dev/null 11702 ac_configure_extra_args="$ac_configure_extra_args --silent" 11703fi 11704 11705_ACEOF 11706cat >>$CONFIG_STATUS <<_ACEOF 11707if \$ac_cs_recheck; then 11708 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11709 CONFIG_SHELL=$SHELL 11710 export CONFIG_SHELL 11711 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11712fi 11713 11714_ACEOF 11715cat >>$CONFIG_STATUS <<\_ACEOF 11716exec 5>>config.log 11717{ 11718 echo 11719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11720## Running $as_me. ## 11721_ASBOX 11722 echo "$ac_log" 11723} >&5 11724 11725_ACEOF 11726cat >>$CONFIG_STATUS <<_ACEOF 11727_ACEOF 11728 11729cat >>$CONFIG_STATUS <<\_ACEOF 11730 11731# Handling of arguments. 11732for ac_config_target in $ac_config_targets 11733do 11734 case $ac_config_target in 11735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11736 11737 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11738echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11739 { (exit 1); exit 1; }; };; 11740 esac 11741done 11742 11743 11744# If the user did not use the arguments to specify the items to instantiate, 11745# then the envvar interface is used. Set only those that are not. 11746# We use the long form for the default assignment because of an extremely 11747# bizarre bug on SunOS 4.1.3. 11748if $ac_need_defaults; then 11749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11750fi 11751 11752# Have a temporary directory for convenience. Make it in the build tree 11753# simply because there is no reason against having it here, and in addition, 11754# creating and moving files from /tmp can sometimes cause problems. 11755# Hook for its removal unless debugging. 11756# Note that there is a small window in which the directory will not be cleaned: 11757# after its creation but before its name has been assigned to `$tmp'. 11758$debug || 11759{ 11760 tmp= 11761 trap 'exit_status=$? 11762 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11763' 0 11764 trap '{ (exit 1); exit 1; }' 1 2 13 15 11765} 11766# Create a (secure) tmp directory for tmp files. 11767 11768{ 11769 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11770 test -n "$tmp" && test -d "$tmp" 11771} || 11772{ 11773 tmp=./conf$$-$RANDOM 11774 (umask 077 && mkdir "$tmp") 11775} || 11776{ 11777 echo "$me: cannot create a temporary directory in ." >&2 11778 { (exit 1); exit 1; } 11779} 11780 11781# 11782# Set up the sed scripts for CONFIG_FILES section. 11783# 11784 11785# No need to generate the scripts if there are no CONFIG_FILES. 11786# This happens for instance when ./config.status config.h 11787if test -n "$CONFIG_FILES"; then 11788 11789_ACEOF 11790 11791 11792 11793ac_delim='%!_!# ' 11794for ac_last_try in false false false false false :; do 11795 cat >conf$$subs.sed <<_ACEOF 11796SHELL!$SHELL$ac_delim 11797PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11798PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11799PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11800PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11801PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11802PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11803exec_prefix!$exec_prefix$ac_delim 11804prefix!$prefix$ac_delim 11805program_transform_name!$program_transform_name$ac_delim 11806bindir!$bindir$ac_delim 11807sbindir!$sbindir$ac_delim 11808libexecdir!$libexecdir$ac_delim 11809datarootdir!$datarootdir$ac_delim 11810datadir!$datadir$ac_delim 11811sysconfdir!$sysconfdir$ac_delim 11812sharedstatedir!$sharedstatedir$ac_delim 11813localstatedir!$localstatedir$ac_delim 11814includedir!$includedir$ac_delim 11815oldincludedir!$oldincludedir$ac_delim 11816docdir!$docdir$ac_delim 11817infodir!$infodir$ac_delim 11818htmldir!$htmldir$ac_delim 11819dvidir!$dvidir$ac_delim 11820pdfdir!$pdfdir$ac_delim 11821psdir!$psdir$ac_delim 11822libdir!$libdir$ac_delim 11823localedir!$localedir$ac_delim 11824mandir!$mandir$ac_delim 11825DEFS!$DEFS$ac_delim 11826ECHO_C!$ECHO_C$ac_delim 11827ECHO_N!$ECHO_N$ac_delim 11828ECHO_T!$ECHO_T$ac_delim 11829LIBS!$LIBS$ac_delim 11830build_alias!$build_alias$ac_delim 11831host_alias!$host_alias$ac_delim 11832target_alias!$target_alias$ac_delim 11833CYGPATH!$CYGPATH$ac_delim 11834EXEEXT!$EXEEXT$ac_delim 11835PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11836PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11837PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11838PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11839PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11840PKG_HEADERS!$PKG_HEADERS$ac_delim 11841PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11842PKG_LIBS!$PKG_LIBS$ac_delim 11843PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11844TCL_VERSION!$TCL_VERSION$ac_delim 11845TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11846TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11847TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11848TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11849TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11850TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11851TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11852TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11853TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11854CLEANFILES!$CLEANFILES$ac_delim 11855TCL_LIBS!$TCL_LIBS$ac_delim 11856TCL_DEFS!$TCL_DEFS$ac_delim 11857TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11858TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11859TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11860TK_VERSION!$TK_VERSION$ac_delim 11861TK_BIN_DIR!$TK_BIN_DIR$ac_delim 11862TK_SRC_DIR!$TK_SRC_DIR$ac_delim 11863TK_LIB_FILE!$TK_LIB_FILE$ac_delim 11864TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 11865TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 11866TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 11867TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 11868TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 11869TK_LIBS!$TK_LIBS$ac_delim 11870TK_XINCLUDES!$TK_XINCLUDES$ac_delim 11871CC!$CC$ac_delim 11872CFLAGS!$CFLAGS$ac_delim 11873LDFLAGS!$LDFLAGS$ac_delim 11874CPPFLAGS!$CPPFLAGS$ac_delim 11875ac_ct_CC!$ac_ct_CC$ac_delim 11876OBJEXT!$OBJEXT$ac_delim 11877CPP!$CPP$ac_delim 11878INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11879INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11880INSTALL_DATA!$INSTALL_DATA$ac_delim 11881SET_MAKE!$SET_MAKE$ac_delim 11882RANLIB!$RANLIB$ac_delim 11883GREP!$GREP$ac_delim 11884EGREP!$EGREP$ac_delim 11885MATH_LIBS!$MATH_LIBS$ac_delim 11886PKG_SOURCES!$PKG_SOURCES$ac_delim 11887PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11888TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11889TK_INCLUDES!$TK_INCLUDES$ac_delim 11890XMKMF!$XMKMF$ac_delim 11891TCL_THREADS!$TCL_THREADS$ac_delim 11892SHARED_BUILD!$SHARED_BUILD$ac_delim 11893_ACEOF 11894 11895 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11896 break 11897 elif $ac_last_try; then 11898 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11899echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11900 { (exit 1); exit 1; }; } 11901 else 11902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11903 fi 11904done 11905 11906ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11907if test -n "$ac_eof"; then 11908 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11909 ac_eof=`expr $ac_eof + 1` 11910fi 11911 11912cat >>$CONFIG_STATUS <<_ACEOF 11913cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11914/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11915_ACEOF 11916sed ' 11917s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11918s/^/s,@/; s/!/@,|#_!!_#|/ 11919:n 11920t n 11921s/'"$ac_delim"'$/,g/; t 11922s/$/\\/; p 11923N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11924' >>$CONFIG_STATUS <conf$$subs.sed 11925rm -f conf$$subs.sed 11926cat >>$CONFIG_STATUS <<_ACEOF 11927CEOF$ac_eof 11928_ACEOF 11929 11930 11931ac_delim='%!_!# ' 11932for ac_last_try in false false false false false :; do 11933 cat >conf$$subs.sed <<_ACEOF 11934AR!$AR$ac_delim 11935CELIB_DIR!$CELIB_DIR$ac_delim 11936CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11937CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11938CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11939STLIB_LD!$STLIB_LD$ac_delim 11940SHLIB_LD!$SHLIB_LD$ac_delim 11941SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11942SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11943LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11944CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11945LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11946TCL_DBGX!$TCL_DBGX$ac_delim 11947MAKE_LIB!$MAKE_LIB$ac_delim 11948MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11949MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11950MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11951RANLIB_STUB!$RANLIB_STUB$ac_delim 11952VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11953VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11954TCLSH_PROG!$TCLSH_PROG$ac_delim 11955WISH_PROG!$WISH_PROG$ac_delim 11956LIBOBJS!$LIBOBJS$ac_delim 11957LTLIBOBJS!$LTLIBOBJS$ac_delim 11958_ACEOF 11959 11960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then 11961 break 11962 elif $ac_last_try; then 11963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11964echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11965 { (exit 1); exit 1; }; } 11966 else 11967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11968 fi 11969done 11970 11971ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11972if test -n "$ac_eof"; then 11973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11974 ac_eof=`expr $ac_eof + 1` 11975fi 11976 11977cat >>$CONFIG_STATUS <<_ACEOF 11978cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11980_ACEOF 11981sed ' 11982s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11983s/^/s,@/; s/!/@,|#_!!_#|/ 11984:n 11985t n 11986s/'"$ac_delim"'$/,g/; t 11987s/$/\\/; p 11988N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11989' >>$CONFIG_STATUS <conf$$subs.sed 11990rm -f conf$$subs.sed 11991cat >>$CONFIG_STATUS <<_ACEOF 11992:end 11993s/|#_!!_#|//g 11994CEOF$ac_eof 11995_ACEOF 11996 11997 11998# VPATH may cause trouble with some makes, so we remove $(srcdir), 11999# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12000# trailing colons and then remove the whole line if VPATH becomes empty 12001# (actually we leave an empty line to preserve line numbers). 12002if test "x$srcdir" = x.; then 12003 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12004s/:*\$(srcdir):*/:/ 12005s/:*\${srcdir}:*/:/ 12006s/:*@srcdir@:*/:/ 12007s/^\([^=]*=[ ]*\):*/\1/ 12008s/:*$// 12009s/^[^=]*=[ ]*$// 12010}' 12011fi 12012 12013cat >>$CONFIG_STATUS <<\_ACEOF 12014fi # test -n "$CONFIG_FILES" 12015 12016 12017for ac_tag in :F $CONFIG_FILES 12018do 12019 case $ac_tag in 12020 :[FHLC]) ac_mode=$ac_tag; continue;; 12021 esac 12022 case $ac_mode$ac_tag in 12023 :[FHL]*:*);; 12024 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12025echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12026 { (exit 1); exit 1; }; };; 12027 :[FH]-) ac_tag=-:-;; 12028 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12029 esac 12030 ac_save_IFS=$IFS 12031 IFS=: 12032 set x $ac_tag 12033 IFS=$ac_save_IFS 12034 shift 12035 ac_file=$1 12036 shift 12037 12038 case $ac_mode in 12039 :L) ac_source=$1;; 12040 :[FH]) 12041 ac_file_inputs= 12042 for ac_f 12043 do 12044 case $ac_f in 12045 -) ac_f="$tmp/stdin";; 12046 *) # Look for the file first in the build tree, then in the source tree 12047 # (if the path is not absolute). The absolute path cannot be DOS-style, 12048 # because $ac_f cannot contain `:'. 12049 test -f "$ac_f" || 12050 case $ac_f in 12051 [\\/$]*) false;; 12052 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12053 esac || 12054 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12055echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12056 { (exit 1); exit 1; }; };; 12057 esac 12058 ac_file_inputs="$ac_file_inputs $ac_f" 12059 done 12060 12061 # Let's still pretend it is `configure' which instantiates (i.e., don't 12062 # use $as_me), people would be surprised to read: 12063 # /* config.h. Generated by config.status. */ 12064 configure_input="Generated from "`IFS=: 12065 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12066 if test x"$ac_file" != x-; then 12067 configure_input="$ac_file. $configure_input" 12068 { echo "$as_me:$LINENO: creating $ac_file" >&5 12069echo "$as_me: creating $ac_file" >&6;} 12070 fi 12071 12072 case $ac_tag in 12073 *:-:* | *:-) cat >"$tmp/stdin";; 12074 esac 12075 ;; 12076 esac 12077 12078 ac_dir=`$as_dirname -- "$ac_file" || 12079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12080 X"$ac_file" : 'X\(//\)[^/]' \| \ 12081 X"$ac_file" : 'X\(//\)$' \| \ 12082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12083echo X"$ac_file" | 12084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12085 s//\1/ 12086 q 12087 } 12088 /^X\(\/\/\)[^/].*/{ 12089 s//\1/ 12090 q 12091 } 12092 /^X\(\/\/\)$/{ 12093 s//\1/ 12094 q 12095 } 12096 /^X\(\/\).*/{ 12097 s//\1/ 12098 q 12099 } 12100 s/.*/./; q'` 12101 { as_dir="$ac_dir" 12102 case $as_dir in #( 12103 -*) as_dir=./$as_dir;; 12104 esac 12105 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12106 as_dirs= 12107 while :; do 12108 case $as_dir in #( 12109 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12110 *) as_qdir=$as_dir;; 12111 esac 12112 as_dirs="'$as_qdir' $as_dirs" 12113 as_dir=`$as_dirname -- "$as_dir" || 12114$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12115 X"$as_dir" : 'X\(//\)[^/]' \| \ 12116 X"$as_dir" : 'X\(//\)$' \| \ 12117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12118echo X"$as_dir" | 12119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12120 s//\1/ 12121 q 12122 } 12123 /^X\(\/\/\)[^/].*/{ 12124 s//\1/ 12125 q 12126 } 12127 /^X\(\/\/\)$/{ 12128 s//\1/ 12129 q 12130 } 12131 /^X\(\/\).*/{ 12132 s//\1/ 12133 q 12134 } 12135 s/.*/./; q'` 12136 test -d "$as_dir" && break 12137 done 12138 test -z "$as_dirs" || eval "mkdir $as_dirs" 12139 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12140echo "$as_me: error: cannot create directory $as_dir" >&2;} 12141 { (exit 1); exit 1; }; }; } 12142 ac_builddir=. 12143 12144case "$ac_dir" in 12145.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12146*) 12147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12148 # A ".." for each directory in $ac_dir_suffix. 12149 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12150 case $ac_top_builddir_sub in 12151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12153 esac ;; 12154esac 12155ac_abs_top_builddir=$ac_pwd 12156ac_abs_builddir=$ac_pwd$ac_dir_suffix 12157# for backward compatibility: 12158ac_top_builddir=$ac_top_build_prefix 12159 12160case $srcdir in 12161 .) # We are building in place. 12162 ac_srcdir=. 12163 ac_top_srcdir=$ac_top_builddir_sub 12164 ac_abs_top_srcdir=$ac_pwd ;; 12165 [\\/]* | ?:[\\/]* ) # Absolute name. 12166 ac_srcdir=$srcdir$ac_dir_suffix; 12167 ac_top_srcdir=$srcdir 12168 ac_abs_top_srcdir=$srcdir ;; 12169 *) # Relative name. 12170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12171 ac_top_srcdir=$ac_top_build_prefix$srcdir 12172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12173esac 12174ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12175 12176 12177 case $ac_mode in 12178 :F) 12179 # 12180 # CONFIG_FILE 12181 # 12182 12183 case $INSTALL in 12184 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12185 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12186 esac 12187_ACEOF 12188 12189cat >>$CONFIG_STATUS <<\_ACEOF 12190# If the template does not know about datarootdir, expand it. 12191# FIXME: This hack should be removed a few years after 2.60. 12192ac_datarootdir_hack=; ac_datarootdir_seen= 12193 12194case `sed -n '/datarootdir/ { 12195 p 12196 q 12197} 12198/@datadir@/p 12199/@docdir@/p 12200/@infodir@/p 12201/@localedir@/p 12202/@mandir@/p 12203' $ac_file_inputs` in 12204*datarootdir*) ac_datarootdir_seen=yes;; 12205*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12206 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12207echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12208_ACEOF 12209cat >>$CONFIG_STATUS <<_ACEOF 12210 ac_datarootdir_hack=' 12211 s&@datadir@&$datadir&g 12212 s&@docdir@&$docdir&g 12213 s&@infodir@&$infodir&g 12214 s&@localedir@&$localedir&g 12215 s&@mandir@&$mandir&g 12216 s&\\\${datarootdir}&$datarootdir&g' ;; 12217esac 12218_ACEOF 12219 12220# Neutralize VPATH when `$srcdir' = `.'. 12221# Shell code in configure.ac might set extrasub. 12222# FIXME: do we really want to maintain this feature? 12223cat >>$CONFIG_STATUS <<_ACEOF 12224 sed "$ac_vpsub 12225$extrasub 12226_ACEOF 12227cat >>$CONFIG_STATUS <<\_ACEOF 12228:t 12229/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12230s&@configure_input@&$configure_input&;t t 12231s&@top_builddir@&$ac_top_builddir_sub&;t t 12232s&@srcdir@&$ac_srcdir&;t t 12233s&@abs_srcdir@&$ac_abs_srcdir&;t t 12234s&@top_srcdir@&$ac_top_srcdir&;t t 12235s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12236s&@builddir@&$ac_builddir&;t t 12237s&@abs_builddir@&$ac_abs_builddir&;t t 12238s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12239s&@INSTALL@&$ac_INSTALL&;t t 12240$ac_datarootdir_hack 12241" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12242 12243test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12244 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12245 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12246 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12247which seems to be undefined. Please make sure it is defined." >&5 12248echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12249which seems to be undefined. Please make sure it is defined." >&2;} 12250 12251 rm -f "$tmp/stdin" 12252 case $ac_file in 12253 -) cat "$tmp/out"; rm -f "$tmp/out";; 12254 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12255 esac 12256 ;; 12257 12258 12259 12260 esac 12261 12262done # for ac_tag 12263 12264 12265{ (exit 0); exit 0; } 12266_ACEOF 12267chmod +x $CONFIG_STATUS 12268ac_clean_files=$ac_clean_files_save 12269 12270 12271# configure is writing to config.log, and then calls config.status. 12272# config.status does its own redirection, appending to config.log. 12273# Unfortunately, on DOS this fails, as config.log is still kept open 12274# by configure, so config.status won't be able to write to it; its 12275# output is simply discarded. So we exec the FD to /dev/null, 12276# effectively closing config.log, so it can be properly (re)opened and 12277# appended to by config.status. When coming back to configure, we 12278# need to make the FD available again. 12279if test "$no_create" != yes; then 12280 ac_cs_success=: 12281 ac_config_status_args= 12282 test "$silent" = yes && 12283 ac_config_status_args="$ac_config_status_args --quiet" 12284 exec 5>/dev/null 12285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12286 exec 5>>config.log 12287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12288 # would make configure fail if this is the last instruction. 12289 $ac_cs_success || { (exit 1); exit 1; } 12290fi 12291 12292