1#! /bin/sh 2# From configure.in Id: configure.in 230 2010-03-31 20:17:36Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tkimg 1.4. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 7<&0 </dev/null 6>&1 554 555# Name of the host. 556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557# so uname gets run too. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME='tkimg' 575PACKAGE_TARNAME='tkimg' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimg 1.4' 578PACKAGE_BUGREPORT='' 579 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CYGPATH 654EXEEXT 655PKG_LIB_FILE 656PKG_STUB_LIB_FILE 657PKG_STUB_SOURCES 658PKG_STUB_OBJECTS 659PKG_TCL_SOURCES 660PKG_HEADERS 661PKG_INCLUDES 662PKG_LIBS 663PKG_CFLAGS 664PACKAGE_TCLNAME 665TCL_VERSION 666TCL_PATCH_LEVEL 667TCL_BIN_DIR 668TCL_SRC_DIR 669TCL_LIB_FILE 670TCL_LIB_FLAG 671TCL_LIB_SPEC 672TCL_STUB_LIB_FILE 673TCL_STUB_LIB_FLAG 674TCL_STUB_LIB_SPEC 675CLEANFILES 676TCL_LIBS 677TCL_DEFS 678TCL_EXTRA_CFLAGS 679TCL_LD_FLAGS 680TCL_SHLIB_LD_LIBS 681TK_VERSION 682TK_BIN_DIR 683TK_SRC_DIR 684TK_LIB_FILE 685TK_LIB_FLAG 686TK_LIB_SPEC 687TK_STUB_LIB_FILE 688TK_STUB_LIB_FLAG 689TK_STUB_LIB_SPEC 690TK_LIBS 691TK_XINCLUDES 692CC 693CFLAGS 694LDFLAGS 695CPPFLAGS 696ac_ct_CC 697OBJEXT 698CPP 699INSTALL_PROGRAM 700INSTALL_SCRIPT 701INSTALL_DATA 702SET_MAKE 703RANLIB 704GREP 705EGREP 706MATH_LIBS 707PKG_SOURCES 708PKG_OBJECTS 709TCL_INCLUDES 710TK_INCLUDES 711TCL_THREADS 712SHARED_BUILD 713AR 714CELIB_DIR 715CFLAGS_DEBUG 716CFLAGS_OPTIMIZE 717CFLAGS_WARNING 718STLIB_LD 719SHLIB_LD 720SHLIB_LD_LIBS 721SHLIB_CFLAGS 722LD_LIBRARY_PATH_VAR 723CFLAGS_DEFAULT 724LDFLAGS_DEFAULT 725TCL_DBGX 726MAKE_LIB 727MAKE_SHARED_LIB 728MAKE_STATIC_LIB 729MAKE_STUB_LIB 730RANLIB_STUB 731VC_MANIFEST_EMBED_DLL 732VC_MANIFEST_EMBED_EXE 733TCLSH_PROG 734WISH_PROG 735tkimg_BUILD_LIB_SPEC 736tkimg_LIB_SPEC 737tkimg_BUILD_STUB_LIB_SPEC 738tkimg_STUB_LIB_SPEC 739tkimg_BUILD_STUB_LIB_PATH 740tkimg_STUB_LIB_PATH 741MAJOR_VERSION 742MINOR_VERSION 743PATCHLEVEL 744LIBOBJS 745LTLIBOBJS' 746ac_subst_files='' 747 ac_precious_vars='build_alias 748host_alias 749target_alias 750CC 751CFLAGS 752LDFLAGS 753LIBS 754CPPFLAGS 755CPP' 756 757 758# Initialize some variables set by options. 759ac_init_help= 760ac_init_version=false 761# The variables have the same names as the options, with 762# dashes changed to underlines. 763cache_file=/dev/null 764exec_prefix=NONE 765no_create= 766no_recursion= 767prefix=NONE 768program_prefix=NONE 769program_suffix=NONE 770program_transform_name=s,x,x, 771silent= 772site= 773srcdir= 774verbose= 775x_includes=NONE 776x_libraries=NONE 777 778# Installation directory options. 779# These are left unexpanded so users can "make install exec_prefix=/foo" 780# and all the variables that are supposed to be based on exec_prefix 781# by default will actually change. 782# Use braces instead of parens because sh, perl, etc. also accept them. 783# (The list follows the same order as the GNU Coding Standards.) 784bindir='${exec_prefix}/bin' 785sbindir='${exec_prefix}/sbin' 786libexecdir='${exec_prefix}/libexec' 787datarootdir='${prefix}/share' 788datadir='${datarootdir}' 789sysconfdir='${prefix}/etc' 790sharedstatedir='${prefix}/com' 791localstatedir='${prefix}/var' 792includedir='${prefix}/include' 793oldincludedir='/usr/include' 794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 795infodir='${datarootdir}/info' 796htmldir='${docdir}' 797dvidir='${docdir}' 798pdfdir='${docdir}' 799psdir='${docdir}' 800libdir='${exec_prefix}/lib' 801localedir='${datarootdir}/locale' 802mandir='${datarootdir}/man' 803 804ac_prev= 805ac_dashdash= 806for ac_option 807do 808 # If the previous option needs an argument, assign it. 809 if test -n "$ac_prev"; then 810 eval $ac_prev=\$ac_option 811 ac_prev= 812 continue 813 fi 814 815 case $ac_option in 816 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 817 *) ac_optarg=yes ;; 818 esac 819 820 # Accept the important Cygnus configure options, so we can diagnose typos. 821 822 case $ac_dashdash$ac_option in 823 --) 824 ac_dashdash=yes ;; 825 826 -bindir | --bindir | --bindi | --bind | --bin | --bi) 827 ac_prev=bindir ;; 828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 829 bindir=$ac_optarg ;; 830 831 -build | --build | --buil | --bui | --bu) 832 ac_prev=build_alias ;; 833 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 834 build_alias=$ac_optarg ;; 835 836 -cache-file | --cache-file | --cache-fil | --cache-fi \ 837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 838 ac_prev=cache_file ;; 839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 841 cache_file=$ac_optarg ;; 842 843 --config-cache | -C) 844 cache_file=config.cache ;; 845 846 -datadir | --datadir | --datadi | --datad) 847 ac_prev=datadir ;; 848 -datadir=* | --datadir=* | --datadi=* | --datad=*) 849 datadir=$ac_optarg ;; 850 851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 852 | --dataroo | --dataro | --datar) 853 ac_prev=datarootdir ;; 854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 856 datarootdir=$ac_optarg ;; 857 858 -disable-* | --disable-*) 859 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 860 # Reject names that are not valid shell variable names. 861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 863 { (exit 1); exit 1; }; } 864 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 865 eval enable_$ac_feature=no ;; 866 867 -docdir | --docdir | --docdi | --doc | --do) 868 ac_prev=docdir ;; 869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 870 docdir=$ac_optarg ;; 871 872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 873 ac_prev=dvidir ;; 874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 875 dvidir=$ac_optarg ;; 876 877 -enable-* | --enable-*) 878 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 881 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 882 { (exit 1); exit 1; }; } 883 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 884 eval enable_$ac_feature=\$ac_optarg ;; 885 886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 888 | --exec | --exe | --ex) 889 ac_prev=exec_prefix ;; 890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 892 | --exec=* | --exe=* | --ex=*) 893 exec_prefix=$ac_optarg ;; 894 895 -gas | --gas | --ga | --g) 896 # Obsolete; use --with-gas. 897 with_gas=yes ;; 898 899 -help | --help | --hel | --he | -h) 900 ac_init_help=long ;; 901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 902 ac_init_help=recursive ;; 903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 904 ac_init_help=short ;; 905 906 -host | --host | --hos | --ho) 907 ac_prev=host_alias ;; 908 -host=* | --host=* | --hos=* | --ho=*) 909 host_alias=$ac_optarg ;; 910 911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 912 ac_prev=htmldir ;; 913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 914 | --ht=*) 915 htmldir=$ac_optarg ;; 916 917 -includedir | --includedir | --includedi | --included | --include \ 918 | --includ | --inclu | --incl | --inc) 919 ac_prev=includedir ;; 920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 921 | --includ=* | --inclu=* | --incl=* | --inc=*) 922 includedir=$ac_optarg ;; 923 924 -infodir | --infodir | --infodi | --infod | --info | --inf) 925 ac_prev=infodir ;; 926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 927 infodir=$ac_optarg ;; 928 929 -libdir | --libdir | --libdi | --libd) 930 ac_prev=libdir ;; 931 -libdir=* | --libdir=* | --libdi=* | --libd=*) 932 libdir=$ac_optarg ;; 933 934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 935 | --libexe | --libex | --libe) 936 ac_prev=libexecdir ;; 937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 938 | --libexe=* | --libex=* | --libe=*) 939 libexecdir=$ac_optarg ;; 940 941 -localedir | --localedir | --localedi | --localed | --locale) 942 ac_prev=localedir ;; 943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 944 localedir=$ac_optarg ;; 945 946 -localstatedir | --localstatedir | --localstatedi | --localstated \ 947 | --localstate | --localstat | --localsta | --localst | --locals) 948 ac_prev=localstatedir ;; 949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 951 localstatedir=$ac_optarg ;; 952 953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 954 ac_prev=mandir ;; 955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 956 mandir=$ac_optarg ;; 957 958 -nfp | --nfp | --nf) 959 # Obsolete; use --without-fp. 960 with_fp=no ;; 961 962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 963 | --no-cr | --no-c | -n) 964 no_create=yes ;; 965 966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 968 no_recursion=yes ;; 969 970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 972 | --oldin | --oldi | --old | --ol | --o) 973 ac_prev=oldincludedir ;; 974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 977 oldincludedir=$ac_optarg ;; 978 979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 980 ac_prev=prefix ;; 981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 982 prefix=$ac_optarg ;; 983 984 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 985 | --program-pre | --program-pr | --program-p) 986 ac_prev=program_prefix ;; 987 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 989 program_prefix=$ac_optarg ;; 990 991 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 992 | --program-suf | --program-su | --program-s) 993 ac_prev=program_suffix ;; 994 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 996 program_suffix=$ac_optarg ;; 997 998 -program-transform-name | --program-transform-name \ 999 | --program-transform-nam | --program-transform-na \ 1000 | --program-transform-n | --program-transform- \ 1001 | --program-transform | --program-transfor \ 1002 | --program-transfo | --program-transf \ 1003 | --program-trans | --program-tran \ 1004 | --progr-tra | --program-tr | --program-t) 1005 ac_prev=program_transform_name ;; 1006 -program-transform-name=* | --program-transform-name=* \ 1007 | --program-transform-nam=* | --program-transform-na=* \ 1008 | --program-transform-n=* | --program-transform-=* \ 1009 | --program-transform=* | --program-transfor=* \ 1010 | --program-transfo=* | --program-transf=* \ 1011 | --program-trans=* | --program-tran=* \ 1012 | --progr-tra=* | --program-tr=* | --program-t=*) 1013 program_transform_name=$ac_optarg ;; 1014 1015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1016 ac_prev=pdfdir ;; 1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1018 pdfdir=$ac_optarg ;; 1019 1020 -psdir | --psdir | --psdi | --psd | --ps) 1021 ac_prev=psdir ;; 1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1023 psdir=$ac_optarg ;; 1024 1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1026 | -silent | --silent | --silen | --sile | --sil) 1027 silent=yes ;; 1028 1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1030 ac_prev=sbindir ;; 1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1032 | --sbi=* | --sb=*) 1033 sbindir=$ac_optarg ;; 1034 1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1037 | --sharedst | --shareds | --shared | --share | --shar \ 1038 | --sha | --sh) 1039 ac_prev=sharedstatedir ;; 1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1043 | --sha=* | --sh=*) 1044 sharedstatedir=$ac_optarg ;; 1045 1046 -site | --site | --sit) 1047 ac_prev=site ;; 1048 -site=* | --site=* | --sit=*) 1049 site=$ac_optarg ;; 1050 1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1052 ac_prev=srcdir ;; 1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1054 srcdir=$ac_optarg ;; 1055 1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1057 | --syscon | --sysco | --sysc | --sys | --sy) 1058 ac_prev=sysconfdir ;; 1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1061 sysconfdir=$ac_optarg ;; 1062 1063 -target | --target | --targe | --targ | --tar | --ta | --t) 1064 ac_prev=target_alias ;; 1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1066 target_alias=$ac_optarg ;; 1067 1068 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1069 verbose=yes ;; 1070 1071 -version | --version | --versio | --versi | --vers | -V) 1072 ac_init_version=: ;; 1073 1074 -with-* | --with-*) 1075 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 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=\$ac_optarg ;; 1082 1083 -without-* | --without-*) 1084 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1087 { echo "$as_me: error: invalid package name: $ac_package" >&2 1088 { (exit 1); exit 1; }; } 1089 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1090 eval with_$ac_package=no ;; 1091 1092 --x) 1093 # Obsolete; use --with-x. 1094 with_x=yes ;; 1095 1096 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1097 | --x-incl | --x-inc | --x-in | --x-i) 1098 ac_prev=x_includes ;; 1099 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1100 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1101 x_includes=$ac_optarg ;; 1102 1103 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1104 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1105 ac_prev=x_libraries ;; 1106 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1107 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1108 x_libraries=$ac_optarg ;; 1109 1110 -*) { echo "$as_me: error: unrecognized option: $ac_option 1111Try \`$0 --help' for more information." >&2 1112 { (exit 1); exit 1; }; } 1113 ;; 1114 1115 *=*) 1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1119 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1120 { (exit 1); exit 1; }; } 1121 eval $ac_envvar=\$ac_optarg 1122 export $ac_envvar ;; 1123 1124 *) 1125 # FIXME: should be removed in autoconf 3.0. 1126 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1127 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1128 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1129 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1130 ;; 1131 1132 esac 1133done 1134 1135if test -n "$ac_prev"; then 1136 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1137 { echo "$as_me: error: missing argument to $ac_option" >&2 1138 { (exit 1); exit 1; }; } 1139fi 1140 1141# Be sure to have absolute directory names. 1142for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1143 datadir sysconfdir sharedstatedir localstatedir includedir \ 1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1145 libdir localedir mandir 1146do 1147 eval ac_val=\$$ac_var 1148 case $ac_val in 1149 [\\/$]* | ?:[\\/]* ) continue;; 1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1151 esac 1152 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1153 { (exit 1); exit 1; }; } 1154done 1155 1156# There might be people who depend on the old broken behavior: `$host' 1157# used to hold the argument of --host etc. 1158# FIXME: To remove some day. 1159build=$build_alias 1160host=$host_alias 1161target=$target_alias 1162 1163# FIXME: To remove some day. 1164if test "x$host_alias" != x; then 1165 if test "x$build_alias" = x; then 1166 cross_compiling=maybe 1167 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1168 If a cross compiler is detected then cross compile mode will be used." >&2 1169 elif test "x$build_alias" != "x$host_alias"; then 1170 cross_compiling=yes 1171 fi 1172fi 1173 1174ac_tool_prefix= 1175test -n "$host_alias" && ac_tool_prefix=$host_alias- 1176 1177test "$silent" = yes && exec 6>/dev/null 1178 1179 1180ac_pwd=`pwd` && test -n "$ac_pwd" && 1181ac_ls_di=`ls -di .` && 1182ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1183 { echo "$as_me: error: Working directory cannot be determined" >&2 1184 { (exit 1); exit 1; }; } 1185test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1186 { echo "$as_me: error: pwd does not report name of working directory" >&2 1187 { (exit 1); exit 1; }; } 1188 1189 1190# Find the source files, if location was not specified. 1191if test -z "$srcdir"; then 1192 ac_srcdir_defaulted=yes 1193 # Try the directory containing this script, then the parent directory. 1194 ac_confdir=`$as_dirname -- "$0" || 1195$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1196 X"$0" : 'X\(//\)[^/]' \| \ 1197 X"$0" : 'X\(//\)$' \| \ 1198 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1199echo X"$0" | 1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1201 s//\1/ 1202 q 1203 } 1204 /^X\(\/\/\)[^/].*/{ 1205 s//\1/ 1206 q 1207 } 1208 /^X\(\/\/\)$/{ 1209 s//\1/ 1210 q 1211 } 1212 /^X\(\/\).*/{ 1213 s//\1/ 1214 q 1215 } 1216 s/.*/./; q'` 1217 srcdir=$ac_confdir 1218 if test ! -r "$srcdir/$ac_unique_file"; then 1219 srcdir=.. 1220 fi 1221else 1222 ac_srcdir_defaulted=no 1223fi 1224if test ! -r "$srcdir/$ac_unique_file"; then 1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1226 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1227 { (exit 1); exit 1; }; } 1228fi 1229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1230ac_abs_confdir=`( 1231 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1232 { (exit 1); exit 1; }; } 1233 pwd)` 1234# When building in place, set srcdir=. 1235if test "$ac_abs_confdir" = "$ac_pwd"; then 1236 srcdir=. 1237fi 1238# Remove unnecessary trailing slashes from srcdir. 1239# Double slashes in file names in object file debugging info 1240# mess up M-x gdb in Emacs. 1241case $srcdir in 1242*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1243esac 1244for ac_var in $ac_precious_vars; do 1245 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1246 eval ac_env_${ac_var}_value=\$${ac_var} 1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1248 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1249done 1250 1251# 1252# Report the --help message. 1253# 1254if test "$ac_init_help" = "long"; then 1255 # Omit some internal or obsolete options to make the list less imposing. 1256 # This message is too long to be a string in the A/UX 3.1 sh. 1257 cat <<_ACEOF 1258\`configure' configures tkimg 1.4 to adapt to many kinds of systems. 1259 1260Usage: $0 [OPTION]... [VAR=VALUE]... 1261 1262To assign environment variables (e.g., CC, CFLAGS...), specify them as 1263VAR=VALUE. See below for descriptions of some of the useful variables. 1264 1265Defaults for the options are specified in brackets. 1266 1267Configuration: 1268 -h, --help display this help and exit 1269 --help=short display options specific to this package 1270 --help=recursive display the short help of all the included packages 1271 -V, --version display version information and exit 1272 -q, --quiet, --silent do not print \`checking...' messages 1273 --cache-file=FILE cache test results in FILE [disabled] 1274 -C, --config-cache alias for \`--cache-file=config.cache' 1275 -n, --no-create do not create output files 1276 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1277 1278Installation directories: 1279 --prefix=PREFIX install architecture-independent files in PREFIX 1280 [$ac_default_prefix] 1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1282 [PREFIX] 1283 1284By default, \`make install' will install all the files in 1285\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1286an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1287for instance \`--prefix=\$HOME'. 1288 1289For better control, use the options below. 1290 1291Fine tuning of the installation directories: 1292 --bindir=DIR user executables [EPREFIX/bin] 1293 --sbindir=DIR system admin executables [EPREFIX/sbin] 1294 --libexecdir=DIR program executables [EPREFIX/libexec] 1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1298 --libdir=DIR object code libraries [EPREFIX/lib] 1299 --includedir=DIR C header files [PREFIX/include] 1300 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1303 --infodir=DIR info documentation [DATAROOTDIR/info] 1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1305 --mandir=DIR man documentation [DATAROOTDIR/man] 1306 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimg] 1307 --htmldir=DIR html documentation [DOCDIR] 1308 --dvidir=DIR dvi documentation [DOCDIR] 1309 --pdfdir=DIR pdf documentation [DOCDIR] 1310 --psdir=DIR ps documentation [DOCDIR] 1311_ACEOF 1312 1313 cat <<\_ACEOF 1314_ACEOF 1315fi 1316 1317if test -n "$ac_init_help"; then 1318 case $ac_init_help in 1319 short | recursive ) echo "Configuration of tkimg 1.4:";; 1320 esac 1321 cat <<\_ACEOF 1322 1323Optional Features: 1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1326 --enable-threads build with threads 1327 --enable-shared build and link with shared libraries (default: on) 1328 --enable-64bit enable 64bit support (default: off) 1329 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1330 --disable-rpath disable rpath support (default: on) 1331 --enable-wince enable Win/CE support (where applicable) 1332 --enable-symbols build with debugging symbols (default: off) 1333 1334Optional Packages: 1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1337 --with-tcl directory containing tcl configuration 1338 (tclConfig.sh) 1339 --with-tk directory containing tk configuration (tkConfig.sh) 1340 --with-tclinclude directory containing the public Tcl header files 1341 --with-tkinclude directory containing the public Tk header files 1342 --with-celib=DIR use Windows/CE support library from DIR 1343 1344Some influential environment variables: 1345 CC C compiler command 1346 CFLAGS C compiler flags 1347 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1348 nonstandard directory <lib dir> 1349 LIBS libraries to pass to the linker, e.g. -l<library> 1350 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1351 you have headers in a nonstandard directory <include dir> 1352 CPP C preprocessor 1353 1354Use these variables to override the choices made by `configure' or to help 1355it to find libraries and programs with nonstandard names/locations. 1356 1357_ACEOF 1358ac_status=$? 1359fi 1360 1361if test "$ac_init_help" = "recursive"; then 1362 # If there are subdirs, report their specific --help. 1363 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1364 test -d "$ac_dir" || continue 1365 ac_builddir=. 1366 1367case "$ac_dir" in 1368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1369*) 1370 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1371 # A ".." for each directory in $ac_dir_suffix. 1372 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1373 case $ac_top_builddir_sub in 1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1376 esac ;; 1377esac 1378ac_abs_top_builddir=$ac_pwd 1379ac_abs_builddir=$ac_pwd$ac_dir_suffix 1380# for backward compatibility: 1381ac_top_builddir=$ac_top_build_prefix 1382 1383case $srcdir in 1384 .) # We are building in place. 1385 ac_srcdir=. 1386 ac_top_srcdir=$ac_top_builddir_sub 1387 ac_abs_top_srcdir=$ac_pwd ;; 1388 [\\/]* | ?:[\\/]* ) # Absolute name. 1389 ac_srcdir=$srcdir$ac_dir_suffix; 1390 ac_top_srcdir=$srcdir 1391 ac_abs_top_srcdir=$srcdir ;; 1392 *) # Relative name. 1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1394 ac_top_srcdir=$ac_top_build_prefix$srcdir 1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1396esac 1397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1398 1399 cd "$ac_dir" || { ac_status=$?; continue; } 1400 # Check for guested configure. 1401 if test -f "$ac_srcdir/configure.gnu"; then 1402 echo && 1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1404 elif test -f "$ac_srcdir/configure"; then 1405 echo && 1406 $SHELL "$ac_srcdir/configure" --help=recursive 1407 else 1408 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1409 fi || ac_status=$? 1410 cd "$ac_pwd" || { ac_status=$?; break; } 1411 done 1412fi 1413 1414test -n "$ac_init_help" && exit $ac_status 1415if $ac_init_version; then 1416 cat <<\_ACEOF 1417tkimg configure 1.4 1418generated by GNU Autoconf 2.61 1419 1420Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14212002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1422This configure script is free software; the Free Software Foundation 1423gives unlimited permission to copy, distribute and modify it. 1424_ACEOF 1425 exit 1426fi 1427cat >config.log <<_ACEOF 1428This file contains any messages produced by compilers while 1429running configure, to aid debugging if configure makes a mistake. 1430 1431It was created by tkimg $as_me 1.4, which was 1432generated by GNU Autoconf 2.61. Invocation command line was 1433 1434 $ $0 $@ 1435 1436_ACEOF 1437exec 5>>config.log 1438{ 1439cat <<_ASUNAME 1440## --------- ## 1441## Platform. ## 1442## --------- ## 1443 1444hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1445uname -m = `(uname -m) 2>/dev/null || echo unknown` 1446uname -r = `(uname -r) 2>/dev/null || echo unknown` 1447uname -s = `(uname -s) 2>/dev/null || echo unknown` 1448uname -v = `(uname -v) 2>/dev/null || echo unknown` 1449 1450/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1451/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1452 1453/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1454/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1455/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1456/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1457/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1458/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1459/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1460 1461_ASUNAME 1462 1463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1464for as_dir in $PATH 1465do 1466 IFS=$as_save_IFS 1467 test -z "$as_dir" && as_dir=. 1468 echo "PATH: $as_dir" 1469done 1470IFS=$as_save_IFS 1471 1472} >&5 1473 1474cat >&5 <<_ACEOF 1475 1476 1477## ----------- ## 1478## Core tests. ## 1479## ----------- ## 1480 1481_ACEOF 1482 1483 1484# Keep a trace of the command line. 1485# Strip out --no-create and --no-recursion so they do not pile up. 1486# Strip out --silent because we don't want to record it for future runs. 1487# Also quote any args containing shell meta-characters. 1488# Make two passes to allow for proper duplicate-argument suppression. 1489ac_configure_args= 1490ac_configure_args0= 1491ac_configure_args1= 1492ac_must_keep_next=false 1493for ac_pass in 1 2 1494do 1495 for ac_arg 1496 do 1497 case $ac_arg in 1498 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1500 | -silent | --silent | --silen | --sile | --sil) 1501 continue ;; 1502 *\'*) 1503 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1504 esac 1505 case $ac_pass in 1506 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1507 2) 1508 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1509 if test $ac_must_keep_next = true; then 1510 ac_must_keep_next=false # Got value, back to normal. 1511 else 1512 case $ac_arg in 1513 *=* | --config-cache | -C | -disable-* | --disable-* \ 1514 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1515 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1516 | -with-* | --with-* | -without-* | --without-* | --x) 1517 case "$ac_configure_args0 " in 1518 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1519 esac 1520 ;; 1521 -* ) ac_must_keep_next=true ;; 1522 esac 1523 fi 1524 ac_configure_args="$ac_configure_args '$ac_arg'" 1525 ;; 1526 esac 1527 done 1528done 1529$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1530$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1531 1532# When interrupted or exit'd, cleanup temporary files, and complete 1533# config.log. We remove comments because anyway the quotes in there 1534# would cause problems or look ugly. 1535# WARNING: Use '\'' to represent an apostrophe within the trap. 1536# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1537trap 'exit_status=$? 1538 # Save into config.log some information that might help in debugging. 1539 { 1540 echo 1541 1542 cat <<\_ASBOX 1543## ---------------- ## 1544## Cache variables. ## 1545## ---------------- ## 1546_ASBOX 1547 echo 1548 # The following way of writing the cache mishandles newlines in values, 1549( 1550 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1551 eval ac_val=\$$ac_var 1552 case $ac_val in #( 1553 *${as_nl}*) 1554 case $ac_var in #( 1555 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1556echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1557 esac 1558 case $ac_var in #( 1559 _ | IFS | as_nl) ;; #( 1560 *) $as_unset $ac_var ;; 1561 esac ;; 1562 esac 1563 done 1564 (set) 2>&1 | 1565 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1566 *${as_nl}ac_space=\ *) 1567 sed -n \ 1568 "s/'\''/'\''\\\\'\'''\''/g; 1569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1570 ;; #( 1571 *) 1572 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1573 ;; 1574 esac | 1575 sort 1576) 1577 echo 1578 1579 cat <<\_ASBOX 1580## ----------------- ## 1581## Output variables. ## 1582## ----------------- ## 1583_ASBOX 1584 echo 1585 for ac_var in $ac_subst_vars 1586 do 1587 eval ac_val=\$$ac_var 1588 case $ac_val in 1589 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1590 esac 1591 echo "$ac_var='\''$ac_val'\''" 1592 done | sort 1593 echo 1594 1595 if test -n "$ac_subst_files"; then 1596 cat <<\_ASBOX 1597## ------------------- ## 1598## File substitutions. ## 1599## ------------------- ## 1600_ASBOX 1601 echo 1602 for ac_var in $ac_subst_files 1603 do 1604 eval ac_val=\$$ac_var 1605 case $ac_val in 1606 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1607 esac 1608 echo "$ac_var='\''$ac_val'\''" 1609 done | sort 1610 echo 1611 fi 1612 1613 if test -s confdefs.h; then 1614 cat <<\_ASBOX 1615## ----------- ## 1616## confdefs.h. ## 1617## ----------- ## 1618_ASBOX 1619 echo 1620 cat confdefs.h 1621 echo 1622 fi 1623 test "$ac_signal" != 0 && 1624 echo "$as_me: caught signal $ac_signal" 1625 echo "$as_me: exit $exit_status" 1626 } >&5 1627 rm -f core *.core core.conftest.* && 1628 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1629 exit $exit_status 1630' 0 1631for ac_signal in 1 2 13 15; do 1632 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1633done 1634ac_signal=0 1635 1636# confdefs.h avoids OS command line length limits that DEFS can exceed. 1637rm -f -r conftest* confdefs.h 1638 1639# Predefined preprocessor variables. 1640 1641cat >>confdefs.h <<_ACEOF 1642#define PACKAGE_NAME "$PACKAGE_NAME" 1643_ACEOF 1644 1645 1646cat >>confdefs.h <<_ACEOF 1647#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1648_ACEOF 1649 1650 1651cat >>confdefs.h <<_ACEOF 1652#define PACKAGE_VERSION "$PACKAGE_VERSION" 1653_ACEOF 1654 1655 1656cat >>confdefs.h <<_ACEOF 1657#define PACKAGE_STRING "$PACKAGE_STRING" 1658_ACEOF 1659 1660 1661cat >>confdefs.h <<_ACEOF 1662#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1663_ACEOF 1664 1665 1666# Let the site file select an alternate cache file if it wants to. 1667# Prefer explicitly selected file to automatically selected ones. 1668if test -n "$CONFIG_SITE"; then 1669 set x "$CONFIG_SITE" 1670elif test "x$prefix" != xNONE; then 1671 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1672else 1673 set x "$ac_default_prefix/share/config.site" \ 1674 "$ac_default_prefix/etc/config.site" 1675fi 1676shift 1677for ac_site_file 1678do 1679 if test -r "$ac_site_file"; then 1680 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1681echo "$as_me: loading site script $ac_site_file" >&6;} 1682 sed 's/^/| /' "$ac_site_file" >&5 1683 . "$ac_site_file" 1684 fi 1685done 1686 1687if test -r "$cache_file"; then 1688 # Some versions of bash will fail to source /dev/null (special 1689 # files actually), so we avoid doing that. 1690 if test -f "$cache_file"; then 1691 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1692echo "$as_me: loading cache $cache_file" >&6;} 1693 case $cache_file in 1694 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1695 *) . "./$cache_file";; 1696 esac 1697 fi 1698else 1699 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1700echo "$as_me: creating cache $cache_file" >&6;} 1701 >$cache_file 1702fi 1703 1704# Check that the precious variables saved in the cache have kept the same 1705# value. 1706ac_cache_corrupted=false 1707for ac_var in $ac_precious_vars; do 1708 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1709 eval ac_new_set=\$ac_env_${ac_var}_set 1710 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1711 eval ac_new_val=\$ac_env_${ac_var}_value 1712 case $ac_old_set,$ac_new_set in 1713 set,) 1714 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1715echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1716 ac_cache_corrupted=: ;; 1717 ,set) 1718 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1719echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1720 ac_cache_corrupted=: ;; 1721 ,);; 1722 *) 1723 if test "x$ac_old_val" != "x$ac_new_val"; then 1724 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1725echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1726 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1727echo "$as_me: former value: $ac_old_val" >&2;} 1728 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1729echo "$as_me: current value: $ac_new_val" >&2;} 1730 ac_cache_corrupted=: 1731 fi;; 1732 esac 1733 # Pass precious variables to config.status. 1734 if test "$ac_new_set" = set; then 1735 case $ac_new_val in 1736 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1737 *) ac_arg=$ac_var=$ac_new_val ;; 1738 esac 1739 case " $ac_configure_args " in 1740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1741 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1742 esac 1743 fi 1744done 1745if $ac_cache_corrupted; then 1746 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1747echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1748 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1749echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1750 { (exit 1); exit 1; }; } 1751fi 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777ac_ext=c 1778ac_cpp='$CPP $CPPFLAGS' 1779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1781ac_compiler_gnu=$ac_cv_c_compiler_gnu 1782 1783 1784 1785 1786 # TEA extensions pass this us the version of TEA they think they 1787 # are compatible with. 1788 TEA_VERSION="3.9" 1789 1790 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1791echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1792 if test x"${PACKAGE_NAME}" = x ; then 1793 { { echo "$as_me:$LINENO: error: 1794The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1795echo "$as_me: error: 1796The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1797 { (exit 1); exit 1; }; } 1798 fi 1799 if test x"3.9" = x ; then 1800 { { echo "$as_me:$LINENO: error: 1801TEA version not specified." >&5 1802echo "$as_me: error: 1803TEA version not specified." >&2;} 1804 { (exit 1); exit 1; }; } 1805 elif test "3.9" != "${TEA_VERSION}" ; then 1806 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1807echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1808 else 1809 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1810echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1811 fi 1812 case "`uname -s`" in 1813 *win32*|*WIN32*|*MINGW32_*) 1814 # Extract the first word of "cygpath", so it can be a program name with args. 1815set dummy cygpath; ac_word=$2 1816{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1818if test "${ac_cv_prog_CYGPATH+set}" = set; then 1819 echo $ECHO_N "(cached) $ECHO_C" >&6 1820else 1821 if test -n "$CYGPATH"; then 1822 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1823else 1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1825for as_dir in $PATH 1826do 1827 IFS=$as_save_IFS 1828 test -z "$as_dir" && as_dir=. 1829 for ac_exec_ext in '' $ac_executable_extensions; do 1830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1831 ac_cv_prog_CYGPATH="cygpath -w" 1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1833 break 2 1834 fi 1835done 1836done 1837IFS=$as_save_IFS 1838 1839 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1840fi 1841fi 1842CYGPATH=$ac_cv_prog_CYGPATH 1843if test -n "$CYGPATH"; then 1844 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1845echo "${ECHO_T}$CYGPATH" >&6; } 1846else 1847 { echo "$as_me:$LINENO: result: no" >&5 1848echo "${ECHO_T}no" >&6; } 1849fi 1850 1851 1852 EXEEXT=".exe" 1853 TEA_PLATFORM="windows" 1854 ;; 1855 *CYGWIN_*) 1856 CYGPATH=echo 1857 EXEEXT=".exe" 1858 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1859 ;; 1860 *) 1861 CYGPATH=echo 1862 EXEEXT="" 1863 TEA_PLATFORM="unix" 1864 ;; 1865 esac 1866 1867 # Check if exec_prefix is set. If not use fall back to prefix. 1868 # Note when adjusted, so that TEA_PREFIX can correct for this. 1869 # This is needed for recursive configures, since autoconf propagates 1870 # $prefix, but not $exec_prefix (doh!). 1871 if test x$exec_prefix = xNONE ; then 1872 exec_prefix_default=yes 1873 exec_prefix=$prefix 1874 fi 1875 1876 1877 1878 1879 # This package name must be replaced statically for AC_SUBST to work 1880 1881 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1882 1883 1884 # We AC_SUBST these here to ensure they are subst'ed, 1885 # in case the user doesn't call TEA_ADD_... 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895ac_aux_dir= 1896for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1897 if test -f "$ac_dir/install-sh"; then 1898 ac_aux_dir=$ac_dir 1899 ac_install_sh="$ac_aux_dir/install-sh -c" 1900 break 1901 elif test -f "$ac_dir/install.sh"; then 1902 ac_aux_dir=$ac_dir 1903 ac_install_sh="$ac_aux_dir/install.sh -c" 1904 break 1905 elif test -f "$ac_dir/shtool"; then 1906 ac_aux_dir=$ac_dir 1907 ac_install_sh="$ac_aux_dir/shtool install -c" 1908 break 1909 fi 1910done 1911if test -z "$ac_aux_dir"; then 1912 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1913echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1914 { (exit 1); exit 1; }; } 1915fi 1916 1917# These three variables are undocumented and unsupported, 1918# and are intended to be withdrawn in a future Autoconf release. 1919# They can cause serious problems if a builder's source tree is in a directory 1920# whose full name contains unusual characters. 1921ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1922ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1923ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1924 1925 1926 1927PACKAGE_TCLNAME="img::base" 1928 1929 1930#-------------------------------------------------------------------- 1931# Load the tclConfig.sh file 1932# Load the tkConfig.sh file 1933#-------------------------------------------------------------------- 1934 1935 1936 1937 # 1938 # Ok, lets find the tcl configuration 1939 # First, look for one uninstalled. 1940 # the alternative search directory is invoked by --with-tcl 1941 # 1942 1943 if test x"${no_tcl}" = x ; then 1944 # we reset no_tcl in case something fails here 1945 no_tcl=true 1946 1947# Check whether --with-tcl was given. 1948if test "${with_tcl+set}" = set; then 1949 withval=$with_tcl; with_tclconfig="${withval}" 1950fi 1951 1952 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1953echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1954 if test "${ac_cv_c_tclconfig+set}" = set; then 1955 echo $ECHO_N "(cached) $ECHO_C" >&6 1956else 1957 1958 1959 # First check to see if --with-tcl was specified. 1960 if test x"${with_tclconfig}" != x ; then 1961 case "${with_tclconfig}" in 1962 */tclConfig.sh ) 1963 if test -f "${with_tclconfig}"; then 1964 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1965echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1966 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1967 fi ;; 1968 esac 1969 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1970 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1971 else 1972 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1973echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1974 { (exit 1); exit 1; }; } 1975 fi 1976 fi 1977 1978 # then check for a private Tcl installation 1979 if test x"${ac_cv_c_tclconfig}" = x ; then 1980 for i in \ 1981 ../tcl \ 1982 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1983 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1984 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1985 ../../tcl \ 1986 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1987 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1988 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1989 ../../../tcl \ 1990 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1991 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1992 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1993 if test "${TEA_PLATFORM}" = "windows" \ 1994 -a -f "$i/win/tclConfig.sh" ; then 1995 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1996 break 1997 fi 1998 if test -f "$i/unix/tclConfig.sh" ; then 1999 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2000 break 2001 fi 2002 done 2003 fi 2004 2005 # on Darwin, check in Framework installation locations 2006 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2007 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2008 `ls -d /Library/Frameworks 2>/dev/null` \ 2009 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2010 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2011 ; do 2012 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2013 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2014 break 2015 fi 2016 done 2017 fi 2018 2019 # TEA specific: on Windows, check in common installation locations 2020 if test "${TEA_PLATFORM}" = "windows" \ 2021 -a x"${ac_cv_c_tclconfig}" = x ; then 2022 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2023 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2024 ; do 2025 if test -f "$i/tclConfig.sh" ; then 2026 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2027 break 2028 fi 2029 done 2030 fi 2031 2032 # check in a few common install locations 2033 if test x"${ac_cv_c_tclconfig}" = x ; then 2034 for i in `ls -d ${libdir} 2>/dev/null` \ 2035 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2036 `ls -d ${prefix}/lib 2>/dev/null` \ 2037 `ls -d /usr/local/lib 2>/dev/null` \ 2038 `ls -d /usr/contrib/lib 2>/dev/null` \ 2039 `ls -d /usr/lib 2>/dev/null` \ 2040 `ls -d /usr/lib64 2>/dev/null` \ 2041 ; do 2042 if test -f "$i/tclConfig.sh" ; then 2043 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2044 break 2045 fi 2046 done 2047 fi 2048 2049 # check in a few other private locations 2050 if test x"${ac_cv_c_tclconfig}" = x ; then 2051 for i in \ 2052 ${srcdir}/../tcl \ 2053 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2054 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2055 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2056 if test "${TEA_PLATFORM}" = "windows" \ 2057 -a -f "$i/win/tclConfig.sh" ; then 2058 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2059 break 2060 fi 2061 if test -f "$i/unix/tclConfig.sh" ; then 2062 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2063 break 2064 fi 2065 done 2066 fi 2067 2068fi 2069 2070 2071 if test x"${ac_cv_c_tclconfig}" = x ; then 2072 TCL_BIN_DIR="# no Tcl configs found" 2073 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2074echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2075 { (exit 1); exit 1; }; } 2076 else 2077 no_tcl= 2078 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2079 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2080echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2081 fi 2082 fi 2083 2084 2085 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2086echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2087 2088 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2089 { echo "$as_me:$LINENO: result: loading" >&5 2090echo "${ECHO_T}loading" >&6; } 2091 . "${TCL_BIN_DIR}/tclConfig.sh" 2092 else 2093 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2094echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2095 fi 2096 2097 # eval is required to do the TCL_DBGX substitution 2098 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2099 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2100 2101 # If the TCL_BIN_DIR is the build directory (not the install directory), 2102 # then set the common variable name to the value of the build variables. 2103 # For example, the variable TCL_LIB_SPEC will be set to the value 2104 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2105 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2106 # installed and uninstalled version of Tcl. 2107 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2108 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2109 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2110 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2111 elif test "`uname -s`" = "Darwin"; then 2112 # If Tcl was built as a framework, attempt to use the libraries 2113 # from the framework at the given location so that linking works 2114 # against Tcl.framework installed in an arbitrary location. 2115 case ${TCL_DEFS} in 2116 *TCL_FRAMEWORK*) 2117 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2118 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2119 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2120 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2121 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2122 break 2123 fi 2124 done 2125 fi 2126 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2127 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2128 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2129 fi 2130 ;; 2131 esac 2132 fi 2133 2134 # eval is required to do the TCL_DBGX substitution 2135 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2136 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2137 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2138 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 case "`uname -s`" in 2154 *CYGWIN_*) 2155 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2156echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2157 case ${TCL_EXTRA_CFLAGS} in 2158 *-mwin32*|*-mno-cygwin*) 2159 TEA_PLATFORM="windows" 2160 CFLAGS="$CFLAGS -mwin32" 2161 { echo "$as_me:$LINENO: result: win32" >&5 2162echo "${ECHO_T}win32" >&6; } 2163 ;; 2164 *) 2165 TEA_PLATFORM="unix" 2166 { echo "$as_me:$LINENO: result: unix" >&5 2167echo "${ECHO_T}unix" >&6; } 2168 ;; 2169 esac 2170 EXEEXT=".exe" 2171 ;; 2172 *) 2173 ;; 2174 esac 2175 2176 # Do this here as we have fully defined TEA_PLATFORM now 2177 if test "${TEA_PLATFORM}" = "windows" ; then 2178 # The BUILD_$pkg is to define the correct extern storage class 2179 # handling when making this package 2180 2181cat >>confdefs.h <<_ACEOF 2182#define BUILD_${PACKAGE_NAME} 2183_ACEOF 2184 2185 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2186 fi 2187 2188 # TEA specific: 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 # 2199 # Ok, lets find the tk configuration 2200 # First, look for one uninstalled. 2201 # the alternative search directory is invoked by --with-tk 2202 # 2203 2204 if test x"${no_tk}" = x ; then 2205 # we reset no_tk in case something fails here 2206 no_tk=true 2207 2208# Check whether --with-tk was given. 2209if test "${with_tk+set}" = set; then 2210 withval=$with_tk; with_tkconfig="${withval}" 2211fi 2212 2213 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2214echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2215 if test "${ac_cv_c_tkconfig+set}" = set; then 2216 echo $ECHO_N "(cached) $ECHO_C" >&6 2217else 2218 2219 2220 # First check to see if --with-tkconfig was specified. 2221 if test x"${with_tkconfig}" != x ; then 2222 case "${with_tkconfig}" in 2223 */tkConfig.sh ) 2224 if test -f "${with_tkconfig}"; then 2225 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2226echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2227 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2228 fi ;; 2229 esac 2230 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2231 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2232 else 2233 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2234echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2235 { (exit 1); exit 1; }; } 2236 fi 2237 fi 2238 2239 # then check for a private Tk library 2240 if test x"${ac_cv_c_tkconfig}" = x ; then 2241 for i in \ 2242 ../tk \ 2243 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2244 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2245 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2246 ../../tk \ 2247 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2248 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2249 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2250 ../../../tk \ 2251 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2252 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2253 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2254 if test "${TEA_PLATFORM}" = "windows" \ 2255 -a -f "$i/win/tkConfig.sh" ; then 2256 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2257 break 2258 fi 2259 if test -f "$i/unix/tkConfig.sh" ; then 2260 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2261 break 2262 fi 2263 done 2264 fi 2265 2266 # on Darwin, check in Framework installation locations 2267 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2268 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2269 `ls -d /Library/Frameworks 2>/dev/null` \ 2270 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2271 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2272 ; do 2273 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2274 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2275 break 2276 fi 2277 done 2278 fi 2279 2280 # check in a few common install locations 2281 if test x"${ac_cv_c_tkconfig}" = x ; then 2282 for i in `ls -d ${libdir} 2>/dev/null` \ 2283 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2284 `ls -d ${prefix}/lib 2>/dev/null` \ 2285 `ls -d /usr/local/lib 2>/dev/null` \ 2286 `ls -d /usr/contrib/lib 2>/dev/null` \ 2287 `ls -d /usr/lib 2>/dev/null` \ 2288 `ls -d /usr/lib64 2>/dev/null` \ 2289 ; do 2290 if test -f "$i/tkConfig.sh" ; then 2291 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2292 break 2293 fi 2294 done 2295 fi 2296 2297 # TEA specific: on Windows, check in common installation locations 2298 if test "${TEA_PLATFORM}" = "windows" \ 2299 -a x"${ac_cv_c_tkconfig}" = x ; then 2300 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2301 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2302 ; do 2303 if test -f "$i/tkConfig.sh" ; then 2304 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2305 break 2306 fi 2307 done 2308 fi 2309 2310 # check in a few other private locations 2311 if test x"${ac_cv_c_tkconfig}" = x ; then 2312 for i in \ 2313 ${srcdir}/../tk \ 2314 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2315 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2316 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2317 if test "${TEA_PLATFORM}" = "windows" \ 2318 -a -f "$i/win/tkConfig.sh" ; then 2319 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2320 break 2321 fi 2322 if test -f "$i/unix/tkConfig.sh" ; then 2323 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2324 break 2325 fi 2326 done 2327 fi 2328 2329fi 2330 2331 2332 if test x"${ac_cv_c_tkconfig}" = x ; then 2333 TK_BIN_DIR="# no Tk configs found" 2334 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2335echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2336 { (exit 1); exit 1; }; } 2337 else 2338 no_tk= 2339 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2340 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2341echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2342 fi 2343 fi 2344 2345 2346 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2347echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2348 2349 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2350 { echo "$as_me:$LINENO: result: loading" >&5 2351echo "${ECHO_T}loading" >&6; } 2352 . "${TK_BIN_DIR}/tkConfig.sh" 2353 else 2354 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2355echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2356 fi 2357 2358 # eval is required to do the TK_DBGX substitution 2359 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2360 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2361 2362 # If the TK_BIN_DIR is the build directory (not the install directory), 2363 # then set the common variable name to the value of the build variables. 2364 # For example, the variable TK_LIB_SPEC will be set to the value 2365 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2366 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2367 # installed and uninstalled version of Tcl. 2368 if test -f "${TK_BIN_DIR}/Makefile" ; then 2369 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2370 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2371 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2372 elif test "`uname -s`" = "Darwin"; then 2373 # If Tk was built as a framework, attempt to use the libraries 2374 # from the framework at the given location so that linking works 2375 # against Tk.framework installed in an arbitrary location. 2376 case ${TK_DEFS} in 2377 *TK_FRAMEWORK*) 2378 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2379 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2380 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2381 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2382 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2383 break 2384 fi 2385 done 2386 fi 2387 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2388 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2389 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2390 fi 2391 ;; 2392 esac 2393 fi 2394 2395 # eval is required to do the TK_DBGX substitution 2396 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2397 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2398 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2399 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2400 2401 # TEA specific: Ensure windowingsystem is defined 2402 if test "${TEA_PLATFORM}" = "unix" ; then 2403 case ${TK_DEFS} in 2404 *MAC_OSX_TK*) 2405 2406cat >>confdefs.h <<\_ACEOF 2407#define MAC_OSX_TK 1 2408_ACEOF 2409 2410 TEA_WINDOWINGSYSTEM="aqua" 2411 ;; 2412 *) 2413 TEA_WINDOWINGSYSTEM="x11" 2414 ;; 2415 esac 2416 elif test "${TEA_PLATFORM}" = "windows" ; then 2417 TEA_WINDOWINGSYSTEM="win32" 2418 fi 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 # TEA specific: 2433 2434 2435 2436 2437#----------------------------------------------------------------------- 2438# Handle the --prefix=... option by defaulting to what Tcl gave. 2439# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2440#----------------------------------------------------------------------- 2441 2442 2443 if test "${prefix}" = "NONE"; then 2444 prefix_default=yes 2445 if test x"${TCL_PREFIX}" != x; then 2446 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2447echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2448 prefix=${TCL_PREFIX} 2449 else 2450 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2451echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2452 prefix=/usr/local 2453 fi 2454 fi 2455 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2456 -o x"${exec_prefix_default}" = x"yes" ; then 2457 if test x"${TCL_EXEC_PREFIX}" != x; then 2458 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2459echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2460 exec_prefix=${TCL_EXEC_PREFIX} 2461 else 2462 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2463echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2464 exec_prefix=$prefix 2465 fi 2466 fi 2467 2468 2469#----------------------------------------------------------------------- 2470# Standard compiler checks. 2471# This sets up CC by using the CC env var, or looks for gcc otherwise. 2472# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2473# the basic setup necessary to compile executables. 2474#----------------------------------------------------------------------- 2475 2476 2477 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2478 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2479 2480 # If the user did not set CFLAGS, set it now to keep 2481 # the AC_PROG_CC macro from adding "-g -O2". 2482 if test "${CFLAGS+set}" != "set" ; then 2483 CFLAGS="" 2484 fi 2485 2486 ac_ext=c 2487ac_cpp='$CPP $CPPFLAGS' 2488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2490ac_compiler_gnu=$ac_cv_c_compiler_gnu 2491if test -n "$ac_tool_prefix"; then 2492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2493set dummy ${ac_tool_prefix}gcc; ac_word=$2 2494{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2496if test "${ac_cv_prog_CC+set}" = set; then 2497 echo $ECHO_N "(cached) $ECHO_C" >&6 2498else 2499 if test -n "$CC"; then 2500 ac_cv_prog_CC="$CC" # Let the user override the test. 2501else 2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503for as_dir in $PATH 2504do 2505 IFS=$as_save_IFS 2506 test -z "$as_dir" && as_dir=. 2507 for ac_exec_ext in '' $ac_executable_extensions; do 2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2509 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2511 break 2 2512 fi 2513done 2514done 2515IFS=$as_save_IFS 2516 2517fi 2518fi 2519CC=$ac_cv_prog_CC 2520if test -n "$CC"; then 2521 { echo "$as_me:$LINENO: result: $CC" >&5 2522echo "${ECHO_T}$CC" >&6; } 2523else 2524 { echo "$as_me:$LINENO: result: no" >&5 2525echo "${ECHO_T}no" >&6; } 2526fi 2527 2528 2529fi 2530if test -z "$ac_cv_prog_CC"; then 2531 ac_ct_CC=$CC 2532 # Extract the first word of "gcc", so it can be a program name with args. 2533set dummy gcc; ac_word=$2 2534{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2536if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2537 echo $ECHO_N "(cached) $ECHO_C" >&6 2538else 2539 if test -n "$ac_ct_CC"; then 2540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2541else 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 ac_cv_prog_ac_ct_CC="gcc" 2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2551 break 2 2552 fi 2553done 2554done 2555IFS=$as_save_IFS 2556 2557fi 2558fi 2559ac_ct_CC=$ac_cv_prog_ac_ct_CC 2560if test -n "$ac_ct_CC"; then 2561 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2562echo "${ECHO_T}$ac_ct_CC" >&6; } 2563else 2564 { echo "$as_me:$LINENO: result: no" >&5 2565echo "${ECHO_T}no" >&6; } 2566fi 2567 2568 if test "x$ac_ct_CC" = x; then 2569 CC="" 2570 else 2571 case $cross_compiling:$ac_tool_warned in 2572yes:) 2573{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2574whose name does not start with the host triplet. If you think this 2575configuration is useful to you, please write to autoconf@gnu.org." >&5 2576echo "$as_me: 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." >&2;} 2579ac_tool_warned=yes ;; 2580esac 2581 CC=$ac_ct_CC 2582 fi 2583else 2584 CC="$ac_cv_prog_CC" 2585fi 2586 2587if test -z "$CC"; then 2588 if test -n "$ac_tool_prefix"; then 2589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2590set dummy ${ac_tool_prefix}cc; ac_word=$2 2591{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2593if test "${ac_cv_prog_CC+set}" = set; then 2594 echo $ECHO_N "(cached) $ECHO_C" >&6 2595else 2596 if test -n "$CC"; then 2597 ac_cv_prog_CC="$CC" # Let the user override the test. 2598else 2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600for as_dir in $PATH 2601do 2602 IFS=$as_save_IFS 2603 test -z "$as_dir" && as_dir=. 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2606 ac_cv_prog_CC="${ac_tool_prefix}cc" 2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2608 break 2 2609 fi 2610done 2611done 2612IFS=$as_save_IFS 2613 2614fi 2615fi 2616CC=$ac_cv_prog_CC 2617if test -n "$CC"; then 2618 { echo "$as_me:$LINENO: result: $CC" >&5 2619echo "${ECHO_T}$CC" >&6; } 2620else 2621 { echo "$as_me:$LINENO: result: no" >&5 2622echo "${ECHO_T}no" >&6; } 2623fi 2624 2625 2626 fi 2627fi 2628if test -z "$CC"; then 2629 # Extract the first word of "cc", so it can be a program name with args. 2630set dummy cc; ac_word=$2 2631{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2633if test "${ac_cv_prog_CC+set}" = set; then 2634 echo $ECHO_N "(cached) $ECHO_C" >&6 2635else 2636 if test -n "$CC"; then 2637 ac_cv_prog_CC="$CC" # Let the user override the test. 2638else 2639 ac_prog_rejected=no 2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2641for as_dir in $PATH 2642do 2643 IFS=$as_save_IFS 2644 test -z "$as_dir" && as_dir=. 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2648 ac_prog_rejected=yes 2649 continue 2650 fi 2651 ac_cv_prog_CC="cc" 2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656done 2657IFS=$as_save_IFS 2658 2659if test $ac_prog_rejected = yes; then 2660 # We found a bogon in the path, so make sure we never use it. 2661 set dummy $ac_cv_prog_CC 2662 shift 2663 if test $# != 0; then 2664 # We chose a different compiler from the bogus one. 2665 # However, it has the same basename, so the bogon will be chosen 2666 # first if we set CC to just the basename; use the full file name. 2667 shift 2668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2669 fi 2670fi 2671fi 2672fi 2673CC=$ac_cv_prog_CC 2674if test -n "$CC"; then 2675 { echo "$as_me:$LINENO: result: $CC" >&5 2676echo "${ECHO_T}$CC" >&6; } 2677else 2678 { echo "$as_me:$LINENO: result: no" >&5 2679echo "${ECHO_T}no" >&6; } 2680fi 2681 2682 2683fi 2684if test -z "$CC"; then 2685 if test -n "$ac_tool_prefix"; then 2686 for ac_prog in cl.exe 2687 do 2688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2689set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2690{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2692if test "${ac_cv_prog_CC+set}" = set; then 2693 echo $ECHO_N "(cached) $ECHO_C" >&6 2694else 2695 if test -n "$CC"; then 2696 ac_cv_prog_CC="$CC" # Let the user override the test. 2697else 2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2699for as_dir in $PATH 2700do 2701 IFS=$as_save_IFS 2702 test -z "$as_dir" && as_dir=. 2703 for ac_exec_ext in '' $ac_executable_extensions; do 2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2707 break 2 2708 fi 2709done 2710done 2711IFS=$as_save_IFS 2712 2713fi 2714fi 2715CC=$ac_cv_prog_CC 2716if test -n "$CC"; then 2717 { echo "$as_me:$LINENO: result: $CC" >&5 2718echo "${ECHO_T}$CC" >&6; } 2719else 2720 { echo "$as_me:$LINENO: result: no" >&5 2721echo "${ECHO_T}no" >&6; } 2722fi 2723 2724 2725 test -n "$CC" && break 2726 done 2727fi 2728if test -z "$CC"; then 2729 ac_ct_CC=$CC 2730 for ac_prog in cl.exe 2731do 2732 # Extract the first word of "$ac_prog", so it can be a program name with args. 2733set dummy $ac_prog; ac_word=$2 2734{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2737 echo $ECHO_N "(cached) $ECHO_C" >&6 2738else 2739 if test -n "$ac_ct_CC"; then 2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2741else 2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743for as_dir in $PATH 2744do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2749 ac_cv_prog_ac_ct_CC="$ac_prog" 2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2751 break 2 2752 fi 2753done 2754done 2755IFS=$as_save_IFS 2756 2757fi 2758fi 2759ac_ct_CC=$ac_cv_prog_ac_ct_CC 2760if test -n "$ac_ct_CC"; then 2761 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2762echo "${ECHO_T}$ac_ct_CC" >&6; } 2763else 2764 { echo "$as_me:$LINENO: result: no" >&5 2765echo "${ECHO_T}no" >&6; } 2766fi 2767 2768 2769 test -n "$ac_ct_CC" && break 2770done 2771 2772 if test "x$ac_ct_CC" = x; then 2773 CC="" 2774 else 2775 case $cross_compiling:$ac_tool_warned in 2776yes:) 2777{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2778whose name does not start with the host triplet. If you think this 2779configuration is useful to you, please write to autoconf@gnu.org." >&5 2780echo "$as_me: 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." >&2;} 2783ac_tool_warned=yes ;; 2784esac 2785 CC=$ac_ct_CC 2786 fi 2787fi 2788 2789fi 2790 2791 2792test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2793See \`config.log' for more details." >&5 2794echo "$as_me: error: no acceptable C compiler found in \$PATH 2795See \`config.log' for more details." >&2;} 2796 { (exit 1); exit 1; }; } 2797 2798# Provide some information about the compiler. 2799echo "$as_me:$LINENO: checking for C compiler version" >&5 2800ac_compiler=`set X $ac_compile; echo $2` 2801{ (ac_try="$ac_compiler --version >&5" 2802case "(($ac_try" in 2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2804 *) ac_try_echo=$ac_try;; 2805esac 2806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2807 (eval "$ac_compiler --version >&5") 2>&5 2808 ac_status=$? 2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2810 (exit $ac_status); } 2811{ (ac_try="$ac_compiler -v >&5" 2812case "(($ac_try" in 2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2814 *) ac_try_echo=$ac_try;; 2815esac 2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2817 (eval "$ac_compiler -v >&5") 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); } 2821{ (ac_try="$ac_compiler -V >&5" 2822case "(($ac_try" in 2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2824 *) ac_try_echo=$ac_try;; 2825esac 2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2827 (eval "$ac_compiler -V >&5") 2>&5 2828 ac_status=$? 2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2830 (exit $ac_status); } 2831 2832cat >conftest.$ac_ext <<_ACEOF 2833/* confdefs.h. */ 2834_ACEOF 2835cat confdefs.h >>conftest.$ac_ext 2836cat >>conftest.$ac_ext <<_ACEOF 2837/* end confdefs.h. */ 2838 2839int 2840main () 2841{ 2842 2843 ; 2844 return 0; 2845} 2846_ACEOF 2847ac_clean_files_save=$ac_clean_files 2848ac_clean_files="$ac_clean_files a.out a.exe b.out" 2849# Try to create an executable without -o first, disregard a.out. 2850# It will help us diagnose broken compilers, and finding out an intuition 2851# of exeext. 2852{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2853echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2854ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2855# 2856# List of possible output files, starting from the most likely. 2857# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2858# only as a last resort. b.out is created by i960 compilers. 2859ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2860# 2861# The IRIX 6 linker writes into existing files which may not be 2862# executable, retaining their permissions. Remove them first so a 2863# subsequent execution test works. 2864ac_rmfiles= 2865for ac_file in $ac_files 2866do 2867 case $ac_file in 2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2869 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2870 esac 2871done 2872rm -f $ac_rmfiles 2873 2874if { (ac_try="$ac_link_default" 2875case "(($ac_try" in 2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2877 *) ac_try_echo=$ac_try;; 2878esac 2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2880 (eval "$ac_link_default") 2>&5 2881 ac_status=$? 2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2883 (exit $ac_status); }; then 2884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2885# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2886# in a Makefile. We should not override ac_cv_exeext if it was cached, 2887# so that the user can short-circuit this test for compilers unknown to 2888# Autoconf. 2889for ac_file in $ac_files '' 2890do 2891 test -f "$ac_file" || continue 2892 case $ac_file in 2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2894 ;; 2895 [ab].out ) 2896 # We found the default executable, but exeext='' is most 2897 # certainly right. 2898 break;; 2899 *.* ) 2900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2901 then :; else 2902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2903 fi 2904 # We set ac_cv_exeext here because the later test for it is not 2905 # safe: cross compilers may not add the suffix if given an `-o' 2906 # argument, so we may need to know it at that point already. 2907 # Even if this section looks crufty: it has the advantage of 2908 # actually working. 2909 break;; 2910 * ) 2911 break;; 2912 esac 2913done 2914test "$ac_cv_exeext" = no && ac_cv_exeext= 2915 2916else 2917 ac_file='' 2918fi 2919 2920{ echo "$as_me:$LINENO: result: $ac_file" >&5 2921echo "${ECHO_T}$ac_file" >&6; } 2922if test -z "$ac_file"; then 2923 echo "$as_me: failed program was:" >&5 2924sed 's/^/| /' conftest.$ac_ext >&5 2925 2926{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2927See \`config.log' for more details." >&5 2928echo "$as_me: error: C compiler cannot create executables 2929See \`config.log' for more details." >&2;} 2930 { (exit 77); exit 77; }; } 2931fi 2932 2933ac_exeext=$ac_cv_exeext 2934 2935# Check that the compiler produces executables we can run. If not, either 2936# the compiler is broken, or we cross compile. 2937{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2938echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2939# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2940# If not cross compiling, check that we can run a simple program. 2941if test "$cross_compiling" != yes; then 2942 if { ac_try='./$ac_file' 2943 { (case "(($ac_try" in 2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2945 *) ac_try_echo=$ac_try;; 2946esac 2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2948 (eval "$ac_try") 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; }; then 2952 cross_compiling=no 2953 else 2954 if test "$cross_compiling" = maybe; then 2955 cross_compiling=yes 2956 else 2957 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2958If you meant to cross compile, use \`--host'. 2959See \`config.log' for more details." >&5 2960echo "$as_me: error: cannot run C compiled programs. 2961If you meant to cross compile, use \`--host'. 2962See \`config.log' for more details." >&2;} 2963 { (exit 1); exit 1; }; } 2964 fi 2965 fi 2966fi 2967{ echo "$as_me:$LINENO: result: yes" >&5 2968echo "${ECHO_T}yes" >&6; } 2969 2970rm -f a.out a.exe conftest$ac_cv_exeext b.out 2971ac_clean_files=$ac_clean_files_save 2972# Check that the compiler produces executables we can run. If not, either 2973# the compiler is broken, or we cross compile. 2974{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2975echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2976{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2977echo "${ECHO_T}$cross_compiling" >&6; } 2978 2979{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2980echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2981if { (ac_try="$ac_link" 2982case "(($ac_try" in 2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2984 *) ac_try_echo=$ac_try;; 2985esac 2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2987 (eval "$ac_link") 2>&5 2988 ac_status=$? 2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); }; then 2991 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2992# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2993# work properly (i.e., refer to `conftest.exe'), while it won't with 2994# `rm'. 2995for ac_file in conftest.exe conftest conftest.*; do 2996 test -f "$ac_file" || continue 2997 case $ac_file in 2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3000 break;; 3001 * ) break;; 3002 esac 3003done 3004else 3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3006See \`config.log' for more details." >&5 3007echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3008See \`config.log' for more details." >&2;} 3009 { (exit 1); exit 1; }; } 3010fi 3011 3012rm -f conftest$ac_cv_exeext 3013{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3014echo "${ECHO_T}$ac_cv_exeext" >&6; } 3015 3016rm -f conftest.$ac_ext 3017EXEEXT=$ac_cv_exeext 3018ac_exeext=$EXEEXT 3019{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3020echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3021if test "${ac_cv_objext+set}" = set; then 3022 echo $ECHO_N "(cached) $ECHO_C" >&6 3023else 3024 cat >conftest.$ac_ext <<_ACEOF 3025/* confdefs.h. */ 3026_ACEOF 3027cat confdefs.h >>conftest.$ac_ext 3028cat >>conftest.$ac_ext <<_ACEOF 3029/* end confdefs.h. */ 3030 3031int 3032main () 3033{ 3034 3035 ; 3036 return 0; 3037} 3038_ACEOF 3039rm -f conftest.o conftest.obj 3040if { (ac_try="$ac_compile" 3041case "(($ac_try" in 3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3043 *) ac_try_echo=$ac_try;; 3044esac 3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3046 (eval "$ac_compile") 2>&5 3047 ac_status=$? 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); }; then 3050 for ac_file in conftest.o conftest.obj conftest.*; do 3051 test -f "$ac_file" || continue; 3052 case $ac_file in 3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3054 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3055 break;; 3056 esac 3057done 3058else 3059 echo "$as_me: failed program was:" >&5 3060sed 's/^/| /' conftest.$ac_ext >&5 3061 3062{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3063See \`config.log' for more details." >&5 3064echo "$as_me: error: cannot compute suffix of object files: cannot compile 3065See \`config.log' for more details." >&2;} 3066 { (exit 1); exit 1; }; } 3067fi 3068 3069rm -f conftest.$ac_cv_objext conftest.$ac_ext 3070fi 3071{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3072echo "${ECHO_T}$ac_cv_objext" >&6; } 3073OBJEXT=$ac_cv_objext 3074ac_objext=$OBJEXT 3075{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3076echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3077if test "${ac_cv_c_compiler_gnu+set}" = set; then 3078 echo $ECHO_N "(cached) $ECHO_C" >&6 3079else 3080 cat >conftest.$ac_ext <<_ACEOF 3081/* confdefs.h. */ 3082_ACEOF 3083cat confdefs.h >>conftest.$ac_ext 3084cat >>conftest.$ac_ext <<_ACEOF 3085/* end confdefs.h. */ 3086 3087int 3088main () 3089{ 3090#ifndef __GNUC__ 3091 choke me 3092#endif 3093 3094 ; 3095 return 0; 3096} 3097_ACEOF 3098rm -f conftest.$ac_objext 3099if { (ac_try="$ac_compile" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3105 (eval "$ac_compile") 2>conftest.er1 3106 ac_status=$? 3107 grep -v '^ *+' conftest.er1 >conftest.err 3108 rm -f conftest.er1 3109 cat conftest.err >&5 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } && { 3112 test -z "$ac_c_werror_flag" || 3113 test ! -s conftest.err 3114 } && test -s conftest.$ac_objext; then 3115 ac_compiler_gnu=yes 3116else 3117 echo "$as_me: failed program was:" >&5 3118sed 's/^/| /' conftest.$ac_ext >&5 3119 3120 ac_compiler_gnu=no 3121fi 3122 3123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3124ac_cv_c_compiler_gnu=$ac_compiler_gnu 3125 3126fi 3127{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3128echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3129GCC=`test $ac_compiler_gnu = yes && echo yes` 3130ac_test_CFLAGS=${CFLAGS+set} 3131ac_save_CFLAGS=$CFLAGS 3132{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3133echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3134if test "${ac_cv_prog_cc_g+set}" = set; then 3135 echo $ECHO_N "(cached) $ECHO_C" >&6 3136else 3137 ac_save_c_werror_flag=$ac_c_werror_flag 3138 ac_c_werror_flag=yes 3139 ac_cv_prog_cc_g=no 3140 CFLAGS="-g" 3141 cat >conftest.$ac_ext <<_ACEOF 3142/* confdefs.h. */ 3143_ACEOF 3144cat confdefs.h >>conftest.$ac_ext 3145cat >>conftest.$ac_ext <<_ACEOF 3146/* end confdefs.h. */ 3147 3148int 3149main () 3150{ 3151 3152 ; 3153 return 0; 3154} 3155_ACEOF 3156rm -f conftest.$ac_objext 3157if { (ac_try="$ac_compile" 3158case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3163 (eval "$ac_compile") 2>conftest.er1 3164 ac_status=$? 3165 grep -v '^ *+' conftest.er1 >conftest.err 3166 rm -f conftest.er1 3167 cat conftest.err >&5 3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3169 (exit $ac_status); } && { 3170 test -z "$ac_c_werror_flag" || 3171 test ! -s conftest.err 3172 } && test -s conftest.$ac_objext; then 3173 ac_cv_prog_cc_g=yes 3174else 3175 echo "$as_me: failed program was:" >&5 3176sed 's/^/| /' conftest.$ac_ext >&5 3177 3178 CFLAGS="" 3179 cat >conftest.$ac_ext <<_ACEOF 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194rm -f conftest.$ac_objext 3195if { (ac_try="$ac_compile" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3201 (eval "$ac_compile") 2>conftest.er1 3202 ac_status=$? 3203 grep -v '^ *+' conftest.er1 >conftest.err 3204 rm -f conftest.er1 3205 cat conftest.err >&5 3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207 (exit $ac_status); } && { 3208 test -z "$ac_c_werror_flag" || 3209 test ! -s conftest.err 3210 } && test -s conftest.$ac_objext; then 3211 : 3212else 3213 echo "$as_me: failed program was:" >&5 3214sed 's/^/| /' conftest.$ac_ext >&5 3215 3216 ac_c_werror_flag=$ac_save_c_werror_flag 3217 CFLAGS="-g" 3218 cat >conftest.$ac_ext <<_ACEOF 3219/* confdefs.h. */ 3220_ACEOF 3221cat confdefs.h >>conftest.$ac_ext 3222cat >>conftest.$ac_ext <<_ACEOF 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233rm -f conftest.$ac_objext 3234if { (ac_try="$ac_compile" 3235case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238esac 3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3240 (eval "$ac_compile") 2>conftest.er1 3241 ac_status=$? 3242 grep -v '^ *+' conftest.er1 >conftest.err 3243 rm -f conftest.er1 3244 cat conftest.err >&5 3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3246 (exit $ac_status); } && { 3247 test -z "$ac_c_werror_flag" || 3248 test ! -s conftest.err 3249 } && test -s conftest.$ac_objext; then 3250 ac_cv_prog_cc_g=yes 3251else 3252 echo "$as_me: failed program was:" >&5 3253sed 's/^/| /' conftest.$ac_ext >&5 3254 3255 3256fi 3257 3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 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 3265 ac_c_werror_flag=$ac_save_c_werror_flag 3266fi 3267{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3269if test "$ac_test_CFLAGS" = set; then 3270 CFLAGS=$ac_save_CFLAGS 3271elif test $ac_cv_prog_cc_g = yes; then 3272 if test "$GCC" = yes; then 3273 CFLAGS="-g -O2" 3274 else 3275 CFLAGS="-g" 3276 fi 3277else 3278 if test "$GCC" = yes; then 3279 CFLAGS="-O2" 3280 else 3281 CFLAGS= 3282 fi 3283fi 3284{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3285echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3286if test "${ac_cv_prog_cc_c89+set}" = set; then 3287 echo $ECHO_N "(cached) $ECHO_C" >&6 3288else 3289 ac_cv_prog_cc_c89=no 3290ac_save_CC=$CC 3291cat >conftest.$ac_ext <<_ACEOF 3292/* confdefs.h. */ 3293_ACEOF 3294cat confdefs.h >>conftest.$ac_ext 3295cat >>conftest.$ac_ext <<_ACEOF 3296/* end confdefs.h. */ 3297#include <stdarg.h> 3298#include <stdio.h> 3299#include <sys/types.h> 3300#include <sys/stat.h> 3301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3302struct buf { int x; }; 3303FILE * (*rcsopen) (struct buf *, struct stat *, int); 3304static char *e (p, i) 3305 char **p; 3306 int i; 3307{ 3308 return p[i]; 3309} 3310static char *f (char * (*g) (char **, int), char **p, ...) 3311{ 3312 char *s; 3313 va_list v; 3314 va_start (v,p); 3315 s = g (p, va_arg (v,int)); 3316 va_end (v); 3317 return s; 3318} 3319 3320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3321 function prototypes and stuff, but not '\xHH' hex character constants. 3322 These don't provoke an error unfortunately, instead are silently treated 3323 as 'x'. The following induces an error, until -std is added to get 3324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3325 array size at least. It's necessary to write '\x00'==0 to get something 3326 that's true only with -std. */ 3327int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3328 3329/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3330 inside strings and character constants. */ 3331#define FOO(x) 'x' 3332int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3333 3334int test (int i, double x); 3335struct s1 {int (*f) (int a);}; 3336struct s2 {int (*f) (double a);}; 3337int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3338int argc; 3339char **argv; 3340int 3341main () 3342{ 3343return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3344 ; 3345 return 0; 3346} 3347_ACEOF 3348for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3350do 3351 CC="$ac_save_CC $ac_arg" 3352 rm -f conftest.$ac_objext 3353if { (ac_try="$ac_compile" 3354case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357esac 3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3359 (eval "$ac_compile") 2>conftest.er1 3360 ac_status=$? 3361 grep -v '^ *+' conftest.er1 >conftest.err 3362 rm -f conftest.er1 3363 cat conftest.err >&5 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); } && { 3366 test -z "$ac_c_werror_flag" || 3367 test ! -s conftest.err 3368 } && test -s conftest.$ac_objext; then 3369 ac_cv_prog_cc_c89=$ac_arg 3370else 3371 echo "$as_me: failed program was:" >&5 3372sed 's/^/| /' conftest.$ac_ext >&5 3373 3374 3375fi 3376 3377rm -f core conftest.err conftest.$ac_objext 3378 test "x$ac_cv_prog_cc_c89" != "xno" && break 3379done 3380rm -f conftest.$ac_ext 3381CC=$ac_save_CC 3382 3383fi 3384# AC_CACHE_VAL 3385case "x$ac_cv_prog_cc_c89" in 3386 x) 3387 { echo "$as_me:$LINENO: result: none needed" >&5 3388echo "${ECHO_T}none needed" >&6; } ;; 3389 xno) 3390 { echo "$as_me:$LINENO: result: unsupported" >&5 3391echo "${ECHO_T}unsupported" >&6; } ;; 3392 *) 3393 CC="$CC $ac_cv_prog_cc_c89" 3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3395echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3396esac 3397 3398 3399ac_ext=c 3400ac_cpp='$CPP $CPPFLAGS' 3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3403ac_compiler_gnu=$ac_cv_c_compiler_gnu 3404 3405 ac_ext=c 3406ac_cpp='$CPP $CPPFLAGS' 3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3409ac_compiler_gnu=$ac_cv_c_compiler_gnu 3410{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3411echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3412# On Suns, sometimes $CPP names a directory. 3413if test -n "$CPP" && test -d "$CPP"; then 3414 CPP= 3415fi 3416if test -z "$CPP"; then 3417 if test "${ac_cv_prog_CPP+set}" = set; then 3418 echo $ECHO_N "(cached) $ECHO_C" >&6 3419else 3420 # Double quotes because CPP needs to be expanded 3421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3422 do 3423 ac_preproc_ok=false 3424for ac_c_preproc_warn_flag in '' yes 3425do 3426 # Use a header file that comes with gcc, so configuring glibc 3427 # with a fresh cross-compiler works. 3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3429 # <limits.h> exists even on freestanding compilers. 3430 # On the NeXT, cc -E runs the code through the compiler's parser, 3431 # not just through cpp. "Syntax error" is here to catch this case. 3432 cat >conftest.$ac_ext <<_ACEOF 3433/* confdefs.h. */ 3434_ACEOF 3435cat confdefs.h >>conftest.$ac_ext 3436cat >>conftest.$ac_ext <<_ACEOF 3437/* end confdefs.h. */ 3438#ifdef __STDC__ 3439# include <limits.h> 3440#else 3441# include <assert.h> 3442#endif 3443 Syntax error 3444_ACEOF 3445if { (ac_try="$ac_cpp conftest.$ac_ext" 3446case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449esac 3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3452 ac_status=$? 3453 grep -v '^ *+' conftest.er1 >conftest.err 3454 rm -f conftest.er1 3455 cat conftest.err >&5 3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3457 (exit $ac_status); } >/dev/null && { 3458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3459 test ! -s conftest.err 3460 }; then 3461 : 3462else 3463 echo "$as_me: failed program was:" >&5 3464sed 's/^/| /' conftest.$ac_ext >&5 3465 3466 # Broken: fails on valid input. 3467continue 3468fi 3469 3470rm -f conftest.err conftest.$ac_ext 3471 3472 # OK, works on sane cases. Now check whether nonexistent headers 3473 # can be detected and how. 3474 cat >conftest.$ac_ext <<_ACEOF 3475/* confdefs.h. */ 3476_ACEOF 3477cat confdefs.h >>conftest.$ac_ext 3478cat >>conftest.$ac_ext <<_ACEOF 3479/* end confdefs.h. */ 3480#include <ac_nonexistent.h> 3481_ACEOF 3482if { (ac_try="$ac_cpp conftest.$ac_ext" 3483case "(($ac_try" in 3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3485 *) ac_try_echo=$ac_try;; 3486esac 3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3489 ac_status=$? 3490 grep -v '^ *+' conftest.er1 >conftest.err 3491 rm -f conftest.er1 3492 cat conftest.err >&5 3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 (exit $ac_status); } >/dev/null && { 3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3496 test ! -s conftest.err 3497 }; then 3498 # Broken: success on invalid input. 3499continue 3500else 3501 echo "$as_me: failed program was:" >&5 3502sed 's/^/| /' conftest.$ac_ext >&5 3503 3504 # Passes both tests. 3505ac_preproc_ok=: 3506break 3507fi 3508 3509rm -f conftest.err conftest.$ac_ext 3510 3511done 3512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3513rm -f conftest.err conftest.$ac_ext 3514if $ac_preproc_ok; then 3515 break 3516fi 3517 3518 done 3519 ac_cv_prog_CPP=$CPP 3520 3521fi 3522 CPP=$ac_cv_prog_CPP 3523else 3524 ac_cv_prog_CPP=$CPP 3525fi 3526{ echo "$as_me:$LINENO: result: $CPP" >&5 3527echo "${ECHO_T}$CPP" >&6; } 3528ac_preproc_ok=false 3529for ac_c_preproc_warn_flag in '' yes 3530do 3531 # Use a header file that comes with gcc, so configuring glibc 3532 # with a fresh cross-compiler works. 3533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3534 # <limits.h> exists even on freestanding compilers. 3535 # On the NeXT, cc -E runs the code through the compiler's parser, 3536 # not just through cpp. "Syntax error" is here to catch this case. 3537 cat >conftest.$ac_ext <<_ACEOF 3538/* confdefs.h. */ 3539_ACEOF 3540cat confdefs.h >>conftest.$ac_ext 3541cat >>conftest.$ac_ext <<_ACEOF 3542/* end confdefs.h. */ 3543#ifdef __STDC__ 3544# include <limits.h> 3545#else 3546# include <assert.h> 3547#endif 3548 Syntax error 3549_ACEOF 3550if { (ac_try="$ac_cpp conftest.$ac_ext" 3551case "(($ac_try" in 3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3553 *) ac_try_echo=$ac_try;; 3554esac 3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3557 ac_status=$? 3558 grep -v '^ *+' conftest.er1 >conftest.err 3559 rm -f conftest.er1 3560 cat conftest.err >&5 3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3562 (exit $ac_status); } >/dev/null && { 3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3564 test ! -s conftest.err 3565 }; then 3566 : 3567else 3568 echo "$as_me: failed program was:" >&5 3569sed 's/^/| /' conftest.$ac_ext >&5 3570 3571 # Broken: fails on valid input. 3572continue 3573fi 3574 3575rm -f conftest.err conftest.$ac_ext 3576 3577 # OK, works on sane cases. Now check whether nonexistent headers 3578 # can be detected and how. 3579 cat >conftest.$ac_ext <<_ACEOF 3580/* confdefs.h. */ 3581_ACEOF 3582cat confdefs.h >>conftest.$ac_ext 3583cat >>conftest.$ac_ext <<_ACEOF 3584/* end confdefs.h. */ 3585#include <ac_nonexistent.h> 3586_ACEOF 3587if { (ac_try="$ac_cpp conftest.$ac_ext" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3594 ac_status=$? 3595 grep -v '^ *+' conftest.er1 >conftest.err 3596 rm -f conftest.er1 3597 cat conftest.err >&5 3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3599 (exit $ac_status); } >/dev/null && { 3600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3601 test ! -s conftest.err 3602 }; then 3603 # Broken: success on invalid input. 3604continue 3605else 3606 echo "$as_me: failed program was:" >&5 3607sed 's/^/| /' conftest.$ac_ext >&5 3608 3609 # Passes both tests. 3610ac_preproc_ok=: 3611break 3612fi 3613 3614rm -f conftest.err conftest.$ac_ext 3615 3616done 3617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3618rm -f conftest.err conftest.$ac_ext 3619if $ac_preproc_ok; then 3620 : 3621else 3622 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3623See \`config.log' for more details." >&5 3624echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3625See \`config.log' for more details." >&2;} 3626 { (exit 1); exit 1; }; } 3627fi 3628 3629ac_ext=c 3630ac_cpp='$CPP $CPPFLAGS' 3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634 3635 3636 # Find a good install program. We prefer a C program (faster), 3637# so one script is as good as another. But avoid the broken or 3638# incompatible versions: 3639# SysV /etc/install, /usr/sbin/install 3640# SunOS /usr/etc/install 3641# IRIX /sbin/install 3642# AIX /bin/install 3643# AmigaOS /C/install, which installs bootblocks on floppy discs 3644# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3645# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3646# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3647# OS/2's system install, which has a completely different semantic 3648# ./install, which can be erroneously created by make from ./install.sh. 3649{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3650echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3651if test -z "$INSTALL"; then 3652if test "${ac_cv_path_install+set}" = set; then 3653 echo $ECHO_N "(cached) $ECHO_C" >&6 3654else 3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3656for as_dir in $PATH 3657do 3658 IFS=$as_save_IFS 3659 test -z "$as_dir" && as_dir=. 3660 # Account for people who put trailing slashes in PATH elements. 3661case $as_dir/ in 3662 ./ | .// | /cC/* | \ 3663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3664 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3665 /usr/ucb/* ) ;; 3666 *) 3667 # OSF1 and SCO ODT 3.0 have their own names for install. 3668 # Don't use installbsd from OSF since it installs stuff as root 3669 # by default. 3670 for ac_prog in ginstall scoinst install; do 3671 for ac_exec_ext in '' $ac_executable_extensions; do 3672 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3673 if test $ac_prog = install && 3674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3675 # AIX install. It has an incompatible calling convention. 3676 : 3677 elif test $ac_prog = install && 3678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3679 # program-specific install script used by HP pwplus--don't use. 3680 : 3681 else 3682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3683 break 3 3684 fi 3685 fi 3686 done 3687 done 3688 ;; 3689esac 3690done 3691IFS=$as_save_IFS 3692 3693 3694fi 3695 if test "${ac_cv_path_install+set}" = set; then 3696 INSTALL=$ac_cv_path_install 3697 else 3698 # As a last resort, use the slow shell script. Don't cache a 3699 # value for INSTALL within a source directory, because that will 3700 # break other packages using the cache if that directory is 3701 # removed, or if the value is a relative name. 3702 INSTALL=$ac_install_sh 3703 fi 3704fi 3705{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3706echo "${ECHO_T}$INSTALL" >&6; } 3707 3708# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3709# It thinks the first close brace ends the variable substitution. 3710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3711 3712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3713 3714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3715 3716 3717 #-------------------------------------------------------------------- 3718 # Checks to see if the make program sets the $MAKE variable. 3719 #-------------------------------------------------------------------- 3720 3721 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3722echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3723set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3724if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3725 echo $ECHO_N "(cached) $ECHO_C" >&6 3726else 3727 cat >conftest.make <<\_ACEOF 3728SHELL = /bin/sh 3729all: 3730 @echo '@@@%%%=$(MAKE)=@@@%%%' 3731_ACEOF 3732# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3733case `${MAKE-make} -f conftest.make 2>/dev/null` in 3734 *@@@%%%=?*=@@@%%%*) 3735 eval ac_cv_prog_make_${ac_make}_set=yes;; 3736 *) 3737 eval ac_cv_prog_make_${ac_make}_set=no;; 3738esac 3739rm -f conftest.make 3740fi 3741if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3742 { echo "$as_me:$LINENO: result: yes" >&5 3743echo "${ECHO_T}yes" >&6; } 3744 SET_MAKE= 3745else 3746 { echo "$as_me:$LINENO: result: no" >&5 3747echo "${ECHO_T}no" >&6; } 3748 SET_MAKE="MAKE=${MAKE-make}" 3749fi 3750 3751 3752 #-------------------------------------------------------------------- 3753 # Find ranlib 3754 #-------------------------------------------------------------------- 3755 3756 if test -n "$ac_tool_prefix"; then 3757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3758set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3759{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3761if test "${ac_cv_prog_RANLIB+set}" = set; then 3762 echo $ECHO_N "(cached) $ECHO_C" >&6 3763else 3764 if test -n "$RANLIB"; then 3765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3766else 3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3768for as_dir in $PATH 3769do 3770 IFS=$as_save_IFS 3771 test -z "$as_dir" && as_dir=. 3772 for ac_exec_ext in '' $ac_executable_extensions; do 3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3776 break 2 3777 fi 3778done 3779done 3780IFS=$as_save_IFS 3781 3782fi 3783fi 3784RANLIB=$ac_cv_prog_RANLIB 3785if test -n "$RANLIB"; then 3786 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3787echo "${ECHO_T}$RANLIB" >&6; } 3788else 3789 { echo "$as_me:$LINENO: result: no" >&5 3790echo "${ECHO_T}no" >&6; } 3791fi 3792 3793 3794fi 3795if test -z "$ac_cv_prog_RANLIB"; then 3796 ac_ct_RANLIB=$RANLIB 3797 # Extract the first word of "ranlib", so it can be a program name with args. 3798set dummy ranlib; ac_word=$2 3799{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3801if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3802 echo $ECHO_N "(cached) $ECHO_C" >&6 3803else 3804 if test -n "$ac_ct_RANLIB"; then 3805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3806else 3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3808for as_dir in $PATH 3809do 3810 IFS=$as_save_IFS 3811 test -z "$as_dir" && as_dir=. 3812 for ac_exec_ext in '' $ac_executable_extensions; do 3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3814 ac_cv_prog_ac_ct_RANLIB="ranlib" 3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3816 break 2 3817 fi 3818done 3819done 3820IFS=$as_save_IFS 3821 3822fi 3823fi 3824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3825if test -n "$ac_ct_RANLIB"; then 3826 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3827echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3828else 3829 { echo "$as_me:$LINENO: result: no" >&5 3830echo "${ECHO_T}no" >&6; } 3831fi 3832 3833 if test "x$ac_ct_RANLIB" = x; then 3834 RANLIB=":" 3835 else 3836 case $cross_compiling:$ac_tool_warned in 3837yes:) 3838{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3839whose name does not start with the host triplet. If you think this 3840configuration is useful to you, please write to autoconf@gnu.org." >&5 3841echo "$as_me: 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." >&2;} 3844ac_tool_warned=yes ;; 3845esac 3846 RANLIB=$ac_ct_RANLIB 3847 fi 3848else 3849 RANLIB="$ac_cv_prog_RANLIB" 3850fi 3851 3852 3853 #-------------------------------------------------------------------- 3854 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3855 #-------------------------------------------------------------------- 3856 3857 3858 3859 3860 3861 3862{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3863echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3864if test "${ac_cv_path_GREP+set}" = set; then 3865 echo $ECHO_N "(cached) $ECHO_C" >&6 3866else 3867 # Extract the first word of "grep ggrep" to use in msg output 3868if test -z "$GREP"; then 3869set dummy grep ggrep; ac_prog_name=$2 3870if test "${ac_cv_path_GREP+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872else 3873 ac_path_GREP_found=false 3874# Loop through the user's path and test for each of PROGNAME-LIST 3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3877do 3878 IFS=$as_save_IFS 3879 test -z "$as_dir" && as_dir=. 3880 for ac_prog in grep ggrep; do 3881 for ac_exec_ext in '' $ac_executable_extensions; do 3882 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3883 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3884 # Check for GNU ac_path_GREP and select it if it is found. 3885 # Check for GNU $ac_path_GREP 3886case `"$ac_path_GREP" --version 2>&1` in 3887*GNU*) 3888 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3889*) 3890 ac_count=0 3891 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3892 while : 3893 do 3894 cat "conftest.in" "conftest.in" >"conftest.tmp" 3895 mv "conftest.tmp" "conftest.in" 3896 cp "conftest.in" "conftest.nl" 3897 echo 'GREP' >> "conftest.nl" 3898 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3900 ac_count=`expr $ac_count + 1` 3901 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3902 # Best one so far, save it but keep looking for a better one 3903 ac_cv_path_GREP="$ac_path_GREP" 3904 ac_path_GREP_max=$ac_count 3905 fi 3906 # 10*(2^10) chars as input seems more than enough 3907 test $ac_count -gt 10 && break 3908 done 3909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3910esac 3911 3912 3913 $ac_path_GREP_found && break 3 3914 done 3915done 3916 3917done 3918IFS=$as_save_IFS 3919 3920 3921fi 3922 3923GREP="$ac_cv_path_GREP" 3924if test -z "$GREP"; then 3925 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3926echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3927 { (exit 1); exit 1; }; } 3928fi 3929 3930else 3931 ac_cv_path_GREP=$GREP 3932fi 3933 3934 3935fi 3936{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3937echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3938 GREP="$ac_cv_path_GREP" 3939 3940 3941{ echo "$as_me:$LINENO: checking for egrep" >&5 3942echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3943if test "${ac_cv_path_EGREP+set}" = set; then 3944 echo $ECHO_N "(cached) $ECHO_C" >&6 3945else 3946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3947 then ac_cv_path_EGREP="$GREP -E" 3948 else 3949 # Extract the first word of "egrep" to use in msg output 3950if test -z "$EGREP"; then 3951set dummy egrep; ac_prog_name=$2 3952if test "${ac_cv_path_EGREP+set}" = set; then 3953 echo $ECHO_N "(cached) $ECHO_C" >&6 3954else 3955 ac_path_EGREP_found=false 3956# Loop through the user's path and test for each of PROGNAME-LIST 3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3959do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_prog in egrep; do 3963 for ac_exec_ext in '' $ac_executable_extensions; do 3964 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3965 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3966 # Check for GNU ac_path_EGREP and select it if it is found. 3967 # Check for GNU $ac_path_EGREP 3968case `"$ac_path_EGREP" --version 2>&1` in 3969*GNU*) 3970 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3971*) 3972 ac_count=0 3973 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3974 while : 3975 do 3976 cat "conftest.in" "conftest.in" >"conftest.tmp" 3977 mv "conftest.tmp" "conftest.in" 3978 cp "conftest.in" "conftest.nl" 3979 echo 'EGREP' >> "conftest.nl" 3980 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3982 ac_count=`expr $ac_count + 1` 3983 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3984 # Best one so far, save it but keep looking for a better one 3985 ac_cv_path_EGREP="$ac_path_EGREP" 3986 ac_path_EGREP_max=$ac_count 3987 fi 3988 # 10*(2^10) chars as input seems more than enough 3989 test $ac_count -gt 10 && break 3990 done 3991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3992esac 3993 3994 3995 $ac_path_EGREP_found && break 3 3996 done 3997done 3998 3999done 4000IFS=$as_save_IFS 4001 4002 4003fi 4004 4005EGREP="$ac_cv_path_EGREP" 4006if test -z "$EGREP"; then 4007 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4008echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4009 { (exit 1); exit 1; }; } 4010fi 4011 4012else 4013 ac_cv_path_EGREP=$EGREP 4014fi 4015 4016 4017 fi 4018fi 4019{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4020echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4021 EGREP="$ac_cv_path_EGREP" 4022 4023 4024{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4025echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4026if test "${ac_cv_header_stdc+set}" = set; then 4027 echo $ECHO_N "(cached) $ECHO_C" >&6 4028else 4029 cat >conftest.$ac_ext <<_ACEOF 4030/* confdefs.h. */ 4031_ACEOF 4032cat confdefs.h >>conftest.$ac_ext 4033cat >>conftest.$ac_ext <<_ACEOF 4034/* end confdefs.h. */ 4035#include <stdlib.h> 4036#include <stdarg.h> 4037#include <string.h> 4038#include <float.h> 4039 4040int 4041main () 4042{ 4043 4044 ; 4045 return 0; 4046} 4047_ACEOF 4048rm -f conftest.$ac_objext 4049if { (ac_try="$ac_compile" 4050case "(($ac_try" in 4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4052 *) ac_try_echo=$ac_try;; 4053esac 4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4055 (eval "$ac_compile") 2>conftest.er1 4056 ac_status=$? 4057 grep -v '^ *+' conftest.er1 >conftest.err 4058 rm -f conftest.er1 4059 cat conftest.err >&5 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); } && { 4062 test -z "$ac_c_werror_flag" || 4063 test ! -s conftest.err 4064 } && test -s conftest.$ac_objext; then 4065 ac_cv_header_stdc=yes 4066else 4067 echo "$as_me: failed program was:" >&5 4068sed 's/^/| /' conftest.$ac_ext >&5 4069 4070 ac_cv_header_stdc=no 4071fi 4072 4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4074 4075if test $ac_cv_header_stdc = yes; then 4076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4077 cat >conftest.$ac_ext <<_ACEOF 4078/* confdefs.h. */ 4079_ACEOF 4080cat confdefs.h >>conftest.$ac_ext 4081cat >>conftest.$ac_ext <<_ACEOF 4082/* end confdefs.h. */ 4083#include <string.h> 4084 4085_ACEOF 4086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4087 $EGREP "memchr" >/dev/null 2>&1; then 4088 : 4089else 4090 ac_cv_header_stdc=no 4091fi 4092rm -f -r conftest* 4093 4094fi 4095 4096if test $ac_cv_header_stdc = yes; then 4097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4098 cat >conftest.$ac_ext <<_ACEOF 4099/* confdefs.h. */ 4100_ACEOF 4101cat confdefs.h >>conftest.$ac_ext 4102cat >>conftest.$ac_ext <<_ACEOF 4103/* end confdefs.h. */ 4104#include <stdlib.h> 4105 4106_ACEOF 4107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4108 $EGREP "free" >/dev/null 2>&1; then 4109 : 4110else 4111 ac_cv_header_stdc=no 4112fi 4113rm -f -r conftest* 4114 4115fi 4116 4117if test $ac_cv_header_stdc = yes; then 4118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4119 if test "$cross_compiling" = yes; then 4120 : 4121else 4122 cat >conftest.$ac_ext <<_ACEOF 4123/* confdefs.h. */ 4124_ACEOF 4125cat confdefs.h >>conftest.$ac_ext 4126cat >>conftest.$ac_ext <<_ACEOF 4127/* end confdefs.h. */ 4128#include <ctype.h> 4129#include <stdlib.h> 4130#if ((' ' & 0x0FF) == 0x020) 4131# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4132# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4133#else 4134# define ISLOWER(c) \ 4135 (('a' <= (c) && (c) <= 'i') \ 4136 || ('j' <= (c) && (c) <= 'r') \ 4137 || ('s' <= (c) && (c) <= 'z')) 4138# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4139#endif 4140 4141#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4142int 4143main () 4144{ 4145 int i; 4146 for (i = 0; i < 256; i++) 4147 if (XOR (islower (i), ISLOWER (i)) 4148 || toupper (i) != TOUPPER (i)) 4149 return 2; 4150 return 0; 4151} 4152_ACEOF 4153rm -f conftest$ac_exeext 4154if { (ac_try="$ac_link" 4155case "(($ac_try" in 4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4157 *) ac_try_echo=$ac_try;; 4158esac 4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4160 (eval "$ac_link") 2>&5 4161 ac_status=$? 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4164 { (case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167esac 4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4169 (eval "$ac_try") 2>&5 4170 ac_status=$? 4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4172 (exit $ac_status); }; }; then 4173 : 4174else 4175 echo "$as_me: program exited with status $ac_status" >&5 4176echo "$as_me: failed program was:" >&5 4177sed 's/^/| /' conftest.$ac_ext >&5 4178 4179( exit $ac_status ) 4180ac_cv_header_stdc=no 4181fi 4182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4183fi 4184 4185 4186fi 4187fi 4188{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4189echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4190if test $ac_cv_header_stdc = yes; then 4191 4192cat >>confdefs.h <<\_ACEOF 4193#define STDC_HEADERS 1 4194_ACEOF 4195 4196fi 4197 4198# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4209 inttypes.h stdint.h unistd.h 4210do 4211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4212{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4215 echo $ECHO_N "(cached) $ECHO_C" >&6 4216else 4217 cat >conftest.$ac_ext <<_ACEOF 4218/* confdefs.h. */ 4219_ACEOF 4220cat confdefs.h >>conftest.$ac_ext 4221cat >>conftest.$ac_ext <<_ACEOF 4222/* end confdefs.h. */ 4223$ac_includes_default 4224 4225#include <$ac_header> 4226_ACEOF 4227rm -f conftest.$ac_objext 4228if { (ac_try="$ac_compile" 4229case "(($ac_try" in 4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4231 *) ac_try_echo=$ac_try;; 4232esac 4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4234 (eval "$ac_compile") 2>conftest.er1 4235 ac_status=$? 4236 grep -v '^ *+' conftest.er1 >conftest.err 4237 rm -f conftest.er1 4238 cat conftest.err >&5 4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4240 (exit $ac_status); } && { 4241 test -z "$ac_c_werror_flag" || 4242 test ! -s conftest.err 4243 } && test -s conftest.$ac_objext; then 4244 eval "$as_ac_Header=yes" 4245else 4246 echo "$as_me: failed program was:" >&5 4247sed 's/^/| /' conftest.$ac_ext >&5 4248 4249 eval "$as_ac_Header=no" 4250fi 4251 4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4253fi 4254ac_res=`eval echo '${'$as_ac_Header'}'` 4255 { echo "$as_me:$LINENO: result: $ac_res" >&5 4256echo "${ECHO_T}$ac_res" >&6; } 4257if test `eval echo '${'$as_ac_Header'}'` = yes; then 4258 cat >>confdefs.h <<_ACEOF 4259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4260_ACEOF 4261 4262fi 4263 4264done 4265 4266 4267 4268 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4269 4270 4271 #------------------------------------------------------------------------ 4272 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4273 # It makes compiling go faster. (This is only a performance feature.) 4274 #------------------------------------------------------------------------ 4275 4276 if test -z "$no_pipe" -a -n "$GCC"; then 4277 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4278echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4279if test "${tcl_cv_cc_pipe+set}" = set; then 4280 echo $ECHO_N "(cached) $ECHO_C" >&6 4281else 4282 4283 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4284 cat >conftest.$ac_ext <<_ACEOF 4285/* confdefs.h. */ 4286_ACEOF 4287cat confdefs.h >>conftest.$ac_ext 4288cat >>conftest.$ac_ext <<_ACEOF 4289/* end confdefs.h. */ 4290 4291int 4292main () 4293{ 4294 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299rm -f conftest.$ac_objext 4300if { (ac_try="$ac_compile" 4301case "(($ac_try" in 4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4303 *) ac_try_echo=$ac_try;; 4304esac 4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4306 (eval "$ac_compile") 2>conftest.er1 4307 ac_status=$? 4308 grep -v '^ *+' conftest.er1 >conftest.err 4309 rm -f conftest.er1 4310 cat conftest.err >&5 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); } && { 4313 test -z "$ac_c_werror_flag" || 4314 test ! -s conftest.err 4315 } && test -s conftest.$ac_objext; then 4316 tcl_cv_cc_pipe=yes 4317else 4318 echo "$as_me: failed program was:" >&5 4319sed 's/^/| /' conftest.$ac_ext >&5 4320 4321 tcl_cv_cc_pipe=no 4322fi 4323 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325 CFLAGS=$hold_cflags 4326fi 4327{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4328echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4329 if test $tcl_cv_cc_pipe = yes; then 4330 CFLAGS="$CFLAGS -pipe" 4331 fi 4332 fi 4333 4334 #-------------------------------------------------------------------- 4335 # Common compiler flag setup 4336 #-------------------------------------------------------------------- 4337 4338 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4339echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4340if test "${ac_cv_c_bigendian+set}" = set; then 4341 echo $ECHO_N "(cached) $ECHO_C" >&6 4342else 4343 # See if sys/param.h defines the BYTE_ORDER macro. 4344cat >conftest.$ac_ext <<_ACEOF 4345/* confdefs.h. */ 4346_ACEOF 4347cat confdefs.h >>conftest.$ac_ext 4348cat >>conftest.$ac_ext <<_ACEOF 4349/* end confdefs.h. */ 4350#include <sys/types.h> 4351#include <sys/param.h> 4352 4353int 4354main () 4355{ 4356#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4357 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4358 bogus endian macros 4359#endif 4360 4361 ; 4362 return 0; 4363} 4364_ACEOF 4365rm -f conftest.$ac_objext 4366if { (ac_try="$ac_compile" 4367case "(($ac_try" in 4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4369 *) ac_try_echo=$ac_try;; 4370esac 4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4372 (eval "$ac_compile") 2>conftest.er1 4373 ac_status=$? 4374 grep -v '^ *+' conftest.er1 >conftest.err 4375 rm -f conftest.er1 4376 cat conftest.err >&5 4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4378 (exit $ac_status); } && { 4379 test -z "$ac_c_werror_flag" || 4380 test ! -s conftest.err 4381 } && test -s conftest.$ac_objext; then 4382 # It does; now see whether it defined to BIG_ENDIAN or not. 4383cat >conftest.$ac_ext <<_ACEOF 4384/* confdefs.h. */ 4385_ACEOF 4386cat confdefs.h >>conftest.$ac_ext 4387cat >>conftest.$ac_ext <<_ACEOF 4388/* end confdefs.h. */ 4389#include <sys/types.h> 4390#include <sys/param.h> 4391 4392int 4393main () 4394{ 4395#if BYTE_ORDER != BIG_ENDIAN 4396 not big endian 4397#endif 4398 4399 ; 4400 return 0; 4401} 4402_ACEOF 4403rm -f conftest.$ac_objext 4404if { (ac_try="$ac_compile" 4405case "(($ac_try" in 4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4407 *) ac_try_echo=$ac_try;; 4408esac 4409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4410 (eval "$ac_compile") 2>conftest.er1 4411 ac_status=$? 4412 grep -v '^ *+' conftest.er1 >conftest.err 4413 rm -f conftest.er1 4414 cat conftest.err >&5 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); } && { 4417 test -z "$ac_c_werror_flag" || 4418 test ! -s conftest.err 4419 } && test -s conftest.$ac_objext; then 4420 ac_cv_c_bigendian=yes 4421else 4422 echo "$as_me: failed program was:" >&5 4423sed 's/^/| /' conftest.$ac_ext >&5 4424 4425 ac_cv_c_bigendian=no 4426fi 4427 4428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4429else 4430 echo "$as_me: failed program was:" >&5 4431sed 's/^/| /' conftest.$ac_ext >&5 4432 4433 # It does not; compile a test program. 4434if test "$cross_compiling" = yes; then 4435 # try to guess the endianness by grepping values into an object file 4436 ac_cv_c_bigendian=unknown 4437 cat >conftest.$ac_ext <<_ACEOF 4438/* confdefs.h. */ 4439_ACEOF 4440cat confdefs.h >>conftest.$ac_ext 4441cat >>conftest.$ac_ext <<_ACEOF 4442/* end confdefs.h. */ 4443short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4444short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4445void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4446short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4447short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4448void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4449int 4450main () 4451{ 4452 _ascii (); _ebcdic (); 4453 ; 4454 return 0; 4455} 4456_ACEOF 4457rm -f conftest.$ac_objext 4458if { (ac_try="$ac_compile" 4459case "(($ac_try" in 4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4461 *) ac_try_echo=$ac_try;; 4462esac 4463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4464 (eval "$ac_compile") 2>conftest.er1 4465 ac_status=$? 4466 grep -v '^ *+' conftest.er1 >conftest.err 4467 rm -f conftest.er1 4468 cat conftest.err >&5 4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4470 (exit $ac_status); } && { 4471 test -z "$ac_c_werror_flag" || 4472 test ! -s conftest.err 4473 } && test -s conftest.$ac_objext; then 4474 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4475 ac_cv_c_bigendian=yes 4476fi 4477if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4478 if test "$ac_cv_c_bigendian" = unknown; then 4479 ac_cv_c_bigendian=no 4480 else 4481 # finding both strings is unlikely to happen, but who knows? 4482 ac_cv_c_bigendian=unknown 4483 fi 4484fi 4485else 4486 echo "$as_me: failed program was:" >&5 4487sed 's/^/| /' conftest.$ac_ext >&5 4488 4489 4490fi 4491 4492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493else 4494 cat >conftest.$ac_ext <<_ACEOF 4495/* confdefs.h. */ 4496_ACEOF 4497cat confdefs.h >>conftest.$ac_ext 4498cat >>conftest.$ac_ext <<_ACEOF 4499/* end confdefs.h. */ 4500$ac_includes_default 4501int 4502main () 4503{ 4504 4505 /* Are we little or big endian? From Harbison&Steele. */ 4506 union 4507 { 4508 long int l; 4509 char c[sizeof (long int)]; 4510 } u; 4511 u.l = 1; 4512 return u.c[sizeof (long int) - 1] == 1; 4513 4514 ; 4515 return 0; 4516} 4517_ACEOF 4518rm -f conftest$ac_exeext 4519if { (ac_try="$ac_link" 4520case "(($ac_try" in 4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4522 *) ac_try_echo=$ac_try;; 4523esac 4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4525 (eval "$ac_link") 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4529 { (case "(($ac_try" in 4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4531 *) ac_try_echo=$ac_try;; 4532esac 4533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4534 (eval "$ac_try") 2>&5 4535 ac_status=$? 4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4537 (exit $ac_status); }; }; then 4538 ac_cv_c_bigendian=no 4539else 4540 echo "$as_me: program exited with status $ac_status" >&5 4541echo "$as_me: failed program was:" >&5 4542sed 's/^/| /' conftest.$ac_ext >&5 4543 4544( exit $ac_status ) 4545ac_cv_c_bigendian=yes 4546fi 4547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4548fi 4549 4550 4551fi 4552 4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4554fi 4555{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4556echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4557case $ac_cv_c_bigendian in 4558 yes) 4559 4560cat >>confdefs.h <<\_ACEOF 4561#define WORDS_BIGENDIAN 1 4562_ACEOF 4563 ;; 4564 no) 4565 ;; 4566 *) 4567 { { echo "$as_me:$LINENO: error: unknown endianness 4568presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4569echo "$as_me: error: unknown endianness 4570presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4571 { (exit 1); exit 1; }; } ;; 4572esac 4573 4574 if test "${TEA_PLATFORM}" = "unix" ; then 4575 4576 #-------------------------------------------------------------------- 4577 # On a few very rare systems, all of the libm.a stuff is 4578 # already in libc.a. Set compiler flags accordingly. 4579 # Also, Linux requires the "ieee" library for math to work 4580 # right (and it must appear before "-lm"). 4581 #-------------------------------------------------------------------- 4582 4583 { echo "$as_me:$LINENO: checking for sin" >&5 4584echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4585if test "${ac_cv_func_sin+set}" = set; then 4586 echo $ECHO_N "(cached) $ECHO_C" >&6 4587else 4588 cat >conftest.$ac_ext <<_ACEOF 4589/* confdefs.h. */ 4590_ACEOF 4591cat confdefs.h >>conftest.$ac_ext 4592cat >>conftest.$ac_ext <<_ACEOF 4593/* end confdefs.h. */ 4594/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4595 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4596#define sin innocuous_sin 4597 4598/* System header to define __stub macros and hopefully few prototypes, 4599 which can conflict with char sin (); below. 4600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4601 <limits.h> exists even on freestanding compilers. */ 4602 4603#ifdef __STDC__ 4604# include <limits.h> 4605#else 4606# include <assert.h> 4607#endif 4608 4609#undef sin 4610 4611/* Override any GCC internal prototype to avoid an error. 4612 Use char because int might match the return type of a GCC 4613 builtin and then its argument prototype would still apply. */ 4614#ifdef __cplusplus 4615extern "C" 4616#endif 4617char sin (); 4618/* The GNU C library defines this for functions which it implements 4619 to always fail with ENOSYS. Some functions are actually named 4620 something starting with __ and the normal name is an alias. */ 4621#if defined __stub_sin || defined __stub___sin 4622choke me 4623#endif 4624 4625int 4626main () 4627{ 4628return sin (); 4629 ; 4630 return 0; 4631} 4632_ACEOF 4633rm -f conftest.$ac_objext conftest$ac_exeext 4634if { (ac_try="$ac_link" 4635case "(($ac_try" in 4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4637 *) ac_try_echo=$ac_try;; 4638esac 4639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4640 (eval "$ac_link") 2>conftest.er1 4641 ac_status=$? 4642 grep -v '^ *+' conftest.er1 >conftest.err 4643 rm -f conftest.er1 4644 cat conftest.err >&5 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); } && { 4647 test -z "$ac_c_werror_flag" || 4648 test ! -s conftest.err 4649 } && test -s conftest$ac_exeext && 4650 $as_test_x conftest$ac_exeext; then 4651 ac_cv_func_sin=yes 4652else 4653 echo "$as_me: failed program was:" >&5 4654sed 's/^/| /' conftest.$ac_ext >&5 4655 4656 ac_cv_func_sin=no 4657fi 4658 4659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4660 conftest$ac_exeext conftest.$ac_ext 4661fi 4662{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4663echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4664if test $ac_cv_func_sin = yes; then 4665 MATH_LIBS="" 4666else 4667 MATH_LIBS="-lm" 4668fi 4669 4670 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4671echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4672if test "${ac_cv_lib_ieee_main+set}" = set; then 4673 echo $ECHO_N "(cached) $ECHO_C" >&6 4674else 4675 ac_check_lib_save_LIBS=$LIBS 4676LIBS="-lieee $LIBS" 4677cat >conftest.$ac_ext <<_ACEOF 4678/* confdefs.h. */ 4679_ACEOF 4680cat confdefs.h >>conftest.$ac_ext 4681cat >>conftest.$ac_ext <<_ACEOF 4682/* end confdefs.h. */ 4683 4684 4685int 4686main () 4687{ 4688return main (); 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693rm -f conftest.$ac_objext conftest$ac_exeext 4694if { (ac_try="$ac_link" 4695case "(($ac_try" in 4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4697 *) ac_try_echo=$ac_try;; 4698esac 4699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4700 (eval "$ac_link") 2>conftest.er1 4701 ac_status=$? 4702 grep -v '^ *+' conftest.er1 >conftest.err 4703 rm -f conftest.er1 4704 cat conftest.err >&5 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); } && { 4707 test -z "$ac_c_werror_flag" || 4708 test ! -s conftest.err 4709 } && test -s conftest$ac_exeext && 4710 $as_test_x conftest$ac_exeext; then 4711 ac_cv_lib_ieee_main=yes 4712else 4713 echo "$as_me: failed program was:" >&5 4714sed 's/^/| /' conftest.$ac_ext >&5 4715 4716 ac_cv_lib_ieee_main=no 4717fi 4718 4719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4720 conftest$ac_exeext conftest.$ac_ext 4721LIBS=$ac_check_lib_save_LIBS 4722fi 4723{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4724echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4725if test $ac_cv_lib_ieee_main = yes; then 4726 MATH_LIBS="-lieee $MATH_LIBS" 4727fi 4728 4729 4730 #-------------------------------------------------------------------- 4731 # Interactive UNIX requires -linet instead of -lsocket, plus it 4732 # needs net/errno.h to define the socket-related error codes. 4733 #-------------------------------------------------------------------- 4734 4735 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4736echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4737if test "${ac_cv_lib_inet_main+set}" = set; then 4738 echo $ECHO_N "(cached) $ECHO_C" >&6 4739else 4740 ac_check_lib_save_LIBS=$LIBS 4741LIBS="-linet $LIBS" 4742cat >conftest.$ac_ext <<_ACEOF 4743/* confdefs.h. */ 4744_ACEOF 4745cat confdefs.h >>conftest.$ac_ext 4746cat >>conftest.$ac_ext <<_ACEOF 4747/* end confdefs.h. */ 4748 4749 4750int 4751main () 4752{ 4753return main (); 4754 ; 4755 return 0; 4756} 4757_ACEOF 4758rm -f conftest.$ac_objext conftest$ac_exeext 4759if { (ac_try="$ac_link" 4760case "(($ac_try" in 4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4762 *) ac_try_echo=$ac_try;; 4763esac 4764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4765 (eval "$ac_link") 2>conftest.er1 4766 ac_status=$? 4767 grep -v '^ *+' conftest.er1 >conftest.err 4768 rm -f conftest.er1 4769 cat conftest.err >&5 4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4771 (exit $ac_status); } && { 4772 test -z "$ac_c_werror_flag" || 4773 test ! -s conftest.err 4774 } && test -s conftest$ac_exeext && 4775 $as_test_x conftest$ac_exeext; then 4776 ac_cv_lib_inet_main=yes 4777else 4778 echo "$as_me: failed program was:" >&5 4779sed 's/^/| /' conftest.$ac_ext >&5 4780 4781 ac_cv_lib_inet_main=no 4782fi 4783 4784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4785 conftest$ac_exeext conftest.$ac_ext 4786LIBS=$ac_check_lib_save_LIBS 4787fi 4788{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4789echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4790if test $ac_cv_lib_inet_main = yes; then 4791 LIBS="$LIBS -linet" 4792fi 4793 4794 if test "${ac_cv_header_net_errno_h+set}" = set; then 4795 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4796echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4797if test "${ac_cv_header_net_errno_h+set}" = set; then 4798 echo $ECHO_N "(cached) $ECHO_C" >&6 4799fi 4800{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4801echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4802else 4803 # Is the header compilable? 4804{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4805echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4806cat >conftest.$ac_ext <<_ACEOF 4807/* confdefs.h. */ 4808_ACEOF 4809cat confdefs.h >>conftest.$ac_ext 4810cat >>conftest.$ac_ext <<_ACEOF 4811/* end confdefs.h. */ 4812$ac_includes_default 4813#include <net/errno.h> 4814_ACEOF 4815rm -f conftest.$ac_objext 4816if { (ac_try="$ac_compile" 4817case "(($ac_try" in 4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4819 *) ac_try_echo=$ac_try;; 4820esac 4821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4822 (eval "$ac_compile") 2>conftest.er1 4823 ac_status=$? 4824 grep -v '^ *+' conftest.er1 >conftest.err 4825 rm -f conftest.er1 4826 cat conftest.err >&5 4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4828 (exit $ac_status); } && { 4829 test -z "$ac_c_werror_flag" || 4830 test ! -s conftest.err 4831 } && test -s conftest.$ac_objext; then 4832 ac_header_compiler=yes 4833else 4834 echo "$as_me: failed program was:" >&5 4835sed 's/^/| /' conftest.$ac_ext >&5 4836 4837 ac_header_compiler=no 4838fi 4839 4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4842echo "${ECHO_T}$ac_header_compiler" >&6; } 4843 4844# Is the header present? 4845{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4846echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4847cat >conftest.$ac_ext <<_ACEOF 4848/* confdefs.h. */ 4849_ACEOF 4850cat confdefs.h >>conftest.$ac_ext 4851cat >>conftest.$ac_ext <<_ACEOF 4852/* end confdefs.h. */ 4853#include <net/errno.h> 4854_ACEOF 4855if { (ac_try="$ac_cpp conftest.$ac_ext" 4856case "(($ac_try" in 4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4858 *) ac_try_echo=$ac_try;; 4859esac 4860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4862 ac_status=$? 4863 grep -v '^ *+' conftest.er1 >conftest.err 4864 rm -f conftest.er1 4865 cat conftest.err >&5 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); } >/dev/null && { 4868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4869 test ! -s conftest.err 4870 }; then 4871 ac_header_preproc=yes 4872else 4873 echo "$as_me: failed program was:" >&5 4874sed 's/^/| /' conftest.$ac_ext >&5 4875 4876 ac_header_preproc=no 4877fi 4878 4879rm -f conftest.err conftest.$ac_ext 4880{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4881echo "${ECHO_T}$ac_header_preproc" >&6; } 4882 4883# So? What about this header? 4884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4885 yes:no: ) 4886 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4887echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4888 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4889echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4890 ac_header_preproc=yes 4891 ;; 4892 no:yes:* ) 4893 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4894echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4895 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4896echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4897 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4898echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4899 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4900echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4901 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4902echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4903 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4904echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4905 4906 ;; 4907esac 4908{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4909echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4910if test "${ac_cv_header_net_errno_h+set}" = set; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 ac_cv_header_net_errno_h=$ac_header_preproc 4914fi 4915{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4916echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4917 4918fi 4919if test $ac_cv_header_net_errno_h = yes; then 4920 4921 4922cat >>confdefs.h <<\_ACEOF 4923#define HAVE_NET_ERRNO_H 1 4924_ACEOF 4925 4926fi 4927 4928 4929 4930 #-------------------------------------------------------------------- 4931 # Check for the existence of the -lsocket and -lnsl libraries. 4932 # The order here is important, so that they end up in the right 4933 # order in the command line generated by make. Here are some 4934 # special considerations: 4935 # 1. Use "connect" and "accept" to check for -lsocket, and 4936 # "gethostbyname" to check for -lnsl. 4937 # 2. Use each function name only once: can't redo a check because 4938 # autoconf caches the results of the last check and won't redo it. 4939 # 3. Use -lnsl and -lsocket only if they supply procedures that 4940 # aren't already present in the normal libraries. This is because 4941 # IRIX 5.2 has libraries, but they aren't needed and they're 4942 # bogus: they goof up name resolution if used. 4943 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4944 # To get around this problem, check for both libraries together 4945 # if -lsocket doesn't work by itself. 4946 #-------------------------------------------------------------------- 4947 4948 tcl_checkBoth=0 4949 { echo "$as_me:$LINENO: checking for connect" >&5 4950echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4951if test "${ac_cv_func_connect+set}" = set; then 4952 echo $ECHO_N "(cached) $ECHO_C" >&6 4953else 4954 cat >conftest.$ac_ext <<_ACEOF 4955/* confdefs.h. */ 4956_ACEOF 4957cat confdefs.h >>conftest.$ac_ext 4958cat >>conftest.$ac_ext <<_ACEOF 4959/* end confdefs.h. */ 4960/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4961 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4962#define connect innocuous_connect 4963 4964/* System header to define __stub macros and hopefully few prototypes, 4965 which can conflict with char connect (); below. 4966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4967 <limits.h> exists even on freestanding compilers. */ 4968 4969#ifdef __STDC__ 4970# include <limits.h> 4971#else 4972# include <assert.h> 4973#endif 4974 4975#undef connect 4976 4977/* Override any GCC internal prototype to avoid an error. 4978 Use char because int might match the return type of a GCC 4979 builtin and then its argument prototype would still apply. */ 4980#ifdef __cplusplus 4981extern "C" 4982#endif 4983char connect (); 4984/* The GNU C library defines this for functions which it implements 4985 to always fail with ENOSYS. Some functions are actually named 4986 something starting with __ and the normal name is an alias. */ 4987#if defined __stub_connect || defined __stub___connect 4988choke me 4989#endif 4990 4991int 4992main () 4993{ 4994return connect (); 4995 ; 4996 return 0; 4997} 4998_ACEOF 4999rm -f conftest.$ac_objext conftest$ac_exeext 5000if { (ac_try="$ac_link" 5001case "(($ac_try" in 5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5003 *) ac_try_echo=$ac_try;; 5004esac 5005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5006 (eval "$ac_link") 2>conftest.er1 5007 ac_status=$? 5008 grep -v '^ *+' conftest.er1 >conftest.err 5009 rm -f conftest.er1 5010 cat conftest.err >&5 5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5012 (exit $ac_status); } && { 5013 test -z "$ac_c_werror_flag" || 5014 test ! -s conftest.err 5015 } && test -s conftest$ac_exeext && 5016 $as_test_x conftest$ac_exeext; then 5017 ac_cv_func_connect=yes 5018else 5019 echo "$as_me: failed program was:" >&5 5020sed 's/^/| /' conftest.$ac_ext >&5 5021 5022 ac_cv_func_connect=no 5023fi 5024 5025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5026 conftest$ac_exeext conftest.$ac_ext 5027fi 5028{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5029echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5030if test $ac_cv_func_connect = yes; then 5031 tcl_checkSocket=0 5032else 5033 tcl_checkSocket=1 5034fi 5035 5036 if test "$tcl_checkSocket" = 1; then 5037 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5038echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5039if test "${ac_cv_func_setsockopt+set}" = set; then 5040 echo $ECHO_N "(cached) $ECHO_C" >&6 5041else 5042 cat >conftest.$ac_ext <<_ACEOF 5043/* confdefs.h. */ 5044_ACEOF 5045cat confdefs.h >>conftest.$ac_ext 5046cat >>conftest.$ac_ext <<_ACEOF 5047/* end confdefs.h. */ 5048/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5050#define setsockopt innocuous_setsockopt 5051 5052/* System header to define __stub macros and hopefully few prototypes, 5053 which can conflict with char setsockopt (); below. 5054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5055 <limits.h> exists even on freestanding compilers. */ 5056 5057#ifdef __STDC__ 5058# include <limits.h> 5059#else 5060# include <assert.h> 5061#endif 5062 5063#undef setsockopt 5064 5065/* Override any GCC internal prototype to avoid an error. 5066 Use char because int might match the return type of a GCC 5067 builtin and then its argument prototype would still apply. */ 5068#ifdef __cplusplus 5069extern "C" 5070#endif 5071char setsockopt (); 5072/* The GNU C library defines this for functions which it implements 5073 to always fail with ENOSYS. Some functions are actually named 5074 something starting with __ and the normal name is an alias. */ 5075#if defined __stub_setsockopt || defined __stub___setsockopt 5076choke me 5077#endif 5078 5079int 5080main () 5081{ 5082return setsockopt (); 5083 ; 5084 return 0; 5085} 5086_ACEOF 5087rm -f conftest.$ac_objext conftest$ac_exeext 5088if { (ac_try="$ac_link" 5089case "(($ac_try" in 5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5091 *) ac_try_echo=$ac_try;; 5092esac 5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5094 (eval "$ac_link") 2>conftest.er1 5095 ac_status=$? 5096 grep -v '^ *+' conftest.er1 >conftest.err 5097 rm -f conftest.er1 5098 cat conftest.err >&5 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } && { 5101 test -z "$ac_c_werror_flag" || 5102 test ! -s conftest.err 5103 } && test -s conftest$ac_exeext && 5104 $as_test_x conftest$ac_exeext; then 5105 ac_cv_func_setsockopt=yes 5106else 5107 echo "$as_me: failed program was:" >&5 5108sed 's/^/| /' conftest.$ac_ext >&5 5109 5110 ac_cv_func_setsockopt=no 5111fi 5112 5113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5114 conftest$ac_exeext conftest.$ac_ext 5115fi 5116{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5117echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5118if test $ac_cv_func_setsockopt = yes; then 5119 : 5120else 5121 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5122echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5123if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5124 echo $ECHO_N "(cached) $ECHO_C" >&6 5125else 5126 ac_check_lib_save_LIBS=$LIBS 5127LIBS="-lsocket $LIBS" 5128cat >conftest.$ac_ext <<_ACEOF 5129/* confdefs.h. */ 5130_ACEOF 5131cat confdefs.h >>conftest.$ac_ext 5132cat >>conftest.$ac_ext <<_ACEOF 5133/* end confdefs.h. */ 5134 5135/* Override any GCC internal prototype to avoid an error. 5136 Use char because int might match the return type of a GCC 5137 builtin and then its argument prototype would still apply. */ 5138#ifdef __cplusplus 5139extern "C" 5140#endif 5141char setsockopt (); 5142int 5143main () 5144{ 5145return setsockopt (); 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150rm -f conftest.$ac_objext conftest$ac_exeext 5151if { (ac_try="$ac_link" 5152case "(($ac_try" in 5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5154 *) ac_try_echo=$ac_try;; 5155esac 5156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5157 (eval "$ac_link") 2>conftest.er1 5158 ac_status=$? 5159 grep -v '^ *+' conftest.er1 >conftest.err 5160 rm -f conftest.er1 5161 cat conftest.err >&5 5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 (exit $ac_status); } && { 5164 test -z "$ac_c_werror_flag" || 5165 test ! -s conftest.err 5166 } && test -s conftest$ac_exeext && 5167 $as_test_x conftest$ac_exeext; then 5168 ac_cv_lib_socket_setsockopt=yes 5169else 5170 echo "$as_me: failed program was:" >&5 5171sed 's/^/| /' conftest.$ac_ext >&5 5172 5173 ac_cv_lib_socket_setsockopt=no 5174fi 5175 5176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5177 conftest$ac_exeext conftest.$ac_ext 5178LIBS=$ac_check_lib_save_LIBS 5179fi 5180{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5181echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5182if test $ac_cv_lib_socket_setsockopt = yes; then 5183 LIBS="$LIBS -lsocket" 5184else 5185 tcl_checkBoth=1 5186fi 5187 5188fi 5189 5190 fi 5191 if test "$tcl_checkBoth" = 1; then 5192 tk_oldLibs=$LIBS 5193 LIBS="$LIBS -lsocket -lnsl" 5194 { echo "$as_me:$LINENO: checking for accept" >&5 5195echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5196if test "${ac_cv_func_accept+set}" = set; then 5197 echo $ECHO_N "(cached) $ECHO_C" >&6 5198else 5199 cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5206 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5207#define accept innocuous_accept 5208 5209/* System header to define __stub macros and hopefully few prototypes, 5210 which can conflict with char accept (); below. 5211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5212 <limits.h> exists even on freestanding compilers. */ 5213 5214#ifdef __STDC__ 5215# include <limits.h> 5216#else 5217# include <assert.h> 5218#endif 5219 5220#undef accept 5221 5222/* Override any GCC internal prototype to avoid an error. 5223 Use char because int might match the return type of a GCC 5224 builtin and then its argument prototype would still apply. */ 5225#ifdef __cplusplus 5226extern "C" 5227#endif 5228char accept (); 5229/* The GNU C library defines this for functions which it implements 5230 to always fail with ENOSYS. Some functions are actually named 5231 something starting with __ and the normal name is an alias. */ 5232#if defined __stub_accept || defined __stub___accept 5233choke me 5234#endif 5235 5236int 5237main () 5238{ 5239return accept (); 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244rm -f conftest.$ac_objext conftest$ac_exeext 5245if { (ac_try="$ac_link" 5246case "(($ac_try" in 5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5248 *) ac_try_echo=$ac_try;; 5249esac 5250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5251 (eval "$ac_link") 2>conftest.er1 5252 ac_status=$? 5253 grep -v '^ *+' conftest.er1 >conftest.err 5254 rm -f conftest.er1 5255 cat conftest.err >&5 5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5257 (exit $ac_status); } && { 5258 test -z "$ac_c_werror_flag" || 5259 test ! -s conftest.err 5260 } && test -s conftest$ac_exeext && 5261 $as_test_x conftest$ac_exeext; then 5262 ac_cv_func_accept=yes 5263else 5264 echo "$as_me: failed program was:" >&5 5265sed 's/^/| /' conftest.$ac_ext >&5 5266 5267 ac_cv_func_accept=no 5268fi 5269 5270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5271 conftest$ac_exeext conftest.$ac_ext 5272fi 5273{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5274echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5275if test $ac_cv_func_accept = yes; then 5276 tcl_checkNsl=0 5277else 5278 LIBS=$tk_oldLibs 5279fi 5280 5281 fi 5282 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5283echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5284if test "${ac_cv_func_gethostbyname+set}" = set; then 5285 echo $ECHO_N "(cached) $ECHO_C" >&6 5286else 5287 cat >conftest.$ac_ext <<_ACEOF 5288/* confdefs.h. */ 5289_ACEOF 5290cat confdefs.h >>conftest.$ac_ext 5291cat >>conftest.$ac_ext <<_ACEOF 5292/* end confdefs.h. */ 5293/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5294 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5295#define gethostbyname innocuous_gethostbyname 5296 5297/* System header to define __stub macros and hopefully few prototypes, 5298 which can conflict with char gethostbyname (); below. 5299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5300 <limits.h> exists even on freestanding compilers. */ 5301 5302#ifdef __STDC__ 5303# include <limits.h> 5304#else 5305# include <assert.h> 5306#endif 5307 5308#undef gethostbyname 5309 5310/* Override any GCC internal prototype to avoid an error. 5311 Use char because int might match the return type of a GCC 5312 builtin and then its argument prototype would still apply. */ 5313#ifdef __cplusplus 5314extern "C" 5315#endif 5316char gethostbyname (); 5317/* The GNU C library defines this for functions which it implements 5318 to always fail with ENOSYS. Some functions are actually named 5319 something starting with __ and the normal name is an alias. */ 5320#if defined __stub_gethostbyname || defined __stub___gethostbyname 5321choke me 5322#endif 5323 5324int 5325main () 5326{ 5327return gethostbyname (); 5328 ; 5329 return 0; 5330} 5331_ACEOF 5332rm -f conftest.$ac_objext conftest$ac_exeext 5333if { (ac_try="$ac_link" 5334case "(($ac_try" in 5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5336 *) ac_try_echo=$ac_try;; 5337esac 5338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5339 (eval "$ac_link") 2>conftest.er1 5340 ac_status=$? 5341 grep -v '^ *+' conftest.er1 >conftest.err 5342 rm -f conftest.er1 5343 cat conftest.err >&5 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); } && { 5346 test -z "$ac_c_werror_flag" || 5347 test ! -s conftest.err 5348 } && test -s conftest$ac_exeext && 5349 $as_test_x conftest$ac_exeext; then 5350 ac_cv_func_gethostbyname=yes 5351else 5352 echo "$as_me: failed program was:" >&5 5353sed 's/^/| /' conftest.$ac_ext >&5 5354 5355 ac_cv_func_gethostbyname=no 5356fi 5357 5358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5359 conftest$ac_exeext conftest.$ac_ext 5360fi 5361{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5362echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5363if test $ac_cv_func_gethostbyname = yes; then 5364 : 5365else 5366 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5367echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5368if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5369 echo $ECHO_N "(cached) $ECHO_C" >&6 5370else 5371 ac_check_lib_save_LIBS=$LIBS 5372LIBS="-lnsl $LIBS" 5373cat >conftest.$ac_ext <<_ACEOF 5374/* confdefs.h. */ 5375_ACEOF 5376cat confdefs.h >>conftest.$ac_ext 5377cat >>conftest.$ac_ext <<_ACEOF 5378/* end confdefs.h. */ 5379 5380/* Override any GCC internal prototype to avoid an error. 5381 Use char because int might match the return type of a GCC 5382 builtin and then its argument prototype would still apply. */ 5383#ifdef __cplusplus 5384extern "C" 5385#endif 5386char gethostbyname (); 5387int 5388main () 5389{ 5390return gethostbyname (); 5391 ; 5392 return 0; 5393} 5394_ACEOF 5395rm -f conftest.$ac_objext conftest$ac_exeext 5396if { (ac_try="$ac_link" 5397case "(($ac_try" in 5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5399 *) ac_try_echo=$ac_try;; 5400esac 5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5402 (eval "$ac_link") 2>conftest.er1 5403 ac_status=$? 5404 grep -v '^ *+' conftest.er1 >conftest.err 5405 rm -f conftest.er1 5406 cat conftest.err >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); } && { 5409 test -z "$ac_c_werror_flag" || 5410 test ! -s conftest.err 5411 } && test -s conftest$ac_exeext && 5412 $as_test_x conftest$ac_exeext; then 5413 ac_cv_lib_nsl_gethostbyname=yes 5414else 5415 echo "$as_me: failed program was:" >&5 5416sed 's/^/| /' conftest.$ac_ext >&5 5417 5418 ac_cv_lib_nsl_gethostbyname=no 5419fi 5420 5421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5422 conftest$ac_exeext conftest.$ac_ext 5423LIBS=$ac_check_lib_save_LIBS 5424fi 5425{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5426echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5427if test $ac_cv_lib_nsl_gethostbyname = yes; then 5428 LIBS="$LIBS -lnsl" 5429fi 5430 5431fi 5432 5433 5434 # TEA specific: Don't perform the eval of the libraries here because 5435 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5436 5437 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5438 5439 5440 5441 5442 { echo "$as_me:$LINENO: checking dirent.h" >&5 5443echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5444if test "${tcl_cv_dirent_h+set}" = set; then 5445 echo $ECHO_N "(cached) $ECHO_C" >&6 5446else 5447 5448 cat >conftest.$ac_ext <<_ACEOF 5449/* confdefs.h. */ 5450_ACEOF 5451cat confdefs.h >>conftest.$ac_ext 5452cat >>conftest.$ac_ext <<_ACEOF 5453/* end confdefs.h. */ 5454#include <sys/types.h> 5455#include <dirent.h> 5456int 5457main () 5458{ 5459 5460#ifndef _POSIX_SOURCE 5461# ifdef __Lynx__ 5462 /* 5463 * Generate compilation error to make the test fail: Lynx headers 5464 * are only valid if really in the POSIX environment. 5465 */ 5466 5467 missing_procedure(); 5468# endif 5469#endif 5470DIR *d; 5471struct dirent *entryPtr; 5472char *p; 5473d = opendir("foobar"); 5474entryPtr = readdir(d); 5475p = entryPtr->d_name; 5476closedir(d); 5477 5478 ; 5479 return 0; 5480} 5481_ACEOF 5482rm -f conftest.$ac_objext conftest$ac_exeext 5483if { (ac_try="$ac_link" 5484case "(($ac_try" in 5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5486 *) ac_try_echo=$ac_try;; 5487esac 5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5489 (eval "$ac_link") 2>conftest.er1 5490 ac_status=$? 5491 grep -v '^ *+' conftest.er1 >conftest.err 5492 rm -f conftest.er1 5493 cat conftest.err >&5 5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5495 (exit $ac_status); } && { 5496 test -z "$ac_c_werror_flag" || 5497 test ! -s conftest.err 5498 } && test -s conftest$ac_exeext && 5499 $as_test_x conftest$ac_exeext; then 5500 tcl_cv_dirent_h=yes 5501else 5502 echo "$as_me: failed program was:" >&5 5503sed 's/^/| /' conftest.$ac_ext >&5 5504 5505 tcl_cv_dirent_h=no 5506fi 5507 5508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5509 conftest$ac_exeext conftest.$ac_ext 5510fi 5511{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5512echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5513 5514 if test $tcl_cv_dirent_h = no; then 5515 5516cat >>confdefs.h <<\_ACEOF 5517#define NO_DIRENT_H 1 5518_ACEOF 5519 5520 fi 5521 5522 # TEA specific: 5523 if test "${ac_cv_header_errno_h+set}" = set; then 5524 { echo "$as_me:$LINENO: checking for errno.h" >&5 5525echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5526if test "${ac_cv_header_errno_h+set}" = set; then 5527 echo $ECHO_N "(cached) $ECHO_C" >&6 5528fi 5529{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5530echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5531else 5532 # Is the header compilable? 5533{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5534echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5535cat >conftest.$ac_ext <<_ACEOF 5536/* confdefs.h. */ 5537_ACEOF 5538cat confdefs.h >>conftest.$ac_ext 5539cat >>conftest.$ac_ext <<_ACEOF 5540/* end confdefs.h. */ 5541$ac_includes_default 5542#include <errno.h> 5543_ACEOF 5544rm -f conftest.$ac_objext 5545if { (ac_try="$ac_compile" 5546case "(($ac_try" in 5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5548 *) ac_try_echo=$ac_try;; 5549esac 5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5551 (eval "$ac_compile") 2>conftest.er1 5552 ac_status=$? 5553 grep -v '^ *+' conftest.er1 >conftest.err 5554 rm -f conftest.er1 5555 cat conftest.err >&5 5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5557 (exit $ac_status); } && { 5558 test -z "$ac_c_werror_flag" || 5559 test ! -s conftest.err 5560 } && test -s conftest.$ac_objext; then 5561 ac_header_compiler=yes 5562else 5563 echo "$as_me: failed program was:" >&5 5564sed 's/^/| /' conftest.$ac_ext >&5 5565 5566 ac_header_compiler=no 5567fi 5568 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5571echo "${ECHO_T}$ac_header_compiler" >&6; } 5572 5573# Is the header present? 5574{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5575echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5576cat >conftest.$ac_ext <<_ACEOF 5577/* confdefs.h. */ 5578_ACEOF 5579cat confdefs.h >>conftest.$ac_ext 5580cat >>conftest.$ac_ext <<_ACEOF 5581/* end confdefs.h. */ 5582#include <errno.h> 5583_ACEOF 5584if { (ac_try="$ac_cpp conftest.$ac_ext" 5585case "(($ac_try" in 5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5587 *) ac_try_echo=$ac_try;; 5588esac 5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5591 ac_status=$? 5592 grep -v '^ *+' conftest.er1 >conftest.err 5593 rm -f conftest.er1 5594 cat conftest.err >&5 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); } >/dev/null && { 5597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5598 test ! -s conftest.err 5599 }; then 5600 ac_header_preproc=yes 5601else 5602 echo "$as_me: failed program was:" >&5 5603sed 's/^/| /' conftest.$ac_ext >&5 5604 5605 ac_header_preproc=no 5606fi 5607 5608rm -f conftest.err conftest.$ac_ext 5609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5610echo "${ECHO_T}$ac_header_preproc" >&6; } 5611 5612# So? What about this header? 5613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5614 yes:no: ) 5615 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5616echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5617 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5618echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5619 ac_header_preproc=yes 5620 ;; 5621 no:yes:* ) 5622 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5623echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5624 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5625echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5626 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5627echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5628 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5629echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5630 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5631echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5632 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5633echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5634 5635 ;; 5636esac 5637{ echo "$as_me:$LINENO: checking for errno.h" >&5 5638echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5639if test "${ac_cv_header_errno_h+set}" = set; then 5640 echo $ECHO_N "(cached) $ECHO_C" >&6 5641else 5642 ac_cv_header_errno_h=$ac_header_preproc 5643fi 5644{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5645echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5646 5647fi 5648if test $ac_cv_header_errno_h = yes; then 5649 : 5650else 5651 5652cat >>confdefs.h <<\_ACEOF 5653#define NO_ERRNO_H 1 5654_ACEOF 5655 5656fi 5657 5658 5659 if test "${ac_cv_header_float_h+set}" = set; then 5660 { echo "$as_me:$LINENO: checking for float.h" >&5 5661echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5662if test "${ac_cv_header_float_h+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664fi 5665{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5666echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5667else 5668 # Is the header compilable? 5669{ echo "$as_me:$LINENO: checking float.h usability" >&5 5670echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5671cat >conftest.$ac_ext <<_ACEOF 5672/* confdefs.h. */ 5673_ACEOF 5674cat confdefs.h >>conftest.$ac_ext 5675cat >>conftest.$ac_ext <<_ACEOF 5676/* end confdefs.h. */ 5677$ac_includes_default 5678#include <float.h> 5679_ACEOF 5680rm -f conftest.$ac_objext 5681if { (ac_try="$ac_compile" 5682case "(($ac_try" in 5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5684 *) ac_try_echo=$ac_try;; 5685esac 5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5687 (eval "$ac_compile") 2>conftest.er1 5688 ac_status=$? 5689 grep -v '^ *+' conftest.er1 >conftest.err 5690 rm -f conftest.er1 5691 cat conftest.err >&5 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); } && { 5694 test -z "$ac_c_werror_flag" || 5695 test ! -s conftest.err 5696 } && test -s conftest.$ac_objext; then 5697 ac_header_compiler=yes 5698else 5699 echo "$as_me: failed program was:" >&5 5700sed 's/^/| /' conftest.$ac_ext >&5 5701 5702 ac_header_compiler=no 5703fi 5704 5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5706{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5707echo "${ECHO_T}$ac_header_compiler" >&6; } 5708 5709# Is the header present? 5710{ echo "$as_me:$LINENO: checking float.h presence" >&5 5711echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5712cat >conftest.$ac_ext <<_ACEOF 5713/* confdefs.h. */ 5714_ACEOF 5715cat confdefs.h >>conftest.$ac_ext 5716cat >>conftest.$ac_ext <<_ACEOF 5717/* end confdefs.h. */ 5718#include <float.h> 5719_ACEOF 5720if { (ac_try="$ac_cpp conftest.$ac_ext" 5721case "(($ac_try" in 5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5723 *) ac_try_echo=$ac_try;; 5724esac 5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5727 ac_status=$? 5728 grep -v '^ *+' conftest.er1 >conftest.err 5729 rm -f conftest.er1 5730 cat conftest.err >&5 5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5732 (exit $ac_status); } >/dev/null && { 5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5734 test ! -s conftest.err 5735 }; then 5736 ac_header_preproc=yes 5737else 5738 echo "$as_me: failed program was:" >&5 5739sed 's/^/| /' conftest.$ac_ext >&5 5740 5741 ac_header_preproc=no 5742fi 5743 5744rm -f conftest.err conftest.$ac_ext 5745{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5746echo "${ECHO_T}$ac_header_preproc" >&6; } 5747 5748# So? What about this header? 5749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5750 yes:no: ) 5751 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5752echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5753 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5754echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5755 ac_header_preproc=yes 5756 ;; 5757 no:yes:* ) 5758 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5759echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5760 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5761echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5762 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5763echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5764 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5765echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5766 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5767echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5768 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5769echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5770 5771 ;; 5772esac 5773{ echo "$as_me:$LINENO: checking for float.h" >&5 5774echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5775if test "${ac_cv_header_float_h+set}" = set; then 5776 echo $ECHO_N "(cached) $ECHO_C" >&6 5777else 5778 ac_cv_header_float_h=$ac_header_preproc 5779fi 5780{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5781echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5782 5783fi 5784if test $ac_cv_header_float_h = yes; then 5785 : 5786else 5787 5788cat >>confdefs.h <<\_ACEOF 5789#define NO_FLOAT_H 1 5790_ACEOF 5791 5792fi 5793 5794 5795 if test "${ac_cv_header_values_h+set}" = set; then 5796 { echo "$as_me:$LINENO: checking for values.h" >&5 5797echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5798if test "${ac_cv_header_values_h+set}" = set; then 5799 echo $ECHO_N "(cached) $ECHO_C" >&6 5800fi 5801{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5802echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5803else 5804 # Is the header compilable? 5805{ echo "$as_me:$LINENO: checking values.h usability" >&5 5806echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5807cat >conftest.$ac_ext <<_ACEOF 5808/* confdefs.h. */ 5809_ACEOF 5810cat confdefs.h >>conftest.$ac_ext 5811cat >>conftest.$ac_ext <<_ACEOF 5812/* end confdefs.h. */ 5813$ac_includes_default 5814#include <values.h> 5815_ACEOF 5816rm -f conftest.$ac_objext 5817if { (ac_try="$ac_compile" 5818case "(($ac_try" in 5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5820 *) ac_try_echo=$ac_try;; 5821esac 5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5823 (eval "$ac_compile") 2>conftest.er1 5824 ac_status=$? 5825 grep -v '^ *+' conftest.er1 >conftest.err 5826 rm -f conftest.er1 5827 cat conftest.err >&5 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); } && { 5830 test -z "$ac_c_werror_flag" || 5831 test ! -s conftest.err 5832 } && test -s conftest.$ac_objext; then 5833 ac_header_compiler=yes 5834else 5835 echo "$as_me: failed program was:" >&5 5836sed 's/^/| /' conftest.$ac_ext >&5 5837 5838 ac_header_compiler=no 5839fi 5840 5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5843echo "${ECHO_T}$ac_header_compiler" >&6; } 5844 5845# Is the header present? 5846{ echo "$as_me:$LINENO: checking values.h presence" >&5 5847echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5848cat >conftest.$ac_ext <<_ACEOF 5849/* confdefs.h. */ 5850_ACEOF 5851cat confdefs.h >>conftest.$ac_ext 5852cat >>conftest.$ac_ext <<_ACEOF 5853/* end confdefs.h. */ 5854#include <values.h> 5855_ACEOF 5856if { (ac_try="$ac_cpp conftest.$ac_ext" 5857case "(($ac_try" in 5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5859 *) ac_try_echo=$ac_try;; 5860esac 5861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5863 ac_status=$? 5864 grep -v '^ *+' conftest.er1 >conftest.err 5865 rm -f conftest.er1 5866 cat conftest.err >&5 5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5868 (exit $ac_status); } >/dev/null && { 5869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5870 test ! -s conftest.err 5871 }; then 5872 ac_header_preproc=yes 5873else 5874 echo "$as_me: failed program was:" >&5 5875sed 's/^/| /' conftest.$ac_ext >&5 5876 5877 ac_header_preproc=no 5878fi 5879 5880rm -f conftest.err conftest.$ac_ext 5881{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5882echo "${ECHO_T}$ac_header_preproc" >&6; } 5883 5884# So? What about this header? 5885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5886 yes:no: ) 5887 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5888echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5889 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5890echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5891 ac_header_preproc=yes 5892 ;; 5893 no:yes:* ) 5894 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5895echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5896 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5897echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5898 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5899echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5900 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5901echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5902 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5903echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5904 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5905echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5906 5907 ;; 5908esac 5909{ echo "$as_me:$LINENO: checking for values.h" >&5 5910echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5911if test "${ac_cv_header_values_h+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913else 5914 ac_cv_header_values_h=$ac_header_preproc 5915fi 5916{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5917echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5918 5919fi 5920if test $ac_cv_header_values_h = yes; then 5921 : 5922else 5923 5924cat >>confdefs.h <<\_ACEOF 5925#define NO_VALUES_H 1 5926_ACEOF 5927 5928fi 5929 5930 5931 if test "${ac_cv_header_limits_h+set}" = set; then 5932 { echo "$as_me:$LINENO: checking for limits.h" >&5 5933echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5934if test "${ac_cv_header_limits_h+set}" = set; then 5935 echo $ECHO_N "(cached) $ECHO_C" >&6 5936fi 5937{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5938echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5939else 5940 # Is the header compilable? 5941{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5942echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5943cat >conftest.$ac_ext <<_ACEOF 5944/* confdefs.h. */ 5945_ACEOF 5946cat confdefs.h >>conftest.$ac_ext 5947cat >>conftest.$ac_ext <<_ACEOF 5948/* end confdefs.h. */ 5949$ac_includes_default 5950#include <limits.h> 5951_ACEOF 5952rm -f conftest.$ac_objext 5953if { (ac_try="$ac_compile" 5954case "(($ac_try" in 5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5956 *) ac_try_echo=$ac_try;; 5957esac 5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5959 (eval "$ac_compile") 2>conftest.er1 5960 ac_status=$? 5961 grep -v '^ *+' conftest.er1 >conftest.err 5962 rm -f conftest.er1 5963 cat conftest.err >&5 5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5965 (exit $ac_status); } && { 5966 test -z "$ac_c_werror_flag" || 5967 test ! -s conftest.err 5968 } && test -s conftest.$ac_objext; then 5969 ac_header_compiler=yes 5970else 5971 echo "$as_me: failed program was:" >&5 5972sed 's/^/| /' conftest.$ac_ext >&5 5973 5974 ac_header_compiler=no 5975fi 5976 5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5979echo "${ECHO_T}$ac_header_compiler" >&6; } 5980 5981# Is the header present? 5982{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5983echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5984cat >conftest.$ac_ext <<_ACEOF 5985/* confdefs.h. */ 5986_ACEOF 5987cat confdefs.h >>conftest.$ac_ext 5988cat >>conftest.$ac_ext <<_ACEOF 5989/* end confdefs.h. */ 5990#include <limits.h> 5991_ACEOF 5992if { (ac_try="$ac_cpp conftest.$ac_ext" 5993case "(($ac_try" in 5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5995 *) ac_try_echo=$ac_try;; 5996esac 5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5999 ac_status=$? 6000 grep -v '^ *+' conftest.er1 >conftest.err 6001 rm -f conftest.er1 6002 cat conftest.err >&5 6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6004 (exit $ac_status); } >/dev/null && { 6005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6006 test ! -s conftest.err 6007 }; then 6008 ac_header_preproc=yes 6009else 6010 echo "$as_me: failed program was:" >&5 6011sed 's/^/| /' conftest.$ac_ext >&5 6012 6013 ac_header_preproc=no 6014fi 6015 6016rm -f conftest.err conftest.$ac_ext 6017{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6018echo "${ECHO_T}$ac_header_preproc" >&6; } 6019 6020# So? What about this header? 6021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6022 yes:no: ) 6023 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6024echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6025 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6026echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6027 ac_header_preproc=yes 6028 ;; 6029 no:yes:* ) 6030 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6031echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6032 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6033echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6034 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6035echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6036 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6037echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6038 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6039echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6040 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6041echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6042 6043 ;; 6044esac 6045{ echo "$as_me:$LINENO: checking for limits.h" >&5 6046echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6047if test "${ac_cv_header_limits_h+set}" = set; then 6048 echo $ECHO_N "(cached) $ECHO_C" >&6 6049else 6050 ac_cv_header_limits_h=$ac_header_preproc 6051fi 6052{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6053echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6054 6055fi 6056if test $ac_cv_header_limits_h = yes; then 6057 6058cat >>confdefs.h <<\_ACEOF 6059#define HAVE_LIMITS_H 1 6060_ACEOF 6061 6062else 6063 6064cat >>confdefs.h <<\_ACEOF 6065#define NO_LIMITS_H 1 6066_ACEOF 6067 6068fi 6069 6070 6071 if test "${ac_cv_header_stdlib_h+set}" = set; then 6072 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6073echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6074if test "${ac_cv_header_stdlib_h+set}" = set; then 6075 echo $ECHO_N "(cached) $ECHO_C" >&6 6076fi 6077{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6078echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6079else 6080 # Is the header compilable? 6081{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6082echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6083cat >conftest.$ac_ext <<_ACEOF 6084/* confdefs.h. */ 6085_ACEOF 6086cat confdefs.h >>conftest.$ac_ext 6087cat >>conftest.$ac_ext <<_ACEOF 6088/* end confdefs.h. */ 6089$ac_includes_default 6090#include <stdlib.h> 6091_ACEOF 6092rm -f conftest.$ac_objext 6093if { (ac_try="$ac_compile" 6094case "(($ac_try" in 6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6096 *) ac_try_echo=$ac_try;; 6097esac 6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6099 (eval "$ac_compile") 2>conftest.er1 6100 ac_status=$? 6101 grep -v '^ *+' conftest.er1 >conftest.err 6102 rm -f conftest.er1 6103 cat conftest.err >&5 6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6105 (exit $ac_status); } && { 6106 test -z "$ac_c_werror_flag" || 6107 test ! -s conftest.err 6108 } && test -s conftest.$ac_objext; then 6109 ac_header_compiler=yes 6110else 6111 echo "$as_me: failed program was:" >&5 6112sed 's/^/| /' conftest.$ac_ext >&5 6113 6114 ac_header_compiler=no 6115fi 6116 6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6119echo "${ECHO_T}$ac_header_compiler" >&6; } 6120 6121# Is the header present? 6122{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6123echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6124cat >conftest.$ac_ext <<_ACEOF 6125/* confdefs.h. */ 6126_ACEOF 6127cat confdefs.h >>conftest.$ac_ext 6128cat >>conftest.$ac_ext <<_ACEOF 6129/* end confdefs.h. */ 6130#include <stdlib.h> 6131_ACEOF 6132if { (ac_try="$ac_cpp conftest.$ac_ext" 6133case "(($ac_try" in 6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6135 *) ac_try_echo=$ac_try;; 6136esac 6137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6139 ac_status=$? 6140 grep -v '^ *+' conftest.er1 >conftest.err 6141 rm -f conftest.er1 6142 cat conftest.err >&5 6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6144 (exit $ac_status); } >/dev/null && { 6145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6146 test ! -s conftest.err 6147 }; then 6148 ac_header_preproc=yes 6149else 6150 echo "$as_me: failed program was:" >&5 6151sed 's/^/| /' conftest.$ac_ext >&5 6152 6153 ac_header_preproc=no 6154fi 6155 6156rm -f conftest.err conftest.$ac_ext 6157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6158echo "${ECHO_T}$ac_header_preproc" >&6; } 6159 6160# So? What about this header? 6161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6162 yes:no: ) 6163 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6164echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6165 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6166echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6167 ac_header_preproc=yes 6168 ;; 6169 no:yes:* ) 6170 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6171echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6172 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6173echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6174 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6175echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6176 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6177echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6178 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6179echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6180 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6181echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6182 6183 ;; 6184esac 6185{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6186echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6187if test "${ac_cv_header_stdlib_h+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189else 6190 ac_cv_header_stdlib_h=$ac_header_preproc 6191fi 6192{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6193echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6194 6195fi 6196if test $ac_cv_header_stdlib_h = yes; then 6197 tcl_ok=1 6198else 6199 tcl_ok=0 6200fi 6201 6202 6203 cat >conftest.$ac_ext <<_ACEOF 6204/* confdefs.h. */ 6205_ACEOF 6206cat confdefs.h >>conftest.$ac_ext 6207cat >>conftest.$ac_ext <<_ACEOF 6208/* end confdefs.h. */ 6209#include <stdlib.h> 6210 6211_ACEOF 6212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6213 $EGREP "strtol" >/dev/null 2>&1; then 6214 : 6215else 6216 tcl_ok=0 6217fi 6218rm -f -r conftest* 6219 6220 cat >conftest.$ac_ext <<_ACEOF 6221/* confdefs.h. */ 6222_ACEOF 6223cat confdefs.h >>conftest.$ac_ext 6224cat >>conftest.$ac_ext <<_ACEOF 6225/* end confdefs.h. */ 6226#include <stdlib.h> 6227 6228_ACEOF 6229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6230 $EGREP "strtoul" >/dev/null 2>&1; then 6231 : 6232else 6233 tcl_ok=0 6234fi 6235rm -f -r conftest* 6236 6237 cat >conftest.$ac_ext <<_ACEOF 6238/* confdefs.h. */ 6239_ACEOF 6240cat confdefs.h >>conftest.$ac_ext 6241cat >>conftest.$ac_ext <<_ACEOF 6242/* end confdefs.h. */ 6243#include <stdlib.h> 6244 6245_ACEOF 6246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6247 $EGREP "strtod" >/dev/null 2>&1; then 6248 : 6249else 6250 tcl_ok=0 6251fi 6252rm -f -r conftest* 6253 6254 if test $tcl_ok = 0; then 6255 6256cat >>confdefs.h <<\_ACEOF 6257#define NO_STDLIB_H 1 6258_ACEOF 6259 6260 fi 6261 if test "${ac_cv_header_string_h+set}" = set; then 6262 { echo "$as_me:$LINENO: checking for string.h" >&5 6263echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6264if test "${ac_cv_header_string_h+set}" = set; then 6265 echo $ECHO_N "(cached) $ECHO_C" >&6 6266fi 6267{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6268echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6269else 6270 # Is the header compilable? 6271{ echo "$as_me:$LINENO: checking string.h usability" >&5 6272echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6273cat >conftest.$ac_ext <<_ACEOF 6274/* confdefs.h. */ 6275_ACEOF 6276cat confdefs.h >>conftest.$ac_ext 6277cat >>conftest.$ac_ext <<_ACEOF 6278/* end confdefs.h. */ 6279$ac_includes_default 6280#include <string.h> 6281_ACEOF 6282rm -f conftest.$ac_objext 6283if { (ac_try="$ac_compile" 6284case "(($ac_try" in 6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6286 *) ac_try_echo=$ac_try;; 6287esac 6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6289 (eval "$ac_compile") 2>conftest.er1 6290 ac_status=$? 6291 grep -v '^ *+' conftest.er1 >conftest.err 6292 rm -f conftest.er1 6293 cat conftest.err >&5 6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6295 (exit $ac_status); } && { 6296 test -z "$ac_c_werror_flag" || 6297 test ! -s conftest.err 6298 } && test -s conftest.$ac_objext; then 6299 ac_header_compiler=yes 6300else 6301 echo "$as_me: failed program was:" >&5 6302sed 's/^/| /' conftest.$ac_ext >&5 6303 6304 ac_header_compiler=no 6305fi 6306 6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6308{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6309echo "${ECHO_T}$ac_header_compiler" >&6; } 6310 6311# Is the header present? 6312{ echo "$as_me:$LINENO: checking string.h presence" >&5 6313echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6314cat >conftest.$ac_ext <<_ACEOF 6315/* confdefs.h. */ 6316_ACEOF 6317cat confdefs.h >>conftest.$ac_ext 6318cat >>conftest.$ac_ext <<_ACEOF 6319/* end confdefs.h. */ 6320#include <string.h> 6321_ACEOF 6322if { (ac_try="$ac_cpp conftest.$ac_ext" 6323case "(($ac_try" in 6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6325 *) ac_try_echo=$ac_try;; 6326esac 6327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6329 ac_status=$? 6330 grep -v '^ *+' conftest.er1 >conftest.err 6331 rm -f conftest.er1 6332 cat conftest.err >&5 6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6334 (exit $ac_status); } >/dev/null && { 6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6336 test ! -s conftest.err 6337 }; then 6338 ac_header_preproc=yes 6339else 6340 echo "$as_me: failed program was:" >&5 6341sed 's/^/| /' conftest.$ac_ext >&5 6342 6343 ac_header_preproc=no 6344fi 6345 6346rm -f conftest.err conftest.$ac_ext 6347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6348echo "${ECHO_T}$ac_header_preproc" >&6; } 6349 6350# So? What about this header? 6351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6352 yes:no: ) 6353 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6354echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6355 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6356echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6357 ac_header_preproc=yes 6358 ;; 6359 no:yes:* ) 6360 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6361echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6362 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6363echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6364 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6365echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6366 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6367echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6368 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6369echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6370 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6371echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6372 6373 ;; 6374esac 6375{ echo "$as_me:$LINENO: checking for string.h" >&5 6376echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6377if test "${ac_cv_header_string_h+set}" = set; then 6378 echo $ECHO_N "(cached) $ECHO_C" >&6 6379else 6380 ac_cv_header_string_h=$ac_header_preproc 6381fi 6382{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6383echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6384 6385fi 6386if test $ac_cv_header_string_h = yes; then 6387 tcl_ok=1 6388else 6389 tcl_ok=0 6390fi 6391 6392 6393 cat >conftest.$ac_ext <<_ACEOF 6394/* confdefs.h. */ 6395_ACEOF 6396cat confdefs.h >>conftest.$ac_ext 6397cat >>conftest.$ac_ext <<_ACEOF 6398/* end confdefs.h. */ 6399#include <string.h> 6400 6401_ACEOF 6402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6403 $EGREP "strstr" >/dev/null 2>&1; then 6404 : 6405else 6406 tcl_ok=0 6407fi 6408rm -f -r conftest* 6409 6410 cat >conftest.$ac_ext <<_ACEOF 6411/* confdefs.h. */ 6412_ACEOF 6413cat confdefs.h >>conftest.$ac_ext 6414cat >>conftest.$ac_ext <<_ACEOF 6415/* end confdefs.h. */ 6416#include <string.h> 6417 6418_ACEOF 6419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6420 $EGREP "strerror" >/dev/null 2>&1; then 6421 : 6422else 6423 tcl_ok=0 6424fi 6425rm -f -r conftest* 6426 6427 6428 # See also memmove check below for a place where NO_STRING_H can be 6429 # set and why. 6430 6431 if test $tcl_ok = 0; then 6432 6433cat >>confdefs.h <<\_ACEOF 6434#define NO_STRING_H 1 6435_ACEOF 6436 6437 fi 6438 6439 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6440 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6441echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6442if test "${ac_cv_header_sys_wait_h+set}" = set; then 6443 echo $ECHO_N "(cached) $ECHO_C" >&6 6444fi 6445{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6446echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6447else 6448 # Is the header compilable? 6449{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6450echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6451cat >conftest.$ac_ext <<_ACEOF 6452/* confdefs.h. */ 6453_ACEOF 6454cat confdefs.h >>conftest.$ac_ext 6455cat >>conftest.$ac_ext <<_ACEOF 6456/* end confdefs.h. */ 6457$ac_includes_default 6458#include <sys/wait.h> 6459_ACEOF 6460rm -f conftest.$ac_objext 6461if { (ac_try="$ac_compile" 6462case "(($ac_try" in 6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6464 *) ac_try_echo=$ac_try;; 6465esac 6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6467 (eval "$ac_compile") 2>conftest.er1 6468 ac_status=$? 6469 grep -v '^ *+' conftest.er1 >conftest.err 6470 rm -f conftest.er1 6471 cat conftest.err >&5 6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6473 (exit $ac_status); } && { 6474 test -z "$ac_c_werror_flag" || 6475 test ! -s conftest.err 6476 } && test -s conftest.$ac_objext; then 6477 ac_header_compiler=yes 6478else 6479 echo "$as_me: failed program was:" >&5 6480sed 's/^/| /' conftest.$ac_ext >&5 6481 6482 ac_header_compiler=no 6483fi 6484 6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6486{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6487echo "${ECHO_T}$ac_header_compiler" >&6; } 6488 6489# Is the header present? 6490{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6491echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6492cat >conftest.$ac_ext <<_ACEOF 6493/* confdefs.h. */ 6494_ACEOF 6495cat confdefs.h >>conftest.$ac_ext 6496cat >>conftest.$ac_ext <<_ACEOF 6497/* end confdefs.h. */ 6498#include <sys/wait.h> 6499_ACEOF 6500if { (ac_try="$ac_cpp conftest.$ac_ext" 6501case "(($ac_try" in 6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6503 *) ac_try_echo=$ac_try;; 6504esac 6505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6507 ac_status=$? 6508 grep -v '^ *+' conftest.er1 >conftest.err 6509 rm -f conftest.er1 6510 cat conftest.err >&5 6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6512 (exit $ac_status); } >/dev/null && { 6513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6514 test ! -s conftest.err 6515 }; then 6516 ac_header_preproc=yes 6517else 6518 echo "$as_me: failed program was:" >&5 6519sed 's/^/| /' conftest.$ac_ext >&5 6520 6521 ac_header_preproc=no 6522fi 6523 6524rm -f conftest.err conftest.$ac_ext 6525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6526echo "${ECHO_T}$ac_header_preproc" >&6; } 6527 6528# So? What about this header? 6529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6530 yes:no: ) 6531 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6532echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6533 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6534echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6535 ac_header_preproc=yes 6536 ;; 6537 no:yes:* ) 6538 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6539echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6540 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6541echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6542 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6543echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6544 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6545echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6546 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6547echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6548 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6549echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6550 6551 ;; 6552esac 6553{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6554echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6555if test "${ac_cv_header_sys_wait_h+set}" = set; then 6556 echo $ECHO_N "(cached) $ECHO_C" >&6 6557else 6558 ac_cv_header_sys_wait_h=$ac_header_preproc 6559fi 6560{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6561echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6562 6563fi 6564if test $ac_cv_header_sys_wait_h = yes; then 6565 : 6566else 6567 6568cat >>confdefs.h <<\_ACEOF 6569#define NO_SYS_WAIT_H 1 6570_ACEOF 6571 6572fi 6573 6574 6575 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6576 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6577echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6578if test "${ac_cv_header_dlfcn_h+set}" = set; then 6579 echo $ECHO_N "(cached) $ECHO_C" >&6 6580fi 6581{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6582echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6583else 6584 # Is the header compilable? 6585{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6586echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6587cat >conftest.$ac_ext <<_ACEOF 6588/* confdefs.h. */ 6589_ACEOF 6590cat confdefs.h >>conftest.$ac_ext 6591cat >>conftest.$ac_ext <<_ACEOF 6592/* end confdefs.h. */ 6593$ac_includes_default 6594#include <dlfcn.h> 6595_ACEOF 6596rm -f conftest.$ac_objext 6597if { (ac_try="$ac_compile" 6598case "(($ac_try" in 6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6600 *) ac_try_echo=$ac_try;; 6601esac 6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6603 (eval "$ac_compile") 2>conftest.er1 6604 ac_status=$? 6605 grep -v '^ *+' conftest.er1 >conftest.err 6606 rm -f conftest.er1 6607 cat conftest.err >&5 6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6609 (exit $ac_status); } && { 6610 test -z "$ac_c_werror_flag" || 6611 test ! -s conftest.err 6612 } && test -s conftest.$ac_objext; then 6613 ac_header_compiler=yes 6614else 6615 echo "$as_me: failed program was:" >&5 6616sed 's/^/| /' conftest.$ac_ext >&5 6617 6618 ac_header_compiler=no 6619fi 6620 6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6622{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6623echo "${ECHO_T}$ac_header_compiler" >&6; } 6624 6625# Is the header present? 6626{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6627echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6628cat >conftest.$ac_ext <<_ACEOF 6629/* confdefs.h. */ 6630_ACEOF 6631cat confdefs.h >>conftest.$ac_ext 6632cat >>conftest.$ac_ext <<_ACEOF 6633/* end confdefs.h. */ 6634#include <dlfcn.h> 6635_ACEOF 6636if { (ac_try="$ac_cpp conftest.$ac_ext" 6637case "(($ac_try" in 6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6639 *) ac_try_echo=$ac_try;; 6640esac 6641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6643 ac_status=$? 6644 grep -v '^ *+' conftest.er1 >conftest.err 6645 rm -f conftest.er1 6646 cat conftest.err >&5 6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6648 (exit $ac_status); } >/dev/null && { 6649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6650 test ! -s conftest.err 6651 }; then 6652 ac_header_preproc=yes 6653else 6654 echo "$as_me: failed program was:" >&5 6655sed 's/^/| /' conftest.$ac_ext >&5 6656 6657 ac_header_preproc=no 6658fi 6659 6660rm -f conftest.err conftest.$ac_ext 6661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6662echo "${ECHO_T}$ac_header_preproc" >&6; } 6663 6664# So? What about this header? 6665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6666 yes:no: ) 6667 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6668echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6669 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6670echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6671 ac_header_preproc=yes 6672 ;; 6673 no:yes:* ) 6674 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6675echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6676 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6677echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6678 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6679echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6680 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6681echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6682 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6683echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6684 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6685echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6686 6687 ;; 6688esac 6689{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6690echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6691if test "${ac_cv_header_dlfcn_h+set}" = set; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693else 6694 ac_cv_header_dlfcn_h=$ac_header_preproc 6695fi 6696{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6697echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6698 6699fi 6700if test $ac_cv_header_dlfcn_h = yes; then 6701 : 6702else 6703 6704cat >>confdefs.h <<\_ACEOF 6705#define NO_DLFCN_H 1 6706_ACEOF 6707 6708fi 6709 6710 6711 6712 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6713 6714for ac_header in sys/param.h 6715do 6716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6718 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6721 echo $ECHO_N "(cached) $ECHO_C" >&6 6722fi 6723ac_res=`eval echo '${'$as_ac_Header'}'` 6724 { echo "$as_me:$LINENO: result: $ac_res" >&5 6725echo "${ECHO_T}$ac_res" >&6; } 6726else 6727 # Is the header compilable? 6728{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6730cat >conftest.$ac_ext <<_ACEOF 6731/* confdefs.h. */ 6732_ACEOF 6733cat confdefs.h >>conftest.$ac_ext 6734cat >>conftest.$ac_ext <<_ACEOF 6735/* end confdefs.h. */ 6736$ac_includes_default 6737#include <$ac_header> 6738_ACEOF 6739rm -f conftest.$ac_objext 6740if { (ac_try="$ac_compile" 6741case "(($ac_try" in 6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6743 *) ac_try_echo=$ac_try;; 6744esac 6745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6746 (eval "$ac_compile") 2>conftest.er1 6747 ac_status=$? 6748 grep -v '^ *+' conftest.er1 >conftest.err 6749 rm -f conftest.er1 6750 cat conftest.err >&5 6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6752 (exit $ac_status); } && { 6753 test -z "$ac_c_werror_flag" || 6754 test ! -s conftest.err 6755 } && test -s conftest.$ac_objext; then 6756 ac_header_compiler=yes 6757else 6758 echo "$as_me: failed program was:" >&5 6759sed 's/^/| /' conftest.$ac_ext >&5 6760 6761 ac_header_compiler=no 6762fi 6763 6764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6766echo "${ECHO_T}$ac_header_compiler" >&6; } 6767 6768# Is the header present? 6769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6771cat >conftest.$ac_ext <<_ACEOF 6772/* confdefs.h. */ 6773_ACEOF 6774cat confdefs.h >>conftest.$ac_ext 6775cat >>conftest.$ac_ext <<_ACEOF 6776/* end confdefs.h. */ 6777#include <$ac_header> 6778_ACEOF 6779if { (ac_try="$ac_cpp conftest.$ac_ext" 6780case "(($ac_try" in 6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6782 *) ac_try_echo=$ac_try;; 6783esac 6784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6786 ac_status=$? 6787 grep -v '^ *+' conftest.er1 >conftest.err 6788 rm -f conftest.er1 6789 cat conftest.err >&5 6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6791 (exit $ac_status); } >/dev/null && { 6792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6793 test ! -s conftest.err 6794 }; then 6795 ac_header_preproc=yes 6796else 6797 echo "$as_me: failed program was:" >&5 6798sed 's/^/| /' conftest.$ac_ext >&5 6799 6800 ac_header_preproc=no 6801fi 6802 6803rm -f conftest.err conftest.$ac_ext 6804{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6805echo "${ECHO_T}$ac_header_preproc" >&6; } 6806 6807# So? What about this header? 6808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6809 yes:no: ) 6810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6814 ac_header_preproc=yes 6815 ;; 6816 no:yes:* ) 6817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6829 6830 ;; 6831esac 6832{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6835 echo $ECHO_N "(cached) $ECHO_C" >&6 6836else 6837 eval "$as_ac_Header=\$ac_header_preproc" 6838fi 6839ac_res=`eval echo '${'$as_ac_Header'}'` 6840 { echo "$as_me:$LINENO: result: $ac_res" >&5 6841echo "${ECHO_T}$ac_res" >&6; } 6842 6843fi 6844if test `eval echo '${'$as_ac_Header'}'` = yes; then 6845 cat >>confdefs.h <<_ACEOF 6846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6847_ACEOF 6848 6849fi 6850 6851done 6852 6853 6854 # Let the user call this, because if it triggers, they will 6855 # need a compat/strtod.c that is correct. Users can also 6856 # use Tcl_GetDouble(FromObj) instead. 6857 #TEA_BUGGY_STRTOD 6858 fi 6859 6860 6861#----------------------------------------------------------------------- 6862# Specify the C source files to compile in TEA_ADD_SOURCES, 6863# public headers that need to be installed in TEA_ADD_HEADERS, 6864# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6865# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6866# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6867# and PKG_TCL_SOURCES. 6868#----------------------------------------------------------------------- 6869 6870 6871 vars="tkimg.c tkimgIO.c tkimgPPB.c tkimgUtils.c tkimgStubInit.c" 6872 for i in $vars; do 6873 case $i in 6874 \$*) 6875 # allow $-var names 6876 PKG_SOURCES="$PKG_SOURCES $i" 6877 PKG_OBJECTS="$PKG_OBJECTS $i" 6878 ;; 6879 *) 6880 # check for existence - allows for generic/win/unix VPATH 6881 # To add more dirs here (like 'src'), you have to update VPATH 6882 # in Makefile.in as well 6883 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6884 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6885 -a ! -f "${srcdir}/macosx/$i" \ 6886 ; then 6887 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6888echo "$as_me: error: could not find source file '$i'" >&2;} 6889 { (exit 1); exit 1; }; } 6890 fi 6891 PKG_SOURCES="$PKG_SOURCES $i" 6892 # this assumes it is in a VPATH dir 6893 i=`basename $i` 6894 # handle user calling this before or after TEA_SETUP_COMPILER 6895 if test x"${OBJEXT}" != x ; then 6896 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6897 else 6898 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6899 fi 6900 PKG_OBJECTS="$PKG_OBJECTS $j" 6901 ;; 6902 esac 6903 done 6904 6905 6906 6907 6908 vars="tkimg.h tkimgDecls.h" 6909 for i in $vars; do 6910 # check for existence, be strict because it is installed 6911 if test ! -f "${srcdir}/$i" ; then 6912 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6913echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6914 { (exit 1); exit 1; }; } 6915 fi 6916 PKG_HEADERS="$PKG_HEADERS $i" 6917 done 6918 6919 6920 6921 vars="" 6922 for i in $vars; do 6923 PKG_INCLUDES="$PKG_INCLUDES $i" 6924 done 6925 6926 6927 6928 vars="" 6929 for i in $vars; do 6930 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6931 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6932 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6933 fi 6934 PKG_LIBS="$PKG_LIBS $i" 6935 done 6936 6937 6938 6939 PKG_CFLAGS="$PKG_CFLAGS " 6940 6941 6942 6943 vars="tkimgStubLib.c" 6944 for i in $vars; do 6945 # check for existence - allows for generic/win/unix VPATH 6946 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6947 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6948 -a ! -f "${srcdir}/macosx/$i" \ 6949 ; then 6950 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6951echo "$as_me: error: could not find stub source file '$i'" >&2;} 6952 { (exit 1); exit 1; }; } 6953 fi 6954 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6955 # this assumes it is in a VPATH dir 6956 i=`basename $i` 6957 # handle user calling this before or after TEA_SETUP_COMPILER 6958 if test x"${OBJEXT}" != x ; then 6959 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6960 else 6961 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6962 fi 6963 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6964 done 6965 6966 6967 6968 6969 vars="tkimgStubLib.c" 6970 for i in $vars; do 6971 case $i in 6972 \$*) 6973 # allow $-var names 6974 PKG_SOURCES="$PKG_SOURCES $i" 6975 PKG_OBJECTS="$PKG_OBJECTS $i" 6976 ;; 6977 *) 6978 # check for existence - allows for generic/win/unix VPATH 6979 # To add more dirs here (like 'src'), you have to update VPATH 6980 # in Makefile.in as well 6981 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6982 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6983 -a ! -f "${srcdir}/macosx/$i" \ 6984 ; then 6985 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6986echo "$as_me: error: could not find source file '$i'" >&2;} 6987 { (exit 1); exit 1; }; } 6988 fi 6989 PKG_SOURCES="$PKG_SOURCES $i" 6990 # this assumes it is in a VPATH dir 6991 i=`basename $i` 6992 # handle user calling this before or after TEA_SETUP_COMPILER 6993 if test x"${OBJEXT}" != x ; then 6994 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6995 else 6996 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6997 fi 6998 PKG_OBJECTS="$PKG_OBJECTS $j" 6999 ;; 7000 esac 7001 done 7002 7003 7004 7005 7006 vars="" 7007 for i in $vars; do 7008 # check for existence, be strict because it is installed 7009 if test ! -f "${srcdir}/$i" ; then 7010 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7011echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7012 { (exit 1); exit 1; }; } 7013 fi 7014 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7015 done 7016 7017 7018 7019#-------------------------------------------------------------------- 7020# __CHANGE__ 7021# Choose which headers you need. Extension authors should try very 7022# hard to only rely on the Tcl public header files. Internal headers 7023# contain private data structures and are subject to change without 7024# notice. 7025# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 7026#-------------------------------------------------------------------- 7027 7028 7029 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7030echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7031 7032 7033# Check whether --with-tclinclude was given. 7034if test "${with_tclinclude+set}" = set; then 7035 withval=$with_tclinclude; with_tclinclude=${withval} 7036fi 7037 7038 7039 if test "${ac_cv_c_tclh+set}" = set; then 7040 echo $ECHO_N "(cached) $ECHO_C" >&6 7041else 7042 7043 # Use the value from --with-tclinclude, if it was given 7044 7045 if test x"${with_tclinclude}" != x ; then 7046 if test -f "${with_tclinclude}/tcl.h" ; then 7047 ac_cv_c_tclh=${with_tclinclude} 7048 else 7049 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7050echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7051 { (exit 1); exit 1; }; } 7052 fi 7053 else 7054 list="" 7055 if test "`uname -s`" = "Darwin"; then 7056 # If Tcl was built as a framework, attempt to use 7057 # the framework's Headers directory 7058 case ${TCL_DEFS} in 7059 *TCL_FRAMEWORK*) 7060 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7061 ;; 7062 esac 7063 fi 7064 7065 # Look in the source dir only if Tcl is not installed, 7066 # and in that situation, look there before installed locations. 7067 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7068 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7069 fi 7070 7071 # Check order: pkg --prefix location, Tcl's --prefix location, 7072 # relative to directory of tclConfig.sh. 7073 7074 eval "temp_includedir=${includedir}" 7075 list="$list \ 7076 `ls -d ${temp_includedir} 2>/dev/null` \ 7077 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7078 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7079 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7080 list="$list /usr/local/include /usr/include" 7081 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7082 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7083 list="$list `ls -d ${d} 2>/dev/null`" 7084 fi 7085 fi 7086 for i in $list ; do 7087 if test -f "$i/tcl.h" ; then 7088 ac_cv_c_tclh=$i 7089 break 7090 fi 7091 done 7092 fi 7093 7094fi 7095 7096 7097 # Print a message based on how we determined the include path 7098 7099 if test x"${ac_cv_c_tclh}" = x ; then 7100 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7101echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7102 { (exit 1); exit 1; }; } 7103 else 7104 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7105echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7106 fi 7107 7108 # Convert to a native path and substitute into the output files. 7109 7110 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7111 7112 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7113 7114 7115 7116 7117 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7118echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7119 7120 7121# Check whether --with-tkinclude was given. 7122if test "${with_tkinclude+set}" = set; then 7123 withval=$with_tkinclude; with_tkinclude=${withval} 7124fi 7125 7126 7127 if test "${ac_cv_c_tkh+set}" = set; then 7128 echo $ECHO_N "(cached) $ECHO_C" >&6 7129else 7130 7131 # Use the value from --with-tkinclude, if it was given 7132 7133 if test x"${with_tkinclude}" != x ; then 7134 if test -f "${with_tkinclude}/tk.h" ; then 7135 ac_cv_c_tkh=${with_tkinclude} 7136 else 7137 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7138echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7139 { (exit 1); exit 1; }; } 7140 fi 7141 else 7142 list="" 7143 if test "`uname -s`" = "Darwin"; then 7144 # If Tk was built as a framework, attempt to use 7145 # the framework's Headers directory. 7146 case ${TK_DEFS} in 7147 *TK_FRAMEWORK*) 7148 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7149 ;; 7150 esac 7151 fi 7152 7153 # Look in the source dir only if Tk is not installed, 7154 # and in that situation, look there before installed locations. 7155 if test -f "${TK_BIN_DIR}/Makefile" ; then 7156 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7157 fi 7158 7159 # Check order: pkg --prefix location, Tk's --prefix location, 7160 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7161 # relative to directory of tclConfig.sh. 7162 7163 eval "temp_includedir=${includedir}" 7164 list="$list \ 7165 `ls -d ${temp_includedir} 2>/dev/null` \ 7166 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7167 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7168 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7169 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7170 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7171 list="$list /usr/local/include /usr/include" 7172 if test x"${TK_INCLUDE_SPEC}" != x ; then 7173 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7174 list="$list `ls -d ${d} 2>/dev/null`" 7175 fi 7176 fi 7177 for i in $list ; do 7178 if test -f "$i/tk.h" ; then 7179 ac_cv_c_tkh=$i 7180 break 7181 fi 7182 done 7183 fi 7184 7185fi 7186 7187 7188 # Print a message based on how we determined the include path 7189 7190 if test x"${ac_cv_c_tkh}" = x ; then 7191 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7192echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7193 { (exit 1); exit 1; }; } 7194 else 7195 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7196echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7197 fi 7198 7199 # Convert to a native path and substitute into the output files. 7200 7201 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7202 7203 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7204 7205 7206 7207 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7208 # On Windows and Aqua, we need the X compat headers 7209 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7210echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7211 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7212 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7213 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7214 7215 fi 7216 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7217echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7218 fi 7219 7220 7221#-------------------------------------------------------------------- 7222# A few miscellaneous platform-specific items: 7223# 7224# Windows creates a few extra files that need to be cleaned up. 7225# We can add more files to clean if our extension creates any extra 7226# files in the future. 7227# 7228# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7229# These will be appended to the current set of compiler flags for 7230# your system. 7231#-------------------------------------------------------------------- 7232 7233if test "${TEA_PLATFORM}" = "windows" ; then 7234 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch" 7235else 7236 CLEANFILES="" 7237fi 7238 7239 7240#-------------------------------------------------------------------- 7241# Check whether --enable-threads or --disable-threads was given. 7242# So far only Tcl responds to this one. 7243#-------------------------------------------------------------------- 7244 7245 7246 # Check whether --enable-threads was given. 7247if test "${enable_threads+set}" = set; then 7248 enableval=$enable_threads; tcl_ok=$enableval 7249else 7250 tcl_ok=yes 7251fi 7252 7253 7254 if test "${enable_threads+set}" = set; then 7255 enableval="$enable_threads" 7256 tcl_ok=$enableval 7257 else 7258 tcl_ok=yes 7259 fi 7260 7261 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7262 TCL_THREADS=1 7263 7264 if test "${TEA_PLATFORM}" != "windows" ; then 7265 # We are always OK on Windows, so check what this platform wants: 7266 7267 # USE_THREAD_ALLOC tells us to try the special thread-based 7268 # allocator that significantly reduces lock contention 7269 7270cat >>confdefs.h <<\_ACEOF 7271#define USE_THREAD_ALLOC 1 7272_ACEOF 7273 7274 7275cat >>confdefs.h <<\_ACEOF 7276#define _REENTRANT 1 7277_ACEOF 7278 7279 if test "`uname -s`" = "SunOS" ; then 7280 7281cat >>confdefs.h <<\_ACEOF 7282#define _POSIX_PTHREAD_SEMANTICS 1 7283_ACEOF 7284 7285 fi 7286 7287cat >>confdefs.h <<\_ACEOF 7288#define _THREAD_SAFE 1 7289_ACEOF 7290 7291 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7292echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7293if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7294 echo $ECHO_N "(cached) $ECHO_C" >&6 7295else 7296 ac_check_lib_save_LIBS=$LIBS 7297LIBS="-lpthread $LIBS" 7298cat >conftest.$ac_ext <<_ACEOF 7299/* confdefs.h. */ 7300_ACEOF 7301cat confdefs.h >>conftest.$ac_ext 7302cat >>conftest.$ac_ext <<_ACEOF 7303/* end confdefs.h. */ 7304 7305/* Override any GCC internal prototype to avoid an error. 7306 Use char because int might match the return type of a GCC 7307 builtin and then its argument prototype would still apply. */ 7308#ifdef __cplusplus 7309extern "C" 7310#endif 7311char pthread_mutex_init (); 7312int 7313main () 7314{ 7315return pthread_mutex_init (); 7316 ; 7317 return 0; 7318} 7319_ACEOF 7320rm -f conftest.$ac_objext conftest$ac_exeext 7321if { (ac_try="$ac_link" 7322case "(($ac_try" in 7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7324 *) ac_try_echo=$ac_try;; 7325esac 7326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7327 (eval "$ac_link") 2>conftest.er1 7328 ac_status=$? 7329 grep -v '^ *+' conftest.er1 >conftest.err 7330 rm -f conftest.er1 7331 cat conftest.err >&5 7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7333 (exit $ac_status); } && { 7334 test -z "$ac_c_werror_flag" || 7335 test ! -s conftest.err 7336 } && test -s conftest$ac_exeext && 7337 $as_test_x conftest$ac_exeext; then 7338 ac_cv_lib_pthread_pthread_mutex_init=yes 7339else 7340 echo "$as_me: failed program was:" >&5 7341sed 's/^/| /' conftest.$ac_ext >&5 7342 7343 ac_cv_lib_pthread_pthread_mutex_init=no 7344fi 7345 7346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7347 conftest$ac_exeext conftest.$ac_ext 7348LIBS=$ac_check_lib_save_LIBS 7349fi 7350{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7351echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7352if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7353 tcl_ok=yes 7354else 7355 tcl_ok=no 7356fi 7357 7358 if test "$tcl_ok" = "no"; then 7359 # Check a little harder for __pthread_mutex_init in the same 7360 # library, as some systems hide it there until pthread.h is 7361 # defined. We could alternatively do an AC_TRY_COMPILE with 7362 # pthread.h, but that will work with libpthread really doesn't 7363 # exist, like AIX 4.2. [Bug: 4359] 7364 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7365echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7366if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7367 echo $ECHO_N "(cached) $ECHO_C" >&6 7368else 7369 ac_check_lib_save_LIBS=$LIBS 7370LIBS="-lpthread $LIBS" 7371cat >conftest.$ac_ext <<_ACEOF 7372/* confdefs.h. */ 7373_ACEOF 7374cat confdefs.h >>conftest.$ac_ext 7375cat >>conftest.$ac_ext <<_ACEOF 7376/* end confdefs.h. */ 7377 7378/* Override any GCC internal prototype to avoid an error. 7379 Use char because int might match the return type of a GCC 7380 builtin and then its argument prototype would still apply. */ 7381#ifdef __cplusplus 7382extern "C" 7383#endif 7384char __pthread_mutex_init (); 7385int 7386main () 7387{ 7388return __pthread_mutex_init (); 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393rm -f conftest.$ac_objext conftest$ac_exeext 7394if { (ac_try="$ac_link" 7395case "(($ac_try" in 7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7397 *) ac_try_echo=$ac_try;; 7398esac 7399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7400 (eval "$ac_link") 2>conftest.er1 7401 ac_status=$? 7402 grep -v '^ *+' conftest.er1 >conftest.err 7403 rm -f conftest.er1 7404 cat conftest.err >&5 7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7406 (exit $ac_status); } && { 7407 test -z "$ac_c_werror_flag" || 7408 test ! -s conftest.err 7409 } && test -s conftest$ac_exeext && 7410 $as_test_x conftest$ac_exeext; then 7411 ac_cv_lib_pthread___pthread_mutex_init=yes 7412else 7413 echo "$as_me: failed program was:" >&5 7414sed 's/^/| /' conftest.$ac_ext >&5 7415 7416 ac_cv_lib_pthread___pthread_mutex_init=no 7417fi 7418 7419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7420 conftest$ac_exeext conftest.$ac_ext 7421LIBS=$ac_check_lib_save_LIBS 7422fi 7423{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7424echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7425if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7426 tcl_ok=yes 7427else 7428 tcl_ok=no 7429fi 7430 7431 fi 7432 7433 if test "$tcl_ok" = "yes"; then 7434 # The space is needed 7435 THREADS_LIBS=" -lpthread" 7436 else 7437 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7438echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7439if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7440 echo $ECHO_N "(cached) $ECHO_C" >&6 7441else 7442 ac_check_lib_save_LIBS=$LIBS 7443LIBS="-lpthreads $LIBS" 7444cat >conftest.$ac_ext <<_ACEOF 7445/* confdefs.h. */ 7446_ACEOF 7447cat confdefs.h >>conftest.$ac_ext 7448cat >>conftest.$ac_ext <<_ACEOF 7449/* end confdefs.h. */ 7450 7451/* Override any GCC internal prototype to avoid an error. 7452 Use char because int might match the return type of a GCC 7453 builtin and then its argument prototype would still apply. */ 7454#ifdef __cplusplus 7455extern "C" 7456#endif 7457char pthread_mutex_init (); 7458int 7459main () 7460{ 7461return pthread_mutex_init (); 7462 ; 7463 return 0; 7464} 7465_ACEOF 7466rm -f conftest.$ac_objext conftest$ac_exeext 7467if { (ac_try="$ac_link" 7468case "(($ac_try" in 7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7470 *) ac_try_echo=$ac_try;; 7471esac 7472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7473 (eval "$ac_link") 2>conftest.er1 7474 ac_status=$? 7475 grep -v '^ *+' conftest.er1 >conftest.err 7476 rm -f conftest.er1 7477 cat conftest.err >&5 7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7479 (exit $ac_status); } && { 7480 test -z "$ac_c_werror_flag" || 7481 test ! -s conftest.err 7482 } && test -s conftest$ac_exeext && 7483 $as_test_x conftest$ac_exeext; then 7484 ac_cv_lib_pthreads_pthread_mutex_init=yes 7485else 7486 echo "$as_me: failed program was:" >&5 7487sed 's/^/| /' conftest.$ac_ext >&5 7488 7489 ac_cv_lib_pthreads_pthread_mutex_init=no 7490fi 7491 7492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7493 conftest$ac_exeext conftest.$ac_ext 7494LIBS=$ac_check_lib_save_LIBS 7495fi 7496{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7497echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7498if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7499 tcl_ok=yes 7500else 7501 tcl_ok=no 7502fi 7503 7504 if test "$tcl_ok" = "yes"; then 7505 # The space is needed 7506 THREADS_LIBS=" -lpthreads" 7507 else 7508 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7509echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7510if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7511 echo $ECHO_N "(cached) $ECHO_C" >&6 7512else 7513 ac_check_lib_save_LIBS=$LIBS 7514LIBS="-lc $LIBS" 7515cat >conftest.$ac_ext <<_ACEOF 7516/* confdefs.h. */ 7517_ACEOF 7518cat confdefs.h >>conftest.$ac_ext 7519cat >>conftest.$ac_ext <<_ACEOF 7520/* end confdefs.h. */ 7521 7522/* Override any GCC internal prototype to avoid an error. 7523 Use char because int might match the return type of a GCC 7524 builtin and then its argument prototype would still apply. */ 7525#ifdef __cplusplus 7526extern "C" 7527#endif 7528char pthread_mutex_init (); 7529int 7530main () 7531{ 7532return pthread_mutex_init (); 7533 ; 7534 return 0; 7535} 7536_ACEOF 7537rm -f conftest.$ac_objext conftest$ac_exeext 7538if { (ac_try="$ac_link" 7539case "(($ac_try" in 7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7541 *) ac_try_echo=$ac_try;; 7542esac 7543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7544 (eval "$ac_link") 2>conftest.er1 7545 ac_status=$? 7546 grep -v '^ *+' conftest.er1 >conftest.err 7547 rm -f conftest.er1 7548 cat conftest.err >&5 7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7550 (exit $ac_status); } && { 7551 test -z "$ac_c_werror_flag" || 7552 test ! -s conftest.err 7553 } && test -s conftest$ac_exeext && 7554 $as_test_x conftest$ac_exeext; then 7555 ac_cv_lib_c_pthread_mutex_init=yes 7556else 7557 echo "$as_me: failed program was:" >&5 7558sed 's/^/| /' conftest.$ac_ext >&5 7559 7560 ac_cv_lib_c_pthread_mutex_init=no 7561fi 7562 7563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7564 conftest$ac_exeext conftest.$ac_ext 7565LIBS=$ac_check_lib_save_LIBS 7566fi 7567{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7568echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7569if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7570 tcl_ok=yes 7571else 7572 tcl_ok=no 7573fi 7574 7575 if test "$tcl_ok" = "no"; then 7576 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7577echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7578if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7579 echo $ECHO_N "(cached) $ECHO_C" >&6 7580else 7581 ac_check_lib_save_LIBS=$LIBS 7582LIBS="-lc_r $LIBS" 7583cat >conftest.$ac_ext <<_ACEOF 7584/* confdefs.h. */ 7585_ACEOF 7586cat confdefs.h >>conftest.$ac_ext 7587cat >>conftest.$ac_ext <<_ACEOF 7588/* end confdefs.h. */ 7589 7590/* Override any GCC internal prototype to avoid an error. 7591 Use char because int might match the return type of a GCC 7592 builtin and then its argument prototype would still apply. */ 7593#ifdef __cplusplus 7594extern "C" 7595#endif 7596char pthread_mutex_init (); 7597int 7598main () 7599{ 7600return pthread_mutex_init (); 7601 ; 7602 return 0; 7603} 7604_ACEOF 7605rm -f conftest.$ac_objext conftest$ac_exeext 7606if { (ac_try="$ac_link" 7607case "(($ac_try" in 7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7609 *) ac_try_echo=$ac_try;; 7610esac 7611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7612 (eval "$ac_link") 2>conftest.er1 7613 ac_status=$? 7614 grep -v '^ *+' conftest.er1 >conftest.err 7615 rm -f conftest.er1 7616 cat conftest.err >&5 7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7618 (exit $ac_status); } && { 7619 test -z "$ac_c_werror_flag" || 7620 test ! -s conftest.err 7621 } && test -s conftest$ac_exeext && 7622 $as_test_x conftest$ac_exeext; then 7623 ac_cv_lib_c_r_pthread_mutex_init=yes 7624else 7625 echo "$as_me: failed program was:" >&5 7626sed 's/^/| /' conftest.$ac_ext >&5 7627 7628 ac_cv_lib_c_r_pthread_mutex_init=no 7629fi 7630 7631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7632 conftest$ac_exeext conftest.$ac_ext 7633LIBS=$ac_check_lib_save_LIBS 7634fi 7635{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7636echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7637if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7638 tcl_ok=yes 7639else 7640 tcl_ok=no 7641fi 7642 7643 if test "$tcl_ok" = "yes"; then 7644 # The space is needed 7645 THREADS_LIBS=" -pthread" 7646 else 7647 TCL_THREADS=0 7648 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7649echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7650 fi 7651 fi 7652 fi 7653 fi 7654 fi 7655 else 7656 TCL_THREADS=0 7657 fi 7658 # Do checking message here to not mess up interleaved configure output 7659 { echo "$as_me:$LINENO: checking for building with threads" >&5 7660echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7661 if test "${TCL_THREADS}" = 1; then 7662 7663cat >>confdefs.h <<\_ACEOF 7664#define TCL_THREADS 1 7665_ACEOF 7666 7667 { echo "$as_me:$LINENO: result: yes (default)" >&5 7668echo "${ECHO_T}yes (default)" >&6; } 7669 else 7670 { echo "$as_me:$LINENO: result: no" >&5 7671echo "${ECHO_T}no" >&6; } 7672 fi 7673 # TCL_THREADS sanity checking. See if our request for building with 7674 # threads is the same as the way Tcl was built. If not, warn the user. 7675 case ${TCL_DEFS} in 7676 *THREADS=1*) 7677 if test "${TCL_THREADS}" = "0"; then 7678 { echo "$as_me:$LINENO: WARNING: 7679 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7680 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7681echo "$as_me: WARNING: 7682 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7683 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7684 fi 7685 ;; 7686 *) 7687 if test "${TCL_THREADS}" = "1"; then 7688 { echo "$as_me:$LINENO: WARNING: 7689 --enable-threads requested, but building against a Tcl that is NOT 7690 thread-enabled. This is an OK configuration that will also run in 7691 a thread-enabled core." >&5 7692echo "$as_me: WARNING: 7693 --enable-threads requested, but building against a Tcl that is NOT 7694 thread-enabled. This is an OK configuration that will also run in 7695 a thread-enabled core." >&2;} 7696 fi 7697 ;; 7698 esac 7699 7700 7701 7702#-------------------------------------------------------------------- 7703# The statement below defines a collection of symbols related to 7704# building as a shared library instead of a static library. 7705#-------------------------------------------------------------------- 7706 7707 7708 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7709echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7710 # Check whether --enable-shared was given. 7711if test "${enable_shared+set}" = set; then 7712 enableval=$enable_shared; tcl_ok=$enableval 7713else 7714 tcl_ok=yes 7715fi 7716 7717 7718 if test "${enable_shared+set}" = set; then 7719 enableval="$enable_shared" 7720 tcl_ok=$enableval 7721 else 7722 tcl_ok=yes 7723 fi 7724 7725 if test "$tcl_ok" = "yes" ; then 7726 { echo "$as_me:$LINENO: result: shared" >&5 7727echo "${ECHO_T}shared" >&6; } 7728 SHARED_BUILD=1 7729 else 7730 { echo "$as_me:$LINENO: result: static" >&5 7731echo "${ECHO_T}static" >&6; } 7732 SHARED_BUILD=0 7733 7734cat >>confdefs.h <<\_ACEOF 7735#define STATIC_BUILD 1 7736_ACEOF 7737 7738 fi 7739 7740 7741 7742#-------------------------------------------------------------------- 7743# This macro figures out what flags to use with the compiler/linker 7744# when building shared/static debug/optimized objects. This information 7745# can be taken from the tclConfig.sh file, but this figures it all out. 7746#-------------------------------------------------------------------- 7747 7748 7749 7750 7751 # Step 0.a: Enable 64 bit support? 7752 7753 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7754echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7755 # Check whether --enable-64bit was given. 7756if test "${enable_64bit+set}" = set; then 7757 enableval=$enable_64bit; do64bit=$enableval 7758else 7759 do64bit=no 7760fi 7761 7762 { echo "$as_me:$LINENO: result: $do64bit" >&5 7763echo "${ECHO_T}$do64bit" >&6; } 7764 7765 # Step 0.b: Enable Solaris 64 bit VIS support? 7766 7767 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7768echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7769 # Check whether --enable-64bit-vis was given. 7770if test "${enable_64bit_vis+set}" = set; then 7771 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7772else 7773 do64bitVIS=no 7774fi 7775 7776 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7777echo "${ECHO_T}$do64bitVIS" >&6; } 7778 # Force 64bit on with VIS 7779 if test "$do64bitVIS" = "yes"; then 7780 do64bit=yes 7781fi 7782 7783 7784 # Step 0.c: Check if visibility support is available. Do this here so 7785 # that platform specific alternatives can be used below if this fails. 7786 7787 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7788echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7789if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7790 echo $ECHO_N "(cached) $ECHO_C" >&6 7791else 7792 7793 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7794 cat >conftest.$ac_ext <<_ACEOF 7795/* confdefs.h. */ 7796_ACEOF 7797cat confdefs.h >>conftest.$ac_ext 7798cat >>conftest.$ac_ext <<_ACEOF 7799/* end confdefs.h. */ 7800 7801 extern __attribute__((__visibility__("hidden"))) void f(void); 7802 void f(void) {} 7803int 7804main () 7805{ 7806f(); 7807 ; 7808 return 0; 7809} 7810_ACEOF 7811rm -f conftest.$ac_objext conftest$ac_exeext 7812if { (ac_try="$ac_link" 7813case "(($ac_try" in 7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7815 *) ac_try_echo=$ac_try;; 7816esac 7817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7818 (eval "$ac_link") 2>conftest.er1 7819 ac_status=$? 7820 grep -v '^ *+' conftest.er1 >conftest.err 7821 rm -f conftest.er1 7822 cat conftest.err >&5 7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 (exit $ac_status); } && { 7825 test -z "$ac_c_werror_flag" || 7826 test ! -s conftest.err 7827 } && test -s conftest$ac_exeext && 7828 $as_test_x conftest$ac_exeext; then 7829 tcl_cv_cc_visibility_hidden=yes 7830else 7831 echo "$as_me: failed program was:" >&5 7832sed 's/^/| /' conftest.$ac_ext >&5 7833 7834 tcl_cv_cc_visibility_hidden=no 7835fi 7836 7837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7838 conftest$ac_exeext conftest.$ac_ext 7839 CFLAGS=$hold_cflags 7840fi 7841{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7842echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7843 if test $tcl_cv_cc_visibility_hidden = yes; then 7844 7845 7846cat >>confdefs.h <<\_ACEOF 7847#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7848_ACEOF 7849 7850 7851fi 7852 7853 7854 # Step 0.d: Disable -rpath support? 7855 7856 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7857echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7858 # Check whether --enable-rpath was given. 7859if test "${enable_rpath+set}" = set; then 7860 enableval=$enable_rpath; doRpath=$enableval 7861else 7862 doRpath=yes 7863fi 7864 7865 { echo "$as_me:$LINENO: result: $doRpath" >&5 7866echo "${ECHO_T}$doRpath" >&6; } 7867 7868 # TEA specific: Cross-compiling options for Windows/CE builds? 7869 7870 if test "${TEA_PLATFORM}" = windows; then 7871 7872 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7873echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7874 # Check whether --enable-wince was given. 7875if test "${enable_wince+set}" = set; then 7876 enableval=$enable_wince; doWince=$enableval 7877else 7878 doWince=no 7879fi 7880 7881 { echo "$as_me:$LINENO: result: $doWince" >&5 7882echo "${ECHO_T}$doWince" >&6; } 7883 7884fi 7885 7886 7887 # Set the variable "system" to hold the name and version number 7888 # for the system. 7889 7890 7891 { echo "$as_me:$LINENO: checking system version" >&5 7892echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7893if test "${tcl_cv_sys_version+set}" = set; then 7894 echo $ECHO_N "(cached) $ECHO_C" >&6 7895else 7896 7897 # TEA specific: 7898 if test "${TEA_PLATFORM}" = "windows" ; then 7899 tcl_cv_sys_version=windows 7900 else 7901 tcl_cv_sys_version=`uname -s`-`uname -r` 7902 if test "$?" -ne 0 ; then 7903 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7904echo "$as_me: WARNING: can't find uname command" >&2;} 7905 tcl_cv_sys_version=unknown 7906 else 7907 if test "`uname -s`" = "AIX" ; then 7908 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7909 fi 7910 fi 7911 fi 7912 7913fi 7914{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7915echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7916 system=$tcl_cv_sys_version 7917 7918 7919 # Require ranlib early so we can override it in special cases below. 7920 7921 7922 7923 # Set configuration options based on system name and version. 7924 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7925 # "windows" case and removed some core-only vars. 7926 7927 do64bit_ok=no 7928 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7929 SHLIB_LD_LIBS='${LIBS}' 7930 # When ld needs options to work in 64-bit mode, put them in 7931 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7932 # is disabled by the user. [Bug 1016796] 7933 LDFLAGS_ARCH="" 7934 UNSHARED_LIB_SUFFIX="" 7935 # TEA specific: use PACKAGE_VERSION instead of VERSION 7936 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7937 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7938 TCL_LIB_VERSIONS_OK=ok 7939 CFLAGS_DEBUG=-g 7940 CFLAGS_OPTIMIZE=-O 7941 if test "$GCC" = yes; then 7942 7943 # TEA specific: 7944 CFLAGS_OPTIMIZE=-O2 7945 CFLAGS_WARNING="-Wall" 7946 7947else 7948 CFLAGS_WARNING="" 7949fi 7950 7951 # Extract the first word of "ar", so it can be a program name with args. 7952set dummy ar; ac_word=$2 7953{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7955if test "${ac_cv_prog_AR+set}" = set; then 7956 echo $ECHO_N "(cached) $ECHO_C" >&6 7957else 7958 if test -n "$AR"; then 7959 ac_cv_prog_AR="$AR" # Let the user override the test. 7960else 7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962for as_dir in $PATH 7963do 7964 IFS=$as_save_IFS 7965 test -z "$as_dir" && as_dir=. 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7968 ac_cv_prog_AR="ar" 7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972done 7973done 7974IFS=$as_save_IFS 7975 7976fi 7977fi 7978AR=$ac_cv_prog_AR 7979if test -n "$AR"; then 7980 { echo "$as_me:$LINENO: result: $AR" >&5 7981echo "${ECHO_T}$AR" >&6; } 7982else 7983 { echo "$as_me:$LINENO: result: no" >&5 7984echo "${ECHO_T}no" >&6; } 7985fi 7986 7987 7988 STLIB_LD='${AR} cr' 7989 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7990 if test "x$SHLIB_VERSION" = x; then 7991 SHLIB_VERSION="1.0" 7992fi 7993 7994 case $system in 7995 # TEA specific: 7996 windows) 7997 # This is a 2-stage check to make sure we have the 64-bit SDK 7998 # We have to know where the SDK is installed. 7999 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8000 # MACHINE is IX86 for LINK, but this is used by the manifest, 8001 # which requires x86|amd64|ia64. 8002 MACHINE="X86" 8003 if test "$do64bit" != "no" ; then 8004 if test "x${MSSDK}x" = "xx" ; then 8005 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8006 fi 8007 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8008 PATH64="" 8009 case "$do64bit" in 8010 amd64|x64|yes) 8011 MACHINE="AMD64" ; # default to AMD64 64-bit build 8012 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8013 ;; 8014 ia64) 8015 MACHINE="IA64" 8016 PATH64="${MSSDK}/Bin/Win64" 8017 ;; 8018 esac 8019 if test ! -d "${PATH64}" ; then 8020 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8021echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8022 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8023echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8024 do64bit="no" 8025 else 8026 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8027echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8028 do64bit_ok="yes" 8029 fi 8030 fi 8031 8032 if test "$doWince" != "no" ; then 8033 if test "$do64bit" != "no" ; then 8034 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8035echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8036 { (exit 1); exit 1; }; } 8037 fi 8038 if test "$GCC" = "yes" ; then 8039 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8040echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8041 { (exit 1); exit 1; }; } 8042 fi 8043 8044 # First, look for one uninstalled. 8045 # the alternative search directory is invoked by --with-celib 8046 8047 if test x"${no_celib}" = x ; then 8048 # we reset no_celib in case something fails here 8049 no_celib=true 8050 8051# Check whether --with-celib was given. 8052if test "${with_celib+set}" = set; then 8053 withval=$with_celib; with_celibconfig=${withval} 8054fi 8055 8056 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8057echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8058 if test "${ac_cv_c_celibconfig+set}" = set; then 8059 echo $ECHO_N "(cached) $ECHO_C" >&6 8060else 8061 8062 # First check to see if --with-celibconfig was specified. 8063 if test x"${with_celibconfig}" != x ; then 8064 if test -d "${with_celibconfig}/inc" ; then 8065 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8066 else 8067 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8068echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8069 { (exit 1); exit 1; }; } 8070 fi 8071 fi 8072 8073 # then check for a celib library 8074 if test x"${ac_cv_c_celibconfig}" = x ; then 8075 for i in \ 8076 ../celib-palm-3.0 \ 8077 ../celib \ 8078 ../../celib-palm-3.0 \ 8079 ../../celib \ 8080 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8081 ${srcdir}/../celib-palm-3.0 \ 8082 ${srcdir}/../celib \ 8083 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8084 ; do 8085 if test -d "$i/inc" ; then 8086 ac_cv_c_celibconfig=`(cd $i; pwd)` 8087 break 8088 fi 8089 done 8090 fi 8091 8092fi 8093 8094 if test x"${ac_cv_c_celibconfig}" = x ; then 8095 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8096echo "$as_me: error: Cannot find celib support library directory" >&2;} 8097 { (exit 1); exit 1; }; } 8098 else 8099 no_celib= 8100 CELIB_DIR=${ac_cv_c_celibconfig} 8101 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8102 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8103echo "${ECHO_T}found $CELIB_DIR" >&6; } 8104 fi 8105 fi 8106 8107 # Set defaults for common evc4/PPC2003 setup 8108 # Currently Tcl requires 300+, possibly 420+ for sockets 8109 CEVERSION=420; # could be 211 300 301 400 420 ... 8110 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8111 ARCH=ARM; # could be ARM MIPS X86EM ... 8112 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8113 if test "$doWince" != "yes"; then 8114 # If !yes then the user specified something 8115 # Reset ARCH to allow user to skip specifying it 8116 ARCH= 8117 eval `echo $doWince | awk -F, '{ \ 8118 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8119 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8120 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8121 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8122 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8123 }'` 8124 if test "x${ARCH}" = "x" ; then 8125 ARCH=$TARGETCPU; 8126 fi 8127 fi 8128 OSVERSION=WCE$CEVERSION; 8129 if test "x${WCEROOT}" = "x" ; then 8130 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8131 if test ! -d "${WCEROOT}" ; then 8132 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8133 fi 8134 fi 8135 if test "x${SDKROOT}" = "x" ; then 8136 SDKROOT="C:/Program Files/Windows CE Tools" 8137 if test ! -d "${SDKROOT}" ; then 8138 SDKROOT="C:/Windows CE Tools" 8139 fi 8140 fi 8141 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8142 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8143 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8144 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8145 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8146echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8147 { (exit 1); exit 1; }; } 8148 doWince="no" 8149 else 8150 # We could PATH_NOSPACE these, but that's not important, 8151 # as long as we quote them when used. 8152 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8153 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8154 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8155 fi 8156 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8157 fi 8158 fi 8159 8160 if test "$GCC" != "yes" ; then 8161 if test "${SHARED_BUILD}" = "0" ; then 8162 runtime=-MT 8163 else 8164 runtime=-MD 8165 fi 8166 8167 if test "$do64bit" != "no" ; then 8168 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8169 CC="\"${PATH64}/cl.exe\"" 8170 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8171 RC="\"${MSSDK}/bin/rc.exe\"" 8172 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8173 LINKBIN="\"${PATH64}/link.exe\"" 8174 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8175 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8176 # Avoid 'unresolved external symbol __security_cookie' 8177 # errors, c.f. http://support.microsoft.com/?id=894573 8178 8179 vars="bufferoverflowU.lib" 8180 for i in $vars; do 8181 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8182 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8183 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8184 fi 8185 PKG_LIBS="$PKG_LIBS $i" 8186 done 8187 8188 8189 elif test "$doWince" != "no" ; then 8190 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8191 if test "${TARGETCPU}" = "X86"; then 8192 CC="\"${CEBINROOT}/cl.exe\"" 8193 else 8194 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8195 fi 8196 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8197 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8198 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8199 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8200 if test "${SHARED_BUILD}" = "1" ; then 8201 # Static CE builds require static celib as well 8202 defs="${defs} _DLL" 8203 fi 8204 for i in $defs ; do 8205 8206cat >>confdefs.h <<_ACEOF 8207#define $i 1 8208_ACEOF 8209 8210 done 8211 8212cat >>confdefs.h <<_ACEOF 8213#define _WIN32_WCE $CEVERSION 8214_ACEOF 8215 8216 8217cat >>confdefs.h <<_ACEOF 8218#define UNDER_CE $CEVERSION 8219_ACEOF 8220 8221 CFLAGS_DEBUG="-nologo -Zi -Od" 8222 CFLAGS_OPTIMIZE="-nologo -Ox" 8223 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8224 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8225 LINKBIN="\"${CEBINROOT}/link.exe\"" 8226 8227 else 8228 RC="rc" 8229 lflags="-nologo" 8230 LINKBIN="link" 8231 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8232 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8233 fi 8234 fi 8235 8236 if test "$GCC" = "yes"; then 8237 # mingw gcc mode 8238 RC="windres" 8239 CFLAGS_DEBUG="-g" 8240 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8241 SHLIB_LD="$CC -shared" 8242 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8243 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8244 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8245 else 8246 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8247 # link -lib only works when -lib is the first arg 8248 STLIB_LD="${LINKBIN} -lib ${lflags}" 8249 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8250 PATHTYPE=-w 8251 # For information on what debugtype is most useful, see: 8252 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8253 # and also 8254 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8255 # This essentially turns it all on. 8256 LDFLAGS_DEBUG="-debug -debugtype:cv" 8257 LDFLAGS_OPTIMIZE="-release" 8258 if test "$doWince" != "no" ; then 8259 LDFLAGS_CONSOLE="-link ${lflags}" 8260 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8261 else 8262 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8263 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8264 fi 8265 fi 8266 8267 SHLIB_SUFFIX=".dll" 8268 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8269 8270 TCL_LIB_VERSIONS_OK=nodots 8271 ;; 8272 AIX-*) 8273 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8274 8275 # AIX requires the _r compiler when gcc isn't being used 8276 case "${CC}" in 8277 *_r|*_r\ *) 8278 # ok ... 8279 ;; 8280 *) 8281 # Make sure only first arg gets _r 8282 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8283 ;; 8284 esac 8285 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8286echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8287 8288fi 8289 8290 LIBS="$LIBS -lc" 8291 SHLIB_CFLAGS="" 8292 SHLIB_SUFFIX=".so" 8293 8294 LD_LIBRARY_PATH_VAR="LIBPATH" 8295 8296 # Check to enable 64-bit flags for compiler/linker 8297 if test "$do64bit" = yes; then 8298 8299 if test "$GCC" = yes; then 8300 8301 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8302echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8303 8304else 8305 8306 do64bit_ok=yes 8307 CFLAGS="$CFLAGS -q64" 8308 LDFLAGS_ARCH="-q64" 8309 RANLIB="${RANLIB} -X64" 8310 AR="${AR} -X64" 8311 SHLIB_LD_FLAGS="-b64" 8312 8313fi 8314 8315 8316fi 8317 8318 8319 if test "`uname -m`" = ia64; then 8320 8321 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8322 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8323 if test "$GCC" = yes; then 8324 8325 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8326 8327else 8328 8329 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8330 8331fi 8332 8333 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8334 8335else 8336 8337 if test "$GCC" = yes; then 8338 8339 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8340 8341else 8342 8343 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8344 LDFLAGS="$LDFLAGS -brtl" 8345 8346fi 8347 8348 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8349 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8350 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8351 8352fi 8353 8354 ;; 8355 BeOS*) 8356 SHLIB_CFLAGS="-fPIC" 8357 SHLIB_LD='${CC} -nostart' 8358 SHLIB_SUFFIX=".so" 8359 8360 #----------------------------------------------------------- 8361 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8362 # -lsocket, even if the network functions are in -lnet which 8363 # is always linked to, for compatibility. 8364 #----------------------------------------------------------- 8365 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8366echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8367if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8368 echo $ECHO_N "(cached) $ECHO_C" >&6 8369else 8370 ac_check_lib_save_LIBS=$LIBS 8371LIBS="-lbind $LIBS" 8372cat >conftest.$ac_ext <<_ACEOF 8373/* confdefs.h. */ 8374_ACEOF 8375cat confdefs.h >>conftest.$ac_ext 8376cat >>conftest.$ac_ext <<_ACEOF 8377/* end confdefs.h. */ 8378 8379/* Override any GCC internal prototype to avoid an error. 8380 Use char because int might match the return type of a GCC 8381 builtin and then its argument prototype would still apply. */ 8382#ifdef __cplusplus 8383extern "C" 8384#endif 8385char inet_ntoa (); 8386int 8387main () 8388{ 8389return inet_ntoa (); 8390 ; 8391 return 0; 8392} 8393_ACEOF 8394rm -f conftest.$ac_objext conftest$ac_exeext 8395if { (ac_try="$ac_link" 8396case "(($ac_try" in 8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8398 *) ac_try_echo=$ac_try;; 8399esac 8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8401 (eval "$ac_link") 2>conftest.er1 8402 ac_status=$? 8403 grep -v '^ *+' conftest.er1 >conftest.err 8404 rm -f conftest.er1 8405 cat conftest.err >&5 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 (exit $ac_status); } && { 8408 test -z "$ac_c_werror_flag" || 8409 test ! -s conftest.err 8410 } && test -s conftest$ac_exeext && 8411 $as_test_x conftest$ac_exeext; then 8412 ac_cv_lib_bind_inet_ntoa=yes 8413else 8414 echo "$as_me: failed program was:" >&5 8415sed 's/^/| /' conftest.$ac_ext >&5 8416 8417 ac_cv_lib_bind_inet_ntoa=no 8418fi 8419 8420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8421 conftest$ac_exeext conftest.$ac_ext 8422LIBS=$ac_check_lib_save_LIBS 8423fi 8424{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8425echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8426if test $ac_cv_lib_bind_inet_ntoa = yes; then 8427 LIBS="$LIBS -lbind -lsocket" 8428fi 8429 8430 ;; 8431 BSD/OS-4.*) 8432 SHLIB_CFLAGS="-export-dynamic -fPIC" 8433 SHLIB_LD='${CC} -shared' 8434 SHLIB_SUFFIX=".so" 8435 LDFLAGS="$LDFLAGS -export-dynamic" 8436 CC_SEARCH_FLAGS="" 8437 LD_SEARCH_FLAGS="" 8438 ;; 8439 CYGWIN_*) 8440 SHLIB_CFLAGS="" 8441 SHLIB_LD='${CC} -shared' 8442 SHLIB_SUFFIX=".dll" 8443 EXE_SUFFIX=".exe" 8444 CC_SEARCH_FLAGS="" 8445 LD_SEARCH_FLAGS="" 8446 ;; 8447 Haiku*) 8448 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8449 SHLIB_CFLAGS="-fPIC" 8450 SHLIB_SUFFIX=".so" 8451 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8452 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8453echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8454if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8455 echo $ECHO_N "(cached) $ECHO_C" >&6 8456else 8457 ac_check_lib_save_LIBS=$LIBS 8458LIBS="-lnetwork $LIBS" 8459cat >conftest.$ac_ext <<_ACEOF 8460/* confdefs.h. */ 8461_ACEOF 8462cat confdefs.h >>conftest.$ac_ext 8463cat >>conftest.$ac_ext <<_ACEOF 8464/* end confdefs.h. */ 8465 8466/* Override any GCC internal prototype to avoid an error. 8467 Use char because int might match the return type of a GCC 8468 builtin and then its argument prototype would still apply. */ 8469#ifdef __cplusplus 8470extern "C" 8471#endif 8472char inet_ntoa (); 8473int 8474main () 8475{ 8476return inet_ntoa (); 8477 ; 8478 return 0; 8479} 8480_ACEOF 8481rm -f conftest.$ac_objext conftest$ac_exeext 8482if { (ac_try="$ac_link" 8483case "(($ac_try" in 8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8485 *) ac_try_echo=$ac_try;; 8486esac 8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8488 (eval "$ac_link") 2>conftest.er1 8489 ac_status=$? 8490 grep -v '^ *+' conftest.er1 >conftest.err 8491 rm -f conftest.er1 8492 cat conftest.err >&5 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8494 (exit $ac_status); } && { 8495 test -z "$ac_c_werror_flag" || 8496 test ! -s conftest.err 8497 } && test -s conftest$ac_exeext && 8498 $as_test_x conftest$ac_exeext; then 8499 ac_cv_lib_network_inet_ntoa=yes 8500else 8501 echo "$as_me: failed program was:" >&5 8502sed 's/^/| /' conftest.$ac_ext >&5 8503 8504 ac_cv_lib_network_inet_ntoa=no 8505fi 8506 8507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8508 conftest$ac_exeext conftest.$ac_ext 8509LIBS=$ac_check_lib_save_LIBS 8510fi 8511{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8512echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8513if test $ac_cv_lib_network_inet_ntoa = yes; then 8514 LIBS="$LIBS -lnetwork" 8515fi 8516 8517 ;; 8518 HP-UX-*.11.*) 8519 # Use updated header definitions where possible 8520 8521cat >>confdefs.h <<\_ACEOF 8522#define _XOPEN_SOURCE_EXTENDED 1 8523_ACEOF 8524 8525 # TEA specific: Needed by Tcl, but not most extensions 8526 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8527 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8528 8529 if test "`uname -m`" = ia64; then 8530 8531 SHLIB_SUFFIX=".so" 8532 # Use newer C++ library for C++ extensions 8533 #if test "$GCC" != "yes" ; then 8534 # CPPFLAGS="-AA" 8535 #fi 8536 8537else 8538 8539 SHLIB_SUFFIX=".sl" 8540 8541fi 8542 8543 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8544echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8545if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8546 echo $ECHO_N "(cached) $ECHO_C" >&6 8547else 8548 ac_check_lib_save_LIBS=$LIBS 8549LIBS="-ldld $LIBS" 8550cat >conftest.$ac_ext <<_ACEOF 8551/* confdefs.h. */ 8552_ACEOF 8553cat confdefs.h >>conftest.$ac_ext 8554cat >>conftest.$ac_ext <<_ACEOF 8555/* end confdefs.h. */ 8556 8557/* Override any GCC internal prototype to avoid an error. 8558 Use char because int might match the return type of a GCC 8559 builtin and then its argument prototype would still apply. */ 8560#ifdef __cplusplus 8561extern "C" 8562#endif 8563char shl_load (); 8564int 8565main () 8566{ 8567return shl_load (); 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572rm -f conftest.$ac_objext conftest$ac_exeext 8573if { (ac_try="$ac_link" 8574case "(($ac_try" in 8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8576 *) ac_try_echo=$ac_try;; 8577esac 8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8579 (eval "$ac_link") 2>conftest.er1 8580 ac_status=$? 8581 grep -v '^ *+' conftest.er1 >conftest.err 8582 rm -f conftest.er1 8583 cat conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); } && { 8586 test -z "$ac_c_werror_flag" || 8587 test ! -s conftest.err 8588 } && test -s conftest$ac_exeext && 8589 $as_test_x conftest$ac_exeext; then 8590 ac_cv_lib_dld_shl_load=yes 8591else 8592 echo "$as_me: failed program was:" >&5 8593sed 's/^/| /' conftest.$ac_ext >&5 8594 8595 ac_cv_lib_dld_shl_load=no 8596fi 8597 8598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8599 conftest$ac_exeext conftest.$ac_ext 8600LIBS=$ac_check_lib_save_LIBS 8601fi 8602{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8603echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8604if test $ac_cv_lib_dld_shl_load = yes; then 8605 tcl_ok=yes 8606else 8607 tcl_ok=no 8608fi 8609 8610 if test "$tcl_ok" = yes; then 8611 8612 LDFLAGS="$LDFLAGS -E" 8613 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8614 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8615 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8616 8617fi 8618 8619 if test "$GCC" = yes; then 8620 8621 SHLIB_LD='${CC} -shared' 8622 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8623 8624else 8625 8626 CFLAGS="$CFLAGS -z" 8627 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8628 #CFLAGS="$CFLAGS +DAportable" 8629 SHLIB_CFLAGS="+z" 8630 SHLIB_LD="ld -b" 8631 8632fi 8633 8634 8635 # Check to enable 64-bit flags for compiler/linker 8636 if test "$do64bit" = "yes"; then 8637 8638 if test "$GCC" = yes; then 8639 8640 case `${CC} -dumpmachine` in 8641 hppa64*) 8642 # 64-bit gcc in use. Fix flags for GNU ld. 8643 do64bit_ok=yes 8644 SHLIB_LD='${CC} -shared' 8645 if test $doRpath = yes; then 8646 8647 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8648fi 8649 8650 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8651 ;; 8652 *) 8653 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8654echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8655 ;; 8656 esac 8657 8658else 8659 8660 do64bit_ok=yes 8661 CFLAGS="$CFLAGS +DD64" 8662 LDFLAGS_ARCH="+DD64" 8663 8664fi 8665 8666 8667fi 8668 ;; 8669 IRIX-6.*) 8670 SHLIB_CFLAGS="" 8671 SHLIB_LD="ld -n32 -shared -rdata_shared" 8672 SHLIB_SUFFIX=".so" 8673 if test $doRpath = yes; then 8674 8675 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8676 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8677fi 8678 8679 if test "$GCC" = yes; then 8680 8681 CFLAGS="$CFLAGS -mabi=n32" 8682 LDFLAGS="$LDFLAGS -mabi=n32" 8683 8684else 8685 8686 case $system in 8687 IRIX-6.3) 8688 # Use to build 6.2 compatible binaries on 6.3. 8689 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8690 ;; 8691 *) 8692 CFLAGS="$CFLAGS -n32" 8693 ;; 8694 esac 8695 LDFLAGS="$LDFLAGS -n32" 8696 8697fi 8698 8699 ;; 8700 IRIX64-6.*) 8701 SHLIB_CFLAGS="" 8702 SHLIB_LD="ld -n32 -shared -rdata_shared" 8703 SHLIB_SUFFIX=".so" 8704 if test $doRpath = yes; then 8705 8706 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8707 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8708fi 8709 8710 8711 # Check to enable 64-bit flags for compiler/linker 8712 8713 if test "$do64bit" = yes; then 8714 8715 if test "$GCC" = yes; then 8716 8717 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8718echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8719 8720else 8721 8722 do64bit_ok=yes 8723 SHLIB_LD="ld -64 -shared -rdata_shared" 8724 CFLAGS="$CFLAGS -64" 8725 LDFLAGS_ARCH="-64" 8726 8727fi 8728 8729 8730fi 8731 8732 ;; 8733 Linux*) 8734 SHLIB_CFLAGS="-fPIC" 8735 SHLIB_SUFFIX=".so" 8736 8737 # TEA specific: 8738 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8739 8740 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8741 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8742 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8743 if test $doRpath = yes; then 8744 8745 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8746fi 8747 8748 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8749 if test "`uname -m`" = "alpha"; then 8750 CFLAGS="$CFLAGS -mieee" 8751fi 8752 8753 if test $do64bit = yes; then 8754 8755 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8756echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8757if test "${tcl_cv_cc_m64+set}" = set; then 8758 echo $ECHO_N "(cached) $ECHO_C" >&6 8759else 8760 8761 hold_cflags=$CFLAGS 8762 CFLAGS="$CFLAGS -m64" 8763 cat >conftest.$ac_ext <<_ACEOF 8764/* confdefs.h. */ 8765_ACEOF 8766cat confdefs.h >>conftest.$ac_ext 8767cat >>conftest.$ac_ext <<_ACEOF 8768/* end confdefs.h. */ 8769 8770int 8771main () 8772{ 8773 8774 ; 8775 return 0; 8776} 8777_ACEOF 8778rm -f conftest.$ac_objext conftest$ac_exeext 8779if { (ac_try="$ac_link" 8780case "(($ac_try" in 8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8782 *) ac_try_echo=$ac_try;; 8783esac 8784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8785 (eval "$ac_link") 2>conftest.er1 8786 ac_status=$? 8787 grep -v '^ *+' conftest.er1 >conftest.err 8788 rm -f conftest.er1 8789 cat conftest.err >&5 8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8791 (exit $ac_status); } && { 8792 test -z "$ac_c_werror_flag" || 8793 test ! -s conftest.err 8794 } && test -s conftest$ac_exeext && 8795 $as_test_x conftest$ac_exeext; then 8796 tcl_cv_cc_m64=yes 8797else 8798 echo "$as_me: failed program was:" >&5 8799sed 's/^/| /' conftest.$ac_ext >&5 8800 8801 tcl_cv_cc_m64=no 8802fi 8803 8804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8805 conftest$ac_exeext conftest.$ac_ext 8806 CFLAGS=$hold_cflags 8807fi 8808{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8809echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8810 if test $tcl_cv_cc_m64 = yes; then 8811 8812 CFLAGS="$CFLAGS -m64" 8813 do64bit_ok=yes 8814 8815fi 8816 8817 8818fi 8819 8820 8821 # The combo of gcc + glibc has a bug related to inlining of 8822 # functions like strtod(). The -fno-builtin flag should address 8823 # this problem but it does not work. The -fno-inline flag is kind 8824 # of overkill but it works. Disable inlining only when one of the 8825 # files in compat/*.c is being linked in. 8826 8827 if test x"${USE_COMPAT}" != x; then 8828 CFLAGS="$CFLAGS -fno-inline" 8829fi 8830 8831 8832 ;; 8833 GNU*) 8834 SHLIB_CFLAGS="-fPIC" 8835 SHLIB_SUFFIX=".so" 8836 8837 SHLIB_LD='${CC} -shared' 8838 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8839 CC_SEARCH_FLAGS="" 8840 LD_SEARCH_FLAGS="" 8841 if test "`uname -m`" = "alpha"; then 8842 CFLAGS="$CFLAGS -mieee" 8843fi 8844 8845 ;; 8846 Lynx*) 8847 SHLIB_CFLAGS="-fPIC" 8848 SHLIB_SUFFIX=".so" 8849 CFLAGS_OPTIMIZE=-02 8850 SHLIB_LD='${CC} -shared' 8851 LD_FLAGS="-Wl,--export-dynamic" 8852 if test $doRpath = yes; then 8853 8854 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8855 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8856fi 8857 8858 ;; 8859 OpenBSD-*) 8860 SHLIB_CFLAGS="-fPIC" 8861 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8862 SHLIB_SUFFIX=".so" 8863 if test $doRpath = yes; then 8864 8865 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8866fi 8867 8868 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8869 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8870 { echo "$as_me:$LINENO: checking for ELF" >&5 8871echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8872if test "${tcl_cv_ld_elf+set}" = set; then 8873 echo $ECHO_N "(cached) $ECHO_C" >&6 8874else 8875 8876 cat >conftest.$ac_ext <<_ACEOF 8877/* confdefs.h. */ 8878_ACEOF 8879cat confdefs.h >>conftest.$ac_ext 8880cat >>conftest.$ac_ext <<_ACEOF 8881/* end confdefs.h. */ 8882 8883#ifdef __ELF__ 8884 yes 8885#endif 8886 8887_ACEOF 8888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8889 $EGREP "yes" >/dev/null 2>&1; then 8890 tcl_cv_ld_elf=yes 8891else 8892 tcl_cv_ld_elf=no 8893fi 8894rm -f -r conftest* 8895 8896fi 8897{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8898echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8899 if test $tcl_cv_ld_elf = yes; then 8900 8901 LDFLAGS=-Wl,-export-dynamic 8902 8903else 8904 LDFLAGS="" 8905fi 8906 8907 if test "${TCL_THREADS}" = "1"; then 8908 8909 # OpenBSD builds and links with -pthread, never -lpthread. 8910 LIBS=`echo $LIBS | sed s/-lpthread//` 8911 CFLAGS="$CFLAGS -pthread" 8912 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8913 8914fi 8915 8916 # OpenBSD doesn't do version numbers with dots. 8917 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8918 TCL_LIB_VERSIONS_OK=nodots 8919 ;; 8920 NetBSD-*|FreeBSD-[3-4].*) 8921 # FreeBSD 3.* and greater have ELF. 8922 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8923 SHLIB_CFLAGS="-fPIC" 8924 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8925 SHLIB_SUFFIX=".so" 8926 LDFLAGS="$LDFLAGS -export-dynamic" 8927 if test $doRpath = yes; then 8928 8929 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8930fi 8931 8932 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8933 if test "${TCL_THREADS}" = "1"; then 8934 8935 # The -pthread needs to go in the CFLAGS, not LIBS 8936 LIBS=`echo $LIBS | sed s/-pthread//` 8937 CFLAGS="$CFLAGS -pthread" 8938 LDFLAGS="$LDFLAGS -pthread" 8939 8940fi 8941 8942 case $system in 8943 FreeBSD-3.*) 8944 # FreeBSD-3 doesn't handle version numbers with dots. 8945 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8946 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8947 TCL_LIB_VERSIONS_OK=nodots 8948 ;; 8949 esac 8950 ;; 8951 FreeBSD-*) 8952 # This configuration from FreeBSD Ports. 8953 SHLIB_CFLAGS="-fPIC" 8954 SHLIB_LD="${CC} -shared" 8955 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8956 SHLIB_SUFFIX=".so" 8957 LDFLAGS="" 8958 if test $doRpath = yes; then 8959 8960 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8961 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8962fi 8963 8964 if test "${TCL_THREADS}" = "1"; then 8965 8966 # The -pthread needs to go in the LDFLAGS, not LIBS 8967 LIBS=`echo $LIBS | sed s/-pthread//` 8968 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8969 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8970fi 8971 8972 # Version numbers are dot-stripped by system policy. 8973 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8974 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8975 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8976 TCL_LIB_VERSIONS_OK=nodots 8977 ;; 8978 Darwin-*) 8979 CFLAGS_OPTIMIZE="-Os" 8980 SHLIB_CFLAGS="-fno-common" 8981 # To avoid discrepancies between what headers configure sees during 8982 # preprocessing tests and compiling tests, move any -isysroot and 8983 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8984 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8985 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8986 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8987 CFLAGS="`echo " ${CFLAGS}" | \ 8988 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8989 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8990 if test $do64bit = yes; then 8991 8992 case `arch` in 8993 ppc) 8994 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8995echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8996if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8997 echo $ECHO_N "(cached) $ECHO_C" >&6 8998else 8999 9000 hold_cflags=$CFLAGS 9001 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9002 cat >conftest.$ac_ext <<_ACEOF 9003/* confdefs.h. */ 9004_ACEOF 9005cat confdefs.h >>conftest.$ac_ext 9006cat >>conftest.$ac_ext <<_ACEOF 9007/* end confdefs.h. */ 9008 9009int 9010main () 9011{ 9012 9013 ; 9014 return 0; 9015} 9016_ACEOF 9017rm -f conftest.$ac_objext conftest$ac_exeext 9018if { (ac_try="$ac_link" 9019case "(($ac_try" in 9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9021 *) ac_try_echo=$ac_try;; 9022esac 9023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9024 (eval "$ac_link") 2>conftest.er1 9025 ac_status=$? 9026 grep -v '^ *+' conftest.er1 >conftest.err 9027 rm -f conftest.er1 9028 cat conftest.err >&5 9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9030 (exit $ac_status); } && { 9031 test -z "$ac_c_werror_flag" || 9032 test ! -s conftest.err 9033 } && test -s conftest$ac_exeext && 9034 $as_test_x conftest$ac_exeext; then 9035 tcl_cv_cc_arch_ppc64=yes 9036else 9037 echo "$as_me: failed program was:" >&5 9038sed 's/^/| /' conftest.$ac_ext >&5 9039 9040 tcl_cv_cc_arch_ppc64=no 9041fi 9042 9043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9044 conftest$ac_exeext conftest.$ac_ext 9045 CFLAGS=$hold_cflags 9046fi 9047{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9048echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9049 if test $tcl_cv_cc_arch_ppc64 = yes; then 9050 9051 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9052 do64bit_ok=yes 9053 9054fi 9055;; 9056 i386) 9057 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9058echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9059if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9060 echo $ECHO_N "(cached) $ECHO_C" >&6 9061else 9062 9063 hold_cflags=$CFLAGS 9064 CFLAGS="$CFLAGS -arch x86_64" 9065 cat >conftest.$ac_ext <<_ACEOF 9066/* confdefs.h. */ 9067_ACEOF 9068cat confdefs.h >>conftest.$ac_ext 9069cat >>conftest.$ac_ext <<_ACEOF 9070/* end confdefs.h. */ 9071 9072int 9073main () 9074{ 9075 9076 ; 9077 return 0; 9078} 9079_ACEOF 9080rm -f conftest.$ac_objext conftest$ac_exeext 9081if { (ac_try="$ac_link" 9082case "(($ac_try" in 9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9084 *) ac_try_echo=$ac_try;; 9085esac 9086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9087 (eval "$ac_link") 2>conftest.er1 9088 ac_status=$? 9089 grep -v '^ *+' conftest.er1 >conftest.err 9090 rm -f conftest.er1 9091 cat conftest.err >&5 9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9093 (exit $ac_status); } && { 9094 test -z "$ac_c_werror_flag" || 9095 test ! -s conftest.err 9096 } && test -s conftest$ac_exeext && 9097 $as_test_x conftest$ac_exeext; then 9098 tcl_cv_cc_arch_x86_64=yes 9099else 9100 echo "$as_me: failed program was:" >&5 9101sed 's/^/| /' conftest.$ac_ext >&5 9102 9103 tcl_cv_cc_arch_x86_64=no 9104fi 9105 9106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9107 conftest$ac_exeext conftest.$ac_ext 9108 CFLAGS=$hold_cflags 9109fi 9110{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9111echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9112 if test $tcl_cv_cc_arch_x86_64 = yes; then 9113 9114 CFLAGS="$CFLAGS -arch x86_64" 9115 do64bit_ok=yes 9116 9117fi 9118;; 9119 *) 9120 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9121echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9122 esac 9123 9124else 9125 9126 # Check for combined 32-bit and 64-bit fat build 9127 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9128 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9129 9130 fat_32_64=yes 9131fi 9132 9133 9134fi 9135 9136 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9137 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9138 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9139echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9140if test "${tcl_cv_ld_single_module+set}" = set; then 9141 echo $ECHO_N "(cached) $ECHO_C" >&6 9142else 9143 9144 hold_ldflags=$LDFLAGS 9145 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9146 cat >conftest.$ac_ext <<_ACEOF 9147/* confdefs.h. */ 9148_ACEOF 9149cat confdefs.h >>conftest.$ac_ext 9150cat >>conftest.$ac_ext <<_ACEOF 9151/* end confdefs.h. */ 9152 9153int 9154main () 9155{ 9156int i; 9157 ; 9158 return 0; 9159} 9160_ACEOF 9161rm -f conftest.$ac_objext conftest$ac_exeext 9162if { (ac_try="$ac_link" 9163case "(($ac_try" in 9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9165 *) ac_try_echo=$ac_try;; 9166esac 9167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9168 (eval "$ac_link") 2>conftest.er1 9169 ac_status=$? 9170 grep -v '^ *+' conftest.er1 >conftest.err 9171 rm -f conftest.er1 9172 cat conftest.err >&5 9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9174 (exit $ac_status); } && { 9175 test -z "$ac_c_werror_flag" || 9176 test ! -s conftest.err 9177 } && test -s conftest$ac_exeext && 9178 $as_test_x conftest$ac_exeext; then 9179 tcl_cv_ld_single_module=yes 9180else 9181 echo "$as_me: failed program was:" >&5 9182sed 's/^/| /' conftest.$ac_ext >&5 9183 9184 tcl_cv_ld_single_module=no 9185fi 9186 9187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9188 conftest$ac_exeext conftest.$ac_ext 9189 LDFLAGS=$hold_ldflags 9190fi 9191{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9192echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9193 if test $tcl_cv_ld_single_module = yes; then 9194 9195 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9196 9197fi 9198 9199 # TEA specific: link shlib with current and compatiblity version flags 9200 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9201 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9202 SHLIB_SUFFIX=".dylib" 9203 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9204 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9205 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9206 9207 LDFLAGS="$LDFLAGS -prebind" 9208fi 9209 9210 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9211 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9212echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9213if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9214 echo $ECHO_N "(cached) $ECHO_C" >&6 9215else 9216 9217 hold_ldflags=$LDFLAGS 9218 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9219 cat >conftest.$ac_ext <<_ACEOF 9220/* confdefs.h. */ 9221_ACEOF 9222cat confdefs.h >>conftest.$ac_ext 9223cat >>conftest.$ac_ext <<_ACEOF 9224/* end confdefs.h. */ 9225 9226int 9227main () 9228{ 9229int i; 9230 ; 9231 return 0; 9232} 9233_ACEOF 9234rm -f conftest.$ac_objext conftest$ac_exeext 9235if { (ac_try="$ac_link" 9236case "(($ac_try" in 9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9238 *) ac_try_echo=$ac_try;; 9239esac 9240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9241 (eval "$ac_link") 2>conftest.er1 9242 ac_status=$? 9243 grep -v '^ *+' conftest.er1 >conftest.err 9244 rm -f conftest.er1 9245 cat conftest.err >&5 9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9247 (exit $ac_status); } && { 9248 test -z "$ac_c_werror_flag" || 9249 test ! -s conftest.err 9250 } && test -s conftest$ac_exeext && 9251 $as_test_x conftest$ac_exeext; then 9252 tcl_cv_ld_search_paths_first=yes 9253else 9254 echo "$as_me: failed program was:" >&5 9255sed 's/^/| /' conftest.$ac_ext >&5 9256 9257 tcl_cv_ld_search_paths_first=no 9258fi 9259 9260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9261 conftest$ac_exeext conftest.$ac_ext 9262 LDFLAGS=$hold_ldflags 9263fi 9264{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9265echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9266 if test $tcl_cv_ld_search_paths_first = yes; then 9267 9268 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9269 9270fi 9271 9272 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9273 9274 9275cat >>confdefs.h <<\_ACEOF 9276#define MODULE_SCOPE __private_extern__ 9277_ACEOF 9278 9279 tcl_cv_cc_visibility_hidden=yes 9280 9281fi 9282 9283 CC_SEARCH_FLAGS="" 9284 LD_SEARCH_FLAGS="" 9285 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9286 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9287 # extensions, verify that 64-bit build is possible. 9288 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9289 9290 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9291 9292 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9293echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9294if test "${tcl_cv_lib_x11_64+set}" = set; then 9295 echo $ECHO_N "(cached) $ECHO_C" >&6 9296else 9297 9298 for v in CFLAGS CPPFLAGS LDFLAGS; do 9299 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9300 done 9301 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9302 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9303 cat >conftest.$ac_ext <<_ACEOF 9304/* confdefs.h. */ 9305_ACEOF 9306cat confdefs.h >>conftest.$ac_ext 9307cat >>conftest.$ac_ext <<_ACEOF 9308/* end confdefs.h. */ 9309#include <X11/Xlib.h> 9310int 9311main () 9312{ 9313XrmInitialize(); 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318rm -f conftest.$ac_objext conftest$ac_exeext 9319if { (ac_try="$ac_link" 9320case "(($ac_try" in 9321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9322 *) ac_try_echo=$ac_try;; 9323esac 9324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9325 (eval "$ac_link") 2>conftest.er1 9326 ac_status=$? 9327 grep -v '^ *+' conftest.er1 >conftest.err 9328 rm -f conftest.er1 9329 cat conftest.err >&5 9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9331 (exit $ac_status); } && { 9332 test -z "$ac_c_werror_flag" || 9333 test ! -s conftest.err 9334 } && test -s conftest$ac_exeext && 9335 $as_test_x conftest$ac_exeext; then 9336 tcl_cv_lib_x11_64=yes 9337else 9338 echo "$as_me: failed program was:" >&5 9339sed 's/^/| /' conftest.$ac_ext >&5 9340 9341 tcl_cv_lib_x11_64=no 9342fi 9343 9344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9345 conftest$ac_exeext conftest.$ac_ext 9346 for v in CFLAGS CPPFLAGS LDFLAGS; do 9347 eval $v'="$hold_'$v'"' 9348 done 9349fi 9350{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9351echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9352 9353fi 9354 9355 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9356 9357 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9358echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9359if test "${tcl_cv_lib_tk_64+set}" = set; then 9360 echo $ECHO_N "(cached) $ECHO_C" >&6 9361else 9362 9363 for v in CFLAGS CPPFLAGS LDFLAGS; do 9364 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9365 done 9366 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9367 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9368 cat >conftest.$ac_ext <<_ACEOF 9369/* confdefs.h. */ 9370_ACEOF 9371cat confdefs.h >>conftest.$ac_ext 9372cat >>conftest.$ac_ext <<_ACEOF 9373/* end confdefs.h. */ 9374#include <tk.h> 9375int 9376main () 9377{ 9378Tk_InitStubs(NULL, "", 0); 9379 ; 9380 return 0; 9381} 9382_ACEOF 9383rm -f conftest.$ac_objext conftest$ac_exeext 9384if { (ac_try="$ac_link" 9385case "(($ac_try" in 9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9387 *) ac_try_echo=$ac_try;; 9388esac 9389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9390 (eval "$ac_link") 2>conftest.er1 9391 ac_status=$? 9392 grep -v '^ *+' conftest.er1 >conftest.err 9393 rm -f conftest.er1 9394 cat conftest.err >&5 9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9396 (exit $ac_status); } && { 9397 test -z "$ac_c_werror_flag" || 9398 test ! -s conftest.err 9399 } && test -s conftest$ac_exeext && 9400 $as_test_x conftest$ac_exeext; then 9401 tcl_cv_lib_tk_64=yes 9402else 9403 echo "$as_me: failed program was:" >&5 9404sed 's/^/| /' conftest.$ac_ext >&5 9405 9406 tcl_cv_lib_tk_64=no 9407fi 9408 9409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9410 conftest$ac_exeext conftest.$ac_ext 9411 for v in CFLAGS CPPFLAGS LDFLAGS; do 9412 eval $v'="$hold_'$v'"' 9413 done 9414fi 9415{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9416echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9417 9418fi 9419 9420 # remove 64-bit arch flags from CFLAGS et al. if configuration 9421 # does not support 64-bit. 9422 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9423 9424 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9425echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9426 for v in CFLAGS CPPFLAGS LDFLAGS; do 9427 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9428 done 9429fi 9430 9431 9432fi 9433 9434 ;; 9435 OS/390-*) 9436 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9437 9438cat >>confdefs.h <<\_ACEOF 9439#define _OE_SOCKETS 1 9440_ACEOF 9441 9442 ;; 9443 OSF1-V*) 9444 # Digital OSF/1 9445 SHLIB_CFLAGS="" 9446 if test "$SHARED_BUILD" = 1; then 9447 9448 SHLIB_LD='ld -shared -expect_unresolved "*"' 9449 9450else 9451 9452 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9453 9454fi 9455 9456 SHLIB_SUFFIX=".so" 9457 if test $doRpath = yes; then 9458 9459 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9460 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9461fi 9462 9463 if test "$GCC" = yes; then 9464 CFLAGS="$CFLAGS -mieee" 9465else 9466 9467 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9468fi 9469 9470 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9471 if test "${TCL_THREADS}" = 1; then 9472 9473 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9474 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9475 LIBS=`echo $LIBS | sed s/-lpthreads//` 9476 if test "$GCC" = yes; then 9477 9478 LIBS="$LIBS -lpthread -lmach -lexc" 9479 9480else 9481 9482 CFLAGS="$CFLAGS -pthread" 9483 LDFLAGS="$LDFLAGS -pthread" 9484 9485fi 9486 9487 9488fi 9489 9490 ;; 9491 QNX-6*) 9492 # QNX RTP 9493 # This may work for all QNX, but it was only reported for v6. 9494 SHLIB_CFLAGS="-fPIC" 9495 SHLIB_LD="ld -Bshareable -x" 9496 SHLIB_LD_LIBS="" 9497 SHLIB_SUFFIX=".so" 9498 CC_SEARCH_FLAGS="" 9499 LD_SEARCH_FLAGS="" 9500 ;; 9501 SCO_SV-3.2*) 9502 if test "$GCC" = yes; then 9503 9504 SHLIB_CFLAGS="-fPIC -melf" 9505 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9506 9507else 9508 9509 SHLIB_CFLAGS="-Kpic -belf" 9510 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9511 9512fi 9513 9514 SHLIB_LD="ld -G" 9515 SHLIB_LD_LIBS="" 9516 SHLIB_SUFFIX=".so" 9517 CC_SEARCH_FLAGS="" 9518 LD_SEARCH_FLAGS="" 9519 ;; 9520 SunOS-5.[0-6]) 9521 # Careful to not let 5.10+ fall into this case 9522 9523 # Note: If _REENTRANT isn't defined, then Solaris 9524 # won't define thread-safe library routines. 9525 9526 9527cat >>confdefs.h <<\_ACEOF 9528#define _REENTRANT 1 9529_ACEOF 9530 9531 9532cat >>confdefs.h <<\_ACEOF 9533#define _POSIX_PTHREAD_SEMANTICS 1 9534_ACEOF 9535 9536 9537 SHLIB_CFLAGS="-KPIC" 9538 SHLIB_SUFFIX=".so" 9539 if test "$GCC" = yes; then 9540 9541 SHLIB_LD='${CC} -shared' 9542 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9543 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9544 9545else 9546 9547 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9548 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9549 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9550 9551fi 9552 9553 ;; 9554 SunOS-5*) 9555 # Note: If _REENTRANT isn't defined, then Solaris 9556 # won't define thread-safe library routines. 9557 9558 9559cat >>confdefs.h <<\_ACEOF 9560#define _REENTRANT 1 9561_ACEOF 9562 9563 9564cat >>confdefs.h <<\_ACEOF 9565#define _POSIX_PTHREAD_SEMANTICS 1 9566_ACEOF 9567 9568 9569 SHLIB_CFLAGS="-KPIC" 9570 9571 # Check to enable 64-bit flags for compiler/linker 9572 if test "$do64bit" = yes; then 9573 9574 arch=`isainfo` 9575 if test "$arch" = "sparcv9 sparc"; then 9576 9577 if test "$GCC" = yes; then 9578 9579 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9580 9581 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9582echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9583 9584else 9585 9586 do64bit_ok=yes 9587 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9588 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9589 SHLIB_CFLAGS="-fPIC" 9590 9591fi 9592 9593 9594else 9595 9596 do64bit_ok=yes 9597 if test "$do64bitVIS" = yes; then 9598 9599 CFLAGS="$CFLAGS -xarch=v9a" 9600 LDFLAGS_ARCH="-xarch=v9a" 9601 9602else 9603 9604 CFLAGS="$CFLAGS -xarch=v9" 9605 LDFLAGS_ARCH="-xarch=v9" 9606 9607fi 9608 9609 # Solaris 64 uses this as well 9610 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9611 9612fi 9613 9614 9615else 9616 if test "$arch" = "amd64 i386"; then 9617 9618 if test "$GCC" = yes; then 9619 9620 case $system in 9621 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9622 do64bit_ok=yes 9623 CFLAGS="$CFLAGS -m64" 9624 LDFLAGS="$LDFLAGS -m64";; 9625 *) 9626 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9627echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9628 esac 9629 9630else 9631 9632 do64bit_ok=yes 9633 case $system in 9634 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9635 CFLAGS="$CFLAGS -m64" 9636 LDFLAGS="$LDFLAGS -m64";; 9637 *) 9638 CFLAGS="$CFLAGS -xarch=amd64" 9639 LDFLAGS="$LDFLAGS -xarch=amd64";; 9640 esac 9641 9642fi 9643 9644 9645else 9646 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9647echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9648fi 9649 9650fi 9651 9652 9653fi 9654 9655 9656 SHLIB_SUFFIX=".so" 9657 if test "$GCC" = yes; then 9658 9659 SHLIB_LD='${CC} -shared' 9660 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9661 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9662 if test "$do64bit_ok" = yes; then 9663 9664 if test "$arch" = "sparcv9 sparc"; then 9665 9666 # We need to specify -static-libgcc or we need to 9667 # add the path to the sparv9 libgcc. 9668 # JH: static-libgcc is necessary for core Tcl, but may 9669 # not be necessary for extensions. 9670 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9671 # for finding sparcv9 libgcc, get the regular libgcc 9672 # path, remove so name and append 'sparcv9' 9673 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9674 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9675 9676else 9677 if test "$arch" = "amd64 i386"; then 9678 9679 # JH: static-libgcc is necessary for core Tcl, but may 9680 # not be necessary for extensions. 9681 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9682 9683fi 9684 9685fi 9686 9687 9688fi 9689 9690 9691else 9692 9693 case $system in 9694 SunOS-5.[1-9][0-9]*) 9695 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9696 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9697 *) 9698 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9699 esac 9700 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9701 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9702 9703fi 9704 9705 ;; 9706 esac 9707 9708 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9709 9710 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9711echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9712 9713fi 9714 9715 9716 9717 9718 # Add in the arch flags late to ensure it wasn't removed. 9719 # Not necessary in TEA, but this is aligned with core 9720 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9721 9722 # If we're running gcc, then change the C flags for compiling shared 9723 # libraries to the right flags for gcc, instead of those for the 9724 # standard manufacturer compiler. 9725 9726 if test "$GCC" = yes; then 9727 9728 case $system in 9729 AIX-*) ;; 9730 BSD/OS*) ;; 9731 CYGWIN_*) ;; 9732 IRIX*) ;; 9733 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9734 Darwin-*) ;; 9735 SCO_SV-3.2*) ;; 9736 windows) ;; 9737 *) SHLIB_CFLAGS="-fPIC" ;; 9738 esac 9739fi 9740 9741 9742 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9743 9744 9745cat >>confdefs.h <<\_ACEOF 9746#define MODULE_SCOPE extern 9747_ACEOF 9748 9749 9750cat >>confdefs.h <<\_ACEOF 9751#define NO_VIZ 9752_ACEOF 9753 9754 9755fi 9756 9757 9758 if test "$SHARED_LIB_SUFFIX" = ""; then 9759 9760 # TEA specific: use PACKAGE_VERSION instead of VERSION 9761 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9762fi 9763 9764 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9765 9766 # TEA specific: use PACKAGE_VERSION instead of VERSION 9767 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9768fi 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 # These must be called after we do the basic CFLAGS checks and 9784 # verify any possible 64-bit or similar switches are necessary 9785 9786 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9787echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9788 tcl_flags="" 9789 9790 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9791 echo $ECHO_N "(cached) $ECHO_C" >&6 9792else 9793 cat >conftest.$ac_ext <<_ACEOF 9794/* confdefs.h. */ 9795_ACEOF 9796cat confdefs.h >>conftest.$ac_ext 9797cat >>conftest.$ac_ext <<_ACEOF 9798/* end confdefs.h. */ 9799#include <stdlib.h> 9800int 9801main () 9802{ 9803char *p = (char *)strtoll; char *q = (char *)strtoull; 9804 ; 9805 return 0; 9806} 9807_ACEOF 9808rm -f conftest.$ac_objext 9809if { (ac_try="$ac_compile" 9810case "(($ac_try" in 9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9812 *) ac_try_echo=$ac_try;; 9813esac 9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9815 (eval "$ac_compile") 2>conftest.er1 9816 ac_status=$? 9817 grep -v '^ *+' conftest.er1 >conftest.err 9818 rm -f conftest.er1 9819 cat conftest.err >&5 9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9821 (exit $ac_status); } && { 9822 test -z "$ac_c_werror_flag" || 9823 test ! -s conftest.err 9824 } && test -s conftest.$ac_objext; then 9825 tcl_cv_flag__isoc99_source=no 9826else 9827 echo "$as_me: failed program was:" >&5 9828sed 's/^/| /' conftest.$ac_ext >&5 9829 9830 cat >conftest.$ac_ext <<_ACEOF 9831/* confdefs.h. */ 9832_ACEOF 9833cat confdefs.h >>conftest.$ac_ext 9834cat >>conftest.$ac_ext <<_ACEOF 9835/* end confdefs.h. */ 9836#define _ISOC99_SOURCE 1 9837#include <stdlib.h> 9838int 9839main () 9840{ 9841char *p = (char *)strtoll; char *q = (char *)strtoull; 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846rm -f conftest.$ac_objext 9847if { (ac_try="$ac_compile" 9848case "(($ac_try" in 9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9850 *) ac_try_echo=$ac_try;; 9851esac 9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9853 (eval "$ac_compile") 2>conftest.er1 9854 ac_status=$? 9855 grep -v '^ *+' conftest.er1 >conftest.err 9856 rm -f conftest.er1 9857 cat conftest.err >&5 9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9859 (exit $ac_status); } && { 9860 test -z "$ac_c_werror_flag" || 9861 test ! -s conftest.err 9862 } && test -s conftest.$ac_objext; then 9863 tcl_cv_flag__isoc99_source=yes 9864else 9865 echo "$as_me: failed program was:" >&5 9866sed 's/^/| /' conftest.$ac_ext >&5 9867 9868 tcl_cv_flag__isoc99_source=no 9869fi 9870 9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9872fi 9873 9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9875fi 9876 9877 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9878 9879cat >>confdefs.h <<\_ACEOF 9880#define _ISOC99_SOURCE 1 9881_ACEOF 9882 9883 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9884 fi 9885 9886 9887 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9888 echo $ECHO_N "(cached) $ECHO_C" >&6 9889else 9890 cat >conftest.$ac_ext <<_ACEOF 9891/* confdefs.h. */ 9892_ACEOF 9893cat confdefs.h >>conftest.$ac_ext 9894cat >>conftest.$ac_ext <<_ACEOF 9895/* end confdefs.h. */ 9896#include <sys/stat.h> 9897int 9898main () 9899{ 9900struct stat64 buf; int i = stat64("/", &buf); 9901 ; 9902 return 0; 9903} 9904_ACEOF 9905rm -f conftest.$ac_objext 9906if { (ac_try="$ac_compile" 9907case "(($ac_try" in 9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9909 *) ac_try_echo=$ac_try;; 9910esac 9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9912 (eval "$ac_compile") 2>conftest.er1 9913 ac_status=$? 9914 grep -v '^ *+' conftest.er1 >conftest.err 9915 rm -f conftest.er1 9916 cat conftest.err >&5 9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9918 (exit $ac_status); } && { 9919 test -z "$ac_c_werror_flag" || 9920 test ! -s conftest.err 9921 } && test -s conftest.$ac_objext; then 9922 tcl_cv_flag__largefile64_source=no 9923else 9924 echo "$as_me: failed program was:" >&5 9925sed 's/^/| /' conftest.$ac_ext >&5 9926 9927 cat >conftest.$ac_ext <<_ACEOF 9928/* confdefs.h. */ 9929_ACEOF 9930cat confdefs.h >>conftest.$ac_ext 9931cat >>conftest.$ac_ext <<_ACEOF 9932/* end confdefs.h. */ 9933#define _LARGEFILE64_SOURCE 1 9934#include <sys/stat.h> 9935int 9936main () 9937{ 9938struct stat64 buf; int i = stat64("/", &buf); 9939 ; 9940 return 0; 9941} 9942_ACEOF 9943rm -f conftest.$ac_objext 9944if { (ac_try="$ac_compile" 9945case "(($ac_try" in 9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9947 *) ac_try_echo=$ac_try;; 9948esac 9949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9950 (eval "$ac_compile") 2>conftest.er1 9951 ac_status=$? 9952 grep -v '^ *+' conftest.er1 >conftest.err 9953 rm -f conftest.er1 9954 cat conftest.err >&5 9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9956 (exit $ac_status); } && { 9957 test -z "$ac_c_werror_flag" || 9958 test ! -s conftest.err 9959 } && test -s conftest.$ac_objext; then 9960 tcl_cv_flag__largefile64_source=yes 9961else 9962 echo "$as_me: failed program was:" >&5 9963sed 's/^/| /' conftest.$ac_ext >&5 9964 9965 tcl_cv_flag__largefile64_source=no 9966fi 9967 9968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9969fi 9970 9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972fi 9973 9974 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9975 9976cat >>confdefs.h <<\_ACEOF 9977#define _LARGEFILE64_SOURCE 1 9978_ACEOF 9979 9980 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9981 fi 9982 9983 9984 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9985 echo $ECHO_N "(cached) $ECHO_C" >&6 9986else 9987 cat >conftest.$ac_ext <<_ACEOF 9988/* confdefs.h. */ 9989_ACEOF 9990cat confdefs.h >>conftest.$ac_ext 9991cat >>conftest.$ac_ext <<_ACEOF 9992/* end confdefs.h. */ 9993#include <sys/stat.h> 9994int 9995main () 9996{ 9997char *p = (char *)open64; 9998 ; 9999 return 0; 10000} 10001_ACEOF 10002rm -f conftest.$ac_objext 10003if { (ac_try="$ac_compile" 10004case "(($ac_try" in 10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10006 *) ac_try_echo=$ac_try;; 10007esac 10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10009 (eval "$ac_compile") 2>conftest.er1 10010 ac_status=$? 10011 grep -v '^ *+' conftest.er1 >conftest.err 10012 rm -f conftest.er1 10013 cat conftest.err >&5 10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10015 (exit $ac_status); } && { 10016 test -z "$ac_c_werror_flag" || 10017 test ! -s conftest.err 10018 } && test -s conftest.$ac_objext; then 10019 tcl_cv_flag__largefile_source64=no 10020else 10021 echo "$as_me: failed program was:" >&5 10022sed 's/^/| /' conftest.$ac_ext >&5 10023 10024 cat >conftest.$ac_ext <<_ACEOF 10025/* confdefs.h. */ 10026_ACEOF 10027cat confdefs.h >>conftest.$ac_ext 10028cat >>conftest.$ac_ext <<_ACEOF 10029/* end confdefs.h. */ 10030#define _LARGEFILE_SOURCE64 1 10031#include <sys/stat.h> 10032int 10033main () 10034{ 10035char *p = (char *)open64; 10036 ; 10037 return 0; 10038} 10039_ACEOF 10040rm -f conftest.$ac_objext 10041if { (ac_try="$ac_compile" 10042case "(($ac_try" in 10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10044 *) ac_try_echo=$ac_try;; 10045esac 10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10047 (eval "$ac_compile") 2>conftest.er1 10048 ac_status=$? 10049 grep -v '^ *+' conftest.er1 >conftest.err 10050 rm -f conftest.er1 10051 cat conftest.err >&5 10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10053 (exit $ac_status); } && { 10054 test -z "$ac_c_werror_flag" || 10055 test ! -s conftest.err 10056 } && test -s conftest.$ac_objext; then 10057 tcl_cv_flag__largefile_source64=yes 10058else 10059 echo "$as_me: failed program was:" >&5 10060sed 's/^/| /' conftest.$ac_ext >&5 10061 10062 tcl_cv_flag__largefile_source64=no 10063fi 10064 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067 10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10069fi 10070 10071 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10072 10073cat >>confdefs.h <<\_ACEOF 10074#define _LARGEFILE_SOURCE64 1 10075_ACEOF 10076 10077 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10078 fi 10079 10080 if test "x${tcl_flags}" = "x" ; then 10081 { echo "$as_me:$LINENO: result: none" >&5 10082echo "${ECHO_T}none" >&6; } 10083 else 10084 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10085echo "${ECHO_T}${tcl_flags}" >&6; } 10086 fi 10087 10088 10089 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10090echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10091 if test "${tcl_cv_type_64bit+set}" = set; then 10092 echo $ECHO_N "(cached) $ECHO_C" >&6 10093else 10094 10095 tcl_cv_type_64bit=none 10096 # See if the compiler knows natively about __int64 10097 cat >conftest.$ac_ext <<_ACEOF 10098/* confdefs.h. */ 10099_ACEOF 10100cat confdefs.h >>conftest.$ac_ext 10101cat >>conftest.$ac_ext <<_ACEOF 10102/* end confdefs.h. */ 10103 10104int 10105main () 10106{ 10107__int64 value = (__int64) 0; 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112rm -f conftest.$ac_objext 10113if { (ac_try="$ac_compile" 10114case "(($ac_try" in 10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10116 *) ac_try_echo=$ac_try;; 10117esac 10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10119 (eval "$ac_compile") 2>conftest.er1 10120 ac_status=$? 10121 grep -v '^ *+' conftest.er1 >conftest.err 10122 rm -f conftest.er1 10123 cat conftest.err >&5 10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10125 (exit $ac_status); } && { 10126 test -z "$ac_c_werror_flag" || 10127 test ! -s conftest.err 10128 } && test -s conftest.$ac_objext; then 10129 tcl_type_64bit=__int64 10130else 10131 echo "$as_me: failed program was:" >&5 10132sed 's/^/| /' conftest.$ac_ext >&5 10133 10134 tcl_type_64bit="long long" 10135fi 10136 10137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10138 # See if we should use long anyway Note that we substitute in the 10139 # type that is our current guess for a 64-bit type inside this check 10140 # program, so it should be modified only carefully... 10141 cat >conftest.$ac_ext <<_ACEOF 10142/* confdefs.h. */ 10143_ACEOF 10144cat confdefs.h >>conftest.$ac_ext 10145cat >>conftest.$ac_ext <<_ACEOF 10146/* end confdefs.h. */ 10147 10148int 10149main () 10150{ 10151switch (0) { 10152 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10153 } 10154 ; 10155 return 0; 10156} 10157_ACEOF 10158rm -f conftest.$ac_objext 10159if { (ac_try="$ac_compile" 10160case "(($ac_try" in 10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10162 *) ac_try_echo=$ac_try;; 10163esac 10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10165 (eval "$ac_compile") 2>conftest.er1 10166 ac_status=$? 10167 grep -v '^ *+' conftest.er1 >conftest.err 10168 rm -f conftest.er1 10169 cat conftest.err >&5 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 (exit $ac_status); } && { 10172 test -z "$ac_c_werror_flag" || 10173 test ! -s conftest.err 10174 } && test -s conftest.$ac_objext; then 10175 tcl_cv_type_64bit=${tcl_type_64bit} 10176else 10177 echo "$as_me: failed program was:" >&5 10178sed 's/^/| /' conftest.$ac_ext >&5 10179 10180 10181fi 10182 10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10184fi 10185 10186 if test "${tcl_cv_type_64bit}" = none ; then 10187 10188cat >>confdefs.h <<\_ACEOF 10189#define TCL_WIDE_INT_IS_LONG 1 10190_ACEOF 10191 10192 { echo "$as_me:$LINENO: result: using long" >&5 10193echo "${ECHO_T}using long" >&6; } 10194 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10195 -a "${TEA_PLATFORM}" = "windows" ; then 10196 # TEA specific: We actually want to use the default tcl.h checks in 10197 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10198 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10199echo "${ECHO_T}using Tcl header defaults" >&6; } 10200 else 10201 10202cat >>confdefs.h <<_ACEOF 10203#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10204_ACEOF 10205 10206 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10207echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10208 10209 # Now check for auxiliary declarations 10210 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10211echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10212if test "${tcl_cv_struct_dirent64+set}" = set; then 10213 echo $ECHO_N "(cached) $ECHO_C" >&6 10214else 10215 10216 cat >conftest.$ac_ext <<_ACEOF 10217/* confdefs.h. */ 10218_ACEOF 10219cat confdefs.h >>conftest.$ac_ext 10220cat >>conftest.$ac_ext <<_ACEOF 10221/* end confdefs.h. */ 10222#include <sys/types.h> 10223#include <sys/dirent.h> 10224int 10225main () 10226{ 10227struct dirent64 p; 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232rm -f conftest.$ac_objext 10233if { (ac_try="$ac_compile" 10234case "(($ac_try" in 10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10236 *) ac_try_echo=$ac_try;; 10237esac 10238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10239 (eval "$ac_compile") 2>conftest.er1 10240 ac_status=$? 10241 grep -v '^ *+' conftest.er1 >conftest.err 10242 rm -f conftest.er1 10243 cat conftest.err >&5 10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10245 (exit $ac_status); } && { 10246 test -z "$ac_c_werror_flag" || 10247 test ! -s conftest.err 10248 } && test -s conftest.$ac_objext; then 10249 tcl_cv_struct_dirent64=yes 10250else 10251 echo "$as_me: failed program was:" >&5 10252sed 's/^/| /' conftest.$ac_ext >&5 10253 10254 tcl_cv_struct_dirent64=no 10255fi 10256 10257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10258fi 10259{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10260echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10261 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10262 10263cat >>confdefs.h <<\_ACEOF 10264#define HAVE_STRUCT_DIRENT64 1 10265_ACEOF 10266 10267 fi 10268 10269 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10270echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10271if test "${tcl_cv_struct_stat64+set}" = set; then 10272 echo $ECHO_N "(cached) $ECHO_C" >&6 10273else 10274 10275 cat >conftest.$ac_ext <<_ACEOF 10276/* confdefs.h. */ 10277_ACEOF 10278cat confdefs.h >>conftest.$ac_ext 10279cat >>conftest.$ac_ext <<_ACEOF 10280/* end confdefs.h. */ 10281#include <sys/stat.h> 10282int 10283main () 10284{ 10285struct stat64 p; 10286 10287 ; 10288 return 0; 10289} 10290_ACEOF 10291rm -f conftest.$ac_objext 10292if { (ac_try="$ac_compile" 10293case "(($ac_try" in 10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10295 *) ac_try_echo=$ac_try;; 10296esac 10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10298 (eval "$ac_compile") 2>conftest.er1 10299 ac_status=$? 10300 grep -v '^ *+' conftest.er1 >conftest.err 10301 rm -f conftest.er1 10302 cat conftest.err >&5 10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); } && { 10305 test -z "$ac_c_werror_flag" || 10306 test ! -s conftest.err 10307 } && test -s conftest.$ac_objext; then 10308 tcl_cv_struct_stat64=yes 10309else 10310 echo "$as_me: failed program was:" >&5 10311sed 's/^/| /' conftest.$ac_ext >&5 10312 10313 tcl_cv_struct_stat64=no 10314fi 10315 10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10317fi 10318{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10319echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10320 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10321 10322cat >>confdefs.h <<\_ACEOF 10323#define HAVE_STRUCT_STAT64 1 10324_ACEOF 10325 10326 fi 10327 10328 10329 10330for ac_func in open64 lseek64 10331do 10332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10333{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10336 echo $ECHO_N "(cached) $ECHO_C" >&6 10337else 10338 cat >conftest.$ac_ext <<_ACEOF 10339/* confdefs.h. */ 10340_ACEOF 10341cat confdefs.h >>conftest.$ac_ext 10342cat >>conftest.$ac_ext <<_ACEOF 10343/* end confdefs.h. */ 10344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10345 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10346#define $ac_func innocuous_$ac_func 10347 10348/* System header to define __stub macros and hopefully few prototypes, 10349 which can conflict with char $ac_func (); below. 10350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10351 <limits.h> exists even on freestanding compilers. */ 10352 10353#ifdef __STDC__ 10354# include <limits.h> 10355#else 10356# include <assert.h> 10357#endif 10358 10359#undef $ac_func 10360 10361/* Override any GCC internal prototype to avoid an error. 10362 Use char because int might match the return type of a GCC 10363 builtin and then its argument prototype would still apply. */ 10364#ifdef __cplusplus 10365extern "C" 10366#endif 10367char $ac_func (); 10368/* The GNU C library defines this for functions which it implements 10369 to always fail with ENOSYS. Some functions are actually named 10370 something starting with __ and the normal name is an alias. */ 10371#if defined __stub_$ac_func || defined __stub___$ac_func 10372choke me 10373#endif 10374 10375int 10376main () 10377{ 10378return $ac_func (); 10379 ; 10380 return 0; 10381} 10382_ACEOF 10383rm -f conftest.$ac_objext conftest$ac_exeext 10384if { (ac_try="$ac_link" 10385case "(($ac_try" in 10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10387 *) ac_try_echo=$ac_try;; 10388esac 10389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10390 (eval "$ac_link") 2>conftest.er1 10391 ac_status=$? 10392 grep -v '^ *+' conftest.er1 >conftest.err 10393 rm -f conftest.er1 10394 cat conftest.err >&5 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); } && { 10397 test -z "$ac_c_werror_flag" || 10398 test ! -s conftest.err 10399 } && test -s conftest$ac_exeext && 10400 $as_test_x conftest$ac_exeext; then 10401 eval "$as_ac_var=yes" 10402else 10403 echo "$as_me: failed program was:" >&5 10404sed 's/^/| /' conftest.$ac_ext >&5 10405 10406 eval "$as_ac_var=no" 10407fi 10408 10409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10410 conftest$ac_exeext conftest.$ac_ext 10411fi 10412ac_res=`eval echo '${'$as_ac_var'}'` 10413 { echo "$as_me:$LINENO: result: $ac_res" >&5 10414echo "${ECHO_T}$ac_res" >&6; } 10415if test `eval echo '${'$as_ac_var'}'` = yes; then 10416 cat >>confdefs.h <<_ACEOF 10417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10418_ACEOF 10419 10420fi 10421done 10422 10423 { echo "$as_me:$LINENO: checking for off64_t" >&5 10424echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10425 if test "${tcl_cv_type_off64_t+set}" = set; then 10426 echo $ECHO_N "(cached) $ECHO_C" >&6 10427else 10428 10429 cat >conftest.$ac_ext <<_ACEOF 10430/* confdefs.h. */ 10431_ACEOF 10432cat confdefs.h >>conftest.$ac_ext 10433cat >>conftest.$ac_ext <<_ACEOF 10434/* end confdefs.h. */ 10435#include <sys/types.h> 10436int 10437main () 10438{ 10439off64_t offset; 10440 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445rm -f conftest.$ac_objext 10446if { (ac_try="$ac_compile" 10447case "(($ac_try" in 10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10449 *) ac_try_echo=$ac_try;; 10450esac 10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10452 (eval "$ac_compile") 2>conftest.er1 10453 ac_status=$? 10454 grep -v '^ *+' conftest.er1 >conftest.err 10455 rm -f conftest.er1 10456 cat conftest.err >&5 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); } && { 10459 test -z "$ac_c_werror_flag" || 10460 test ! -s conftest.err 10461 } && test -s conftest.$ac_objext; then 10462 tcl_cv_type_off64_t=yes 10463else 10464 echo "$as_me: failed program was:" >&5 10465sed 's/^/| /' conftest.$ac_ext >&5 10466 10467 tcl_cv_type_off64_t=no 10468fi 10469 10470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10471fi 10472 10473 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10474 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10475 test "x${ac_cv_func_open64}" = "xyes" ; then 10476 10477cat >>confdefs.h <<\_ACEOF 10478#define HAVE_TYPE_OFF64_T 1 10479_ACEOF 10480 10481 { echo "$as_me:$LINENO: result: yes" >&5 10482echo "${ECHO_T}yes" >&6; } 10483 else 10484 { echo "$as_me:$LINENO: result: no" >&5 10485echo "${ECHO_T}no" >&6; } 10486 fi 10487 fi 10488 10489 10490 10491#-------------------------------------------------------------------- 10492# Set the default compiler switches based on the --enable-symbols option. 10493#-------------------------------------------------------------------- 10494 10495 10496 10497 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10498echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10499 # Check whether --enable-symbols was given. 10500if test "${enable_symbols+set}" = set; then 10501 enableval=$enable_symbols; tcl_ok=$enableval 10502else 10503 tcl_ok=no 10504fi 10505 10506 DBGX="" 10507 if test "$tcl_ok" = "no"; then 10508 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10509 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10510 { echo "$as_me:$LINENO: result: no" >&5 10511echo "${ECHO_T}no" >&6; } 10512 else 10513 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10514 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10515 if test "$tcl_ok" = "yes"; then 10516 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10517echo "${ECHO_T}yes (standard debugging)" >&6; } 10518 fi 10519 fi 10520 # TEA specific: 10521 if test "${TEA_PLATFORM}" != "windows" ; then 10522 LDFLAGS_DEFAULT="${LDFLAGS}" 10523 fi 10524 10525 10526 10527 10528 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10529 10530cat >>confdefs.h <<\_ACEOF 10531#define TCL_MEM_DEBUG 1 10532_ACEOF 10533 10534 fi 10535 10536 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10537 if test "$tcl_ok" = "all"; then 10538 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10539echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10540 else 10541 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10542echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10543 fi 10544 fi 10545 10546 10547#-------------------------------------------------------------------- 10548# For Unix/Tk builds, make sure that the X libraries/headers are found. 10549# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 10550#-------------------------------------------------------------------- 10551 10552# See [Bug #82910] 10553#TEA_PATH_X 10554 10555#-------------------------------------------------------------------- 10556# Everyone should be linking against the Tcl stub library. If you 10557# can't for some reason, remove this definition. If you aren't using 10558# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10559# link against the non-stubbed Tcl library. 10560#-------------------------------------------------------------------- 10561 10562cat >>confdefs.h <<\_ACEOF 10563#define USE_TCL_STUBS 1 10564_ACEOF 10565 10566cat >>confdefs.h <<\_ACEOF 10567#define USE_TK_STUBS 1 10568_ACEOF 10569 10570 10571#-------------------------------------------------------------------- 10572# This macro generates a line to use when building a library. It 10573# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10574# and TEA_LOAD_TCLCONFIG macros above. 10575#-------------------------------------------------------------------- 10576 10577 10578 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10579 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10580 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10581 cat >conftest.$ac_ext <<_ACEOF 10582/* confdefs.h. */ 10583_ACEOF 10584cat confdefs.h >>conftest.$ac_ext 10585cat >>conftest.$ac_ext <<_ACEOF 10586/* end confdefs.h. */ 10587 10588#if defined(_MSC_VER) && _MSC_VER >= 1400 10589print("manifest needed") 10590#endif 10591 10592_ACEOF 10593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10594 $EGREP "manifest needed" >/dev/null 2>&1; then 10595 10596 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10597 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10598 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10599 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10600 10601 CLEANFILES="$CLEANFILES *.manifest" 10602 10603 10604fi 10605rm -f -r conftest* 10606 10607 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10608 else 10609 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10610 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10611 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10612 fi 10613 10614 if test "${SHARED_BUILD}" = "1" ; then 10615 MAKE_LIB="${MAKE_SHARED_LIB} " 10616 else 10617 MAKE_LIB="${MAKE_STATIC_LIB} " 10618 fi 10619 10620 #-------------------------------------------------------------------- 10621 # Shared libraries and static libraries have different names. 10622 # Use the double eval to make sure any variables in the suffix is 10623 # substituted. (@@@ Might not be necessary anymore) 10624 #-------------------------------------------------------------------- 10625 10626 if test "${TEA_PLATFORM}" = "windows" ; then 10627 if test "${SHARED_BUILD}" = "1" ; then 10628 # We force the unresolved linking of symbols that are really in 10629 # the private libraries of Tcl and Tk. 10630 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10631 if test x"${TK_BIN_DIR}" != x ; then 10632 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10633 fi 10634 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10635 else 10636 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10637 fi 10638 # Some packages build their own stubs libraries 10639 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10640 if test "$GCC" = "yes"; then 10641 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10642 fi 10643 # These aren't needed on Windows (either MSVC or gcc) 10644 RANLIB=: 10645 RANLIB_STUB=: 10646 else 10647 RANLIB_STUB="${RANLIB}" 10648 if test "${SHARED_BUILD}" = "1" ; then 10649 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10650 if test x"${TK_BIN_DIR}" != x ; then 10651 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10652 fi 10653 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10654 RANLIB=: 10655 else 10656 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10657 fi 10658 # Some packages build their own stubs libraries 10659 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10660 fi 10661 10662 # These are escaped so that only CFLAGS is picked up at configure time. 10663 # The other values will be substituted at make time. 10664 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10665 if test "${SHARED_BUILD}" = "1" ; then 10666 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10667 fi 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678#-------------------------------------------------------------------- 10679# __CHANGE__ 10680# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 10681#-------------------------------------------------------------------- 10682 10683#-------------------------------------------------------------------- 10684# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10685# file during the install process. Don't run the TCLSH_PROG through 10686# ${CYGPATH} because it's being used directly by make. 10687# Require that we use a tclsh shell version 8.2 or later since earlier 10688# versions have bugs in the pkg_mkIndex routine. 10689# Add WISH as well if this is a Tk extension. 10690#-------------------------------------------------------------------- 10691 10692 10693 { echo "$as_me:$LINENO: checking for tclsh" >&5 10694echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10695 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10696 # tclConfig.sh is in Tcl build directory 10697 if test "${TEA_PLATFORM}" = "windows"; then 10698 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10699 else 10700 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10701 fi 10702 else 10703 # tclConfig.sh is in install location 10704 if test "${TEA_PLATFORM}" = "windows"; then 10705 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10706 else 10707 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10708 fi 10709 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10710 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10711 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10712 for i in $list ; do 10713 if test -f "$i/${TCLSH_PROG}" ; then 10714 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10715 break 10716 fi 10717 done 10718 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10719 fi 10720 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10721echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10722 10723 10724 10725 { echo "$as_me:$LINENO: checking for wish" >&5 10726echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 10727 if test -f "${TK_BIN_DIR}/Makefile" ; then 10728 # tkConfig.sh is in Tk build directory 10729 if test "${TEA_PLATFORM}" = "windows"; then 10730 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 10731 else 10732 WISH_PROG="${TK_BIN_DIR}/wish" 10733 fi 10734 else 10735 # tkConfig.sh is in install location 10736 if test "${TEA_PLATFORM}" = "windows"; then 10737 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 10738 else 10739 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 10740 fi 10741 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 10742 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 10743 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 10744 for i in $list ; do 10745 if test -f "$i/${WISH_PROG}" ; then 10746 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 10747 break 10748 fi 10749 done 10750 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 10751 fi 10752 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 10753echo "${ECHO_T}${WISH_PROG}" >&6; } 10754 10755 10756 10757 #-------------------------------------------------------------------- 10758 # These are for tkimgConfig.sh 10759 #-------------------------------------------------------------------- 10760 10761 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) 10762 eval pkglibdir="${libdir}/tkimg${PACKAGE_VERSION}" 10763 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 10764 eval tkimg_LIB_FLAG="-ltkimg${PACKAGE_VERSION}${DBGX}" 10765 eval tkimg_STUB_LIB_FLAG="-ltkimgstub${PACKAGE_VERSION}${DBGX}" 10766 else 10767 eval tkimg_LIB_FLAG="-ltkimg`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" 10768 eval tkimg_STUB_LIB_FLAG="-ltkimgstub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" 10769 fi 10770 tkimg_BUILD_LIB_SPEC="-L`pwd` ${tkimg_LIB_FLAG}" 10771 tkimg_LIB_SPEC="-L${pkglibdir} ${tkimg_LIB_FLAG}" 10772 tkimg_BUILD_STUB_LIB_SPEC="-L`pwd` ${tkimg_STUB_LIB_FLAG}" 10773 tkimg_STUB_LIB_SPEC="-L${pkglibdir} ${tkimg_STUB_LIB_FLAG}" 10774 tkimg_BUILD_STUB_LIB_PATH="`pwd`/${PKG_STUB_LIB_FILE}" 10775 tkimg_STUB_LIB_PATH="${pkglibdir}/${PKG_STUB_LIB_FILE}" 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789#-------------------------------------------------------------------- 10790# Finally, substitute all of the various values into the Makefile. 10791# You may alternatively have a special pkgIndex.tcl.in or other files 10792# which require substituting th AC variables in. Include these here. 10793#-------------------------------------------------------------------- 10794 10795ac_config_files="$ac_config_files Makefile pkgIndex.tcl tkimgConfig.sh" 10796 10797cat >confcache <<\_ACEOF 10798# This file is a shell script that caches the results of configure 10799# tests run on this system so they can be shared between configure 10800# scripts and configure runs, see configure's option --config-cache. 10801# It is not useful on other systems. If it contains results you don't 10802# want to keep, you may remove or edit it. 10803# 10804# config.status only pays attention to the cache file if you give it 10805# the --recheck option to rerun configure. 10806# 10807# `ac_cv_env_foo' variables (set or unset) will be overridden when 10808# loading this file, other *unset* `ac_cv_foo' will be assigned the 10809# following values. 10810 10811_ACEOF 10812 10813# The following way of writing the cache mishandles newlines in values, 10814# but we know of no workaround that is simple, portable, and efficient. 10815# So, we kill variables containing newlines. 10816# Ultrix sh set writes to stderr and can't be redirected directly, 10817# and sets the high bit in the cache file unless we assign to the vars. 10818( 10819 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10820 eval ac_val=\$$ac_var 10821 case $ac_val in #( 10822 *${as_nl}*) 10823 case $ac_var in #( 10824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10825echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10826 esac 10827 case $ac_var in #( 10828 _ | IFS | as_nl) ;; #( 10829 *) $as_unset $ac_var ;; 10830 esac ;; 10831 esac 10832 done 10833 10834 (set) 2>&1 | 10835 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10836 *${as_nl}ac_space=\ *) 10837 # `set' does not quote correctly, so add quotes (double-quote 10838 # substitution turns \\\\ into \\, and sed turns \\ into \). 10839 sed -n \ 10840 "s/'/'\\\\''/g; 10841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10842 ;; #( 10843 *) 10844 # `set' quotes correctly as required by POSIX, so do not add quotes. 10845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10846 ;; 10847 esac | 10848 sort 10849) | 10850 sed ' 10851 /^ac_cv_env_/b end 10852 t clear 10853 :clear 10854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10855 t end 10856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10857 :end' >>confcache 10858if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10859 if test -w "$cache_file"; then 10860 test "x$cache_file" != "x/dev/null" && 10861 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10862echo "$as_me: updating cache $cache_file" >&6;} 10863 cat confcache >$cache_file 10864 else 10865 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10866echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10867 fi 10868fi 10869rm -f confcache 10870 10871test "x$prefix" = xNONE && prefix=$ac_default_prefix 10872# Let make expand exec_prefix. 10873test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10874 10875# Transform confdefs.h into DEFS. 10876# Protect against shell expansion while executing Makefile rules. 10877# Protect against Makefile macro expansion. 10878# 10879# If the first sed substitution is executed (which looks for macros that 10880# take arguments), then branch to the quote section. Otherwise, 10881# look for a macro that doesn't take arguments. 10882ac_script=' 10883t clear 10884:clear 10885s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10886t quote 10887s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10888t quote 10889b any 10890:quote 10891s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10892s/\[/\\&/g 10893s/\]/\\&/g 10894s/\$/$$/g 10895H 10896:any 10897${ 10898 g 10899 s/^\n// 10900 s/\n/ /g 10901 p 10902} 10903' 10904DEFS=`sed -n "$ac_script" confdefs.h` 10905 10906 10907ac_libobjs= 10908ac_ltlibobjs= 10909for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10910 # 1. Remove the extension, and $U if already installed. 10911 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10912 ac_i=`echo "$ac_i" | sed "$ac_script"` 10913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10914 # will be set to the directory where LIBOBJS objects are built. 10915 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10916 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10917done 10918LIBOBJS=$ac_libobjs 10919 10920LTLIBOBJS=$ac_ltlibobjs 10921 10922 10923CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10924 10925: ${CONFIG_STATUS=./config.status} 10926ac_clean_files_save=$ac_clean_files 10927ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10928{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10929echo "$as_me: creating $CONFIG_STATUS" >&6;} 10930cat >$CONFIG_STATUS <<_ACEOF 10931#! $SHELL 10932# Generated by $as_me. 10933# Run this file to recreate the current configuration. 10934# Compiler output produced by configure, useful for debugging 10935# configure, is in config.log if it exists. 10936 10937debug=false 10938ac_cs_recheck=false 10939ac_cs_silent=false 10940SHELL=\${CONFIG_SHELL-$SHELL} 10941_ACEOF 10942 10943cat >>$CONFIG_STATUS <<\_ACEOF 10944## --------------------- ## 10945## M4sh Initialization. ## 10946## --------------------- ## 10947 10948# Be more Bourne compatible 10949DUALCASE=1; export DUALCASE # for MKS sh 10950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10951 emulate sh 10952 NULLCMD=: 10953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10954 # is contrary to our usage. Disable this feature. 10955 alias -g '${1+"$@"}'='"$@"' 10956 setopt NO_GLOB_SUBST 10957else 10958 case `(set -o) 2>/dev/null` in 10959 *posix*) set -o posix ;; 10960esac 10961 10962fi 10963 10964 10965 10966 10967# PATH needs CR 10968# Avoid depending upon Character Ranges. 10969as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10970as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10971as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10972as_cr_digits='0123456789' 10973as_cr_alnum=$as_cr_Letters$as_cr_digits 10974 10975# The user is always right. 10976if test "${PATH_SEPARATOR+set}" != set; then 10977 echo "#! /bin/sh" >conf$$.sh 10978 echo "exit 0" >>conf$$.sh 10979 chmod +x conf$$.sh 10980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10981 PATH_SEPARATOR=';' 10982 else 10983 PATH_SEPARATOR=: 10984 fi 10985 rm -f conf$$.sh 10986fi 10987 10988# Support unset when possible. 10989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10990 as_unset=unset 10991else 10992 as_unset=false 10993fi 10994 10995 10996# IFS 10997# We need space, tab and new line, in precisely that order. Quoting is 10998# there to prevent editors from complaining about space-tab. 10999# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11000# splitting by setting IFS to empty value.) 11001as_nl=' 11002' 11003IFS=" "" $as_nl" 11004 11005# Find who we are. Look in the path if we contain no directory separator. 11006case $0 in 11007 *[\\/]* ) as_myself=$0 ;; 11008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11009for as_dir in $PATH 11010do 11011 IFS=$as_save_IFS 11012 test -z "$as_dir" && as_dir=. 11013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11014done 11015IFS=$as_save_IFS 11016 11017 ;; 11018esac 11019# We did not find ourselves, most probably we were run as `sh COMMAND' 11020# in which case we are not to be found in the path. 11021if test "x$as_myself" = x; then 11022 as_myself=$0 11023fi 11024if test ! -f "$as_myself"; then 11025 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11026 { (exit 1); exit 1; } 11027fi 11028 11029# Work around bugs in pre-3.0 UWIN ksh. 11030for as_var in ENV MAIL MAILPATH 11031do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11032done 11033PS1='$ ' 11034PS2='> ' 11035PS4='+ ' 11036 11037# NLS nuisances. 11038for as_var in \ 11039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11041 LC_TELEPHONE LC_TIME 11042do 11043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11044 eval $as_var=C; export $as_var 11045 else 11046 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11047 fi 11048done 11049 11050# Required to use basename. 11051if expr a : '\(a\)' >/dev/null 2>&1 && 11052 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11053 as_expr=expr 11054else 11055 as_expr=false 11056fi 11057 11058if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11059 as_basename=basename 11060else 11061 as_basename=false 11062fi 11063 11064 11065# Name of the executable. 11066as_me=`$as_basename -- "$0" || 11067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11068 X"$0" : 'X\(//\)$' \| \ 11069 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11070echo X/"$0" | 11071 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11072 s//\1/ 11073 q 11074 } 11075 /^X\/\(\/\/\)$/{ 11076 s//\1/ 11077 q 11078 } 11079 /^X\/\(\/\).*/{ 11080 s//\1/ 11081 q 11082 } 11083 s/.*/./; q'` 11084 11085# CDPATH. 11086$as_unset CDPATH 11087 11088 11089 11090 as_lineno_1=$LINENO 11091 as_lineno_2=$LINENO 11092 test "x$as_lineno_1" != "x$as_lineno_2" && 11093 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11094 11095 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11096 # uniformly replaced by the line number. The first 'sed' inserts a 11097 # line-number line after each line using $LINENO; the second 'sed' 11098 # does the real work. The second script uses 'N' to pair each 11099 # line-number line with the line containing $LINENO, and appends 11100 # trailing '-' during substitution so that $LINENO is not a special 11101 # case at line end. 11102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11103 # scripts with optimization help from Paolo Bonzini. Blame Lee 11104 # E. McMahon (1931-1989) for sed's syntax. :-) 11105 sed -n ' 11106 p 11107 /[$]LINENO/= 11108 ' <$as_myself | 11109 sed ' 11110 s/[$]LINENO.*/&-/ 11111 t lineno 11112 b 11113 :lineno 11114 N 11115 :loop 11116 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11117 t loop 11118 s/-\n.*// 11119 ' >$as_me.lineno && 11120 chmod +x "$as_me.lineno" || 11121 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11122 { (exit 1); exit 1; }; } 11123 11124 # Don't try to exec as it changes $[0], causing all sort of problems 11125 # (the dirname of $[0] is not the place where we might find the 11126 # original and so on. Autoconf is especially sensitive to this). 11127 . "./$as_me.lineno" 11128 # Exit status is that of the last command. 11129 exit 11130} 11131 11132 11133if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11134 as_dirname=dirname 11135else 11136 as_dirname=false 11137fi 11138 11139ECHO_C= ECHO_N= ECHO_T= 11140case `echo -n x` in 11141-n*) 11142 case `echo 'x\c'` in 11143 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11144 *) ECHO_C='\c';; 11145 esac;; 11146*) 11147 ECHO_N='-n';; 11148esac 11149 11150if expr a : '\(a\)' >/dev/null 2>&1 && 11151 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11152 as_expr=expr 11153else 11154 as_expr=false 11155fi 11156 11157rm -f conf$$ conf$$.exe conf$$.file 11158if test -d conf$$.dir; then 11159 rm -f conf$$.dir/conf$$.file 11160else 11161 rm -f conf$$.dir 11162 mkdir conf$$.dir 11163fi 11164echo >conf$$.file 11165if ln -s conf$$.file conf$$ 2>/dev/null; then 11166 as_ln_s='ln -s' 11167 # ... but there are two gotchas: 11168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11170 # In both cases, we have to default to `cp -p'. 11171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11172 as_ln_s='cp -p' 11173elif ln conf$$.file conf$$ 2>/dev/null; then 11174 as_ln_s=ln 11175else 11176 as_ln_s='cp -p' 11177fi 11178rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11179rmdir conf$$.dir 2>/dev/null 11180 11181if mkdir -p . 2>/dev/null; then 11182 as_mkdir_p=: 11183else 11184 test -d ./-p && rmdir ./-p 11185 as_mkdir_p=false 11186fi 11187 11188if test -x / >/dev/null 2>&1; then 11189 as_test_x='test -x' 11190else 11191 if ls -dL / >/dev/null 2>&1; then 11192 as_ls_L_option=L 11193 else 11194 as_ls_L_option= 11195 fi 11196 as_test_x=' 11197 eval sh -c '\'' 11198 if test -d "$1"; then 11199 test -d "$1/."; 11200 else 11201 case $1 in 11202 -*)set "./$1";; 11203 esac; 11204 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11205 ???[sx]*):;;*)false;;esac;fi 11206 '\'' sh 11207 ' 11208fi 11209as_executable_p=$as_test_x 11210 11211# Sed expression to map a string onto a valid CPP name. 11212as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11213 11214# Sed expression to map a string onto a valid variable name. 11215as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11216 11217 11218exec 6>&1 11219 11220# Save the log message, to keep $[0] and so on meaningful, and to 11221# report actual input values of CONFIG_FILES etc. instead of their 11222# values after options handling. 11223ac_log=" 11224This file was extended by tkimg $as_me 1.4, which was 11225generated by GNU Autoconf 2.61. Invocation command line was 11226 11227 CONFIG_FILES = $CONFIG_FILES 11228 CONFIG_HEADERS = $CONFIG_HEADERS 11229 CONFIG_LINKS = $CONFIG_LINKS 11230 CONFIG_COMMANDS = $CONFIG_COMMANDS 11231 $ $0 $@ 11232 11233on `(hostname || uname -n) 2>/dev/null | sed 1q` 11234" 11235 11236_ACEOF 11237 11238cat >>$CONFIG_STATUS <<_ACEOF 11239# Files that config.status was made for. 11240config_files="$ac_config_files" 11241 11242_ACEOF 11243 11244cat >>$CONFIG_STATUS <<\_ACEOF 11245ac_cs_usage="\ 11246\`$as_me' instantiates files from templates according to the 11247current configuration. 11248 11249Usage: $0 [OPTIONS] [FILE]... 11250 11251 -h, --help print this help, then exit 11252 -V, --version print version number and configuration settings, then exit 11253 -q, --quiet do not print progress messages 11254 -d, --debug don't remove temporary files 11255 --recheck update $as_me by reconfiguring in the same conditions 11256 --file=FILE[:TEMPLATE] 11257 instantiate the configuration file FILE 11258 11259Configuration files: 11260$config_files 11261 11262Report bugs to <bug-autoconf@gnu.org>." 11263 11264_ACEOF 11265cat >>$CONFIG_STATUS <<_ACEOF 11266ac_cs_version="\\ 11267tkimg config.status 1.4 11268configured by $0, generated by GNU Autoconf 2.61, 11269 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11270 11271Copyright (C) 2006 Free Software Foundation, Inc. 11272This config.status script is free software; the Free Software Foundation 11273gives unlimited permission to copy, distribute and modify it." 11274 11275ac_pwd='$ac_pwd' 11276srcdir='$srcdir' 11277INSTALL='$INSTALL' 11278_ACEOF 11279 11280cat >>$CONFIG_STATUS <<\_ACEOF 11281# If no file are specified by the user, then we need to provide default 11282# value. By we need to know if files were specified by the user. 11283ac_need_defaults=: 11284while test $# != 0 11285do 11286 case $1 in 11287 --*=*) 11288 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11290 ac_shift=: 11291 ;; 11292 *) 11293 ac_option=$1 11294 ac_optarg=$2 11295 ac_shift=shift 11296 ;; 11297 esac 11298 11299 case $ac_option in 11300 # Handling of the options. 11301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11302 ac_cs_recheck=: ;; 11303 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11304 echo "$ac_cs_version"; exit ;; 11305 --debug | --debu | --deb | --de | --d | -d ) 11306 debug=: ;; 11307 --file | --fil | --fi | --f ) 11308 $ac_shift 11309 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11310 ac_need_defaults=false;; 11311 --he | --h | --help | --hel | -h ) 11312 echo "$ac_cs_usage"; exit ;; 11313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11314 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11315 ac_cs_silent=: ;; 11316 11317 # This is an error. 11318 -*) { echo "$as_me: error: unrecognized option: $1 11319Try \`$0 --help' for more information." >&2 11320 { (exit 1); exit 1; }; } ;; 11321 11322 *) ac_config_targets="$ac_config_targets $1" 11323 ac_need_defaults=false ;; 11324 11325 esac 11326 shift 11327done 11328 11329ac_configure_extra_args= 11330 11331if $ac_cs_silent; then 11332 exec 6>/dev/null 11333 ac_configure_extra_args="$ac_configure_extra_args --silent" 11334fi 11335 11336_ACEOF 11337cat >>$CONFIG_STATUS <<_ACEOF 11338if \$ac_cs_recheck; then 11339 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11340 CONFIG_SHELL=$SHELL 11341 export CONFIG_SHELL 11342 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11343fi 11344 11345_ACEOF 11346cat >>$CONFIG_STATUS <<\_ACEOF 11347exec 5>>config.log 11348{ 11349 echo 11350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11351## Running $as_me. ## 11352_ASBOX 11353 echo "$ac_log" 11354} >&5 11355 11356_ACEOF 11357cat >>$CONFIG_STATUS <<_ACEOF 11358_ACEOF 11359 11360cat >>$CONFIG_STATUS <<\_ACEOF 11361 11362# Handling of arguments. 11363for ac_config_target in $ac_config_targets 11364do 11365 case $ac_config_target in 11366 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11367 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 11368 "tkimgConfig.sh") CONFIG_FILES="$CONFIG_FILES tkimgConfig.sh" ;; 11369 11370 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11371echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11372 { (exit 1); exit 1; }; };; 11373 esac 11374done 11375 11376 11377# If the user did not use the arguments to specify the items to instantiate, 11378# then the envvar interface is used. Set only those that are not. 11379# We use the long form for the default assignment because of an extremely 11380# bizarre bug on SunOS 4.1.3. 11381if $ac_need_defaults; then 11382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11383fi 11384 11385# Have a temporary directory for convenience. Make it in the build tree 11386# simply because there is no reason against having it here, and in addition, 11387# creating and moving files from /tmp can sometimes cause problems. 11388# Hook for its removal unless debugging. 11389# Note that there is a small window in which the directory will not be cleaned: 11390# after its creation but before its name has been assigned to `$tmp'. 11391$debug || 11392{ 11393 tmp= 11394 trap 'exit_status=$? 11395 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11396' 0 11397 trap '{ (exit 1); exit 1; }' 1 2 13 15 11398} 11399# Create a (secure) tmp directory for tmp files. 11400 11401{ 11402 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11403 test -n "$tmp" && test -d "$tmp" 11404} || 11405{ 11406 tmp=./conf$$-$RANDOM 11407 (umask 077 && mkdir "$tmp") 11408} || 11409{ 11410 echo "$me: cannot create a temporary directory in ." >&2 11411 { (exit 1); exit 1; } 11412} 11413 11414# 11415# Set up the sed scripts for CONFIG_FILES section. 11416# 11417 11418# No need to generate the scripts if there are no CONFIG_FILES. 11419# This happens for instance when ./config.status config.h 11420if test -n "$CONFIG_FILES"; then 11421 11422_ACEOF 11423 11424 11425 11426ac_delim='%!_!# ' 11427for ac_last_try in false false false false false :; do 11428 cat >conf$$subs.sed <<_ACEOF 11429SHELL!$SHELL$ac_delim 11430PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11431PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11432PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11433PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11434PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11435PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11436exec_prefix!$exec_prefix$ac_delim 11437prefix!$prefix$ac_delim 11438program_transform_name!$program_transform_name$ac_delim 11439bindir!$bindir$ac_delim 11440sbindir!$sbindir$ac_delim 11441libexecdir!$libexecdir$ac_delim 11442datarootdir!$datarootdir$ac_delim 11443datadir!$datadir$ac_delim 11444sysconfdir!$sysconfdir$ac_delim 11445sharedstatedir!$sharedstatedir$ac_delim 11446localstatedir!$localstatedir$ac_delim 11447includedir!$includedir$ac_delim 11448oldincludedir!$oldincludedir$ac_delim 11449docdir!$docdir$ac_delim 11450infodir!$infodir$ac_delim 11451htmldir!$htmldir$ac_delim 11452dvidir!$dvidir$ac_delim 11453pdfdir!$pdfdir$ac_delim 11454psdir!$psdir$ac_delim 11455libdir!$libdir$ac_delim 11456localedir!$localedir$ac_delim 11457mandir!$mandir$ac_delim 11458DEFS!$DEFS$ac_delim 11459ECHO_C!$ECHO_C$ac_delim 11460ECHO_N!$ECHO_N$ac_delim 11461ECHO_T!$ECHO_T$ac_delim 11462LIBS!$LIBS$ac_delim 11463build_alias!$build_alias$ac_delim 11464host_alias!$host_alias$ac_delim 11465target_alias!$target_alias$ac_delim 11466CYGPATH!$CYGPATH$ac_delim 11467EXEEXT!$EXEEXT$ac_delim 11468PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11469PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11470PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11471PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11472PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11473PKG_HEADERS!$PKG_HEADERS$ac_delim 11474PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11475PKG_LIBS!$PKG_LIBS$ac_delim 11476PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11477PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 11478TCL_VERSION!$TCL_VERSION$ac_delim 11479TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11480TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11481TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11482TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11483TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11484TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11485TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11486TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11487TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11488CLEANFILES!$CLEANFILES$ac_delim 11489TCL_LIBS!$TCL_LIBS$ac_delim 11490TCL_DEFS!$TCL_DEFS$ac_delim 11491TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11492TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11493TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11494TK_VERSION!$TK_VERSION$ac_delim 11495TK_BIN_DIR!$TK_BIN_DIR$ac_delim 11496TK_SRC_DIR!$TK_SRC_DIR$ac_delim 11497TK_LIB_FILE!$TK_LIB_FILE$ac_delim 11498TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 11499TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 11500TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 11501TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 11502TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 11503TK_LIBS!$TK_LIBS$ac_delim 11504TK_XINCLUDES!$TK_XINCLUDES$ac_delim 11505CC!$CC$ac_delim 11506CFLAGS!$CFLAGS$ac_delim 11507LDFLAGS!$LDFLAGS$ac_delim 11508CPPFLAGS!$CPPFLAGS$ac_delim 11509ac_ct_CC!$ac_ct_CC$ac_delim 11510OBJEXT!$OBJEXT$ac_delim 11511CPP!$CPP$ac_delim 11512INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11513INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11514INSTALL_DATA!$INSTALL_DATA$ac_delim 11515SET_MAKE!$SET_MAKE$ac_delim 11516RANLIB!$RANLIB$ac_delim 11517GREP!$GREP$ac_delim 11518EGREP!$EGREP$ac_delim 11519MATH_LIBS!$MATH_LIBS$ac_delim 11520PKG_SOURCES!$PKG_SOURCES$ac_delim 11521PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11522TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11523TK_INCLUDES!$TK_INCLUDES$ac_delim 11524TCL_THREADS!$TCL_THREADS$ac_delim 11525SHARED_BUILD!$SHARED_BUILD$ac_delim 11526_ACEOF 11527 11528 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11529 break 11530 elif $ac_last_try; then 11531 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11532echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11533 { (exit 1); exit 1; }; } 11534 else 11535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11536 fi 11537done 11538 11539ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11540if test -n "$ac_eof"; then 11541 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11542 ac_eof=`expr $ac_eof + 1` 11543fi 11544 11545cat >>$CONFIG_STATUS <<_ACEOF 11546cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11547/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11548_ACEOF 11549sed ' 11550s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11551s/^/s,@/; s/!/@,|#_!!_#|/ 11552:n 11553t n 11554s/'"$ac_delim"'$/,g/; t 11555s/$/\\/; p 11556N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11557' >>$CONFIG_STATUS <conf$$subs.sed 11558rm -f conf$$subs.sed 11559cat >>$CONFIG_STATUS <<_ACEOF 11560CEOF$ac_eof 11561_ACEOF 11562 11563 11564ac_delim='%!_!# ' 11565for ac_last_try in false false false false false :; do 11566 cat >conf$$subs.sed <<_ACEOF 11567AR!$AR$ac_delim 11568CELIB_DIR!$CELIB_DIR$ac_delim 11569CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11570CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11571CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11572STLIB_LD!$STLIB_LD$ac_delim 11573SHLIB_LD!$SHLIB_LD$ac_delim 11574SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11575SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11576LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11577CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11578LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11579TCL_DBGX!$TCL_DBGX$ac_delim 11580MAKE_LIB!$MAKE_LIB$ac_delim 11581MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11582MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11583MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11584RANLIB_STUB!$RANLIB_STUB$ac_delim 11585VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11586VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11587TCLSH_PROG!$TCLSH_PROG$ac_delim 11588WISH_PROG!$WISH_PROG$ac_delim 11589tkimg_BUILD_LIB_SPEC!$tkimg_BUILD_LIB_SPEC$ac_delim 11590tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 11591tkimg_BUILD_STUB_LIB_SPEC!$tkimg_BUILD_STUB_LIB_SPEC$ac_delim 11592tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 11593tkimg_BUILD_STUB_LIB_PATH!$tkimg_BUILD_STUB_LIB_PATH$ac_delim 11594tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 11595MAJOR_VERSION!$MAJOR_VERSION$ac_delim 11596MINOR_VERSION!$MINOR_VERSION$ac_delim 11597PATCHLEVEL!$PATCHLEVEL$ac_delim 11598LIBOBJS!$LIBOBJS$ac_delim 11599LTLIBOBJS!$LTLIBOBJS$ac_delim 11600_ACEOF 11601 11602 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then 11603 break 11604 elif $ac_last_try; then 11605 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11606echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11607 { (exit 1); exit 1; }; } 11608 else 11609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11610 fi 11611done 11612 11613ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11614if test -n "$ac_eof"; then 11615 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11616 ac_eof=`expr $ac_eof + 1` 11617fi 11618 11619cat >>$CONFIG_STATUS <<_ACEOF 11620cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11621/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11622_ACEOF 11623sed ' 11624s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11625s/^/s,@/; s/!/@,|#_!!_#|/ 11626:n 11627t n 11628s/'"$ac_delim"'$/,g/; t 11629s/$/\\/; p 11630N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11631' >>$CONFIG_STATUS <conf$$subs.sed 11632rm -f conf$$subs.sed 11633cat >>$CONFIG_STATUS <<_ACEOF 11634:end 11635s/|#_!!_#|//g 11636CEOF$ac_eof 11637_ACEOF 11638 11639 11640# VPATH may cause trouble with some makes, so we remove $(srcdir), 11641# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11642# trailing colons and then remove the whole line if VPATH becomes empty 11643# (actually we leave an empty line to preserve line numbers). 11644if test "x$srcdir" = x.; then 11645 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11646s/:*\$(srcdir):*/:/ 11647s/:*\${srcdir}:*/:/ 11648s/:*@srcdir@:*/:/ 11649s/^\([^=]*=[ ]*\):*/\1/ 11650s/:*$// 11651s/^[^=]*=[ ]*$// 11652}' 11653fi 11654 11655cat >>$CONFIG_STATUS <<\_ACEOF 11656fi # test -n "$CONFIG_FILES" 11657 11658 11659for ac_tag in :F $CONFIG_FILES 11660do 11661 case $ac_tag in 11662 :[FHLC]) ac_mode=$ac_tag; continue;; 11663 esac 11664 case $ac_mode$ac_tag in 11665 :[FHL]*:*);; 11666 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11667echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11668 { (exit 1); exit 1; }; };; 11669 :[FH]-) ac_tag=-:-;; 11670 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11671 esac 11672 ac_save_IFS=$IFS 11673 IFS=: 11674 set x $ac_tag 11675 IFS=$ac_save_IFS 11676 shift 11677 ac_file=$1 11678 shift 11679 11680 case $ac_mode in 11681 :L) ac_source=$1;; 11682 :[FH]) 11683 ac_file_inputs= 11684 for ac_f 11685 do 11686 case $ac_f in 11687 -) ac_f="$tmp/stdin";; 11688 *) # Look for the file first in the build tree, then in the source tree 11689 # (if the path is not absolute). The absolute path cannot be DOS-style, 11690 # because $ac_f cannot contain `:'. 11691 test -f "$ac_f" || 11692 case $ac_f in 11693 [\\/$]*) false;; 11694 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11695 esac || 11696 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11697echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11698 { (exit 1); exit 1; }; };; 11699 esac 11700 ac_file_inputs="$ac_file_inputs $ac_f" 11701 done 11702 11703 # Let's still pretend it is `configure' which instantiates (i.e., don't 11704 # use $as_me), people would be surprised to read: 11705 # /* config.h. Generated by config.status. */ 11706 configure_input="Generated from "`IFS=: 11707 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11708 if test x"$ac_file" != x-; then 11709 configure_input="$ac_file. $configure_input" 11710 { echo "$as_me:$LINENO: creating $ac_file" >&5 11711echo "$as_me: creating $ac_file" >&6;} 11712 fi 11713 11714 case $ac_tag in 11715 *:-:* | *:-) cat >"$tmp/stdin";; 11716 esac 11717 ;; 11718 esac 11719 11720 ac_dir=`$as_dirname -- "$ac_file" || 11721$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11722 X"$ac_file" : 'X\(//\)[^/]' \| \ 11723 X"$ac_file" : 'X\(//\)$' \| \ 11724 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11725echo X"$ac_file" | 11726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11727 s//\1/ 11728 q 11729 } 11730 /^X\(\/\/\)[^/].*/{ 11731 s//\1/ 11732 q 11733 } 11734 /^X\(\/\/\)$/{ 11735 s//\1/ 11736 q 11737 } 11738 /^X\(\/\).*/{ 11739 s//\1/ 11740 q 11741 } 11742 s/.*/./; q'` 11743 { as_dir="$ac_dir" 11744 case $as_dir in #( 11745 -*) as_dir=./$as_dir;; 11746 esac 11747 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11748 as_dirs= 11749 while :; do 11750 case $as_dir in #( 11751 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11752 *) as_qdir=$as_dir;; 11753 esac 11754 as_dirs="'$as_qdir' $as_dirs" 11755 as_dir=`$as_dirname -- "$as_dir" || 11756$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11757 X"$as_dir" : 'X\(//\)[^/]' \| \ 11758 X"$as_dir" : 'X\(//\)$' \| \ 11759 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11760echo X"$as_dir" | 11761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11762 s//\1/ 11763 q 11764 } 11765 /^X\(\/\/\)[^/].*/{ 11766 s//\1/ 11767 q 11768 } 11769 /^X\(\/\/\)$/{ 11770 s//\1/ 11771 q 11772 } 11773 /^X\(\/\).*/{ 11774 s//\1/ 11775 q 11776 } 11777 s/.*/./; q'` 11778 test -d "$as_dir" && break 11779 done 11780 test -z "$as_dirs" || eval "mkdir $as_dirs" 11781 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11782echo "$as_me: error: cannot create directory $as_dir" >&2;} 11783 { (exit 1); exit 1; }; }; } 11784 ac_builddir=. 11785 11786case "$ac_dir" in 11787.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11788*) 11789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11790 # A ".." for each directory in $ac_dir_suffix. 11791 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11792 case $ac_top_builddir_sub in 11793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11795 esac ;; 11796esac 11797ac_abs_top_builddir=$ac_pwd 11798ac_abs_builddir=$ac_pwd$ac_dir_suffix 11799# for backward compatibility: 11800ac_top_builddir=$ac_top_build_prefix 11801 11802case $srcdir in 11803 .) # We are building in place. 11804 ac_srcdir=. 11805 ac_top_srcdir=$ac_top_builddir_sub 11806 ac_abs_top_srcdir=$ac_pwd ;; 11807 [\\/]* | ?:[\\/]* ) # Absolute name. 11808 ac_srcdir=$srcdir$ac_dir_suffix; 11809 ac_top_srcdir=$srcdir 11810 ac_abs_top_srcdir=$srcdir ;; 11811 *) # Relative name. 11812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11813 ac_top_srcdir=$ac_top_build_prefix$srcdir 11814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11815esac 11816ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11817 11818 11819 case $ac_mode in 11820 :F) 11821 # 11822 # CONFIG_FILE 11823 # 11824 11825 case $INSTALL in 11826 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11827 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11828 esac 11829_ACEOF 11830 11831cat >>$CONFIG_STATUS <<\_ACEOF 11832# If the template does not know about datarootdir, expand it. 11833# FIXME: This hack should be removed a few years after 2.60. 11834ac_datarootdir_hack=; ac_datarootdir_seen= 11835 11836case `sed -n '/datarootdir/ { 11837 p 11838 q 11839} 11840/@datadir@/p 11841/@docdir@/p 11842/@infodir@/p 11843/@localedir@/p 11844/@mandir@/p 11845' $ac_file_inputs` in 11846*datarootdir*) ac_datarootdir_seen=yes;; 11847*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11848 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11849echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11850_ACEOF 11851cat >>$CONFIG_STATUS <<_ACEOF 11852 ac_datarootdir_hack=' 11853 s&@datadir@&$datadir&g 11854 s&@docdir@&$docdir&g 11855 s&@infodir@&$infodir&g 11856 s&@localedir@&$localedir&g 11857 s&@mandir@&$mandir&g 11858 s&\\\${datarootdir}&$datarootdir&g' ;; 11859esac 11860_ACEOF 11861 11862# Neutralize VPATH when `$srcdir' = `.'. 11863# Shell code in configure.ac might set extrasub. 11864# FIXME: do we really want to maintain this feature? 11865cat >>$CONFIG_STATUS <<_ACEOF 11866 sed "$ac_vpsub 11867$extrasub 11868_ACEOF 11869cat >>$CONFIG_STATUS <<\_ACEOF 11870:t 11871/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11872s&@configure_input@&$configure_input&;t t 11873s&@top_builddir@&$ac_top_builddir_sub&;t t 11874s&@srcdir@&$ac_srcdir&;t t 11875s&@abs_srcdir@&$ac_abs_srcdir&;t t 11876s&@top_srcdir@&$ac_top_srcdir&;t t 11877s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11878s&@builddir@&$ac_builddir&;t t 11879s&@abs_builddir@&$ac_abs_builddir&;t t 11880s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11881s&@INSTALL@&$ac_INSTALL&;t t 11882$ac_datarootdir_hack 11883" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11884 11885test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11886 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11887 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11888 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11889which seems to be undefined. Please make sure it is defined." >&5 11890echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11891which seems to be undefined. Please make sure it is defined." >&2;} 11892 11893 rm -f "$tmp/stdin" 11894 case $ac_file in 11895 -) cat "$tmp/out"; rm -f "$tmp/out";; 11896 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11897 esac 11898 ;; 11899 11900 11901 11902 esac 11903 11904done # for ac_tag 11905 11906 11907{ (exit 0); exit 0; } 11908_ACEOF 11909chmod +x $CONFIG_STATUS 11910ac_clean_files=$ac_clean_files_save 11911 11912 11913# configure is writing to config.log, and then calls config.status. 11914# config.status does its own redirection, appending to config.log. 11915# Unfortunately, on DOS this fails, as config.log is still kept open 11916# by configure, so config.status won't be able to write to it; its 11917# output is simply discarded. So we exec the FD to /dev/null, 11918# effectively closing config.log, so it can be properly (re)opened and 11919# appended to by config.status. When coming back to configure, we 11920# need to make the FD available again. 11921if test "$no_create" != yes; then 11922 ac_cs_success=: 11923 ac_config_status_args= 11924 test "$silent" = yes && 11925 ac_config_status_args="$ac_config_status_args --quiet" 11926 exec 5>/dev/null 11927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11928 exec 5>>config.log 11929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11930 # would make configure fail if this is the last instruction. 11931 $ac_cs_success || { (exit 1); exit 1; } 11932fi 11933 11934 11935#-------------------------------------------------------------------- 11936