1#! /bin/sh 2# From configure.in Id: configure.in 267 2010-06-04 09:58:55Z nijtmans . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tkimgtga 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='tkimgtga' 575PACKAGE_TARNAME='tkimgtga' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimgtga 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 707tkimg_VERSION 708tkimg_BIN_DIR 709tkimg_SRC_DIR 710tkimg_LIB_FILE 711tkimg_LIB_SPEC 712tkimg_STUB_LIB_FILE 713tkimg_STUB_LIB_SPEC 714tkimg_STUB_LIB_PATH 715tkimg_SRC_PATH 716tkimg_BUILD_PATH 717PKG_SOURCES 718PKG_OBJECTS 719TCL_INCLUDES 720TK_INCLUDES 721TCL_THREADS 722SHARED_BUILD 723AR 724CELIB_DIR 725CFLAGS_DEBUG 726CFLAGS_OPTIMIZE 727CFLAGS_WARNING 728STLIB_LD 729SHLIB_LD 730SHLIB_LD_LIBS 731SHLIB_CFLAGS 732LD_LIBRARY_PATH_VAR 733CFLAGS_DEFAULT 734LDFLAGS_DEFAULT 735TCL_DBGX 736XMKMF 737MAKE_LIB 738MAKE_SHARED_LIB 739MAKE_STATIC_LIB 740MAKE_STUB_LIB 741RANLIB_STUB 742VC_MANIFEST_EMBED_DLL 743VC_MANIFEST_EMBED_EXE 744TCLSH_PROG 745WISH_PROG 746LIBOBJS 747LTLIBOBJS' 748ac_subst_files='' 749 ac_precious_vars='build_alias 750host_alias 751target_alias 752CC 753CFLAGS 754LDFLAGS 755LIBS 756CPPFLAGS 757CPP 758XMKMF' 759 760 761# Initialize some variables set by options. 762ac_init_help= 763ac_init_version=false 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *) ac_optarg=yes ;; 821 esac 822 823 # Accept the important Cygnus configure options, so we can diagnose typos. 824 825 case $ac_dashdash$ac_option in 826 --) 827 ac_dashdash=yes ;; 828 829 -bindir | --bindir | --bindi | --bind | --bin | --bi) 830 ac_prev=bindir ;; 831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 832 bindir=$ac_optarg ;; 833 834 -build | --build | --buil | --bui | --bu) 835 ac_prev=build_alias ;; 836 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 837 build_alias=$ac_optarg ;; 838 839 -cache-file | --cache-file | --cache-fil | --cache-fi \ 840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 841 ac_prev=cache_file ;; 842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 844 cache_file=$ac_optarg ;; 845 846 --config-cache | -C) 847 cache_file=config.cache ;; 848 849 -datadir | --datadir | --datadi | --datad) 850 ac_prev=datadir ;; 851 -datadir=* | --datadir=* | --datadi=* | --datad=*) 852 datadir=$ac_optarg ;; 853 854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 855 | --dataroo | --dataro | --datar) 856 ac_prev=datarootdir ;; 857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 859 datarootdir=$ac_optarg ;; 860 861 -disable-* | --disable-*) 862 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 863 # Reject names that are not valid shell variable names. 864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 866 { (exit 1); exit 1; }; } 867 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 868 eval enable_$ac_feature=no ;; 869 870 -docdir | --docdir | --docdi | --doc | --do) 871 ac_prev=docdir ;; 872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 873 docdir=$ac_optarg ;; 874 875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 876 ac_prev=dvidir ;; 877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 878 dvidir=$ac_optarg ;; 879 880 -enable-* | --enable-*) 881 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 882 # Reject names that are not valid shell variable names. 883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 885 { (exit 1); exit 1; }; } 886 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 887 eval enable_$ac_feature=\$ac_optarg ;; 888 889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 891 | --exec | --exe | --ex) 892 ac_prev=exec_prefix ;; 893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 895 | --exec=* | --exe=* | --ex=*) 896 exec_prefix=$ac_optarg ;; 897 898 -gas | --gas | --ga | --g) 899 # Obsolete; use --with-gas. 900 with_gas=yes ;; 901 902 -help | --help | --hel | --he | -h) 903 ac_init_help=long ;; 904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 905 ac_init_help=recursive ;; 906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 907 ac_init_help=short ;; 908 909 -host | --host | --hos | --ho) 910 ac_prev=host_alias ;; 911 -host=* | --host=* | --hos=* | --ho=*) 912 host_alias=$ac_optarg ;; 913 914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 915 ac_prev=htmldir ;; 916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 917 | --ht=*) 918 htmldir=$ac_optarg ;; 919 920 -includedir | --includedir | --includedi | --included | --include \ 921 | --includ | --inclu | --incl | --inc) 922 ac_prev=includedir ;; 923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 924 | --includ=* | --inclu=* | --incl=* | --inc=*) 925 includedir=$ac_optarg ;; 926 927 -infodir | --infodir | --infodi | --infod | --info | --inf) 928 ac_prev=infodir ;; 929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 930 infodir=$ac_optarg ;; 931 932 -libdir | --libdir | --libdi | --libd) 933 ac_prev=libdir ;; 934 -libdir=* | --libdir=* | --libdi=* | --libd=*) 935 libdir=$ac_optarg ;; 936 937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 938 | --libexe | --libex | --libe) 939 ac_prev=libexecdir ;; 940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 941 | --libexe=* | --libex=* | --libe=*) 942 libexecdir=$ac_optarg ;; 943 944 -localedir | --localedir | --localedi | --localed | --locale) 945 ac_prev=localedir ;; 946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 947 localedir=$ac_optarg ;; 948 949 -localstatedir | --localstatedir | --localstatedi | --localstated \ 950 | --localstate | --localstat | --localsta | --localst | --locals) 951 ac_prev=localstatedir ;; 952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 954 localstatedir=$ac_optarg ;; 955 956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 957 ac_prev=mandir ;; 958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 959 mandir=$ac_optarg ;; 960 961 -nfp | --nfp | --nf) 962 # Obsolete; use --without-fp. 963 with_fp=no ;; 964 965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 966 | --no-cr | --no-c | -n) 967 no_create=yes ;; 968 969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 971 no_recursion=yes ;; 972 973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 975 | --oldin | --oldi | --old | --ol | --o) 976 ac_prev=oldincludedir ;; 977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 980 oldincludedir=$ac_optarg ;; 981 982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 983 ac_prev=prefix ;; 984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 985 prefix=$ac_optarg ;; 986 987 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 988 | --program-pre | --program-pr | --program-p) 989 ac_prev=program_prefix ;; 990 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 992 program_prefix=$ac_optarg ;; 993 994 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 995 | --program-suf | --program-su | --program-s) 996 ac_prev=program_suffix ;; 997 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 999 program_suffix=$ac_optarg ;; 1000 1001 -program-transform-name | --program-transform-name \ 1002 | --program-transform-nam | --program-transform-na \ 1003 | --program-transform-n | --program-transform- \ 1004 | --program-transform | --program-transfor \ 1005 | --program-transfo | --program-transf \ 1006 | --program-trans | --program-tran \ 1007 | --progr-tra | --program-tr | --program-t) 1008 ac_prev=program_transform_name ;; 1009 -program-transform-name=* | --program-transform-name=* \ 1010 | --program-transform-nam=* | --program-transform-na=* \ 1011 | --program-transform-n=* | --program-transform-=* \ 1012 | --program-transform=* | --program-transfor=* \ 1013 | --program-transfo=* | --program-transf=* \ 1014 | --program-trans=* | --program-tran=* \ 1015 | --progr-tra=* | --program-tr=* | --program-t=*) 1016 program_transform_name=$ac_optarg ;; 1017 1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1019 ac_prev=pdfdir ;; 1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1021 pdfdir=$ac_optarg ;; 1022 1023 -psdir | --psdir | --psdi | --psd | --ps) 1024 ac_prev=psdir ;; 1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1026 psdir=$ac_optarg ;; 1027 1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1029 | -silent | --silent | --silen | --sile | --sil) 1030 silent=yes ;; 1031 1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1033 ac_prev=sbindir ;; 1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1035 | --sbi=* | --sb=*) 1036 sbindir=$ac_optarg ;; 1037 1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1040 | --sharedst | --shareds | --shared | --share | --shar \ 1041 | --sha | --sh) 1042 ac_prev=sharedstatedir ;; 1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1046 | --sha=* | --sh=*) 1047 sharedstatedir=$ac_optarg ;; 1048 1049 -site | --site | --sit) 1050 ac_prev=site ;; 1051 -site=* | --site=* | --sit=*) 1052 site=$ac_optarg ;; 1053 1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1055 ac_prev=srcdir ;; 1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1057 srcdir=$ac_optarg ;; 1058 1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1060 | --syscon | --sysco | --sysc | --sys | --sy) 1061 ac_prev=sysconfdir ;; 1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1064 sysconfdir=$ac_optarg ;; 1065 1066 -target | --target | --targe | --targ | --tar | --ta | --t) 1067 ac_prev=target_alias ;; 1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1069 target_alias=$ac_optarg ;; 1070 1071 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1072 verbose=yes ;; 1073 1074 -version | --version | --versio | --versi | --vers | -V) 1075 ac_init_version=: ;; 1076 1077 -with-* | --with-*) 1078 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1079 # Reject names that are not valid shell variable names. 1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1081 { echo "$as_me: error: invalid package name: $ac_package" >&2 1082 { (exit 1); exit 1; }; } 1083 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1084 eval with_$ac_package=\$ac_optarg ;; 1085 1086 -without-* | --without-*) 1087 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1090 { echo "$as_me: error: invalid package name: $ac_package" >&2 1091 { (exit 1); exit 1; }; } 1092 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1093 eval with_$ac_package=no ;; 1094 1095 --x) 1096 # Obsolete; use --with-x. 1097 with_x=yes ;; 1098 1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1100 | --x-incl | --x-inc | --x-in | --x-i) 1101 ac_prev=x_includes ;; 1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1104 x_includes=$ac_optarg ;; 1105 1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1108 ac_prev=x_libraries ;; 1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1111 x_libraries=$ac_optarg ;; 1112 1113 -*) { echo "$as_me: error: unrecognized option: $ac_option 1114Try \`$0 --help' for more information." >&2 1115 { (exit 1); exit 1; }; } 1116 ;; 1117 1118 *=*) 1119 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1122 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1123 { (exit 1); exit 1; }; } 1124 eval $ac_envvar=\$ac_optarg 1125 export $ac_envvar ;; 1126 1127 *) 1128 # FIXME: should be removed in autoconf 3.0. 1129 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1131 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1132 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1133 ;; 1134 1135 esac 1136done 1137 1138if test -n "$ac_prev"; then 1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1140 { echo "$as_me: error: missing argument to $ac_option" >&2 1141 { (exit 1); exit 1; }; } 1142fi 1143 1144# Be sure to have absolute directory names. 1145for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1146 datadir sysconfdir sharedstatedir localstatedir includedir \ 1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1148 libdir localedir mandir 1149do 1150 eval ac_val=\$$ac_var 1151 case $ac_val in 1152 [\\/$]* | ?:[\\/]* ) continue;; 1153 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1154 esac 1155 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1156 { (exit 1); exit 1; }; } 1157done 1158 1159# There might be people who depend on the old broken behavior: `$host' 1160# used to hold the argument of --host etc. 1161# FIXME: To remove some day. 1162build=$build_alias 1163host=$host_alias 1164target=$target_alias 1165 1166# FIXME: To remove some day. 1167if test "x$host_alias" != x; then 1168 if test "x$build_alias" = x; then 1169 cross_compiling=maybe 1170 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1171 If a cross compiler is detected then cross compile mode will be used." >&2 1172 elif test "x$build_alias" != "x$host_alias"; then 1173 cross_compiling=yes 1174 fi 1175fi 1176 1177ac_tool_prefix= 1178test -n "$host_alias" && ac_tool_prefix=$host_alias- 1179 1180test "$silent" = yes && exec 6>/dev/null 1181 1182 1183ac_pwd=`pwd` && test -n "$ac_pwd" && 1184ac_ls_di=`ls -di .` && 1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1186 { echo "$as_me: error: Working directory cannot be determined" >&2 1187 { (exit 1); exit 1; }; } 1188test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1189 { echo "$as_me: error: pwd does not report name of working directory" >&2 1190 { (exit 1); exit 1; }; } 1191 1192 1193# Find the source files, if location was not specified. 1194if test -z "$srcdir"; then 1195 ac_srcdir_defaulted=yes 1196 # Try the directory containing this script, then the parent directory. 1197 ac_confdir=`$as_dirname -- "$0" || 1198$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1199 X"$0" : 'X\(//\)[^/]' \| \ 1200 X"$0" : 'X\(//\)$' \| \ 1201 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1202echo X"$0" | 1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1204 s//\1/ 1205 q 1206 } 1207 /^X\(\/\/\)[^/].*/{ 1208 s//\1/ 1209 q 1210 } 1211 /^X\(\/\/\)$/{ 1212 s//\1/ 1213 q 1214 } 1215 /^X\(\/\).*/{ 1216 s//\1/ 1217 q 1218 } 1219 s/.*/./; q'` 1220 srcdir=$ac_confdir 1221 if test ! -r "$srcdir/$ac_unique_file"; then 1222 srcdir=.. 1223 fi 1224else 1225 ac_srcdir_defaulted=no 1226fi 1227if test ! -r "$srcdir/$ac_unique_file"; then 1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1229 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1230 { (exit 1); exit 1; }; } 1231fi 1232ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1233ac_abs_confdir=`( 1234 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1235 { (exit 1); exit 1; }; } 1236 pwd)` 1237# When building in place, set srcdir=. 1238if test "$ac_abs_confdir" = "$ac_pwd"; then 1239 srcdir=. 1240fi 1241# Remove unnecessary trailing slashes from srcdir. 1242# Double slashes in file names in object file debugging info 1243# mess up M-x gdb in Emacs. 1244case $srcdir in 1245*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1246esac 1247for ac_var in $ac_precious_vars; do 1248 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1249 eval ac_env_${ac_var}_value=\$${ac_var} 1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1251 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1252done 1253 1254# 1255# Report the --help message. 1256# 1257if test "$ac_init_help" = "long"; then 1258 # Omit some internal or obsolete options to make the list less imposing. 1259 # This message is too long to be a string in the A/UX 3.1 sh. 1260 cat <<_ACEOF 1261\`configure' configures tkimgtga 1.4 to adapt to many kinds of systems. 1262 1263Usage: $0 [OPTION]... [VAR=VALUE]... 1264 1265To assign environment variables (e.g., CC, CFLAGS...), specify them as 1266VAR=VALUE. See below for descriptions of some of the useful variables. 1267 1268Defaults for the options are specified in brackets. 1269 1270Configuration: 1271 -h, --help display this help and exit 1272 --help=short display options specific to this package 1273 --help=recursive display the short help of all the included packages 1274 -V, --version display version information and exit 1275 -q, --quiet, --silent do not print \`checking...' messages 1276 --cache-file=FILE cache test results in FILE [disabled] 1277 -C, --config-cache alias for \`--cache-file=config.cache' 1278 -n, --no-create do not create output files 1279 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1280 1281Installation directories: 1282 --prefix=PREFIX install architecture-independent files in PREFIX 1283 [$ac_default_prefix] 1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1285 [PREFIX] 1286 1287By default, \`make install' will install all the files in 1288\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1289an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1290for instance \`--prefix=\$HOME'. 1291 1292For better control, use the options below. 1293 1294Fine tuning of the installation directories: 1295 --bindir=DIR user executables [EPREFIX/bin] 1296 --sbindir=DIR system admin executables [EPREFIX/sbin] 1297 --libexecdir=DIR program executables [EPREFIX/libexec] 1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1301 --libdir=DIR object code libraries [EPREFIX/lib] 1302 --includedir=DIR C header files [PREFIX/include] 1303 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1306 --infodir=DIR info documentation [DATAROOTDIR/info] 1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1308 --mandir=DIR man documentation [DATAROOTDIR/man] 1309 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimgtga] 1310 --htmldir=DIR html documentation [DOCDIR] 1311 --dvidir=DIR dvi documentation [DOCDIR] 1312 --pdfdir=DIR pdf documentation [DOCDIR] 1313 --psdir=DIR ps documentation [DOCDIR] 1314_ACEOF 1315 1316 cat <<\_ACEOF 1317 1318X features: 1319 --x-includes=DIR X include files are in DIR 1320 --x-libraries=DIR X library files are in DIR 1321_ACEOF 1322fi 1323 1324if test -n "$ac_init_help"; then 1325 case $ac_init_help in 1326 short | recursive ) echo "Configuration of tkimgtga 1.4:";; 1327 esac 1328 cat <<\_ACEOF 1329 1330Optional Features: 1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1333 --enable-threads build with threads 1334 --enable-shared build and link with shared libraries (default: on) 1335 --enable-64bit enable 64bit support (default: off) 1336 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1337 --disable-rpath disable rpath support (default: on) 1338 --enable-wince enable Win/CE support (where applicable) 1339 --enable-symbols build with debugging symbols (default: off) 1340 1341Optional Packages: 1342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1344 --with-tcl directory containing tcl configuration 1345 (tclConfig.sh) 1346 --with-tk directory containing tk configuration (tkConfig.sh) 1347 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh) 1348 --with-tclinclude directory containing the public Tcl header files 1349 --with-tkinclude directory containing the public Tk header files 1350 --with-celib=DIR use Windows/CE support library from DIR 1351 --with-x use the X Window System 1352 1353Some influential environment variables: 1354 CC C compiler command 1355 CFLAGS C compiler flags 1356 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1357 nonstandard directory <lib dir> 1358 LIBS libraries to pass to the linker, e.g. -l<library> 1359 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1360 you have headers in a nonstandard directory <include dir> 1361 CPP C preprocessor 1362 XMKMF Path to xmkmf, Makefile generator for X Window System 1363 1364Use these variables to override the choices made by `configure' or to help 1365it to find libraries and programs with nonstandard names/locations. 1366 1367_ACEOF 1368ac_status=$? 1369fi 1370 1371if test "$ac_init_help" = "recursive"; then 1372 # If there are subdirs, report their specific --help. 1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1374 test -d "$ac_dir" || continue 1375 ac_builddir=. 1376 1377case "$ac_dir" in 1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1379*) 1380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1381 # A ".." for each directory in $ac_dir_suffix. 1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1383 case $ac_top_builddir_sub in 1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1386 esac ;; 1387esac 1388ac_abs_top_builddir=$ac_pwd 1389ac_abs_builddir=$ac_pwd$ac_dir_suffix 1390# for backward compatibility: 1391ac_top_builddir=$ac_top_build_prefix 1392 1393case $srcdir in 1394 .) # We are building in place. 1395 ac_srcdir=. 1396 ac_top_srcdir=$ac_top_builddir_sub 1397 ac_abs_top_srcdir=$ac_pwd ;; 1398 [\\/]* | ?:[\\/]* ) # Absolute name. 1399 ac_srcdir=$srcdir$ac_dir_suffix; 1400 ac_top_srcdir=$srcdir 1401 ac_abs_top_srcdir=$srcdir ;; 1402 *) # Relative name. 1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1404 ac_top_srcdir=$ac_top_build_prefix$srcdir 1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1406esac 1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1408 1409 cd "$ac_dir" || { ac_status=$?; continue; } 1410 # Check for guested configure. 1411 if test -f "$ac_srcdir/configure.gnu"; then 1412 echo && 1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1414 elif test -f "$ac_srcdir/configure"; then 1415 echo && 1416 $SHELL "$ac_srcdir/configure" --help=recursive 1417 else 1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1419 fi || ac_status=$? 1420 cd "$ac_pwd" || { ac_status=$?; break; } 1421 done 1422fi 1423 1424test -n "$ac_init_help" && exit $ac_status 1425if $ac_init_version; then 1426 cat <<\_ACEOF 1427tkimgtga configure 1.4 1428generated by GNU Autoconf 2.61 1429 1430Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14312002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1432This configure script is free software; the Free Software Foundation 1433gives unlimited permission to copy, distribute and modify it. 1434_ACEOF 1435 exit 1436fi 1437cat >config.log <<_ACEOF 1438This file contains any messages produced by compilers while 1439running configure, to aid debugging if configure makes a mistake. 1440 1441It was created by tkimgtga $as_me 1.4, which was 1442generated by GNU Autoconf 2.61. Invocation command line was 1443 1444 $ $0 $@ 1445 1446_ACEOF 1447exec 5>>config.log 1448{ 1449cat <<_ASUNAME 1450## --------- ## 1451## Platform. ## 1452## --------- ## 1453 1454hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1455uname -m = `(uname -m) 2>/dev/null || echo unknown` 1456uname -r = `(uname -r) 2>/dev/null || echo unknown` 1457uname -s = `(uname -s) 2>/dev/null || echo unknown` 1458uname -v = `(uname -v) 2>/dev/null || echo unknown` 1459 1460/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1461/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1462 1463/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1464/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1466/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1467/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1468/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1469/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1470 1471_ASUNAME 1472 1473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1474for as_dir in $PATH 1475do 1476 IFS=$as_save_IFS 1477 test -z "$as_dir" && as_dir=. 1478 echo "PATH: $as_dir" 1479done 1480IFS=$as_save_IFS 1481 1482} >&5 1483 1484cat >&5 <<_ACEOF 1485 1486 1487## ----------- ## 1488## Core tests. ## 1489## ----------- ## 1490 1491_ACEOF 1492 1493 1494# Keep a trace of the command line. 1495# Strip out --no-create and --no-recursion so they do not pile up. 1496# Strip out --silent because we don't want to record it for future runs. 1497# Also quote any args containing shell meta-characters. 1498# Make two passes to allow for proper duplicate-argument suppression. 1499ac_configure_args= 1500ac_configure_args0= 1501ac_configure_args1= 1502ac_must_keep_next=false 1503for ac_pass in 1 2 1504do 1505 for ac_arg 1506 do 1507 case $ac_arg in 1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1510 | -silent | --silent | --silen | --sile | --sil) 1511 continue ;; 1512 *\'*) 1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1514 esac 1515 case $ac_pass in 1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1517 2) 1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1519 if test $ac_must_keep_next = true; then 1520 ac_must_keep_next=false # Got value, back to normal. 1521 else 1522 case $ac_arg in 1523 *=* | --config-cache | -C | -disable-* | --disable-* \ 1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1526 | -with-* | --with-* | -without-* | --without-* | --x) 1527 case "$ac_configure_args0 " in 1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1529 esac 1530 ;; 1531 -* ) ac_must_keep_next=true ;; 1532 esac 1533 fi 1534 ac_configure_args="$ac_configure_args '$ac_arg'" 1535 ;; 1536 esac 1537 done 1538done 1539$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1540$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1541 1542# When interrupted or exit'd, cleanup temporary files, and complete 1543# config.log. We remove comments because anyway the quotes in there 1544# would cause problems or look ugly. 1545# WARNING: Use '\'' to represent an apostrophe within the trap. 1546# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1547trap 'exit_status=$? 1548 # Save into config.log some information that might help in debugging. 1549 { 1550 echo 1551 1552 cat <<\_ASBOX 1553## ---------------- ## 1554## Cache variables. ## 1555## ---------------- ## 1556_ASBOX 1557 echo 1558 # The following way of writing the cache mishandles newlines in values, 1559( 1560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1561 eval ac_val=\$$ac_var 1562 case $ac_val in #( 1563 *${as_nl}*) 1564 case $ac_var in #( 1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1566echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1567 esac 1568 case $ac_var in #( 1569 _ | IFS | as_nl) ;; #( 1570 *) $as_unset $ac_var ;; 1571 esac ;; 1572 esac 1573 done 1574 (set) 2>&1 | 1575 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1576 *${as_nl}ac_space=\ *) 1577 sed -n \ 1578 "s/'\''/'\''\\\\'\'''\''/g; 1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1580 ;; #( 1581 *) 1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1583 ;; 1584 esac | 1585 sort 1586) 1587 echo 1588 1589 cat <<\_ASBOX 1590## ----------------- ## 1591## Output variables. ## 1592## ----------------- ## 1593_ASBOX 1594 echo 1595 for ac_var in $ac_subst_vars 1596 do 1597 eval ac_val=\$$ac_var 1598 case $ac_val in 1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1600 esac 1601 echo "$ac_var='\''$ac_val'\''" 1602 done | sort 1603 echo 1604 1605 if test -n "$ac_subst_files"; then 1606 cat <<\_ASBOX 1607## ------------------- ## 1608## File substitutions. ## 1609## ------------------- ## 1610_ASBOX 1611 echo 1612 for ac_var in $ac_subst_files 1613 do 1614 eval ac_val=\$$ac_var 1615 case $ac_val in 1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1617 esac 1618 echo "$ac_var='\''$ac_val'\''" 1619 done | sort 1620 echo 1621 fi 1622 1623 if test -s confdefs.h; then 1624 cat <<\_ASBOX 1625## ----------- ## 1626## confdefs.h. ## 1627## ----------- ## 1628_ASBOX 1629 echo 1630 cat confdefs.h 1631 echo 1632 fi 1633 test "$ac_signal" != 0 && 1634 echo "$as_me: caught signal $ac_signal" 1635 echo "$as_me: exit $exit_status" 1636 } >&5 1637 rm -f core *.core core.conftest.* && 1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1639 exit $exit_status 1640' 0 1641for ac_signal in 1 2 13 15; do 1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1643done 1644ac_signal=0 1645 1646# confdefs.h avoids OS command line length limits that DEFS can exceed. 1647rm -f -r conftest* confdefs.h 1648 1649# Predefined preprocessor variables. 1650 1651cat >>confdefs.h <<_ACEOF 1652#define PACKAGE_NAME "$PACKAGE_NAME" 1653_ACEOF 1654 1655 1656cat >>confdefs.h <<_ACEOF 1657#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1658_ACEOF 1659 1660 1661cat >>confdefs.h <<_ACEOF 1662#define PACKAGE_VERSION "$PACKAGE_VERSION" 1663_ACEOF 1664 1665 1666cat >>confdefs.h <<_ACEOF 1667#define PACKAGE_STRING "$PACKAGE_STRING" 1668_ACEOF 1669 1670 1671cat >>confdefs.h <<_ACEOF 1672#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1673_ACEOF 1674 1675 1676# Let the site file select an alternate cache file if it wants to. 1677# Prefer explicitly selected file to automatically selected ones. 1678if test -n "$CONFIG_SITE"; then 1679 set x "$CONFIG_SITE" 1680elif test "x$prefix" != xNONE; then 1681 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1682else 1683 set x "$ac_default_prefix/share/config.site" \ 1684 "$ac_default_prefix/etc/config.site" 1685fi 1686shift 1687for ac_site_file 1688do 1689 if test -r "$ac_site_file"; then 1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1691echo "$as_me: loading site script $ac_site_file" >&6;} 1692 sed 's/^/| /' "$ac_site_file" >&5 1693 . "$ac_site_file" 1694 fi 1695done 1696 1697if test -r "$cache_file"; then 1698 # Some versions of bash will fail to source /dev/null (special 1699 # files actually), so we avoid doing that. 1700 if test -f "$cache_file"; then 1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1702echo "$as_me: loading cache $cache_file" >&6;} 1703 case $cache_file in 1704 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1705 *) . "./$cache_file";; 1706 esac 1707 fi 1708else 1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1710echo "$as_me: creating cache $cache_file" >&6;} 1711 >$cache_file 1712fi 1713 1714# Check that the precious variables saved in the cache have kept the same 1715# value. 1716ac_cache_corrupted=false 1717for ac_var in $ac_precious_vars; do 1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1719 eval ac_new_set=\$ac_env_${ac_var}_set 1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1721 eval ac_new_val=\$ac_env_${ac_var}_value 1722 case $ac_old_set,$ac_new_set in 1723 set,) 1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1725echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1726 ac_cache_corrupted=: ;; 1727 ,set) 1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1729echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1730 ac_cache_corrupted=: ;; 1731 ,);; 1732 *) 1733 if test "x$ac_old_val" != "x$ac_new_val"; then 1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1735echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1736 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1737echo "$as_me: former value: $ac_old_val" >&2;} 1738 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1739echo "$as_me: current value: $ac_new_val" >&2;} 1740 ac_cache_corrupted=: 1741 fi;; 1742 esac 1743 # Pass precious variables to config.status. 1744 if test "$ac_new_set" = set; then 1745 case $ac_new_val in 1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1747 *) ac_arg=$ac_var=$ac_new_val ;; 1748 esac 1749 case " $ac_configure_args " in 1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1752 esac 1753 fi 1754done 1755if $ac_cache_corrupted; then 1756 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1757echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1758 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1759echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1760 { (exit 1); exit 1; }; } 1761fi 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787ac_ext=c 1788ac_cpp='$CPP $CPPFLAGS' 1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1791ac_compiler_gnu=$ac_cv_c_compiler_gnu 1792 1793 1794 1795 1796 # TEA extensions pass this us the version of TEA they think they 1797 # are compatible with. 1798 TEA_VERSION="3.9" 1799 1800 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1801echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1802 if test x"${PACKAGE_NAME}" = x ; then 1803 { { echo "$as_me:$LINENO: error: 1804The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1805echo "$as_me: error: 1806The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1807 { (exit 1); exit 1; }; } 1808 fi 1809 if test x"3.9" = x ; then 1810 { { echo "$as_me:$LINENO: error: 1811TEA version not specified." >&5 1812echo "$as_me: error: 1813TEA version not specified." >&2;} 1814 { (exit 1); exit 1; }; } 1815 elif test "3.9" != "${TEA_VERSION}" ; then 1816 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1817echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1818 else 1819 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1820echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1821 fi 1822 case "`uname -s`" in 1823 *win32*|*WIN32*|*MINGW32_*) 1824 # Extract the first word of "cygpath", so it can be a program name with args. 1825set dummy cygpath; ac_word=$2 1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1828if test "${ac_cv_prog_CYGPATH+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 if test -n "$CYGPATH"; then 1832 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1833else 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 test -z "$as_dir" && as_dir=. 1839 for ac_exec_ext in '' $ac_executable_extensions; do 1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1841 ac_cv_prog_CYGPATH="cygpath -w" 1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1843 break 2 1844 fi 1845done 1846done 1847IFS=$as_save_IFS 1848 1849 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1850fi 1851fi 1852CYGPATH=$ac_cv_prog_CYGPATH 1853if test -n "$CYGPATH"; then 1854 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1855echo "${ECHO_T}$CYGPATH" >&6; } 1856else 1857 { echo "$as_me:$LINENO: result: no" >&5 1858echo "${ECHO_T}no" >&6; } 1859fi 1860 1861 1862 EXEEXT=".exe" 1863 TEA_PLATFORM="windows" 1864 ;; 1865 *CYGWIN_*) 1866 CYGPATH=echo 1867 EXEEXT=".exe" 1868 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1869 ;; 1870 *) 1871 CYGPATH=echo 1872 EXEEXT="" 1873 TEA_PLATFORM="unix" 1874 ;; 1875 esac 1876 1877 # Check if exec_prefix is set. If not use fall back to prefix. 1878 # Note when adjusted, so that TEA_PREFIX can correct for this. 1879 # This is needed for recursive configures, since autoconf propagates 1880 # $prefix, but not $exec_prefix (doh!). 1881 if test x$exec_prefix = xNONE ; then 1882 exec_prefix_default=yes 1883 exec_prefix=$prefix 1884 fi 1885 1886 1887 1888 1889 # This package name must be replaced statically for AC_SUBST to work 1890 1891 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1892 1893 1894 # We AC_SUBST these here to ensure they are subst'ed, 1895 # in case the user doesn't call TEA_ADD_... 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905ac_aux_dir= 1906for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1907 if test -f "$ac_dir/install-sh"; then 1908 ac_aux_dir=$ac_dir 1909 ac_install_sh="$ac_aux_dir/install-sh -c" 1910 break 1911 elif test -f "$ac_dir/install.sh"; then 1912 ac_aux_dir=$ac_dir 1913 ac_install_sh="$ac_aux_dir/install.sh -c" 1914 break 1915 elif test -f "$ac_dir/shtool"; then 1916 ac_aux_dir=$ac_dir 1917 ac_install_sh="$ac_aux_dir/shtool install -c" 1918 break 1919 fi 1920done 1921if test -z "$ac_aux_dir"; then 1922 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1923echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1924 { (exit 1); exit 1; }; } 1925fi 1926 1927# These three variables are undocumented and unsupported, 1928# and are intended to be withdrawn in a future Autoconf release. 1929# They can cause serious problems if a builder's source tree is in a directory 1930# whose full name contains unusual characters. 1931ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1932ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1933ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1934 1935 1936 1937PHIMGTYPE="tga" 1938CPACKAGE="Tkimgtga" 1939PACKAGE_TCLNAME="img::tga" 1940 1941 1942#-------------------------------------------------------------------- 1943# Load the tclConfig.sh file 1944# Load the tkConfig.sh file 1945#-------------------------------------------------------------------- 1946 1947 1948 1949 # 1950 # Ok, lets find the tcl configuration 1951 # First, look for one uninstalled. 1952 # the alternative search directory is invoked by --with-tcl 1953 # 1954 1955 if test x"${no_tcl}" = x ; then 1956 # we reset no_tcl in case something fails here 1957 no_tcl=true 1958 1959# Check whether --with-tcl was given. 1960if test "${with_tcl+set}" = set; then 1961 withval=$with_tcl; with_tclconfig="${withval}" 1962fi 1963 1964 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1965echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1966 if test "${ac_cv_c_tclconfig+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 1970 1971 # First check to see if --with-tcl was specified. 1972 if test x"${with_tclconfig}" != x ; then 1973 case "${with_tclconfig}" in 1974 */tclConfig.sh ) 1975 if test -f "${with_tclconfig}"; then 1976 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1977echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1978 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1979 fi ;; 1980 esac 1981 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1982 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1983 else 1984 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1985echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1986 { (exit 1); exit 1; }; } 1987 fi 1988 fi 1989 1990 # then check for a private Tcl installation 1991 if test x"${ac_cv_c_tclconfig}" = x ; then 1992 for i in \ 1993 ../tcl \ 1994 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1995 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1996 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1997 ../../tcl \ 1998 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1999 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2000 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2001 ../../../tcl \ 2002 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2003 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2004 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2005 if test "${TEA_PLATFORM}" = "windows" \ 2006 -a -f "$i/win/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2008 break 2009 fi 2010 if test -f "$i/unix/tclConfig.sh" ; then 2011 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2012 break 2013 fi 2014 done 2015 fi 2016 2017 # on Darwin, check in Framework installation locations 2018 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2019 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2020 `ls -d /Library/Frameworks 2>/dev/null` \ 2021 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2022 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2023 ; do 2024 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2025 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2026 break 2027 fi 2028 done 2029 fi 2030 2031 # TEA specific: on Windows, check in common installation locations 2032 if test "${TEA_PLATFORM}" = "windows" \ 2033 -a x"${ac_cv_c_tclconfig}" = x ; then 2034 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2035 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2036 ; do 2037 if test -f "$i/tclConfig.sh" ; then 2038 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2039 break 2040 fi 2041 done 2042 fi 2043 2044 # check in a few common install locations 2045 if test x"${ac_cv_c_tclconfig}" = x ; then 2046 for i in `ls -d ${libdir} 2>/dev/null` \ 2047 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2048 `ls -d ${prefix}/lib 2>/dev/null` \ 2049 `ls -d /usr/local/lib 2>/dev/null` \ 2050 `ls -d /usr/contrib/lib 2>/dev/null` \ 2051 `ls -d /usr/lib 2>/dev/null` \ 2052 `ls -d /usr/lib64 2>/dev/null` \ 2053 ; do 2054 if test -f "$i/tclConfig.sh" ; then 2055 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2056 break 2057 fi 2058 done 2059 fi 2060 2061 # check in a few other private locations 2062 if test x"${ac_cv_c_tclconfig}" = x ; then 2063 for i in \ 2064 ${srcdir}/../tcl \ 2065 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2066 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2067 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2068 if test "${TEA_PLATFORM}" = "windows" \ 2069 -a -f "$i/win/tclConfig.sh" ; then 2070 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2071 break 2072 fi 2073 if test -f "$i/unix/tclConfig.sh" ; then 2074 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2075 break 2076 fi 2077 done 2078 fi 2079 2080fi 2081 2082 2083 if test x"${ac_cv_c_tclconfig}" = x ; then 2084 TCL_BIN_DIR="# no Tcl configs found" 2085 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2086echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2087 { (exit 1); exit 1; }; } 2088 else 2089 no_tcl= 2090 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2091 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2092echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2093 fi 2094 fi 2095 2096 2097 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2098echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2099 2100 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2101 { echo "$as_me:$LINENO: result: loading" >&5 2102echo "${ECHO_T}loading" >&6; } 2103 . "${TCL_BIN_DIR}/tclConfig.sh" 2104 else 2105 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2106echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2107 fi 2108 2109 # eval is required to do the TCL_DBGX substitution 2110 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2111 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2112 2113 # If the TCL_BIN_DIR is the build directory (not the install directory), 2114 # then set the common variable name to the value of the build variables. 2115 # For example, the variable TCL_LIB_SPEC will be set to the value 2116 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2117 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2118 # installed and uninstalled version of Tcl. 2119 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2120 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2121 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2122 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2123 elif test "`uname -s`" = "Darwin"; then 2124 # If Tcl was built as a framework, attempt to use the libraries 2125 # from the framework at the given location so that linking works 2126 # against Tcl.framework installed in an arbitrary location. 2127 case ${TCL_DEFS} in 2128 *TCL_FRAMEWORK*) 2129 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2130 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2131 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2132 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2133 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2134 break 2135 fi 2136 done 2137 fi 2138 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2139 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2140 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2141 fi 2142 ;; 2143 esac 2144 fi 2145 2146 # eval is required to do the TCL_DBGX substitution 2147 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2148 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2149 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2150 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 case "`uname -s`" in 2166 *CYGWIN_*) 2167 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2168echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2169 case ${TCL_EXTRA_CFLAGS} in 2170 *-mwin32*|*-mno-cygwin*) 2171 TEA_PLATFORM="windows" 2172 CFLAGS="$CFLAGS -mwin32" 2173 { echo "$as_me:$LINENO: result: win32" >&5 2174echo "${ECHO_T}win32" >&6; } 2175 ;; 2176 *) 2177 TEA_PLATFORM="unix" 2178 { echo "$as_me:$LINENO: result: unix" >&5 2179echo "${ECHO_T}unix" >&6; } 2180 ;; 2181 esac 2182 EXEEXT=".exe" 2183 ;; 2184 *) 2185 ;; 2186 esac 2187 2188 # Do this here as we have fully defined TEA_PLATFORM now 2189 if test "${TEA_PLATFORM}" = "windows" ; then 2190 # The BUILD_$pkg is to define the correct extern storage class 2191 # handling when making this package 2192 2193cat >>confdefs.h <<_ACEOF 2194#define BUILD_${PACKAGE_NAME} 2195_ACEOF 2196 2197 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2198 fi 2199 2200 # TEA specific: 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 # 2211 # Ok, lets find the tk configuration 2212 # First, look for one uninstalled. 2213 # the alternative search directory is invoked by --with-tk 2214 # 2215 2216 if test x"${no_tk}" = x ; then 2217 # we reset no_tk in case something fails here 2218 no_tk=true 2219 2220# Check whether --with-tk was given. 2221if test "${with_tk+set}" = set; then 2222 withval=$with_tk; with_tkconfig="${withval}" 2223fi 2224 2225 { echo "$as_me:$LINENO: checking for Tk configuration" >&5 2226echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } 2227 if test "${ac_cv_c_tkconfig+set}" = set; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 2231 2232 # First check to see if --with-tkconfig was specified. 2233 if test x"${with_tkconfig}" != x ; then 2234 case "${with_tkconfig}" in 2235 */tkConfig.sh ) 2236 if test -f "${with_tkconfig}"; then 2237 { echo "$as_me:$LINENO: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5 2238echo "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;} 2239 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`" 2240 fi ;; 2241 esac 2242 if test -f "${with_tkconfig}/tkConfig.sh" ; then 2243 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`" 2244 else 2245 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 2246echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 fi 2250 2251 # then check for a private Tk library 2252 if test x"${ac_cv_c_tkconfig}" = x ; then 2253 for i in \ 2254 ../tk \ 2255 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2256 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 2257 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 2258 ../../tk \ 2259 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2260 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 2261 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 2262 ../../../tk \ 2263 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2264 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 2265 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 2266 if test "${TEA_PLATFORM}" = "windows" \ 2267 -a -f "$i/win/tkConfig.sh" ; then 2268 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2269 break 2270 fi 2271 if test -f "$i/unix/tkConfig.sh" ; then 2272 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2273 break 2274 fi 2275 done 2276 fi 2277 2278 # on Darwin, check in Framework installation locations 2279 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 2280 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2281 `ls -d /Library/Frameworks 2>/dev/null` \ 2282 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2283 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2284 ; do 2285 if test -f "$i/Tk.framework/tkConfig.sh" ; then 2286 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`" 2287 break 2288 fi 2289 done 2290 fi 2291 2292 # check in a few common install locations 2293 if test x"${ac_cv_c_tkconfig}" = x ; then 2294 for i in `ls -d ${libdir} 2>/dev/null` \ 2295 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2296 `ls -d ${prefix}/lib 2>/dev/null` \ 2297 `ls -d /usr/local/lib 2>/dev/null` \ 2298 `ls -d /usr/contrib/lib 2>/dev/null` \ 2299 `ls -d /usr/lib 2>/dev/null` \ 2300 `ls -d /usr/lib64 2>/dev/null` \ 2301 ; do 2302 if test -f "$i/tkConfig.sh" ; then 2303 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2304 break 2305 fi 2306 done 2307 fi 2308 2309 # TEA specific: on Windows, check in common installation locations 2310 if test "${TEA_PLATFORM}" = "windows" \ 2311 -a x"${ac_cv_c_tkconfig}" = x ; then 2312 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2313 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2314 ; do 2315 if test -f "$i/tkConfig.sh" ; then 2316 ac_cv_c_tkconfig="`(cd $i; pwd)`" 2317 break 2318 fi 2319 done 2320 fi 2321 2322 # check in a few other private locations 2323 if test x"${ac_cv_c_tkconfig}" = x ; then 2324 for i in \ 2325 ${srcdir}/../tk \ 2326 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 2327 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 2328 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 2329 if test "${TEA_PLATFORM}" = "windows" \ 2330 -a -f "$i/win/tkConfig.sh" ; then 2331 ac_cv_c_tkconfig="`(cd $i/win; pwd)`" 2332 break 2333 fi 2334 if test -f "$i/unix/tkConfig.sh" ; then 2335 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`" 2336 break 2337 fi 2338 done 2339 fi 2340 2341fi 2342 2343 2344 if test x"${ac_cv_c_tkconfig}" = x ; then 2345 TK_BIN_DIR="# no Tk configs found" 2346 { { echo "$as_me:$LINENO: error: Can't find Tk configuration definitions" >&5 2347echo "$as_me: error: Can't find Tk configuration definitions" >&2;} 2348 { (exit 1); exit 1; }; } 2349 else 2350 no_tk= 2351 TK_BIN_DIR="${ac_cv_c_tkconfig}" 2352 { echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 2353echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2354 fi 2355 fi 2356 2357 2358 { echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 2359echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6; } 2360 2361 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 2362 { echo "$as_me:$LINENO: result: loading" >&5 2363echo "${ECHO_T}loading" >&6; } 2364 . "${TK_BIN_DIR}/tkConfig.sh" 2365 else 2366 { echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 2367echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 2368 fi 2369 2370 # eval is required to do the TK_DBGX substitution 2371 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 2372 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 2373 2374 # If the TK_BIN_DIR is the build directory (not the install directory), 2375 # then set the common variable name to the value of the build variables. 2376 # For example, the variable TK_LIB_SPEC will be set to the value 2377 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 2378 # instead of TK_BUILD_LIB_SPEC since it will work with both an 2379 # installed and uninstalled version of Tcl. 2380 if test -f "${TK_BIN_DIR}/Makefile" ; then 2381 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}" 2382 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}" 2383 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}" 2384 elif test "`uname -s`" = "Darwin"; then 2385 # If Tk was built as a framework, attempt to use the libraries 2386 # from the framework at the given location so that linking works 2387 # against Tk.framework installed in an arbitrary location. 2388 case ${TK_DEFS} in 2389 *TK_FRAMEWORK*) 2390 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 2391 for i in "`cd "${TK_BIN_DIR}"; pwd`" \ 2392 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do 2393 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 2394 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}" 2395 break 2396 fi 2397 done 2398 fi 2399 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 2400 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 2401 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 2402 fi 2403 ;; 2404 esac 2405 fi 2406 2407 # eval is required to do the TK_DBGX substitution 2408 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 2409 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 2410 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 2411 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 2412 2413 # TEA specific: Ensure windowingsystem is defined 2414 if test "${TEA_PLATFORM}" = "unix" ; then 2415 case ${TK_DEFS} in 2416 *MAC_OSX_TK*) 2417 2418cat >>confdefs.h <<\_ACEOF 2419#define MAC_OSX_TK 1 2420_ACEOF 2421 2422 TEA_WINDOWINGSYSTEM="aqua" 2423 ;; 2424 *) 2425 TEA_WINDOWINGSYSTEM="x11" 2426 ;; 2427 esac 2428 elif test "${TEA_PLATFORM}" = "windows" ; then 2429 TEA_WINDOWINGSYSTEM="win32" 2430 fi 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 # TEA specific: 2445 2446 2447 2448 2449#----------------------------------------------------------------------- 2450# Handle the --prefix=... option by defaulting to what Tcl gave. 2451# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2452#----------------------------------------------------------------------- 2453 2454 2455 if test "${prefix}" = "NONE"; then 2456 prefix_default=yes 2457 if test x"${TCL_PREFIX}" != x; then 2458 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2459echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2460 prefix=${TCL_PREFIX} 2461 else 2462 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2463echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2464 prefix=/usr/local 2465 fi 2466 fi 2467 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2468 -o x"${exec_prefix_default}" = x"yes" ; then 2469 if test x"${TCL_EXEC_PREFIX}" != x; then 2470 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2471echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2472 exec_prefix=${TCL_EXEC_PREFIX} 2473 else 2474 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2475echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2476 exec_prefix=$prefix 2477 fi 2478 fi 2479 2480 2481#----------------------------------------------------------------------- 2482# Standard compiler checks. 2483# This sets up CC by using the CC env var, or looks for gcc otherwise. 2484# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2485# the basic setup necessary to compile executables. 2486#----------------------------------------------------------------------- 2487 2488 2489 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2490 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2491 2492 # If the user did not set CFLAGS, set it now to keep 2493 # the AC_PROG_CC macro from adding "-g -O2". 2494 if test "${CFLAGS+set}" != "set" ; then 2495 CFLAGS="" 2496 fi 2497 2498 ac_ext=c 2499ac_cpp='$CPP $CPPFLAGS' 2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2502ac_compiler_gnu=$ac_cv_c_compiler_gnu 2503if test -n "$ac_tool_prefix"; then 2504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2505set dummy ${ac_tool_prefix}gcc; ac_word=$2 2506{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2508if test "${ac_cv_prog_CC+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510else 2511 if test -n "$CC"; then 2512 ac_cv_prog_CC="$CC" # Let the user override the test. 2513else 2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515for as_dir in $PATH 2516do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2521 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525done 2526done 2527IFS=$as_save_IFS 2528 2529fi 2530fi 2531CC=$ac_cv_prog_CC 2532if test -n "$CC"; then 2533 { echo "$as_me:$LINENO: result: $CC" >&5 2534echo "${ECHO_T}$CC" >&6; } 2535else 2536 { echo "$as_me:$LINENO: result: no" >&5 2537echo "${ECHO_T}no" >&6; } 2538fi 2539 2540 2541fi 2542if test -z "$ac_cv_prog_CC"; then 2543 ac_ct_CC=$CC 2544 # Extract the first word of "gcc", so it can be a program name with args. 2545set dummy gcc; ac_word=$2 2546{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2548if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2549 echo $ECHO_N "(cached) $ECHO_C" >&6 2550else 2551 if test -n "$ac_ct_CC"; then 2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2553else 2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2561 ac_cv_prog_ac_ct_CC="gcc" 2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2563 break 2 2564 fi 2565done 2566done 2567IFS=$as_save_IFS 2568 2569fi 2570fi 2571ac_ct_CC=$ac_cv_prog_ac_ct_CC 2572if test -n "$ac_ct_CC"; then 2573 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2574echo "${ECHO_T}$ac_ct_CC" >&6; } 2575else 2576 { echo "$as_me:$LINENO: result: no" >&5 2577echo "${ECHO_T}no" >&6; } 2578fi 2579 2580 if test "x$ac_ct_CC" = x; then 2581 CC="" 2582 else 2583 case $cross_compiling:$ac_tool_warned in 2584yes:) 2585{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2586whose name does not start with the host triplet. If you think this 2587configuration is useful to you, please write to autoconf@gnu.org." >&5 2588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2589whose name does not start with the host triplet. If you think this 2590configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 CC=$ac_ct_CC 2594 fi 2595else 2596 CC="$ac_cv_prog_CC" 2597fi 2598 2599if test -z "$CC"; then 2600 if test -n "$ac_tool_prefix"; then 2601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2602set dummy ${ac_tool_prefix}cc; ac_word=$2 2603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2605if test "${ac_cv_prog_CC+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607else 2608 if test -n "$CC"; then 2609 ac_cv_prog_CC="$CC" # Let the user override the test. 2610else 2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612for as_dir in $PATH 2613do 2614 IFS=$as_save_IFS 2615 test -z "$as_dir" && as_dir=. 2616 for ac_exec_ext in '' $ac_executable_extensions; do 2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2618 ac_cv_prog_CC="${ac_tool_prefix}cc" 2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623done 2624IFS=$as_save_IFS 2625 2626fi 2627fi 2628CC=$ac_cv_prog_CC 2629if test -n "$CC"; then 2630 { echo "$as_me:$LINENO: result: $CC" >&5 2631echo "${ECHO_T}$CC" >&6; } 2632else 2633 { echo "$as_me:$LINENO: result: no" >&5 2634echo "${ECHO_T}no" >&6; } 2635fi 2636 2637 2638 fi 2639fi 2640if test -z "$CC"; then 2641 # Extract the first word of "cc", so it can be a program name with args. 2642set dummy cc; ac_word=$2 2643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2645if test "${ac_cv_prog_CC+set}" = set; then 2646 echo $ECHO_N "(cached) $ECHO_C" >&6 2647else 2648 if test -n "$CC"; then 2649 ac_cv_prog_CC="$CC" # Let the user override the test. 2650else 2651 ac_prog_rejected=no 2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 test -z "$as_dir" && as_dir=. 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2660 ac_prog_rejected=yes 2661 continue 2662 fi 2663 ac_cv_prog_CC="cc" 2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668done 2669IFS=$as_save_IFS 2670 2671if test $ac_prog_rejected = yes; then 2672 # We found a bogon in the path, so make sure we never use it. 2673 set dummy $ac_cv_prog_CC 2674 shift 2675 if test $# != 0; then 2676 # We chose a different compiler from the bogus one. 2677 # However, it has the same basename, so the bogon will be chosen 2678 # first if we set CC to just the basename; use the full file name. 2679 shift 2680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2681 fi 2682fi 2683fi 2684fi 2685CC=$ac_cv_prog_CC 2686if test -n "$CC"; then 2687 { echo "$as_me:$LINENO: result: $CC" >&5 2688echo "${ECHO_T}$CC" >&6; } 2689else 2690 { echo "$as_me:$LINENO: result: no" >&5 2691echo "${ECHO_T}no" >&6; } 2692fi 2693 2694 2695fi 2696if test -z "$CC"; then 2697 if test -n "$ac_tool_prefix"; then 2698 for ac_prog in cl.exe 2699 do 2700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2701set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2704if test "${ac_cv_prog_CC+set}" = set; then 2705 echo $ECHO_N "(cached) $ECHO_C" >&6 2706else 2707 if test -n "$CC"; then 2708 ac_cv_prog_CC="$CC" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727CC=$ac_cv_prog_CC 2728if test -n "$CC"; then 2729 { echo "$as_me:$LINENO: result: $CC" >&5 2730echo "${ECHO_T}$CC" >&6; } 2731else 2732 { echo "$as_me:$LINENO: result: no" >&5 2733echo "${ECHO_T}no" >&6; } 2734fi 2735 2736 2737 test -n "$CC" && break 2738 done 2739fi 2740if test -z "$CC"; then 2741 ac_ct_CC=$CC 2742 for ac_prog in cl.exe 2743do 2744 # Extract the first word of "$ac_prog", so it can be a program name with args. 2745set dummy $ac_prog; ac_word=$2 2746{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750else 2751 if test -n "$ac_ct_CC"; then 2752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2753else 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2761 ac_cv_prog_ac_ct_CC="$ac_prog" 2762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765done 2766done 2767IFS=$as_save_IFS 2768 2769fi 2770fi 2771ac_ct_CC=$ac_cv_prog_ac_ct_CC 2772if test -n "$ac_ct_CC"; then 2773 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2774echo "${ECHO_T}$ac_ct_CC" >&6; } 2775else 2776 { echo "$as_me:$LINENO: result: no" >&5 2777echo "${ECHO_T}no" >&6; } 2778fi 2779 2780 2781 test -n "$ac_ct_CC" && break 2782done 2783 2784 if test "x$ac_ct_CC" = x; then 2785 CC="" 2786 else 2787 case $cross_compiling:$ac_tool_warned in 2788yes:) 2789{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2790whose name does not start with the host triplet. If you think this 2791configuration is useful to you, please write to autoconf@gnu.org." >&5 2792echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2793whose name does not start with the host triplet. If you think this 2794configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2795ac_tool_warned=yes ;; 2796esac 2797 CC=$ac_ct_CC 2798 fi 2799fi 2800 2801fi 2802 2803 2804test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2805See \`config.log' for more details." >&5 2806echo "$as_me: error: no acceptable C compiler found in \$PATH 2807See \`config.log' for more details." >&2;} 2808 { (exit 1); exit 1; }; } 2809 2810# Provide some information about the compiler. 2811echo "$as_me:$LINENO: checking for C compiler version" >&5 2812ac_compiler=`set X $ac_compile; echo $2` 2813{ (ac_try="$ac_compiler --version >&5" 2814case "(($ac_try" in 2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2816 *) ac_try_echo=$ac_try;; 2817esac 2818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2819 (eval "$ac_compiler --version >&5") 2>&5 2820 ac_status=$? 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); } 2823{ (ac_try="$ac_compiler -v >&5" 2824case "(($ac_try" in 2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2826 *) ac_try_echo=$ac_try;; 2827esac 2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2829 (eval "$ac_compiler -v >&5") 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); } 2833{ (ac_try="$ac_compiler -V >&5" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 (eval "$ac_compiler -V >&5") 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); } 2843 2844cat >conftest.$ac_ext <<_ACEOF 2845/* confdefs.h. */ 2846_ACEOF 2847cat confdefs.h >>conftest.$ac_ext 2848cat >>conftest.$ac_ext <<_ACEOF 2849/* end confdefs.h. */ 2850 2851int 2852main () 2853{ 2854 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859ac_clean_files_save=$ac_clean_files 2860ac_clean_files="$ac_clean_files a.out a.exe b.out" 2861# Try to create an executable without -o first, disregard a.out. 2862# It will help us diagnose broken compilers, and finding out an intuition 2863# of exeext. 2864{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2865echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2866ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2867# 2868# List of possible output files, starting from the most likely. 2869# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2870# only as a last resort. b.out is created by i960 compilers. 2871ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2872# 2873# The IRIX 6 linker writes into existing files which may not be 2874# executable, retaining their permissions. Remove them first so a 2875# subsequent execution test works. 2876ac_rmfiles= 2877for ac_file in $ac_files 2878do 2879 case $ac_file in 2880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2881 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2882 esac 2883done 2884rm -f $ac_rmfiles 2885 2886if { (ac_try="$ac_link_default" 2887case "(($ac_try" in 2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2889 *) ac_try_echo=$ac_try;; 2890esac 2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2892 (eval "$ac_link_default") 2>&5 2893 ac_status=$? 2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); }; then 2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2897# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2898# in a Makefile. We should not override ac_cv_exeext if it was cached, 2899# so that the user can short-circuit this test for compilers unknown to 2900# Autoconf. 2901for ac_file in $ac_files '' 2902do 2903 test -f "$ac_file" || continue 2904 case $ac_file in 2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2906 ;; 2907 [ab].out ) 2908 # We found the default executable, but exeext='' is most 2909 # certainly right. 2910 break;; 2911 *.* ) 2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2913 then :; else 2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2915 fi 2916 # We set ac_cv_exeext here because the later test for it is not 2917 # safe: cross compilers may not add the suffix if given an `-o' 2918 # argument, so we may need to know it at that point already. 2919 # Even if this section looks crufty: it has the advantage of 2920 # actually working. 2921 break;; 2922 * ) 2923 break;; 2924 esac 2925done 2926test "$ac_cv_exeext" = no && ac_cv_exeext= 2927 2928else 2929 ac_file='' 2930fi 2931 2932{ echo "$as_me:$LINENO: result: $ac_file" >&5 2933echo "${ECHO_T}$ac_file" >&6; } 2934if test -z "$ac_file"; then 2935 echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2939See \`config.log' for more details." >&5 2940echo "$as_me: error: C compiler cannot create executables 2941See \`config.log' for more details." >&2;} 2942 { (exit 77); exit 77; }; } 2943fi 2944 2945ac_exeext=$ac_cv_exeext 2946 2947# Check that the compiler produces executables we can run. If not, either 2948# the compiler is broken, or we cross compile. 2949{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2950echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2951# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2952# If not cross compiling, check that we can run a simple program. 2953if test "$cross_compiling" != yes; then 2954 if { ac_try='./$ac_file' 2955 { (case "(($ac_try" in 2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2957 *) ac_try_echo=$ac_try;; 2958esac 2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2960 (eval "$ac_try") 2>&5 2961 ac_status=$? 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; }; then 2964 cross_compiling=no 2965 else 2966 if test "$cross_compiling" = maybe; then 2967 cross_compiling=yes 2968 else 2969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2970If you meant to cross compile, use \`--host'. 2971See \`config.log' for more details." >&5 2972echo "$as_me: error: cannot run C compiled programs. 2973If you meant to cross compile, use \`--host'. 2974See \`config.log' for more details." >&2;} 2975 { (exit 1); exit 1; }; } 2976 fi 2977 fi 2978fi 2979{ echo "$as_me:$LINENO: result: yes" >&5 2980echo "${ECHO_T}yes" >&6; } 2981 2982rm -f a.out a.exe conftest$ac_cv_exeext b.out 2983ac_clean_files=$ac_clean_files_save 2984# Check that the compiler produces executables we can run. If not, either 2985# the compiler is broken, or we cross compile. 2986{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2987echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2988{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2989echo "${ECHO_T}$cross_compiling" >&6; } 2990 2991{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2992echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2993if { (ac_try="$ac_link" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_link") 2>&5 3000 ac_status=$? 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); }; then 3003 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3005# work properly (i.e., refer to `conftest.exe'), while it won't with 3006# `rm'. 3007for ac_file in conftest.exe conftest conftest.*; do 3008 test -f "$ac_file" || continue 3009 case $ac_file in 3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3012 break;; 3013 * ) break;; 3014 esac 3015done 3016else 3017 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3018See \`config.log' for more details." >&5 3019echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3020See \`config.log' for more details." >&2;} 3021 { (exit 1); exit 1; }; } 3022fi 3023 3024rm -f conftest$ac_cv_exeext 3025{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3026echo "${ECHO_T}$ac_cv_exeext" >&6; } 3027 3028rm -f conftest.$ac_ext 3029EXEEXT=$ac_cv_exeext 3030ac_exeext=$EXEEXT 3031{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3032echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3033if test "${ac_cv_objext+set}" = set; then 3034 echo $ECHO_N "(cached) $ECHO_C" >&6 3035else 3036 cat >conftest.$ac_ext <<_ACEOF 3037/* confdefs.h. */ 3038_ACEOF 3039cat confdefs.h >>conftest.$ac_ext 3040cat >>conftest.$ac_ext <<_ACEOF 3041/* end confdefs.h. */ 3042 3043int 3044main () 3045{ 3046 3047 ; 3048 return 0; 3049} 3050_ACEOF 3051rm -f conftest.o conftest.obj 3052if { (ac_try="$ac_compile" 3053case "(($ac_try" in 3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3055 *) ac_try_echo=$ac_try;; 3056esac 3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3058 (eval "$ac_compile") 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; then 3062 for ac_file in conftest.o conftest.obj conftest.*; do 3063 test -f "$ac_file" || continue; 3064 case $ac_file in 3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3067 break;; 3068 esac 3069done 3070else 3071 echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3075See \`config.log' for more details." >&5 3076echo "$as_me: error: cannot compute suffix of object files: cannot compile 3077See \`config.log' for more details." >&2;} 3078 { (exit 1); exit 1; }; } 3079fi 3080 3081rm -f conftest.$ac_cv_objext conftest.$ac_ext 3082fi 3083{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3084echo "${ECHO_T}$ac_cv_objext" >&6; } 3085OBJEXT=$ac_cv_objext 3086ac_objext=$OBJEXT 3087{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3088echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3089if test "${ac_cv_c_compiler_gnu+set}" = set; then 3090 echo $ECHO_N "(cached) $ECHO_C" >&6 3091else 3092 cat >conftest.$ac_ext <<_ACEOF 3093/* confdefs.h. */ 3094_ACEOF 3095cat confdefs.h >>conftest.$ac_ext 3096cat >>conftest.$ac_ext <<_ACEOF 3097/* end confdefs.h. */ 3098 3099int 3100main () 3101{ 3102#ifndef __GNUC__ 3103 choke me 3104#endif 3105 3106 ; 3107 return 0; 3108} 3109_ACEOF 3110rm -f conftest.$ac_objext 3111if { (ac_try="$ac_compile" 3112case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115esac 3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3117 (eval "$ac_compile") 2>conftest.er1 3118 ac_status=$? 3119 grep -v '^ *+' conftest.er1 >conftest.err 3120 rm -f conftest.er1 3121 cat conftest.err >&5 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } && { 3124 test -z "$ac_c_werror_flag" || 3125 test ! -s conftest.err 3126 } && test -s conftest.$ac_objext; then 3127 ac_compiler_gnu=yes 3128else 3129 echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132 ac_compiler_gnu=no 3133fi 3134 3135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3136ac_cv_c_compiler_gnu=$ac_compiler_gnu 3137 3138fi 3139{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3140echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3141GCC=`test $ac_compiler_gnu = yes && echo yes` 3142ac_test_CFLAGS=${CFLAGS+set} 3143ac_save_CFLAGS=$CFLAGS 3144{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3145echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3146if test "${ac_cv_prog_cc_g+set}" = set; then 3147 echo $ECHO_N "(cached) $ECHO_C" >&6 3148else 3149 ac_save_c_werror_flag=$ac_c_werror_flag 3150 ac_c_werror_flag=yes 3151 ac_cv_prog_cc_g=no 3152 CFLAGS="-g" 3153 cat >conftest.$ac_ext <<_ACEOF 3154/* confdefs.h. */ 3155_ACEOF 3156cat confdefs.h >>conftest.$ac_ext 3157cat >>conftest.$ac_ext <<_ACEOF 3158/* end confdefs.h. */ 3159 3160int 3161main () 3162{ 3163 3164 ; 3165 return 0; 3166} 3167_ACEOF 3168rm -f conftest.$ac_objext 3169if { (ac_try="$ac_compile" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3175 (eval "$ac_compile") 2>conftest.er1 3176 ac_status=$? 3177 grep -v '^ *+' conftest.er1 >conftest.err 3178 rm -f conftest.er1 3179 cat conftest.err >&5 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } && { 3182 test -z "$ac_c_werror_flag" || 3183 test ! -s conftest.err 3184 } && test -s conftest.$ac_objext; then 3185 ac_cv_prog_cc_g=yes 3186else 3187 echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190 CFLAGS="" 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206rm -f conftest.$ac_objext 3207if { (ac_try="$ac_compile" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3213 (eval "$ac_compile") 2>conftest.er1 3214 ac_status=$? 3215 grep -v '^ *+' conftest.er1 >conftest.err 3216 rm -f conftest.er1 3217 cat conftest.err >&5 3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3219 (exit $ac_status); } && { 3220 test -z "$ac_c_werror_flag" || 3221 test ! -s conftest.err 3222 } && test -s conftest.$ac_objext; then 3223 : 3224else 3225 echo "$as_me: failed program was:" >&5 3226sed 's/^/| /' conftest.$ac_ext >&5 3227 3228 ac_c_werror_flag=$ac_save_c_werror_flag 3229 CFLAGS="-g" 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252 (eval "$ac_compile") 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } && { 3259 test -z "$ac_c_werror_flag" || 3260 test ! -s conftest.err 3261 } && test -s conftest.$ac_objext; then 3262 ac_cv_prog_cc_g=yes 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267 3268fi 3269 3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3271fi 3272 3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274fi 3275 3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3277 ac_c_werror_flag=$ac_save_c_werror_flag 3278fi 3279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3281if test "$ac_test_CFLAGS" = set; then 3282 CFLAGS=$ac_save_CFLAGS 3283elif test $ac_cv_prog_cc_g = yes; then 3284 if test "$GCC" = yes; then 3285 CFLAGS="-g -O2" 3286 else 3287 CFLAGS="-g" 3288 fi 3289else 3290 if test "$GCC" = yes; then 3291 CFLAGS="-O2" 3292 else 3293 CFLAGS= 3294 fi 3295fi 3296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3298if test "${ac_cv_prog_cc_c89+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300else 3301 ac_cv_prog_cc_c89=no 3302ac_save_CC=$CC 3303cat >conftest.$ac_ext <<_ACEOF 3304/* confdefs.h. */ 3305_ACEOF 3306cat confdefs.h >>conftest.$ac_ext 3307cat >>conftest.$ac_ext <<_ACEOF 3308/* end confdefs.h. */ 3309#include <stdarg.h> 3310#include <stdio.h> 3311#include <sys/types.h> 3312#include <sys/stat.h> 3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3314struct buf { int x; }; 3315FILE * (*rcsopen) (struct buf *, struct stat *, int); 3316static char *e (p, i) 3317 char **p; 3318 int i; 3319{ 3320 return p[i]; 3321} 3322static char *f (char * (*g) (char **, int), char **p, ...) 3323{ 3324 char *s; 3325 va_list v; 3326 va_start (v,p); 3327 s = g (p, va_arg (v,int)); 3328 va_end (v); 3329 return s; 3330} 3331 3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3333 function prototypes and stuff, but not '\xHH' hex character constants. 3334 These don't provoke an error unfortunately, instead are silently treated 3335 as 'x'. The following induces an error, until -std is added to get 3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3337 array size at least. It's necessary to write '\x00'==0 to get something 3338 that's true only with -std. */ 3339int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3340 3341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3342 inside strings and character constants. */ 3343#define FOO(x) 'x' 3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3345 3346int test (int i, double x); 3347struct s1 {int (*f) (int a);}; 3348struct s2 {int (*f) (double a);}; 3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3350int argc; 3351char **argv; 3352int 3353main () 3354{ 3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3362do 3363 CC="$ac_save_CC $ac_arg" 3364 rm -f conftest.$ac_objext 3365if { (ac_try="$ac_compile" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_compile") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } && { 3378 test -z "$ac_c_werror_flag" || 3379 test ! -s conftest.err 3380 } && test -s conftest.$ac_objext; then 3381 ac_cv_prog_cc_c89=$ac_arg 3382else 3383 echo "$as_me: failed program was:" >&5 3384sed 's/^/| /' conftest.$ac_ext >&5 3385 3386 3387fi 3388 3389rm -f core conftest.err conftest.$ac_objext 3390 test "x$ac_cv_prog_cc_c89" != "xno" && break 3391done 3392rm -f conftest.$ac_ext 3393CC=$ac_save_CC 3394 3395fi 3396# AC_CACHE_VAL 3397case "x$ac_cv_prog_cc_c89" in 3398 x) 3399 { echo "$as_me:$LINENO: result: none needed" >&5 3400echo "${ECHO_T}none needed" >&6; } ;; 3401 xno) 3402 { echo "$as_me:$LINENO: result: unsupported" >&5 3403echo "${ECHO_T}unsupported" >&6; } ;; 3404 *) 3405 CC="$CC $ac_cv_prog_cc_c89" 3406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3407echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3408esac 3409 3410 3411ac_ext=c 3412ac_cpp='$CPP $CPPFLAGS' 3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3415ac_compiler_gnu=$ac_cv_c_compiler_gnu 3416 3417 ac_ext=c 3418ac_cpp='$CPP $CPPFLAGS' 3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3421ac_compiler_gnu=$ac_cv_c_compiler_gnu 3422{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3424# On Suns, sometimes $CPP names a directory. 3425if test -n "$CPP" && test -d "$CPP"; then 3426 CPP= 3427fi 3428if test -z "$CPP"; then 3429 if test "${ac_cv_prog_CPP+set}" = set; then 3430 echo $ECHO_N "(cached) $ECHO_C" >&6 3431else 3432 # Double quotes because CPP needs to be expanded 3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3434 do 3435 ac_preproc_ok=false 3436for ac_c_preproc_warn_flag in '' yes 3437do 3438 # Use a header file that comes with gcc, so configuring glibc 3439 # with a fresh cross-compiler works. 3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3441 # <limits.h> exists even on freestanding compilers. 3442 # On the NeXT, cc -E runs the code through the compiler's parser, 3443 # not just through cpp. "Syntax error" is here to catch this case. 3444 cat >conftest.$ac_ext <<_ACEOF 3445/* confdefs.h. */ 3446_ACEOF 3447cat confdefs.h >>conftest.$ac_ext 3448cat >>conftest.$ac_ext <<_ACEOF 3449/* end confdefs.h. */ 3450#ifdef __STDC__ 3451# include <limits.h> 3452#else 3453# include <assert.h> 3454#endif 3455 Syntax error 3456_ACEOF 3457if { (ac_try="$ac_cpp conftest.$ac_ext" 3458case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461esac 3462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3464 ac_status=$? 3465 grep -v '^ *+' conftest.er1 >conftest.err 3466 rm -f conftest.er1 3467 cat conftest.err >&5 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); } >/dev/null && { 3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3471 test ! -s conftest.err 3472 }; then 3473 : 3474else 3475 echo "$as_me: failed program was:" >&5 3476sed 's/^/| /' conftest.$ac_ext >&5 3477 3478 # Broken: fails on valid input. 3479continue 3480fi 3481 3482rm -f conftest.err conftest.$ac_ext 3483 3484 # OK, works on sane cases. Now check whether nonexistent headers 3485 # can be detected and how. 3486 cat >conftest.$ac_ext <<_ACEOF 3487/* confdefs.h. */ 3488_ACEOF 3489cat confdefs.h >>conftest.$ac_ext 3490cat >>conftest.$ac_ext <<_ACEOF 3491/* end confdefs.h. */ 3492#include <ac_nonexistent.h> 3493_ACEOF 3494if { (ac_try="$ac_cpp conftest.$ac_ext" 3495case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498esac 3499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } >/dev/null && { 3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3508 test ! -s conftest.err 3509 }; then 3510 # Broken: success on invalid input. 3511continue 3512else 3513 echo "$as_me: failed program was:" >&5 3514sed 's/^/| /' conftest.$ac_ext >&5 3515 3516 # Passes both tests. 3517ac_preproc_ok=: 3518break 3519fi 3520 3521rm -f conftest.err conftest.$ac_ext 3522 3523done 3524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3525rm -f conftest.err conftest.$ac_ext 3526if $ac_preproc_ok; then 3527 break 3528fi 3529 3530 done 3531 ac_cv_prog_CPP=$CPP 3532 3533fi 3534 CPP=$ac_cv_prog_CPP 3535else 3536 ac_cv_prog_CPP=$CPP 3537fi 3538{ echo "$as_me:$LINENO: result: $CPP" >&5 3539echo "${ECHO_T}$CPP" >&6; } 3540ac_preproc_ok=false 3541for ac_c_preproc_warn_flag in '' yes 3542do 3543 # Use a header file that comes with gcc, so configuring glibc 3544 # with a fresh cross-compiler works. 3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3546 # <limits.h> exists even on freestanding compilers. 3547 # On the NeXT, cc -E runs the code through the compiler's parser, 3548 # not just through cpp. "Syntax error" is here to catch this case. 3549 cat >conftest.$ac_ext <<_ACEOF 3550/* confdefs.h. */ 3551_ACEOF 3552cat confdefs.h >>conftest.$ac_ext 3553cat >>conftest.$ac_ext <<_ACEOF 3554/* end confdefs.h. */ 3555#ifdef __STDC__ 3556# include <limits.h> 3557#else 3558# include <assert.h> 3559#endif 3560 Syntax error 3561_ACEOF 3562if { (ac_try="$ac_cpp conftest.$ac_ext" 3563case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3569 ac_status=$? 3570 grep -v '^ *+' conftest.er1 >conftest.err 3571 rm -f conftest.er1 3572 cat conftest.err >&5 3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3574 (exit $ac_status); } >/dev/null && { 3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3576 test ! -s conftest.err 3577 }; then 3578 : 3579else 3580 echo "$as_me: failed program was:" >&5 3581sed 's/^/| /' conftest.$ac_ext >&5 3582 3583 # Broken: fails on valid input. 3584continue 3585fi 3586 3587rm -f conftest.err conftest.$ac_ext 3588 3589 # OK, works on sane cases. Now check whether nonexistent headers 3590 # can be detected and how. 3591 cat >conftest.$ac_ext <<_ACEOF 3592/* confdefs.h. */ 3593_ACEOF 3594cat confdefs.h >>conftest.$ac_ext 3595cat >>conftest.$ac_ext <<_ACEOF 3596/* end confdefs.h. */ 3597#include <ac_nonexistent.h> 3598_ACEOF 3599if { (ac_try="$ac_cpp conftest.$ac_ext" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } >/dev/null && { 3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3613 test ! -s conftest.err 3614 }; then 3615 # Broken: success on invalid input. 3616continue 3617else 3618 echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621 # Passes both tests. 3622ac_preproc_ok=: 3623break 3624fi 3625 3626rm -f conftest.err conftest.$ac_ext 3627 3628done 3629# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3630rm -f conftest.err conftest.$ac_ext 3631if $ac_preproc_ok; then 3632 : 3633else 3634 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3635See \`config.log' for more details." >&5 3636echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3637See \`config.log' for more details." >&2;} 3638 { (exit 1); exit 1; }; } 3639fi 3640 3641ac_ext=c 3642ac_cpp='$CPP $CPPFLAGS' 3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3645ac_compiler_gnu=$ac_cv_c_compiler_gnu 3646 3647 3648 # Find a good install program. We prefer a C program (faster), 3649# so one script is as good as another. But avoid the broken or 3650# incompatible versions: 3651# SysV /etc/install, /usr/sbin/install 3652# SunOS /usr/etc/install 3653# IRIX /sbin/install 3654# AIX /bin/install 3655# AmigaOS /C/install, which installs bootblocks on floppy discs 3656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3657# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3659# OS/2's system install, which has a completely different semantic 3660# ./install, which can be erroneously created by make from ./install.sh. 3661{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3663if test -z "$INSTALL"; then 3664if test "${ac_cv_path_install+set}" = set; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666else 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 # Account for people who put trailing slashes in PATH elements. 3673case $as_dir/ in 3674 ./ | .// | /cC/* | \ 3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3677 /usr/ucb/* ) ;; 3678 *) 3679 # OSF1 and SCO ODT 3.0 have their own names for install. 3680 # Don't use installbsd from OSF since it installs stuff as root 3681 # by default. 3682 for ac_prog in ginstall scoinst install; do 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3685 if test $ac_prog = install && 3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3687 # AIX install. It has an incompatible calling convention. 3688 : 3689 elif test $ac_prog = install && 3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3691 # program-specific install script used by HP pwplus--don't use. 3692 : 3693 else 3694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3695 break 3 3696 fi 3697 fi 3698 done 3699 done 3700 ;; 3701esac 3702done 3703IFS=$as_save_IFS 3704 3705 3706fi 3707 if test "${ac_cv_path_install+set}" = set; then 3708 INSTALL=$ac_cv_path_install 3709 else 3710 # As a last resort, use the slow shell script. Don't cache a 3711 # value for INSTALL within a source directory, because that will 3712 # break other packages using the cache if that directory is 3713 # removed, or if the value is a relative name. 3714 INSTALL=$ac_install_sh 3715 fi 3716fi 3717{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3718echo "${ECHO_T}$INSTALL" >&6; } 3719 3720# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3721# It thinks the first close brace ends the variable substitution. 3722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3723 3724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3725 3726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3727 3728 3729 #-------------------------------------------------------------------- 3730 # Checks to see if the make program sets the $MAKE variable. 3731 #-------------------------------------------------------------------- 3732 3733 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3735set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3736if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 cat >conftest.make <<\_ACEOF 3740SHELL = /bin/sh 3741all: 3742 @echo '@@@%%%=$(MAKE)=@@@%%%' 3743_ACEOF 3744# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3745case `${MAKE-make} -f conftest.make 2>/dev/null` in 3746 *@@@%%%=?*=@@@%%%*) 3747 eval ac_cv_prog_make_${ac_make}_set=yes;; 3748 *) 3749 eval ac_cv_prog_make_${ac_make}_set=no;; 3750esac 3751rm -f conftest.make 3752fi 3753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3754 { echo "$as_me:$LINENO: result: yes" >&5 3755echo "${ECHO_T}yes" >&6; } 3756 SET_MAKE= 3757else 3758 { echo "$as_me:$LINENO: result: no" >&5 3759echo "${ECHO_T}no" >&6; } 3760 SET_MAKE="MAKE=${MAKE-make}" 3761fi 3762 3763 3764 #-------------------------------------------------------------------- 3765 # Find ranlib 3766 #-------------------------------------------------------------------- 3767 3768 if test -n "$ac_tool_prefix"; then 3769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3770set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3773if test "${ac_cv_prog_RANLIB+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 if test -n "$RANLIB"; then 3777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3778else 3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796RANLIB=$ac_cv_prog_RANLIB 3797if test -n "$RANLIB"; then 3798 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3799echo "${ECHO_T}$RANLIB" >&6; } 3800else 3801 { echo "$as_me:$LINENO: result: no" >&5 3802echo "${ECHO_T}no" >&6; } 3803fi 3804 3805 3806fi 3807if test -z "$ac_cv_prog_RANLIB"; then 3808 ac_ct_RANLIB=$RANLIB 3809 # Extract the first word of "ranlib", so it can be a program name with args. 3810set dummy ranlib; ac_word=$2 3811{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3813if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 if test -n "$ac_ct_RANLIB"; then 3817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3826 ac_cv_prog_ac_ct_RANLIB="ranlib" 3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830done 3831done 3832IFS=$as_save_IFS 3833 3834fi 3835fi 3836ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3837if test -n "$ac_ct_RANLIB"; then 3838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3839echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3840else 3841 { echo "$as_me:$LINENO: result: no" >&5 3842echo "${ECHO_T}no" >&6; } 3843fi 3844 3845 if test "x$ac_ct_RANLIB" = x; then 3846 RANLIB=":" 3847 else 3848 case $cross_compiling:$ac_tool_warned in 3849yes:) 3850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3851whose name does not start with the host triplet. If you think this 3852configuration is useful to you, please write to autoconf@gnu.org." >&5 3853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3854whose name does not start with the host triplet. If you think this 3855configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3856ac_tool_warned=yes ;; 3857esac 3858 RANLIB=$ac_ct_RANLIB 3859 fi 3860else 3861 RANLIB="$ac_cv_prog_RANLIB" 3862fi 3863 3864 3865 #-------------------------------------------------------------------- 3866 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3867 #-------------------------------------------------------------------- 3868 3869 3870 3871 3872 3873 3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3876if test "${ac_cv_path_GREP+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 # Extract the first word of "grep ggrep" to use in msg output 3880if test -z "$GREP"; then 3881set dummy grep ggrep; ac_prog_name=$2 3882if test "${ac_cv_path_GREP+set}" = set; then 3883 echo $ECHO_N "(cached) $ECHO_C" >&6 3884else 3885 ac_path_GREP_found=false 3886# Loop through the user's path and test for each of PROGNAME-LIST 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 for ac_prog in grep ggrep; do 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3895 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3896 # Check for GNU ac_path_GREP and select it if it is found. 3897 # Check for GNU $ac_path_GREP 3898case `"$ac_path_GREP" --version 2>&1` in 3899*GNU*) 3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3901*) 3902 ac_count=0 3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3904 while : 3905 do 3906 cat "conftest.in" "conftest.in" >"conftest.tmp" 3907 mv "conftest.tmp" "conftest.in" 3908 cp "conftest.in" "conftest.nl" 3909 echo 'GREP' >> "conftest.nl" 3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3912 ac_count=`expr $ac_count + 1` 3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3914 # Best one so far, save it but keep looking for a better one 3915 ac_cv_path_GREP="$ac_path_GREP" 3916 ac_path_GREP_max=$ac_count 3917 fi 3918 # 10*(2^10) chars as input seems more than enough 3919 test $ac_count -gt 10 && break 3920 done 3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3922esac 3923 3924 3925 $ac_path_GREP_found && break 3 3926 done 3927done 3928 3929done 3930IFS=$as_save_IFS 3931 3932 3933fi 3934 3935GREP="$ac_cv_path_GREP" 3936if test -z "$GREP"; then 3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3939 { (exit 1); exit 1; }; } 3940fi 3941 3942else 3943 ac_cv_path_GREP=$GREP 3944fi 3945 3946 3947fi 3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3950 GREP="$ac_cv_path_GREP" 3951 3952 3953{ echo "$as_me:$LINENO: checking for egrep" >&5 3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3955if test "${ac_cv_path_EGREP+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3959 then ac_cv_path_EGREP="$GREP -E" 3960 else 3961 # Extract the first word of "egrep" to use in msg output 3962if test -z "$EGREP"; then 3963set dummy egrep; ac_prog_name=$2 3964if test "${ac_cv_path_EGREP+set}" = set; then 3965 echo $ECHO_N "(cached) $ECHO_C" >&6 3966else 3967 ac_path_EGREP_found=false 3968# Loop through the user's path and test for each of PROGNAME-LIST 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_prog in egrep; do 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3978 # Check for GNU ac_path_EGREP and select it if it is found. 3979 # Check for GNU $ac_path_EGREP 3980case `"$ac_path_EGREP" --version 2>&1` in 3981*GNU*) 3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3983*) 3984 ac_count=0 3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3986 while : 3987 do 3988 cat "conftest.in" "conftest.in" >"conftest.tmp" 3989 mv "conftest.tmp" "conftest.in" 3990 cp "conftest.in" "conftest.nl" 3991 echo 'EGREP' >> "conftest.nl" 3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3994 ac_count=`expr $ac_count + 1` 3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3996 # Best one so far, save it but keep looking for a better one 3997 ac_cv_path_EGREP="$ac_path_EGREP" 3998 ac_path_EGREP_max=$ac_count 3999 fi 4000 # 10*(2^10) chars as input seems more than enough 4001 test $ac_count -gt 10 && break 4002 done 4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4004esac 4005 4006 4007 $ac_path_EGREP_found && break 3 4008 done 4009done 4010 4011done 4012IFS=$as_save_IFS 4013 4014 4015fi 4016 4017EGREP="$ac_cv_path_EGREP" 4018if test -z "$EGREP"; then 4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4021 { (exit 1); exit 1; }; } 4022fi 4023 4024else 4025 ac_cv_path_EGREP=$EGREP 4026fi 4027 4028 4029 fi 4030fi 4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4033 EGREP="$ac_cv_path_EGREP" 4034 4035 4036{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4038if test "${ac_cv_header_stdc+set}" = set; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040else 4041 cat >conftest.$ac_ext <<_ACEOF 4042/* confdefs.h. */ 4043_ACEOF 4044cat confdefs.h >>conftest.$ac_ext 4045cat >>conftest.$ac_ext <<_ACEOF 4046/* end confdefs.h. */ 4047#include <stdlib.h> 4048#include <stdarg.h> 4049#include <string.h> 4050#include <float.h> 4051 4052int 4053main () 4054{ 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060rm -f conftest.$ac_objext 4061if { (ac_try="$ac_compile" 4062case "(($ac_try" in 4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064 *) ac_try_echo=$ac_try;; 4065esac 4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4067 (eval "$ac_compile") 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } && { 4074 test -z "$ac_c_werror_flag" || 4075 test ! -s conftest.err 4076 } && test -s conftest.$ac_objext; then 4077 ac_cv_header_stdc=yes 4078else 4079 echo "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 ac_cv_header_stdc=no 4083fi 4084 4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4086 4087if test $ac_cv_header_stdc = yes; then 4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4089 cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095#include <string.h> 4096 4097_ACEOF 4098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4099 $EGREP "memchr" >/dev/null 2>&1; then 4100 : 4101else 4102 ac_cv_header_stdc=no 4103fi 4104rm -f -r conftest* 4105 4106fi 4107 4108if test $ac_cv_header_stdc = yes; then 4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4110 cat >conftest.$ac_ext <<_ACEOF 4111/* confdefs.h. */ 4112_ACEOF 4113cat confdefs.h >>conftest.$ac_ext 4114cat >>conftest.$ac_ext <<_ACEOF 4115/* end confdefs.h. */ 4116#include <stdlib.h> 4117 4118_ACEOF 4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4120 $EGREP "free" >/dev/null 2>&1; then 4121 : 4122else 4123 ac_cv_header_stdc=no 4124fi 4125rm -f -r conftest* 4126 4127fi 4128 4129if test $ac_cv_header_stdc = yes; then 4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4131 if test "$cross_compiling" = yes; then 4132 : 4133else 4134 cat >conftest.$ac_ext <<_ACEOF 4135/* confdefs.h. */ 4136_ACEOF 4137cat confdefs.h >>conftest.$ac_ext 4138cat >>conftest.$ac_ext <<_ACEOF 4139/* end confdefs.h. */ 4140#include <ctype.h> 4141#include <stdlib.h> 4142#if ((' ' & 0x0FF) == 0x020) 4143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4145#else 4146# define ISLOWER(c) \ 4147 (('a' <= (c) && (c) <= 'i') \ 4148 || ('j' <= (c) && (c) <= 'r') \ 4149 || ('s' <= (c) && (c) <= 'z')) 4150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4151#endif 4152 4153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4154int 4155main () 4156{ 4157 int i; 4158 for (i = 0; i < 256; i++) 4159 if (XOR (islower (i), ISLOWER (i)) 4160 || toupper (i) != TOUPPER (i)) 4161 return 2; 4162 return 0; 4163} 4164_ACEOF 4165rm -f conftest$ac_exeext 4166if { (ac_try="$ac_link" 4167case "(($ac_try" in 4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4169 *) ac_try_echo=$ac_try;; 4170esac 4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4172 (eval "$ac_link") 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4176 { (case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4181 (eval "$ac_try") 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; }; then 4185 : 4186else 4187 echo "$as_me: program exited with status $ac_status" >&5 4188echo "$as_me: failed program was:" >&5 4189sed 's/^/| /' conftest.$ac_ext >&5 4190 4191( exit $ac_status ) 4192ac_cv_header_stdc=no 4193fi 4194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4195fi 4196 4197 4198fi 4199fi 4200{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4201echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4202if test $ac_cv_header_stdc = yes; then 4203 4204cat >>confdefs.h <<\_ACEOF 4205#define STDC_HEADERS 1 4206_ACEOF 4207 4208fi 4209 4210# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4221 inttypes.h stdint.h unistd.h 4222do 4223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4224{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4227 echo $ECHO_N "(cached) $ECHO_C" >&6 4228else 4229 cat >conftest.$ac_ext <<_ACEOF 4230/* confdefs.h. */ 4231_ACEOF 4232cat confdefs.h >>conftest.$ac_ext 4233cat >>conftest.$ac_ext <<_ACEOF 4234/* end confdefs.h. */ 4235$ac_includes_default 4236 4237#include <$ac_header> 4238_ACEOF 4239rm -f conftest.$ac_objext 4240if { (ac_try="$ac_compile" 4241case "(($ac_try" in 4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4243 *) ac_try_echo=$ac_try;; 4244esac 4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4246 (eval "$ac_compile") 2>conftest.er1 4247 ac_status=$? 4248 grep -v '^ *+' conftest.er1 >conftest.err 4249 rm -f conftest.er1 4250 cat conftest.err >&5 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); } && { 4253 test -z "$ac_c_werror_flag" || 4254 test ! -s conftest.err 4255 } && test -s conftest.$ac_objext; then 4256 eval "$as_ac_Header=yes" 4257else 4258 echo "$as_me: failed program was:" >&5 4259sed 's/^/| /' conftest.$ac_ext >&5 4260 4261 eval "$as_ac_Header=no" 4262fi 4263 4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4265fi 4266ac_res=`eval echo '${'$as_ac_Header'}'` 4267 { echo "$as_me:$LINENO: result: $ac_res" >&5 4268echo "${ECHO_T}$ac_res" >&6; } 4269if test `eval echo '${'$as_ac_Header'}'` = yes; then 4270 cat >>confdefs.h <<_ACEOF 4271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4272_ACEOF 4273 4274fi 4275 4276done 4277 4278 4279 4280 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4281 4282 4283 #------------------------------------------------------------------------ 4284 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4285 # It makes compiling go faster. (This is only a performance feature.) 4286 #------------------------------------------------------------------------ 4287 4288 if test -z "$no_pipe" -a -n "$GCC"; then 4289 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4290echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4291if test "${tcl_cv_cc_pipe+set}" = set; then 4292 echo $ECHO_N "(cached) $ECHO_C" >&6 4293else 4294 4295 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4296 cat >conftest.$ac_ext <<_ACEOF 4297/* confdefs.h. */ 4298_ACEOF 4299cat confdefs.h >>conftest.$ac_ext 4300cat >>conftest.$ac_ext <<_ACEOF 4301/* end confdefs.h. */ 4302 4303int 4304main () 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311rm -f conftest.$ac_objext 4312if { (ac_try="$ac_compile" 4313case "(($ac_try" in 4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4315 *) ac_try_echo=$ac_try;; 4316esac 4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4318 (eval "$ac_compile") 2>conftest.er1 4319 ac_status=$? 4320 grep -v '^ *+' conftest.er1 >conftest.err 4321 rm -f conftest.er1 4322 cat conftest.err >&5 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4324 (exit $ac_status); } && { 4325 test -z "$ac_c_werror_flag" || 4326 test ! -s conftest.err 4327 } && test -s conftest.$ac_objext; then 4328 tcl_cv_cc_pipe=yes 4329else 4330 echo "$as_me: failed program was:" >&5 4331sed 's/^/| /' conftest.$ac_ext >&5 4332 4333 tcl_cv_cc_pipe=no 4334fi 4335 4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4337 CFLAGS=$hold_cflags 4338fi 4339{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4340echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4341 if test $tcl_cv_cc_pipe = yes; then 4342 CFLAGS="$CFLAGS -pipe" 4343 fi 4344 fi 4345 4346 #-------------------------------------------------------------------- 4347 # Common compiler flag setup 4348 #-------------------------------------------------------------------- 4349 4350 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4351echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4352if test "${ac_cv_c_bigendian+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 # See if sys/param.h defines the BYTE_ORDER macro. 4356cat >conftest.$ac_ext <<_ACEOF 4357/* confdefs.h. */ 4358_ACEOF 4359cat confdefs.h >>conftest.$ac_ext 4360cat >>conftest.$ac_ext <<_ACEOF 4361/* end confdefs.h. */ 4362#include <sys/types.h> 4363#include <sys/param.h> 4364 4365int 4366main () 4367{ 4368#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4369 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4370 bogus endian macros 4371#endif 4372 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377rm -f conftest.$ac_objext 4378if { (ac_try="$ac_compile" 4379case "(($ac_try" in 4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4381 *) ac_try_echo=$ac_try;; 4382esac 4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4384 (eval "$ac_compile") 2>conftest.er1 4385 ac_status=$? 4386 grep -v '^ *+' conftest.er1 >conftest.err 4387 rm -f conftest.er1 4388 cat conftest.err >&5 4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } && { 4391 test -z "$ac_c_werror_flag" || 4392 test ! -s conftest.err 4393 } && test -s conftest.$ac_objext; then 4394 # It does; now see whether it defined to BIG_ENDIAN or not. 4395cat >conftest.$ac_ext <<_ACEOF 4396/* confdefs.h. */ 4397_ACEOF 4398cat confdefs.h >>conftest.$ac_ext 4399cat >>conftest.$ac_ext <<_ACEOF 4400/* end confdefs.h. */ 4401#include <sys/types.h> 4402#include <sys/param.h> 4403 4404int 4405main () 4406{ 4407#if BYTE_ORDER != BIG_ENDIAN 4408 not big endian 4409#endif 4410 4411 ; 4412 return 0; 4413} 4414_ACEOF 4415rm -f conftest.$ac_objext 4416if { (ac_try="$ac_compile" 4417case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420esac 4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4422 (eval "$ac_compile") 2>conftest.er1 4423 ac_status=$? 4424 grep -v '^ *+' conftest.er1 >conftest.err 4425 rm -f conftest.er1 4426 cat conftest.err >&5 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); } && { 4429 test -z "$ac_c_werror_flag" || 4430 test ! -s conftest.err 4431 } && test -s conftest.$ac_objext; then 4432 ac_cv_c_bigendian=yes 4433else 4434 echo "$as_me: failed program was:" >&5 4435sed 's/^/| /' conftest.$ac_ext >&5 4436 4437 ac_cv_c_bigendian=no 4438fi 4439 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 # It does not; compile a test program. 4446if test "$cross_compiling" = yes; then 4447 # try to guess the endianness by grepping values into an object file 4448 ac_cv_c_bigendian=unknown 4449 cat >conftest.$ac_ext <<_ACEOF 4450/* confdefs.h. */ 4451_ACEOF 4452cat confdefs.h >>conftest.$ac_ext 4453cat >>conftest.$ac_ext <<_ACEOF 4454/* end confdefs.h. */ 4455short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4456short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4457void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4458short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4459short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4460void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4461int 4462main () 4463{ 4464 _ascii (); _ebcdic (); 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext 4470if { (ac_try="$ac_compile" 4471case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474esac 4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_compile") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && { 4483 test -z "$ac_c_werror_flag" || 4484 test ! -s conftest.err 4485 } && test -s conftest.$ac_objext; then 4486 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4487 ac_cv_c_bigendian=yes 4488fi 4489if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4490 if test "$ac_cv_c_bigendian" = unknown; then 4491 ac_cv_c_bigendian=no 4492 else 4493 # finding both strings is unlikely to happen, but who knows? 4494 ac_cv_c_bigendian=unknown 4495 fi 4496fi 4497else 4498 echo "$as_me: failed program was:" >&5 4499sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 4502fi 4503 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505else 4506 cat >conftest.$ac_ext <<_ACEOF 4507/* confdefs.h. */ 4508_ACEOF 4509cat confdefs.h >>conftest.$ac_ext 4510cat >>conftest.$ac_ext <<_ACEOF 4511/* end confdefs.h. */ 4512$ac_includes_default 4513int 4514main () 4515{ 4516 4517 /* Are we little or big endian? From Harbison&Steele. */ 4518 union 4519 { 4520 long int l; 4521 char c[sizeof (long int)]; 4522 } u; 4523 u.l = 1; 4524 return u.c[sizeof (long int) - 1] == 1; 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530rm -f conftest$ac_exeext 4531if { (ac_try="$ac_link" 4532case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4537 (eval "$ac_link") 2>&5 4538 ac_status=$? 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4541 { (case "(($ac_try" in 4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4543 *) ac_try_echo=$ac_try;; 4544esac 4545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4546 (eval "$ac_try") 2>&5 4547 ac_status=$? 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); }; }; then 4550 ac_cv_c_bigendian=no 4551else 4552 echo "$as_me: program exited with status $ac_status" >&5 4553echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556( exit $ac_status ) 4557ac_cv_c_bigendian=yes 4558fi 4559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4560fi 4561 4562 4563fi 4564 4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4566fi 4567{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4568echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4569case $ac_cv_c_bigendian in 4570 yes) 4571 4572cat >>confdefs.h <<\_ACEOF 4573#define WORDS_BIGENDIAN 1 4574_ACEOF 4575 ;; 4576 no) 4577 ;; 4578 *) 4579 { { echo "$as_me:$LINENO: error: unknown endianness 4580presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4581echo "$as_me: error: unknown endianness 4582presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4583 { (exit 1); exit 1; }; } ;; 4584esac 4585 4586 if test "${TEA_PLATFORM}" = "unix" ; then 4587 4588 #-------------------------------------------------------------------- 4589 # On a few very rare systems, all of the libm.a stuff is 4590 # already in libc.a. Set compiler flags accordingly. 4591 # Also, Linux requires the "ieee" library for math to work 4592 # right (and it must appear before "-lm"). 4593 #-------------------------------------------------------------------- 4594 4595 { echo "$as_me:$LINENO: checking for sin" >&5 4596echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4597if test "${ac_cv_func_sin+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 cat >conftest.$ac_ext <<_ACEOF 4601/* confdefs.h. */ 4602_ACEOF 4603cat confdefs.h >>conftest.$ac_ext 4604cat >>conftest.$ac_ext <<_ACEOF 4605/* end confdefs.h. */ 4606/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4607 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4608#define sin innocuous_sin 4609 4610/* System header to define __stub macros and hopefully few prototypes, 4611 which can conflict with char sin (); below. 4612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4613 <limits.h> exists even on freestanding compilers. */ 4614 4615#ifdef __STDC__ 4616# include <limits.h> 4617#else 4618# include <assert.h> 4619#endif 4620 4621#undef sin 4622 4623/* Override any GCC internal prototype to avoid an error. 4624 Use char because int might match the return type of a GCC 4625 builtin and then its argument prototype would still apply. */ 4626#ifdef __cplusplus 4627extern "C" 4628#endif 4629char sin (); 4630/* The GNU C library defines this for functions which it implements 4631 to always fail with ENOSYS. Some functions are actually named 4632 something starting with __ and the normal name is an alias. */ 4633#if defined __stub_sin || defined __stub___sin 4634choke me 4635#endif 4636 4637int 4638main () 4639{ 4640return sin (); 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645rm -f conftest.$ac_objext conftest$ac_exeext 4646if { (ac_try="$ac_link" 4647case "(($ac_try" in 4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4649 *) ac_try_echo=$ac_try;; 4650esac 4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4652 (eval "$ac_link") 2>conftest.er1 4653 ac_status=$? 4654 grep -v '^ *+' conftest.er1 >conftest.err 4655 rm -f conftest.er1 4656 cat conftest.err >&5 4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4658 (exit $ac_status); } && { 4659 test -z "$ac_c_werror_flag" || 4660 test ! -s conftest.err 4661 } && test -s conftest$ac_exeext && 4662 $as_test_x conftest$ac_exeext; then 4663 ac_cv_func_sin=yes 4664else 4665 echo "$as_me: failed program was:" >&5 4666sed 's/^/| /' conftest.$ac_ext >&5 4667 4668 ac_cv_func_sin=no 4669fi 4670 4671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4672 conftest$ac_exeext conftest.$ac_ext 4673fi 4674{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4675echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4676if test $ac_cv_func_sin = yes; then 4677 MATH_LIBS="" 4678else 4679 MATH_LIBS="-lm" 4680fi 4681 4682 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4683echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4684if test "${ac_cv_lib_ieee_main+set}" = set; then 4685 echo $ECHO_N "(cached) $ECHO_C" >&6 4686else 4687 ac_check_lib_save_LIBS=$LIBS 4688LIBS="-lieee $LIBS" 4689cat >conftest.$ac_ext <<_ACEOF 4690/* confdefs.h. */ 4691_ACEOF 4692cat confdefs.h >>conftest.$ac_ext 4693cat >>conftest.$ac_ext <<_ACEOF 4694/* end confdefs.h. */ 4695 4696 4697int 4698main () 4699{ 4700return main (); 4701 ; 4702 return 0; 4703} 4704_ACEOF 4705rm -f conftest.$ac_objext conftest$ac_exeext 4706if { (ac_try="$ac_link" 4707case "(($ac_try" in 4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4709 *) ac_try_echo=$ac_try;; 4710esac 4711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4712 (eval "$ac_link") 2>conftest.er1 4713 ac_status=$? 4714 grep -v '^ *+' conftest.er1 >conftest.err 4715 rm -f conftest.er1 4716 cat conftest.err >&5 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4718 (exit $ac_status); } && { 4719 test -z "$ac_c_werror_flag" || 4720 test ! -s conftest.err 4721 } && test -s conftest$ac_exeext && 4722 $as_test_x conftest$ac_exeext; then 4723 ac_cv_lib_ieee_main=yes 4724else 4725 echo "$as_me: failed program was:" >&5 4726sed 's/^/| /' conftest.$ac_ext >&5 4727 4728 ac_cv_lib_ieee_main=no 4729fi 4730 4731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4732 conftest$ac_exeext conftest.$ac_ext 4733LIBS=$ac_check_lib_save_LIBS 4734fi 4735{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4736echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4737if test $ac_cv_lib_ieee_main = yes; then 4738 MATH_LIBS="-lieee $MATH_LIBS" 4739fi 4740 4741 4742 #-------------------------------------------------------------------- 4743 # Interactive UNIX requires -linet instead of -lsocket, plus it 4744 # needs net/errno.h to define the socket-related error codes. 4745 #-------------------------------------------------------------------- 4746 4747 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4748echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4749if test "${ac_cv_lib_inet_main+set}" = set; then 4750 echo $ECHO_N "(cached) $ECHO_C" >&6 4751else 4752 ac_check_lib_save_LIBS=$LIBS 4753LIBS="-linet $LIBS" 4754cat >conftest.$ac_ext <<_ACEOF 4755/* confdefs.h. */ 4756_ACEOF 4757cat confdefs.h >>conftest.$ac_ext 4758cat >>conftest.$ac_ext <<_ACEOF 4759/* end confdefs.h. */ 4760 4761 4762int 4763main () 4764{ 4765return main (); 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770rm -f conftest.$ac_objext conftest$ac_exeext 4771if { (ac_try="$ac_link" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_link") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && { 4784 test -z "$ac_c_werror_flag" || 4785 test ! -s conftest.err 4786 } && test -s conftest$ac_exeext && 4787 $as_test_x conftest$ac_exeext; then 4788 ac_cv_lib_inet_main=yes 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793 ac_cv_lib_inet_main=no 4794fi 4795 4796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4797 conftest$ac_exeext conftest.$ac_ext 4798LIBS=$ac_check_lib_save_LIBS 4799fi 4800{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4801echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4802if test $ac_cv_lib_inet_main = yes; then 4803 LIBS="$LIBS -linet" 4804fi 4805 4806 if test "${ac_cv_header_net_errno_h+set}" = set; then 4807 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4808echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4809if test "${ac_cv_header_net_errno_h+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811fi 4812{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4813echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4814else 4815 # Is the header compilable? 4816{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4817echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4818cat >conftest.$ac_ext <<_ACEOF 4819/* confdefs.h. */ 4820_ACEOF 4821cat confdefs.h >>conftest.$ac_ext 4822cat >>conftest.$ac_ext <<_ACEOF 4823/* end confdefs.h. */ 4824$ac_includes_default 4825#include <net/errno.h> 4826_ACEOF 4827rm -f conftest.$ac_objext 4828if { (ac_try="$ac_compile" 4829case "(($ac_try" in 4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4831 *) ac_try_echo=$ac_try;; 4832esac 4833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4834 (eval "$ac_compile") 2>conftest.er1 4835 ac_status=$? 4836 grep -v '^ *+' conftest.er1 >conftest.err 4837 rm -f conftest.er1 4838 cat conftest.err >&5 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); } && { 4841 test -z "$ac_c_werror_flag" || 4842 test ! -s conftest.err 4843 } && test -s conftest.$ac_objext; then 4844 ac_header_compiler=yes 4845else 4846 echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849 ac_header_compiler=no 4850fi 4851 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4854echo "${ECHO_T}$ac_header_compiler" >&6; } 4855 4856# Is the header present? 4857{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4858echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4859cat >conftest.$ac_ext <<_ACEOF 4860/* confdefs.h. */ 4861_ACEOF 4862cat confdefs.h >>conftest.$ac_ext 4863cat >>conftest.$ac_ext <<_ACEOF 4864/* end confdefs.h. */ 4865#include <net/errno.h> 4866_ACEOF 4867if { (ac_try="$ac_cpp conftest.$ac_ext" 4868case "(($ac_try" in 4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4870 *) ac_try_echo=$ac_try;; 4871esac 4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4874 ac_status=$? 4875 grep -v '^ *+' conftest.er1 >conftest.err 4876 rm -f conftest.er1 4877 cat conftest.err >&5 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } >/dev/null && { 4880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4881 test ! -s conftest.err 4882 }; then 4883 ac_header_preproc=yes 4884else 4885 echo "$as_me: failed program was:" >&5 4886sed 's/^/| /' conftest.$ac_ext >&5 4887 4888 ac_header_preproc=no 4889fi 4890 4891rm -f conftest.err conftest.$ac_ext 4892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4893echo "${ECHO_T}$ac_header_preproc" >&6; } 4894 4895# So? What about this header? 4896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4897 yes:no: ) 4898 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4899echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4900 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4901echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4902 ac_header_preproc=yes 4903 ;; 4904 no:yes:* ) 4905 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4906echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4907 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4908echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4909 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4910echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4911 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4912echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4913 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4914echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4915 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4916echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4917 4918 ;; 4919esac 4920{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4921echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4922if test "${ac_cv_header_net_errno_h+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 ac_cv_header_net_errno_h=$ac_header_preproc 4926fi 4927{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4928echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4929 4930fi 4931if test $ac_cv_header_net_errno_h = yes; then 4932 4933 4934cat >>confdefs.h <<\_ACEOF 4935#define HAVE_NET_ERRNO_H 1 4936_ACEOF 4937 4938fi 4939 4940 4941 4942 #-------------------------------------------------------------------- 4943 # Check for the existence of the -lsocket and -lnsl libraries. 4944 # The order here is important, so that they end up in the right 4945 # order in the command line generated by make. Here are some 4946 # special considerations: 4947 # 1. Use "connect" and "accept" to check for -lsocket, and 4948 # "gethostbyname" to check for -lnsl. 4949 # 2. Use each function name only once: can't redo a check because 4950 # autoconf caches the results of the last check and won't redo it. 4951 # 3. Use -lnsl and -lsocket only if they supply procedures that 4952 # aren't already present in the normal libraries. This is because 4953 # IRIX 5.2 has libraries, but they aren't needed and they're 4954 # bogus: they goof up name resolution if used. 4955 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4956 # To get around this problem, check for both libraries together 4957 # if -lsocket doesn't work by itself. 4958 #-------------------------------------------------------------------- 4959 4960 tcl_checkBoth=0 4961 { echo "$as_me:$LINENO: checking for connect" >&5 4962echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4963if test "${ac_cv_func_connect+set}" = set; then 4964 echo $ECHO_N "(cached) $ECHO_C" >&6 4965else 4966 cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4973 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4974#define connect innocuous_connect 4975 4976/* System header to define __stub macros and hopefully few prototypes, 4977 which can conflict with char connect (); below. 4978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4979 <limits.h> exists even on freestanding compilers. */ 4980 4981#ifdef __STDC__ 4982# include <limits.h> 4983#else 4984# include <assert.h> 4985#endif 4986 4987#undef connect 4988 4989/* Override any GCC internal prototype to avoid an error. 4990 Use char because int might match the return type of a GCC 4991 builtin and then its argument prototype would still apply. */ 4992#ifdef __cplusplus 4993extern "C" 4994#endif 4995char connect (); 4996/* The GNU C library defines this for functions which it implements 4997 to always fail with ENOSYS. Some functions are actually named 4998 something starting with __ and the normal name is an alias. */ 4999#if defined __stub_connect || defined __stub___connect 5000choke me 5001#endif 5002 5003int 5004main () 5005{ 5006return connect (); 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f conftest.$ac_objext conftest$ac_exeext 5012if { (ac_try="$ac_link" 5013case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016esac 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_link") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && { 5025 test -z "$ac_c_werror_flag" || 5026 test ! -s conftest.err 5027 } && test -s conftest$ac_exeext && 5028 $as_test_x conftest$ac_exeext; then 5029 ac_cv_func_connect=yes 5030else 5031 echo "$as_me: failed program was:" >&5 5032sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 ac_cv_func_connect=no 5035fi 5036 5037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5038 conftest$ac_exeext conftest.$ac_ext 5039fi 5040{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5041echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5042if test $ac_cv_func_connect = yes; then 5043 tcl_checkSocket=0 5044else 5045 tcl_checkSocket=1 5046fi 5047 5048 if test "$tcl_checkSocket" = 1; then 5049 { echo "$as_me:$LINENO: checking for setsockopt" >&5 5050echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 5051if test "${ac_cv_func_setsockopt+set}" = set; then 5052 echo $ECHO_N "(cached) $ECHO_C" >&6 5053else 5054 cat >conftest.$ac_ext <<_ACEOF 5055/* confdefs.h. */ 5056_ACEOF 5057cat confdefs.h >>conftest.$ac_ext 5058cat >>conftest.$ac_ext <<_ACEOF 5059/* end confdefs.h. */ 5060/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 5061 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5062#define setsockopt innocuous_setsockopt 5063 5064/* System header to define __stub macros and hopefully few prototypes, 5065 which can conflict with char setsockopt (); below. 5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5067 <limits.h> exists even on freestanding compilers. */ 5068 5069#ifdef __STDC__ 5070# include <limits.h> 5071#else 5072# include <assert.h> 5073#endif 5074 5075#undef setsockopt 5076 5077/* Override any GCC internal prototype to avoid an error. 5078 Use char because int might match the return type of a GCC 5079 builtin and then its argument prototype would still apply. */ 5080#ifdef __cplusplus 5081extern "C" 5082#endif 5083char setsockopt (); 5084/* The GNU C library defines this for functions which it implements 5085 to always fail with ENOSYS. Some functions are actually named 5086 something starting with __ and the normal name is an alias. */ 5087#if defined __stub_setsockopt || defined __stub___setsockopt 5088choke me 5089#endif 5090 5091int 5092main () 5093{ 5094return setsockopt (); 5095 ; 5096 return 0; 5097} 5098_ACEOF 5099rm -f conftest.$ac_objext conftest$ac_exeext 5100if { (ac_try="$ac_link" 5101case "(($ac_try" in 5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5103 *) ac_try_echo=$ac_try;; 5104esac 5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5106 (eval "$ac_link") 2>conftest.er1 5107 ac_status=$? 5108 grep -v '^ *+' conftest.er1 >conftest.err 5109 rm -f conftest.er1 5110 cat conftest.err >&5 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); } && { 5113 test -z "$ac_c_werror_flag" || 5114 test ! -s conftest.err 5115 } && test -s conftest$ac_exeext && 5116 $as_test_x conftest$ac_exeext; then 5117 ac_cv_func_setsockopt=yes 5118else 5119 echo "$as_me: failed program was:" >&5 5120sed 's/^/| /' conftest.$ac_ext >&5 5121 5122 ac_cv_func_setsockopt=no 5123fi 5124 5125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5126 conftest$ac_exeext conftest.$ac_ext 5127fi 5128{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 5129echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 5130if test $ac_cv_func_setsockopt = yes; then 5131 : 5132else 5133 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 5134echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 5135if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 ac_check_lib_save_LIBS=$LIBS 5139LIBS="-lsocket $LIBS" 5140cat >conftest.$ac_ext <<_ACEOF 5141/* confdefs.h. */ 5142_ACEOF 5143cat confdefs.h >>conftest.$ac_ext 5144cat >>conftest.$ac_ext <<_ACEOF 5145/* end confdefs.h. */ 5146 5147/* Override any GCC internal prototype to avoid an error. 5148 Use char because int might match the return type of a GCC 5149 builtin and then its argument prototype would still apply. */ 5150#ifdef __cplusplus 5151extern "C" 5152#endif 5153char setsockopt (); 5154int 5155main () 5156{ 5157return setsockopt (); 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162rm -f conftest.$ac_objext conftest$ac_exeext 5163if { (ac_try="$ac_link" 5164case "(($ac_try" in 5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5166 *) ac_try_echo=$ac_try;; 5167esac 5168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5169 (eval "$ac_link") 2>conftest.er1 5170 ac_status=$? 5171 grep -v '^ *+' conftest.er1 >conftest.err 5172 rm -f conftest.er1 5173 cat conftest.err >&5 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5175 (exit $ac_status); } && { 5176 test -z "$ac_c_werror_flag" || 5177 test ! -s conftest.err 5178 } && test -s conftest$ac_exeext && 5179 $as_test_x conftest$ac_exeext; then 5180 ac_cv_lib_socket_setsockopt=yes 5181else 5182 echo "$as_me: failed program was:" >&5 5183sed 's/^/| /' conftest.$ac_ext >&5 5184 5185 ac_cv_lib_socket_setsockopt=no 5186fi 5187 5188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5189 conftest$ac_exeext conftest.$ac_ext 5190LIBS=$ac_check_lib_save_LIBS 5191fi 5192{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 5193echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 5194if test $ac_cv_lib_socket_setsockopt = yes; then 5195 LIBS="$LIBS -lsocket" 5196else 5197 tcl_checkBoth=1 5198fi 5199 5200fi 5201 5202 fi 5203 if test "$tcl_checkBoth" = 1; then 5204 tk_oldLibs=$LIBS 5205 LIBS="$LIBS -lsocket -lnsl" 5206 { echo "$as_me:$LINENO: checking for accept" >&5 5207echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 5208if test "${ac_cv_func_accept+set}" = set; then 5209 echo $ECHO_N "(cached) $ECHO_C" >&6 5210else 5211 cat >conftest.$ac_ext <<_ACEOF 5212/* confdefs.h. */ 5213_ACEOF 5214cat confdefs.h >>conftest.$ac_ext 5215cat >>conftest.$ac_ext <<_ACEOF 5216/* end confdefs.h. */ 5217/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5218 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5219#define accept innocuous_accept 5220 5221/* System header to define __stub macros and hopefully few prototypes, 5222 which can conflict with char accept (); below. 5223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5224 <limits.h> exists even on freestanding compilers. */ 5225 5226#ifdef __STDC__ 5227# include <limits.h> 5228#else 5229# include <assert.h> 5230#endif 5231 5232#undef accept 5233 5234/* Override any GCC internal prototype to avoid an error. 5235 Use char because int might match the return type of a GCC 5236 builtin and then its argument prototype would still apply. */ 5237#ifdef __cplusplus 5238extern "C" 5239#endif 5240char accept (); 5241/* The GNU C library defines this for functions which it implements 5242 to always fail with ENOSYS. Some functions are actually named 5243 something starting with __ and the normal name is an alias. */ 5244#if defined __stub_accept || defined __stub___accept 5245choke me 5246#endif 5247 5248int 5249main () 5250{ 5251return accept (); 5252 ; 5253 return 0; 5254} 5255_ACEOF 5256rm -f conftest.$ac_objext conftest$ac_exeext 5257if { (ac_try="$ac_link" 5258case "(($ac_try" in 5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5260 *) ac_try_echo=$ac_try;; 5261esac 5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5263 (eval "$ac_link") 2>conftest.er1 5264 ac_status=$? 5265 grep -v '^ *+' conftest.er1 >conftest.err 5266 rm -f conftest.er1 5267 cat conftest.err >&5 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); } && { 5270 test -z "$ac_c_werror_flag" || 5271 test ! -s conftest.err 5272 } && test -s conftest$ac_exeext && 5273 $as_test_x conftest$ac_exeext; then 5274 ac_cv_func_accept=yes 5275else 5276 echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279 ac_cv_func_accept=no 5280fi 5281 5282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5283 conftest$ac_exeext conftest.$ac_ext 5284fi 5285{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5286echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5287if test $ac_cv_func_accept = yes; then 5288 tcl_checkNsl=0 5289else 5290 LIBS=$tk_oldLibs 5291fi 5292 5293 fi 5294 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5295echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5296if test "${ac_cv_func_gethostbyname+set}" = set; then 5297 echo $ECHO_N "(cached) $ECHO_C" >&6 5298else 5299 cat >conftest.$ac_ext <<_ACEOF 5300/* confdefs.h. */ 5301_ACEOF 5302cat confdefs.h >>conftest.$ac_ext 5303cat >>conftest.$ac_ext <<_ACEOF 5304/* end confdefs.h. */ 5305/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5306 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5307#define gethostbyname innocuous_gethostbyname 5308 5309/* System header to define __stub macros and hopefully few prototypes, 5310 which can conflict with char gethostbyname (); below. 5311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5312 <limits.h> exists even on freestanding compilers. */ 5313 5314#ifdef __STDC__ 5315# include <limits.h> 5316#else 5317# include <assert.h> 5318#endif 5319 5320#undef gethostbyname 5321 5322/* Override any GCC internal prototype to avoid an error. 5323 Use char because int might match the return type of a GCC 5324 builtin and then its argument prototype would still apply. */ 5325#ifdef __cplusplus 5326extern "C" 5327#endif 5328char gethostbyname (); 5329/* The GNU C library defines this for functions which it implements 5330 to always fail with ENOSYS. Some functions are actually named 5331 something starting with __ and the normal name is an alias. */ 5332#if defined __stub_gethostbyname || defined __stub___gethostbyname 5333choke me 5334#endif 5335 5336int 5337main () 5338{ 5339return gethostbyname (); 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344rm -f conftest.$ac_objext conftest$ac_exeext 5345if { (ac_try="$ac_link" 5346case "(($ac_try" in 5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5348 *) ac_try_echo=$ac_try;; 5349esac 5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5351 (eval "$ac_link") 2>conftest.er1 5352 ac_status=$? 5353 grep -v '^ *+' conftest.er1 >conftest.err 5354 rm -f conftest.er1 5355 cat conftest.err >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } && { 5358 test -z "$ac_c_werror_flag" || 5359 test ! -s conftest.err 5360 } && test -s conftest$ac_exeext && 5361 $as_test_x conftest$ac_exeext; then 5362 ac_cv_func_gethostbyname=yes 5363else 5364 echo "$as_me: failed program was:" >&5 5365sed 's/^/| /' conftest.$ac_ext >&5 5366 5367 ac_cv_func_gethostbyname=no 5368fi 5369 5370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5371 conftest$ac_exeext conftest.$ac_ext 5372fi 5373{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5374echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5375if test $ac_cv_func_gethostbyname = yes; then 5376 : 5377else 5378 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5379echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5380if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 ac_check_lib_save_LIBS=$LIBS 5384LIBS="-lnsl $LIBS" 5385cat >conftest.$ac_ext <<_ACEOF 5386/* confdefs.h. */ 5387_ACEOF 5388cat confdefs.h >>conftest.$ac_ext 5389cat >>conftest.$ac_ext <<_ACEOF 5390/* end confdefs.h. */ 5391 5392/* Override any GCC internal prototype to avoid an error. 5393 Use char because int might match the return type of a GCC 5394 builtin and then its argument prototype would still apply. */ 5395#ifdef __cplusplus 5396extern "C" 5397#endif 5398char gethostbyname (); 5399int 5400main () 5401{ 5402return gethostbyname (); 5403 ; 5404 return 0; 5405} 5406_ACEOF 5407rm -f conftest.$ac_objext conftest$ac_exeext 5408if { (ac_try="$ac_link" 5409case "(($ac_try" in 5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5411 *) ac_try_echo=$ac_try;; 5412esac 5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5414 (eval "$ac_link") 2>conftest.er1 5415 ac_status=$? 5416 grep -v '^ *+' conftest.er1 >conftest.err 5417 rm -f conftest.er1 5418 cat conftest.err >&5 5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5420 (exit $ac_status); } && { 5421 test -z "$ac_c_werror_flag" || 5422 test ! -s conftest.err 5423 } && test -s conftest$ac_exeext && 5424 $as_test_x conftest$ac_exeext; then 5425 ac_cv_lib_nsl_gethostbyname=yes 5426else 5427 echo "$as_me: failed program was:" >&5 5428sed 's/^/| /' conftest.$ac_ext >&5 5429 5430 ac_cv_lib_nsl_gethostbyname=no 5431fi 5432 5433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5434 conftest$ac_exeext conftest.$ac_ext 5435LIBS=$ac_check_lib_save_LIBS 5436fi 5437{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5438echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5439if test $ac_cv_lib_nsl_gethostbyname = yes; then 5440 LIBS="$LIBS -lnsl" 5441fi 5442 5443fi 5444 5445 5446 # TEA specific: Don't perform the eval of the libraries here because 5447 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5448 5449 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5450 5451 5452 5453 5454 { echo "$as_me:$LINENO: checking dirent.h" >&5 5455echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5456if test "${tcl_cv_dirent_h+set}" = set; then 5457 echo $ECHO_N "(cached) $ECHO_C" >&6 5458else 5459 5460 cat >conftest.$ac_ext <<_ACEOF 5461/* confdefs.h. */ 5462_ACEOF 5463cat confdefs.h >>conftest.$ac_ext 5464cat >>conftest.$ac_ext <<_ACEOF 5465/* end confdefs.h. */ 5466#include <sys/types.h> 5467#include <dirent.h> 5468int 5469main () 5470{ 5471 5472#ifndef _POSIX_SOURCE 5473# ifdef __Lynx__ 5474 /* 5475 * Generate compilation error to make the test fail: Lynx headers 5476 * are only valid if really in the POSIX environment. 5477 */ 5478 5479 missing_procedure(); 5480# endif 5481#endif 5482DIR *d; 5483struct dirent *entryPtr; 5484char *p; 5485d = opendir("foobar"); 5486entryPtr = readdir(d); 5487p = entryPtr->d_name; 5488closedir(d); 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494rm -f conftest.$ac_objext conftest$ac_exeext 5495if { (ac_try="$ac_link" 5496case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499esac 5500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5501 (eval "$ac_link") 2>conftest.er1 5502 ac_status=$? 5503 grep -v '^ *+' conftest.er1 >conftest.err 5504 rm -f conftest.er1 5505 cat conftest.err >&5 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); } && { 5508 test -z "$ac_c_werror_flag" || 5509 test ! -s conftest.err 5510 } && test -s conftest$ac_exeext && 5511 $as_test_x conftest$ac_exeext; then 5512 tcl_cv_dirent_h=yes 5513else 5514 echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 tcl_cv_dirent_h=no 5518fi 5519 5520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5521 conftest$ac_exeext conftest.$ac_ext 5522fi 5523{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5524echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5525 5526 if test $tcl_cv_dirent_h = no; then 5527 5528cat >>confdefs.h <<\_ACEOF 5529#define NO_DIRENT_H 1 5530_ACEOF 5531 5532 fi 5533 5534 # TEA specific: 5535 if test "${ac_cv_header_errno_h+set}" = set; then 5536 { echo "$as_me:$LINENO: checking for errno.h" >&5 5537echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5538if test "${ac_cv_header_errno_h+set}" = set; then 5539 echo $ECHO_N "(cached) $ECHO_C" >&6 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5542echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5543else 5544 # Is the header compilable? 5545{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5546echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5547cat >conftest.$ac_ext <<_ACEOF 5548/* confdefs.h. */ 5549_ACEOF 5550cat confdefs.h >>conftest.$ac_ext 5551cat >>conftest.$ac_ext <<_ACEOF 5552/* end confdefs.h. */ 5553$ac_includes_default 5554#include <errno.h> 5555_ACEOF 5556rm -f conftest.$ac_objext 5557if { (ac_try="$ac_compile" 5558case "(($ac_try" in 5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5560 *) ac_try_echo=$ac_try;; 5561esac 5562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5563 (eval "$ac_compile") 2>conftest.er1 5564 ac_status=$? 5565 grep -v '^ *+' conftest.er1 >conftest.err 5566 rm -f conftest.er1 5567 cat conftest.err >&5 5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5569 (exit $ac_status); } && { 5570 test -z "$ac_c_werror_flag" || 5571 test ! -s conftest.err 5572 } && test -s conftest.$ac_objext; then 5573 ac_header_compiler=yes 5574else 5575 echo "$as_me: failed program was:" >&5 5576sed 's/^/| /' conftest.$ac_ext >&5 5577 5578 ac_header_compiler=no 5579fi 5580 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5583echo "${ECHO_T}$ac_header_compiler" >&6; } 5584 5585# Is the header present? 5586{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5587echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5588cat >conftest.$ac_ext <<_ACEOF 5589/* confdefs.h. */ 5590_ACEOF 5591cat confdefs.h >>conftest.$ac_ext 5592cat >>conftest.$ac_ext <<_ACEOF 5593/* end confdefs.h. */ 5594#include <errno.h> 5595_ACEOF 5596if { (ac_try="$ac_cpp conftest.$ac_ext" 5597case "(($ac_try" in 5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5599 *) ac_try_echo=$ac_try;; 5600esac 5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5603 ac_status=$? 5604 grep -v '^ *+' conftest.er1 >conftest.err 5605 rm -f conftest.er1 5606 cat conftest.err >&5 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); } >/dev/null && { 5609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5610 test ! -s conftest.err 5611 }; then 5612 ac_header_preproc=yes 5613else 5614 echo "$as_me: failed program was:" >&5 5615sed 's/^/| /' conftest.$ac_ext >&5 5616 5617 ac_header_preproc=no 5618fi 5619 5620rm -f conftest.err conftest.$ac_ext 5621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5622echo "${ECHO_T}$ac_header_preproc" >&6; } 5623 5624# So? What about this header? 5625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5626 yes:no: ) 5627 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5628echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5629 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5630echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5631 ac_header_preproc=yes 5632 ;; 5633 no:yes:* ) 5634 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5635echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5636 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5637echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5638 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5639echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5640 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5641echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5642 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5643echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5644 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5645echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5646 5647 ;; 5648esac 5649{ echo "$as_me:$LINENO: checking for errno.h" >&5 5650echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5651if test "${ac_cv_header_errno_h+set}" = set; then 5652 echo $ECHO_N "(cached) $ECHO_C" >&6 5653else 5654 ac_cv_header_errno_h=$ac_header_preproc 5655fi 5656{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5657echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5658 5659fi 5660if test $ac_cv_header_errno_h = yes; then 5661 : 5662else 5663 5664cat >>confdefs.h <<\_ACEOF 5665#define NO_ERRNO_H 1 5666_ACEOF 5667 5668fi 5669 5670 5671 if test "${ac_cv_header_float_h+set}" = set; then 5672 { echo "$as_me:$LINENO: checking for float.h" >&5 5673echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5674if test "${ac_cv_header_float_h+set}" = set; then 5675 echo $ECHO_N "(cached) $ECHO_C" >&6 5676fi 5677{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5678echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5679else 5680 # Is the header compilable? 5681{ echo "$as_me:$LINENO: checking float.h usability" >&5 5682echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5683cat >conftest.$ac_ext <<_ACEOF 5684/* confdefs.h. */ 5685_ACEOF 5686cat confdefs.h >>conftest.$ac_ext 5687cat >>conftest.$ac_ext <<_ACEOF 5688/* end confdefs.h. */ 5689$ac_includes_default 5690#include <float.h> 5691_ACEOF 5692rm -f conftest.$ac_objext 5693if { (ac_try="$ac_compile" 5694case "(($ac_try" in 5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5696 *) ac_try_echo=$ac_try;; 5697esac 5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5699 (eval "$ac_compile") 2>conftest.er1 5700 ac_status=$? 5701 grep -v '^ *+' conftest.er1 >conftest.err 5702 rm -f conftest.er1 5703 cat conftest.err >&5 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } && { 5706 test -z "$ac_c_werror_flag" || 5707 test ! -s conftest.err 5708 } && test -s conftest.$ac_objext; then 5709 ac_header_compiler=yes 5710else 5711 echo "$as_me: failed program was:" >&5 5712sed 's/^/| /' conftest.$ac_ext >&5 5713 5714 ac_header_compiler=no 5715fi 5716 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5719echo "${ECHO_T}$ac_header_compiler" >&6; } 5720 5721# Is the header present? 5722{ echo "$as_me:$LINENO: checking float.h presence" >&5 5723echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5724cat >conftest.$ac_ext <<_ACEOF 5725/* confdefs.h. */ 5726_ACEOF 5727cat confdefs.h >>conftest.$ac_ext 5728cat >>conftest.$ac_ext <<_ACEOF 5729/* end confdefs.h. */ 5730#include <float.h> 5731_ACEOF 5732if { (ac_try="$ac_cpp conftest.$ac_ext" 5733case "(($ac_try" in 5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5735 *) ac_try_echo=$ac_try;; 5736esac 5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5739 ac_status=$? 5740 grep -v '^ *+' conftest.er1 >conftest.err 5741 rm -f conftest.er1 5742 cat conftest.err >&5 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); } >/dev/null && { 5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5746 test ! -s conftest.err 5747 }; then 5748 ac_header_preproc=yes 5749else 5750 echo "$as_me: failed program was:" >&5 5751sed 's/^/| /' conftest.$ac_ext >&5 5752 5753 ac_header_preproc=no 5754fi 5755 5756rm -f conftest.err conftest.$ac_ext 5757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5758echo "${ECHO_T}$ac_header_preproc" >&6; } 5759 5760# So? What about this header? 5761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5762 yes:no: ) 5763 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5764echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5765 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5766echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5767 ac_header_preproc=yes 5768 ;; 5769 no:yes:* ) 5770 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5771echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5772 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5773echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5774 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5775echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5776 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5777echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5778 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5779echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5780 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5781echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5782 5783 ;; 5784esac 5785{ echo "$as_me:$LINENO: checking for float.h" >&5 5786echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5787if test "${ac_cv_header_float_h+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 ac_cv_header_float_h=$ac_header_preproc 5791fi 5792{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5793echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5794 5795fi 5796if test $ac_cv_header_float_h = yes; then 5797 : 5798else 5799 5800cat >>confdefs.h <<\_ACEOF 5801#define NO_FLOAT_H 1 5802_ACEOF 5803 5804fi 5805 5806 5807 if test "${ac_cv_header_values_h+set}" = set; then 5808 { echo "$as_me:$LINENO: checking for values.h" >&5 5809echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5810if test "${ac_cv_header_values_h+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812fi 5813{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5814echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5815else 5816 # Is the header compilable? 5817{ echo "$as_me:$LINENO: checking values.h usability" >&5 5818echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5819cat >conftest.$ac_ext <<_ACEOF 5820/* confdefs.h. */ 5821_ACEOF 5822cat confdefs.h >>conftest.$ac_ext 5823cat >>conftest.$ac_ext <<_ACEOF 5824/* end confdefs.h. */ 5825$ac_includes_default 5826#include <values.h> 5827_ACEOF 5828rm -f conftest.$ac_objext 5829if { (ac_try="$ac_compile" 5830case "(($ac_try" in 5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5832 *) ac_try_echo=$ac_try;; 5833esac 5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5835 (eval "$ac_compile") 2>conftest.er1 5836 ac_status=$? 5837 grep -v '^ *+' conftest.er1 >conftest.err 5838 rm -f conftest.er1 5839 cat conftest.err >&5 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5841 (exit $ac_status); } && { 5842 test -z "$ac_c_werror_flag" || 5843 test ! -s conftest.err 5844 } && test -s conftest.$ac_objext; then 5845 ac_header_compiler=yes 5846else 5847 echo "$as_me: failed program was:" >&5 5848sed 's/^/| /' conftest.$ac_ext >&5 5849 5850 ac_header_compiler=no 5851fi 5852 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5855echo "${ECHO_T}$ac_header_compiler" >&6; } 5856 5857# Is the header present? 5858{ echo "$as_me:$LINENO: checking values.h presence" >&5 5859echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5860cat >conftest.$ac_ext <<_ACEOF 5861/* confdefs.h. */ 5862_ACEOF 5863cat confdefs.h >>conftest.$ac_ext 5864cat >>conftest.$ac_ext <<_ACEOF 5865/* end confdefs.h. */ 5866#include <values.h> 5867_ACEOF 5868if { (ac_try="$ac_cpp conftest.$ac_ext" 5869case "(($ac_try" in 5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5871 *) ac_try_echo=$ac_try;; 5872esac 5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } >/dev/null && { 5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5882 test ! -s conftest.err 5883 }; then 5884 ac_header_preproc=yes 5885else 5886 echo "$as_me: failed program was:" >&5 5887sed 's/^/| /' conftest.$ac_ext >&5 5888 5889 ac_header_preproc=no 5890fi 5891 5892rm -f conftest.err conftest.$ac_ext 5893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5894echo "${ECHO_T}$ac_header_preproc" >&6; } 5895 5896# So? What about this header? 5897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5898 yes:no: ) 5899 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5900echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5901 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5902echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5903 ac_header_preproc=yes 5904 ;; 5905 no:yes:* ) 5906 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5907echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5908 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5909echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5910 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5911echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5912 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5913echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5914 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5915echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5916 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5917echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5918 5919 ;; 5920esac 5921{ echo "$as_me:$LINENO: checking for values.h" >&5 5922echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5923if test "${ac_cv_header_values_h+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 ac_cv_header_values_h=$ac_header_preproc 5927fi 5928{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5929echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5930 5931fi 5932if test $ac_cv_header_values_h = yes; then 5933 : 5934else 5935 5936cat >>confdefs.h <<\_ACEOF 5937#define NO_VALUES_H 1 5938_ACEOF 5939 5940fi 5941 5942 5943 if test "${ac_cv_header_limits_h+set}" = set; then 5944 { echo "$as_me:$LINENO: checking for limits.h" >&5 5945echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5946if test "${ac_cv_header_limits_h+set}" = set; then 5947 echo $ECHO_N "(cached) $ECHO_C" >&6 5948fi 5949{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5950echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5951else 5952 # Is the header compilable? 5953{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5954echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5955cat >conftest.$ac_ext <<_ACEOF 5956/* confdefs.h. */ 5957_ACEOF 5958cat confdefs.h >>conftest.$ac_ext 5959cat >>conftest.$ac_ext <<_ACEOF 5960/* end confdefs.h. */ 5961$ac_includes_default 5962#include <limits.h> 5963_ACEOF 5964rm -f conftest.$ac_objext 5965if { (ac_try="$ac_compile" 5966case "(($ac_try" in 5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5968 *) ac_try_echo=$ac_try;; 5969esac 5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5971 (eval "$ac_compile") 2>conftest.er1 5972 ac_status=$? 5973 grep -v '^ *+' conftest.er1 >conftest.err 5974 rm -f conftest.er1 5975 cat conftest.err >&5 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); } && { 5978 test -z "$ac_c_werror_flag" || 5979 test ! -s conftest.err 5980 } && test -s conftest.$ac_objext; then 5981 ac_header_compiler=yes 5982else 5983 echo "$as_me: failed program was:" >&5 5984sed 's/^/| /' conftest.$ac_ext >&5 5985 5986 ac_header_compiler=no 5987fi 5988 5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5991echo "${ECHO_T}$ac_header_compiler" >&6; } 5992 5993# Is the header present? 5994{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5995echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5996cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002#include <limits.h> 6003_ACEOF 6004if { (ac_try="$ac_cpp conftest.$ac_ext" 6005case "(($ac_try" in 6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6007 *) ac_try_echo=$ac_try;; 6008esac 6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6011 ac_status=$? 6012 grep -v '^ *+' conftest.er1 >conftest.err 6013 rm -f conftest.er1 6014 cat conftest.err >&5 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); } >/dev/null && { 6017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6018 test ! -s conftest.err 6019 }; then 6020 ac_header_preproc=yes 6021else 6022 echo "$as_me: failed program was:" >&5 6023sed 's/^/| /' conftest.$ac_ext >&5 6024 6025 ac_header_preproc=no 6026fi 6027 6028rm -f conftest.err conftest.$ac_ext 6029{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6030echo "${ECHO_T}$ac_header_preproc" >&6; } 6031 6032# So? What about this header? 6033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6034 yes:no: ) 6035 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 6036echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6037 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 6038echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 6039 ac_header_preproc=yes 6040 ;; 6041 no:yes:* ) 6042 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 6043echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 6044 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 6045echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 6046 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 6047echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 6048 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 6049echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 6050 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 6051echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 6052 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 6053echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 6054 6055 ;; 6056esac 6057{ echo "$as_me:$LINENO: checking for limits.h" >&5 6058echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 6059if test "${ac_cv_header_limits_h+set}" = set; then 6060 echo $ECHO_N "(cached) $ECHO_C" >&6 6061else 6062 ac_cv_header_limits_h=$ac_header_preproc 6063fi 6064{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 6065echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 6066 6067fi 6068if test $ac_cv_header_limits_h = yes; then 6069 6070cat >>confdefs.h <<\_ACEOF 6071#define HAVE_LIMITS_H 1 6072_ACEOF 6073 6074else 6075 6076cat >>confdefs.h <<\_ACEOF 6077#define NO_LIMITS_H 1 6078_ACEOF 6079 6080fi 6081 6082 6083 if test "${ac_cv_header_stdlib_h+set}" = set; then 6084 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 6085echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6086if test "${ac_cv_header_stdlib_h+set}" = set; then 6087 echo $ECHO_N "(cached) $ECHO_C" >&6 6088fi 6089{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6090echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6091else 6092 # Is the header compilable? 6093{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 6094echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 6095cat >conftest.$ac_ext <<_ACEOF 6096/* confdefs.h. */ 6097_ACEOF 6098cat confdefs.h >>conftest.$ac_ext 6099cat >>conftest.$ac_ext <<_ACEOF 6100/* end confdefs.h. */ 6101$ac_includes_default 6102#include <stdlib.h> 6103_ACEOF 6104rm -f conftest.$ac_objext 6105if { (ac_try="$ac_compile" 6106case "(($ac_try" in 6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6108 *) ac_try_echo=$ac_try;; 6109esac 6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6111 (eval "$ac_compile") 2>conftest.er1 6112 ac_status=$? 6113 grep -v '^ *+' conftest.er1 >conftest.err 6114 rm -f conftest.er1 6115 cat conftest.err >&5 6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6117 (exit $ac_status); } && { 6118 test -z "$ac_c_werror_flag" || 6119 test ! -s conftest.err 6120 } && test -s conftest.$ac_objext; then 6121 ac_header_compiler=yes 6122else 6123 echo "$as_me: failed program was:" >&5 6124sed 's/^/| /' conftest.$ac_ext >&5 6125 6126 ac_header_compiler=no 6127fi 6128 6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6131echo "${ECHO_T}$ac_header_compiler" >&6; } 6132 6133# Is the header present? 6134{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 6135echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 6136cat >conftest.$ac_ext <<_ACEOF 6137/* confdefs.h. */ 6138_ACEOF 6139cat confdefs.h >>conftest.$ac_ext 6140cat >>conftest.$ac_ext <<_ACEOF 6141/* end confdefs.h. */ 6142#include <stdlib.h> 6143_ACEOF 6144if { (ac_try="$ac_cpp conftest.$ac_ext" 6145case "(($ac_try" in 6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6147 *) ac_try_echo=$ac_try;; 6148esac 6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6151 ac_status=$? 6152 grep -v '^ *+' conftest.er1 >conftest.err 6153 rm -f conftest.er1 6154 cat conftest.err >&5 6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6156 (exit $ac_status); } >/dev/null && { 6157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6158 test ! -s conftest.err 6159 }; then 6160 ac_header_preproc=yes 6161else 6162 echo "$as_me: failed program was:" >&5 6163sed 's/^/| /' conftest.$ac_ext >&5 6164 6165 ac_header_preproc=no 6166fi 6167 6168rm -f conftest.err conftest.$ac_ext 6169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6170echo "${ECHO_T}$ac_header_preproc" >&6; } 6171 6172# So? What about this header? 6173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6174 yes:no: ) 6175 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 6176echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6177 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 6178echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 6179 ac_header_preproc=yes 6180 ;; 6181 no:yes:* ) 6182 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 6183echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 6184 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 6185echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 6186 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 6187echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 6188 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 6189echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 6190 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 6191echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 6192 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 6193echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 6194 6195 ;; 6196esac 6197{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 6198echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 6199if test "${ac_cv_header_stdlib_h+set}" = set; then 6200 echo $ECHO_N "(cached) $ECHO_C" >&6 6201else 6202 ac_cv_header_stdlib_h=$ac_header_preproc 6203fi 6204{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 6205echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 6206 6207fi 6208if test $ac_cv_header_stdlib_h = yes; then 6209 tcl_ok=1 6210else 6211 tcl_ok=0 6212fi 6213 6214 6215 cat >conftest.$ac_ext <<_ACEOF 6216/* confdefs.h. */ 6217_ACEOF 6218cat confdefs.h >>conftest.$ac_ext 6219cat >>conftest.$ac_ext <<_ACEOF 6220/* end confdefs.h. */ 6221#include <stdlib.h> 6222 6223_ACEOF 6224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6225 $EGREP "strtol" >/dev/null 2>&1; then 6226 : 6227else 6228 tcl_ok=0 6229fi 6230rm -f -r conftest* 6231 6232 cat >conftest.$ac_ext <<_ACEOF 6233/* confdefs.h. */ 6234_ACEOF 6235cat confdefs.h >>conftest.$ac_ext 6236cat >>conftest.$ac_ext <<_ACEOF 6237/* end confdefs.h. */ 6238#include <stdlib.h> 6239 6240_ACEOF 6241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6242 $EGREP "strtoul" >/dev/null 2>&1; then 6243 : 6244else 6245 tcl_ok=0 6246fi 6247rm -f -r conftest* 6248 6249 cat >conftest.$ac_ext <<_ACEOF 6250/* confdefs.h. */ 6251_ACEOF 6252cat confdefs.h >>conftest.$ac_ext 6253cat >>conftest.$ac_ext <<_ACEOF 6254/* end confdefs.h. */ 6255#include <stdlib.h> 6256 6257_ACEOF 6258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6259 $EGREP "strtod" >/dev/null 2>&1; then 6260 : 6261else 6262 tcl_ok=0 6263fi 6264rm -f -r conftest* 6265 6266 if test $tcl_ok = 0; then 6267 6268cat >>confdefs.h <<\_ACEOF 6269#define NO_STDLIB_H 1 6270_ACEOF 6271 6272 fi 6273 if test "${ac_cv_header_string_h+set}" = set; then 6274 { echo "$as_me:$LINENO: checking for string.h" >&5 6275echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6276if test "${ac_cv_header_string_h+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278fi 6279{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6280echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6281else 6282 # Is the header compilable? 6283{ echo "$as_me:$LINENO: checking string.h usability" >&5 6284echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6285cat >conftest.$ac_ext <<_ACEOF 6286/* confdefs.h. */ 6287_ACEOF 6288cat confdefs.h >>conftest.$ac_ext 6289cat >>conftest.$ac_ext <<_ACEOF 6290/* end confdefs.h. */ 6291$ac_includes_default 6292#include <string.h> 6293_ACEOF 6294rm -f conftest.$ac_objext 6295if { (ac_try="$ac_compile" 6296case "(($ac_try" in 6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6298 *) ac_try_echo=$ac_try;; 6299esac 6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6301 (eval "$ac_compile") 2>conftest.er1 6302 ac_status=$? 6303 grep -v '^ *+' conftest.er1 >conftest.err 6304 rm -f conftest.er1 6305 cat conftest.err >&5 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6307 (exit $ac_status); } && { 6308 test -z "$ac_c_werror_flag" || 6309 test ! -s conftest.err 6310 } && test -s conftest.$ac_objext; then 6311 ac_header_compiler=yes 6312else 6313 echo "$as_me: failed program was:" >&5 6314sed 's/^/| /' conftest.$ac_ext >&5 6315 6316 ac_header_compiler=no 6317fi 6318 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6321echo "${ECHO_T}$ac_header_compiler" >&6; } 6322 6323# Is the header present? 6324{ echo "$as_me:$LINENO: checking string.h presence" >&5 6325echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6326cat >conftest.$ac_ext <<_ACEOF 6327/* confdefs.h. */ 6328_ACEOF 6329cat confdefs.h >>conftest.$ac_ext 6330cat >>conftest.$ac_ext <<_ACEOF 6331/* end confdefs.h. */ 6332#include <string.h> 6333_ACEOF 6334if { (ac_try="$ac_cpp conftest.$ac_ext" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } >/dev/null && { 6347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6348 test ! -s conftest.err 6349 }; then 6350 ac_header_preproc=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_header_preproc=no 6356fi 6357 6358rm -f conftest.err conftest.$ac_ext 6359{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6360echo "${ECHO_T}$ac_header_preproc" >&6; } 6361 6362# So? What about this header? 6363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6364 yes:no: ) 6365 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6366echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6367 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6368echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6369 ac_header_preproc=yes 6370 ;; 6371 no:yes:* ) 6372 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6373echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6374 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6375echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6376 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6377echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6378 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6379echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6380 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6381echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6382 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6383echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6384 6385 ;; 6386esac 6387{ echo "$as_me:$LINENO: checking for string.h" >&5 6388echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6389if test "${ac_cv_header_string_h+set}" = set; then 6390 echo $ECHO_N "(cached) $ECHO_C" >&6 6391else 6392 ac_cv_header_string_h=$ac_header_preproc 6393fi 6394{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6395echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6396 6397fi 6398if test $ac_cv_header_string_h = yes; then 6399 tcl_ok=1 6400else 6401 tcl_ok=0 6402fi 6403 6404 6405 cat >conftest.$ac_ext <<_ACEOF 6406/* confdefs.h. */ 6407_ACEOF 6408cat confdefs.h >>conftest.$ac_ext 6409cat >>conftest.$ac_ext <<_ACEOF 6410/* end confdefs.h. */ 6411#include <string.h> 6412 6413_ACEOF 6414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6415 $EGREP "strstr" >/dev/null 2>&1; then 6416 : 6417else 6418 tcl_ok=0 6419fi 6420rm -f -r conftest* 6421 6422 cat >conftest.$ac_ext <<_ACEOF 6423/* confdefs.h. */ 6424_ACEOF 6425cat confdefs.h >>conftest.$ac_ext 6426cat >>conftest.$ac_ext <<_ACEOF 6427/* end confdefs.h. */ 6428#include <string.h> 6429 6430_ACEOF 6431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6432 $EGREP "strerror" >/dev/null 2>&1; then 6433 : 6434else 6435 tcl_ok=0 6436fi 6437rm -f -r conftest* 6438 6439 6440 # See also memmove check below for a place where NO_STRING_H can be 6441 # set and why. 6442 6443 if test $tcl_ok = 0; then 6444 6445cat >>confdefs.h <<\_ACEOF 6446#define NO_STRING_H 1 6447_ACEOF 6448 6449 fi 6450 6451 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6452 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6453echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6454if test "${ac_cv_header_sys_wait_h+set}" = set; then 6455 echo $ECHO_N "(cached) $ECHO_C" >&6 6456fi 6457{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6458echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6459else 6460 # Is the header compilable? 6461{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6462echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6463cat >conftest.$ac_ext <<_ACEOF 6464/* confdefs.h. */ 6465_ACEOF 6466cat confdefs.h >>conftest.$ac_ext 6467cat >>conftest.$ac_ext <<_ACEOF 6468/* end confdefs.h. */ 6469$ac_includes_default 6470#include <sys/wait.h> 6471_ACEOF 6472rm -f conftest.$ac_objext 6473if { (ac_try="$ac_compile" 6474case "(($ac_try" in 6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6476 *) ac_try_echo=$ac_try;; 6477esac 6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6479 (eval "$ac_compile") 2>conftest.er1 6480 ac_status=$? 6481 grep -v '^ *+' conftest.er1 >conftest.err 6482 rm -f conftest.er1 6483 cat conftest.err >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); } && { 6486 test -z "$ac_c_werror_flag" || 6487 test ! -s conftest.err 6488 } && test -s conftest.$ac_objext; then 6489 ac_header_compiler=yes 6490else 6491 echo "$as_me: failed program was:" >&5 6492sed 's/^/| /' conftest.$ac_ext >&5 6493 6494 ac_header_compiler=no 6495fi 6496 6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6498{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6499echo "${ECHO_T}$ac_header_compiler" >&6; } 6500 6501# Is the header present? 6502{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6503echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6504cat >conftest.$ac_ext <<_ACEOF 6505/* confdefs.h. */ 6506_ACEOF 6507cat confdefs.h >>conftest.$ac_ext 6508cat >>conftest.$ac_ext <<_ACEOF 6509/* end confdefs.h. */ 6510#include <sys/wait.h> 6511_ACEOF 6512if { (ac_try="$ac_cpp conftest.$ac_ext" 6513case "(($ac_try" in 6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6515 *) ac_try_echo=$ac_try;; 6516esac 6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6519 ac_status=$? 6520 grep -v '^ *+' conftest.er1 >conftest.err 6521 rm -f conftest.er1 6522 cat conftest.err >&5 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } >/dev/null && { 6525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6526 test ! -s conftest.err 6527 }; then 6528 ac_header_preproc=yes 6529else 6530 echo "$as_me: failed program was:" >&5 6531sed 's/^/| /' conftest.$ac_ext >&5 6532 6533 ac_header_preproc=no 6534fi 6535 6536rm -f conftest.err conftest.$ac_ext 6537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6538echo "${ECHO_T}$ac_header_preproc" >&6; } 6539 6540# So? What about this header? 6541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6542 yes:no: ) 6543 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6544echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6545 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6546echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6547 ac_header_preproc=yes 6548 ;; 6549 no:yes:* ) 6550 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6551echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6552 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6553echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6554 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6555echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6556 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6557echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6559echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6561echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6562 6563 ;; 6564esac 6565{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6566echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6567if test "${ac_cv_header_sys_wait_h+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569else 6570 ac_cv_header_sys_wait_h=$ac_header_preproc 6571fi 6572{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6573echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6574 6575fi 6576if test $ac_cv_header_sys_wait_h = yes; then 6577 : 6578else 6579 6580cat >>confdefs.h <<\_ACEOF 6581#define NO_SYS_WAIT_H 1 6582_ACEOF 6583 6584fi 6585 6586 6587 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6588 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6589echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6590if test "${ac_cv_header_dlfcn_h+set}" = set; then 6591 echo $ECHO_N "(cached) $ECHO_C" >&6 6592fi 6593{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6594echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6595else 6596 # Is the header compilable? 6597{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6598echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6599cat >conftest.$ac_ext <<_ACEOF 6600/* confdefs.h. */ 6601_ACEOF 6602cat confdefs.h >>conftest.$ac_ext 6603cat >>conftest.$ac_ext <<_ACEOF 6604/* end confdefs.h. */ 6605$ac_includes_default 6606#include <dlfcn.h> 6607_ACEOF 6608rm -f conftest.$ac_objext 6609if { (ac_try="$ac_compile" 6610case "(($ac_try" in 6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6612 *) ac_try_echo=$ac_try;; 6613esac 6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6615 (eval "$ac_compile") 2>conftest.er1 6616 ac_status=$? 6617 grep -v '^ *+' conftest.er1 >conftest.err 6618 rm -f conftest.er1 6619 cat conftest.err >&5 6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6621 (exit $ac_status); } && { 6622 test -z "$ac_c_werror_flag" || 6623 test ! -s conftest.err 6624 } && test -s conftest.$ac_objext; then 6625 ac_header_compiler=yes 6626else 6627 echo "$as_me: failed program was:" >&5 6628sed 's/^/| /' conftest.$ac_ext >&5 6629 6630 ac_header_compiler=no 6631fi 6632 6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6635echo "${ECHO_T}$ac_header_compiler" >&6; } 6636 6637# Is the header present? 6638{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6639echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6640cat >conftest.$ac_ext <<_ACEOF 6641/* confdefs.h. */ 6642_ACEOF 6643cat confdefs.h >>conftest.$ac_ext 6644cat >>conftest.$ac_ext <<_ACEOF 6645/* end confdefs.h. */ 6646#include <dlfcn.h> 6647_ACEOF 6648if { (ac_try="$ac_cpp conftest.$ac_ext" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } >/dev/null && { 6661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6662 test ! -s conftest.err 6663 }; then 6664 ac_header_preproc=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 ac_header_preproc=no 6670fi 6671 6672rm -f conftest.err conftest.$ac_ext 6673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6674echo "${ECHO_T}$ac_header_preproc" >&6; } 6675 6676# So? What about this header? 6677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6678 yes:no: ) 6679 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6680echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6681 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6682echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6683 ac_header_preproc=yes 6684 ;; 6685 no:yes:* ) 6686 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6687echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6688 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6689echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6690 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6691echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6692 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6693echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6694 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6695echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6696 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6697echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6698 6699 ;; 6700esac 6701{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6702echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6703if test "${ac_cv_header_dlfcn_h+set}" = set; then 6704 echo $ECHO_N "(cached) $ECHO_C" >&6 6705else 6706 ac_cv_header_dlfcn_h=$ac_header_preproc 6707fi 6708{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6709echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6710 6711fi 6712if test $ac_cv_header_dlfcn_h = yes; then 6713 : 6714else 6715 6716cat >>confdefs.h <<\_ACEOF 6717#define NO_DLFCN_H 1 6718_ACEOF 6719 6720fi 6721 6722 6723 6724 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6725 6726for ac_header in sys/param.h 6727do 6728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6730 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6733 echo $ECHO_N "(cached) $ECHO_C" >&6 6734fi 6735ac_res=`eval echo '${'$as_ac_Header'}'` 6736 { echo "$as_me:$LINENO: result: $ac_res" >&5 6737echo "${ECHO_T}$ac_res" >&6; } 6738else 6739 # Is the header compilable? 6740{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6742cat >conftest.$ac_ext <<_ACEOF 6743/* confdefs.h. */ 6744_ACEOF 6745cat confdefs.h >>conftest.$ac_ext 6746cat >>conftest.$ac_ext <<_ACEOF 6747/* end confdefs.h. */ 6748$ac_includes_default 6749#include <$ac_header> 6750_ACEOF 6751rm -f conftest.$ac_objext 6752if { (ac_try="$ac_compile" 6753case "(($ac_try" in 6754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6755 *) ac_try_echo=$ac_try;; 6756esac 6757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6758 (eval "$ac_compile") 2>conftest.er1 6759 ac_status=$? 6760 grep -v '^ *+' conftest.er1 >conftest.err 6761 rm -f conftest.er1 6762 cat conftest.err >&5 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); } && { 6765 test -z "$ac_c_werror_flag" || 6766 test ! -s conftest.err 6767 } && test -s conftest.$ac_objext; then 6768 ac_header_compiler=yes 6769else 6770 echo "$as_me: failed program was:" >&5 6771sed 's/^/| /' conftest.$ac_ext >&5 6772 6773 ac_header_compiler=no 6774fi 6775 6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6778echo "${ECHO_T}$ac_header_compiler" >&6; } 6779 6780# Is the header present? 6781{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6783cat >conftest.$ac_ext <<_ACEOF 6784/* confdefs.h. */ 6785_ACEOF 6786cat confdefs.h >>conftest.$ac_ext 6787cat >>conftest.$ac_ext <<_ACEOF 6788/* end confdefs.h. */ 6789#include <$ac_header> 6790_ACEOF 6791if { (ac_try="$ac_cpp conftest.$ac_ext" 6792case "(($ac_try" in 6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6794 *) ac_try_echo=$ac_try;; 6795esac 6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6798 ac_status=$? 6799 grep -v '^ *+' conftest.er1 >conftest.err 6800 rm -f conftest.er1 6801 cat conftest.err >&5 6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6803 (exit $ac_status); } >/dev/null && { 6804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6805 test ! -s conftest.err 6806 }; then 6807 ac_header_preproc=yes 6808else 6809 echo "$as_me: failed program was:" >&5 6810sed 's/^/| /' conftest.$ac_ext >&5 6811 6812 ac_header_preproc=no 6813fi 6814 6815rm -f conftest.err conftest.$ac_ext 6816{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6817echo "${ECHO_T}$ac_header_preproc" >&6; } 6818 6819# So? What about this header? 6820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6821 yes:no: ) 6822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6826 ac_header_preproc=yes 6827 ;; 6828 no:yes:* ) 6829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6841 6842 ;; 6843esac 6844{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 eval "$as_ac_Header=\$ac_header_preproc" 6850fi 6851ac_res=`eval echo '${'$as_ac_Header'}'` 6852 { echo "$as_me:$LINENO: result: $ac_res" >&5 6853echo "${ECHO_T}$ac_res" >&6; } 6854 6855fi 6856if test `eval echo '${'$as_ac_Header'}'` = yes; then 6857 cat >>confdefs.h <<_ACEOF 6858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6859_ACEOF 6860 6861fi 6862 6863done 6864 6865 6866 # Let the user call this, because if it triggers, they will 6867 # need a compat/strtod.c that is correct. Users can also 6868 # use Tcl_GetDouble(FromObj) instead. 6869 #TEA_BUGGY_STRTOD 6870 fi 6871 6872 6873 6874 # 6875 # Ok, lets find the tkimg configuration 6876 # First, look for one uninstalled. 6877 # the alternative search directory is invoked by --with-tkimg 6878 # 6879 6880 if test x"${no_tkimg}" = x ; then 6881 # we reset no_tkimg in case something fails here 6882 no_tkimg=true 6883 6884# Check whether --with-tkimg was given. 6885if test "${with_tkimg+set}" = set; then 6886 withval=$with_tkimg; with_tkimgconfig=${withval} 6887fi 6888 6889 { echo "$as_me:$LINENO: checking for tkimg configuration" >&5 6890echo $ECHO_N "checking for tkimg configuration... $ECHO_C" >&6; } 6891 if test "${ac_cv_c_tkimgconfig+set}" = set; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 6895 6896 # First check to see if --with-tkimg was specified. 6897 if test x"${with_tkimgconfig}" != x ; then 6898 case ${with_tkimgconfig} in 6899 */tkimgConfig.sh ) 6900 if test -f ${with_tkimgconfig}; then 6901 { echo "$as_me:$LINENO: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5 6902echo "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;} 6903 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'` 6904 fi;; 6905 esac 6906 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then 6907 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)` 6908 else 6909 { { echo "$as_me:$LINENO: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&5 6910echo "$as_me: error: ${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" >&2;} 6911 { (exit 1); exit 1; }; } 6912 fi 6913 fi 6914 6915 # then check for a private tkimg installation 6916 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6917 for i in \ 6918 ../tkimg \ 6919 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6920 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6921 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \ 6922 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6923 ../../tkimg \ 6924 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6925 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6926 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6927 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6928 ../../../tkimg \ 6929 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6930 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6931 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \ 6932 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6933 ${srcdir}/../tkimg \ 6934 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \ 6935 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \ 6936 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \ 6937 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \ 6938 ; do 6939 if test -f "$i/tkimgConfig.sh" ; then 6940 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6941 break 6942 fi 6943 if test -f "$i/unix/tkimgConfig.sh" ; then 6944 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)` 6945 break 6946 fi 6947 done 6948 fi 6949 6950 # check in a few common install locations 6951 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6952 for i in `ls -d ${libdir} 2>/dev/null` \ 6953 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 6954 `ls -d ${prefix}/lib 2>/dev/null` \ 6955 `ls -d /usr/local/lib 2>/dev/null` \ 6956 `ls -d /usr/contrib/lib 2>/dev/null` \ 6957 `ls -d /usr/lib 2>/dev/null` \ 6958 `ls -d /usr/lib64 2>/dev/null` \ 6959 ; do 6960 if test -f "$i/tkimgConfig.sh" ; then 6961 ac_cv_c_tkimgconfig=`(cd $i; pwd)` 6962 break 6963 fi 6964 done 6965 fi 6966 6967fi 6968 6969 6970 if test x"${ac_cv_c_tkimgconfig}" = x ; then 6971 tkimg_BIN_DIR="# no tkimg configs found" 6972 { echo "$as_me:$LINENO: WARNING: Cannot find tkimg configuration definitions" >&5 6973echo "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;} 6974 exit 0 6975 else 6976 no_tkimg= 6977 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig} 6978 { echo "$as_me:$LINENO: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5 6979echo "${ECHO_T}found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; } 6980 fi 6981 fi 6982 6983 6984 { echo "$as_me:$LINENO: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5 6985echo $ECHO_N "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... $ECHO_C" >&6; } 6986 6987 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then 6988 { echo "$as_me:$LINENO: result: loading" >&5 6989echo "${ECHO_T}loading" >&6; } 6990 . "${tkimg_BIN_DIR}/tkimgConfig.sh" 6991 else 6992 { echo "$as_me:$LINENO: result: file not found" >&5 6993echo "${ECHO_T}file not found" >&6; } 6994 fi 6995 6996 # 6997 # If the tkimg_BIN_DIR is the build directory (not the install directory), 6998 # then set the common variable name to the value of the build variables. 6999 # For example, the variable tkimg_LIB_SPEC will be set to the value 7000 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC 7001 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an 7002 # installed and uninstalled version of Tcl. 7003 # 7004 7005 if test -f "${tkimg_BIN_DIR}/Makefile" ; then 7006 { echo "$as_me:$LINENO: WARNING: Found Makefile - using build library specs for tkimg" >&5 7007echo "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;} 7008 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC} 7009 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC} 7010 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH} 7011 fi 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 # Allow the caller to prevent this auto-check by specifying any 2nd arg 7025 if test "x" = x; then 7026 7027 # Check both upper and lower-case variants 7028 # If a dev wanted non-stubs libs, this function could take an option 7029 # to not use _STUB in the paths below 7030 if test "x${tkimg_STUB_LIB_SPEC}" = x; then 7031 7032 { echo "$as_me:$LINENO: checking For TKIMG_STUB library for LIBS" >&5 7033echo $ECHO_N "checking For TKIMG_STUB library for LIBS... $ECHO_C" >&6; } 7034 # This simplifies the use of stub libraries by automatically adding 7035 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7036 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7037 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7038 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then 7039 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7040 7041 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\"" 7042 for i in $vars; do 7043 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7044 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7045 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7046 fi 7047 PKG_LIBS="$PKG_LIBS $i" 7048 done 7049 7050 7051 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5 7052echo "${ECHO_T}using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; } 7053 else 7054 7055 vars="${TKIMG_STUB_LIB_SPEC}" 7056 for i in $vars; do 7057 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7058 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7059 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7060 fi 7061 PKG_LIBS="$PKG_LIBS $i" 7062 done 7063 7064 7065 { echo "$as_me:$LINENO: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5 7066echo "${ECHO_T}using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; } 7067 fi 7068 else 7069 { echo "$as_me:$LINENO: result: file not found" >&5 7070echo "${ECHO_T}file not found" >&6; } 7071 fi 7072 7073else 7074 7075 { echo "$as_me:$LINENO: checking For tkimg_STUB library for LIBS" >&5 7076echo $ECHO_N "checking For tkimg_STUB library for LIBS... $ECHO_C" >&6; } 7077 # This simplifies the use of stub libraries by automatically adding 7078 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS, 7079 # but this is called before CONFIG_CFLAGS. More importantly, this adds 7080 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD. 7081 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then 7082 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 7083 7084 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 7085 for i in $vars; do 7086 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7087 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7088 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7089 fi 7090 PKG_LIBS="$PKG_LIBS $i" 7091 done 7092 7093 7094 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5 7095echo "${ECHO_T}using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; } 7096 else 7097 7098 vars="${tkimg_STUB_LIB_SPEC}" 7099 for i in $vars; do 7100 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7101 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7102 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7103 fi 7104 PKG_LIBS="$PKG_LIBS $i" 7105 done 7106 7107 7108 { echo "$as_me:$LINENO: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5 7109echo "${ECHO_T}using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; } 7110 fi 7111 else 7112 { echo "$as_me:$LINENO: result: file not found" >&5 7113echo "${ECHO_T}file not found" >&6; } 7114 fi 7115 7116fi 7117 7118 7119fi 7120 7121 7122 7123 7124#-------------------------------------------------------------------- 7125# Compute an absolute path to the src directory of module 'tkimg' so 7126# that we are able to find its headers even if they are not installed. 7127#-------------------------------------------------------------------- 7128 7129case $tkimg_SRC_DIR in 7130/*) tkimg_SRC_PATH=$tkimg_SRC_DIR 7131 ;; 7132*) # SRC_DIR relative, splice with BUILD_PATH 7133 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR" 7134esac 7135 7136tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`" 7137 7138if test "${TEA_PLATFORM}" = "windows" ; then 7139 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`" 7140 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`" 7141fi 7142 7143 7144 7145 7146 7147#----------------------------------------------------------------------- 7148# Specify the C source files to compile in TEA_ADD_SOURCES, 7149# public headers that need to be installed in TEA_ADD_HEADERS, 7150# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 7151# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 7152# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 7153# and PKG_TCL_SOURCES. 7154#----------------------------------------------------------------------- 7155 7156 7157 vars="tga.c" 7158 for i in $vars; do 7159 case $i in 7160 \$*) 7161 # allow $-var names 7162 PKG_SOURCES="$PKG_SOURCES $i" 7163 PKG_OBJECTS="$PKG_OBJECTS $i" 7164 ;; 7165 *) 7166 # check for existence - allows for generic/win/unix VPATH 7167 # To add more dirs here (like 'src'), you have to update VPATH 7168 # in Makefile.in as well 7169 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7170 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7171 -a ! -f "${srcdir}/macosx/$i" \ 7172 ; then 7173 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7174echo "$as_me: error: could not find source file '$i'" >&2;} 7175 { (exit 1); exit 1; }; } 7176 fi 7177 PKG_SOURCES="$PKG_SOURCES $i" 7178 # this assumes it is in a VPATH dir 7179 i=`basename $i` 7180 # handle user calling this before or after TEA_SETUP_COMPILER 7181 if test x"${OBJEXT}" != x ; then 7182 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7183 else 7184 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7185 fi 7186 PKG_OBJECTS="$PKG_OBJECTS $j" 7187 ;; 7188 esac 7189 done 7190 7191 7192 7193 7194 vars="" 7195 for i in $vars; do 7196 # check for existence, be strict because it is installed 7197 if test ! -f "${srcdir}/$i" ; then 7198 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 7199echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 7200 { (exit 1); exit 1; }; } 7201 fi 7202 PKG_HEADERS="$PKG_HEADERS $i" 7203 done 7204 7205 7206 7207 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\"" 7208 for i in $vars; do 7209 PKG_INCLUDES="$PKG_INCLUDES $i" 7210 done 7211 7212 7213 7214 vars="-I." 7215 for i in $vars; do 7216 PKG_INCLUDES="$PKG_INCLUDES $i" 7217 done 7218 7219 7220 7221 vars="" 7222 for i in $vars; do 7223 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7224 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7225 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7226 fi 7227 PKG_LIBS="$PKG_LIBS $i" 7228 done 7229 7230 7231 7232 PKG_CFLAGS="$PKG_CFLAGS " 7233 7234 7235 7236 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\"" 7237 7238 7239 7240 vars="" 7241 for i in $vars; do 7242 # check for existence - allows for generic/win/unix VPATH 7243 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7244 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7245 -a ! -f "${srcdir}/macosx/$i" \ 7246 ; then 7247 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7248echo "$as_me: error: could not find stub source file '$i'" >&2;} 7249 { (exit 1); exit 1; }; } 7250 fi 7251 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7252 # this assumes it is in a VPATH dir 7253 i=`basename $i` 7254 # handle user calling this before or after TEA_SETUP_COMPILER 7255 if test x"${OBJEXT}" != x ; then 7256 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7257 else 7258 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7259 fi 7260 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7261 done 7262 7263 7264 7265 7266 vars="" 7267 for i in $vars; do 7268 # check for existence, be strict because it is installed 7269 if test ! -f "${srcdir}/$i" ; then 7270 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7271echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7272 { (exit 1); exit 1; }; } 7273 fi 7274 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7275 done 7276 7277 7278 7279PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`" 7280 7281sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \ 7282 -e "s/@CPACKAGE@/${CPACKAGE}/" \ 7283 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \ 7284 -e "s/%PACKAGE_UP%/${PUP}/" \ 7285 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/" 7286 7287# init.c is an included source file, not a source by itself 7288# FUTURE: Do this through AC_OUTPUT!! 7289 7290#-------------------------------------------------------------------- 7291# __CHANGE__ 7292# Choose which headers you need. Extension authors should try very 7293# hard to only rely on the Tcl public header files. Internal headers 7294# contain private data structures and are subject to change without 7295# notice. 7296# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 7297#-------------------------------------------------------------------- 7298 7299 7300 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7301echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7302 7303 7304# Check whether --with-tclinclude was given. 7305if test "${with_tclinclude+set}" = set; then 7306 withval=$with_tclinclude; with_tclinclude=${withval} 7307fi 7308 7309 7310 if test "${ac_cv_c_tclh+set}" = set; then 7311 echo $ECHO_N "(cached) $ECHO_C" >&6 7312else 7313 7314 # Use the value from --with-tclinclude, if it was given 7315 7316 if test x"${with_tclinclude}" != x ; then 7317 if test -f "${with_tclinclude}/tcl.h" ; then 7318 ac_cv_c_tclh=${with_tclinclude} 7319 else 7320 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7321echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7322 { (exit 1); exit 1; }; } 7323 fi 7324 else 7325 list="" 7326 if test "`uname -s`" = "Darwin"; then 7327 # If Tcl was built as a framework, attempt to use 7328 # the framework's Headers directory 7329 case ${TCL_DEFS} in 7330 *TCL_FRAMEWORK*) 7331 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7332 ;; 7333 esac 7334 fi 7335 7336 # Look in the source dir only if Tcl is not installed, 7337 # and in that situation, look there before installed locations. 7338 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7339 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7340 fi 7341 7342 # Check order: pkg --prefix location, Tcl's --prefix location, 7343 # relative to directory of tclConfig.sh. 7344 7345 eval "temp_includedir=${includedir}" 7346 list="$list \ 7347 `ls -d ${temp_includedir} 2>/dev/null` \ 7348 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7349 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7350 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7351 list="$list /usr/local/include /usr/include" 7352 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7353 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7354 list="$list `ls -d ${d} 2>/dev/null`" 7355 fi 7356 fi 7357 for i in $list ; do 7358 if test -f "$i/tcl.h" ; then 7359 ac_cv_c_tclh=$i 7360 break 7361 fi 7362 done 7363 fi 7364 7365fi 7366 7367 7368 # Print a message based on how we determined the include path 7369 7370 if test x"${ac_cv_c_tclh}" = x ; then 7371 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7372echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7373 { (exit 1); exit 1; }; } 7374 else 7375 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7376echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7377 fi 7378 7379 # Convert to a native path and substitute into the output files. 7380 7381 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7382 7383 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7384 7385 7386 7387 7388 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7389echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7390 7391 7392# Check whether --with-tkinclude was given. 7393if test "${with_tkinclude+set}" = set; then 7394 withval=$with_tkinclude; with_tkinclude=${withval} 7395fi 7396 7397 7398 if test "${ac_cv_c_tkh+set}" = set; then 7399 echo $ECHO_N "(cached) $ECHO_C" >&6 7400else 7401 7402 # Use the value from --with-tkinclude, if it was given 7403 7404 if test x"${with_tkinclude}" != x ; then 7405 if test -f "${with_tkinclude}/tk.h" ; then 7406 ac_cv_c_tkh=${with_tkinclude} 7407 else 7408 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7409echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7410 { (exit 1); exit 1; }; } 7411 fi 7412 else 7413 list="" 7414 if test "`uname -s`" = "Darwin"; then 7415 # If Tk was built as a framework, attempt to use 7416 # the framework's Headers directory. 7417 case ${TK_DEFS} in 7418 *TK_FRAMEWORK*) 7419 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7420 ;; 7421 esac 7422 fi 7423 7424 # Look in the source dir only if Tk is not installed, 7425 # and in that situation, look there before installed locations. 7426 if test -f "${TK_BIN_DIR}/Makefile" ; then 7427 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7428 fi 7429 7430 # Check order: pkg --prefix location, Tk's --prefix location, 7431 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7432 # relative to directory of tclConfig.sh. 7433 7434 eval "temp_includedir=${includedir}" 7435 list="$list \ 7436 `ls -d ${temp_includedir} 2>/dev/null` \ 7437 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7438 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7439 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7440 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7441 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7442 list="$list /usr/local/include /usr/include" 7443 if test x"${TK_INCLUDE_SPEC}" != x ; then 7444 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7445 list="$list `ls -d ${d} 2>/dev/null`" 7446 fi 7447 fi 7448 for i in $list ; do 7449 if test -f "$i/tk.h" ; then 7450 ac_cv_c_tkh=$i 7451 break 7452 fi 7453 done 7454 fi 7455 7456fi 7457 7458 7459 # Print a message based on how we determined the include path 7460 7461 if test x"${ac_cv_c_tkh}" = x ; then 7462 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7463echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7464 { (exit 1); exit 1; }; } 7465 else 7466 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7467echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7468 fi 7469 7470 # Convert to a native path and substitute into the output files. 7471 7472 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7473 7474 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7475 7476 7477 7478 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7479 # On Windows and Aqua, we need the X compat headers 7480 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7481echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7482 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7483 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7484 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7485 7486 fi 7487 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7488echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7489 fi 7490 7491 7492 7493#-------------------------------------------------------------------- 7494# A few miscellaneous platform-specific items: 7495# 7496# Windows creates a few extra files that need to be cleaned up. 7497# We can add more files to clean if our extension creates any extra 7498# files in the future. 7499# 7500# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7501# These will be appended to the current set of compiler flags for 7502# your system. 7503#-------------------------------------------------------------------- 7504 7505if test "${TEA_PLATFORM}" = "windows" ; then 7506 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch init.c" 7507else 7508 CLEANFILES="init.c" 7509fi 7510 7511 7512#-------------------------------------------------------------------- 7513# Check whether --enable-threads or --disable-threads was given. 7514# So far only Tcl responds to this one. 7515#-------------------------------------------------------------------- 7516 7517 7518 # Check whether --enable-threads was given. 7519if test "${enable_threads+set}" = set; then 7520 enableval=$enable_threads; tcl_ok=$enableval 7521else 7522 tcl_ok=yes 7523fi 7524 7525 7526 if test "${enable_threads+set}" = set; then 7527 enableval="$enable_threads" 7528 tcl_ok=$enableval 7529 else 7530 tcl_ok=yes 7531 fi 7532 7533 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7534 TCL_THREADS=1 7535 7536 if test "${TEA_PLATFORM}" != "windows" ; then 7537 # We are always OK on Windows, so check what this platform wants: 7538 7539 # USE_THREAD_ALLOC tells us to try the special thread-based 7540 # allocator that significantly reduces lock contention 7541 7542cat >>confdefs.h <<\_ACEOF 7543#define USE_THREAD_ALLOC 1 7544_ACEOF 7545 7546 7547cat >>confdefs.h <<\_ACEOF 7548#define _REENTRANT 1 7549_ACEOF 7550 7551 if test "`uname -s`" = "SunOS" ; then 7552 7553cat >>confdefs.h <<\_ACEOF 7554#define _POSIX_PTHREAD_SEMANTICS 1 7555_ACEOF 7556 7557 fi 7558 7559cat >>confdefs.h <<\_ACEOF 7560#define _THREAD_SAFE 1 7561_ACEOF 7562 7563 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7564echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7565if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7566 echo $ECHO_N "(cached) $ECHO_C" >&6 7567else 7568 ac_check_lib_save_LIBS=$LIBS 7569LIBS="-lpthread $LIBS" 7570cat >conftest.$ac_ext <<_ACEOF 7571/* confdefs.h. */ 7572_ACEOF 7573cat confdefs.h >>conftest.$ac_ext 7574cat >>conftest.$ac_ext <<_ACEOF 7575/* end confdefs.h. */ 7576 7577/* Override any GCC internal prototype to avoid an error. 7578 Use char because int might match the return type of a GCC 7579 builtin and then its argument prototype would still apply. */ 7580#ifdef __cplusplus 7581extern "C" 7582#endif 7583char pthread_mutex_init (); 7584int 7585main () 7586{ 7587return pthread_mutex_init (); 7588 ; 7589 return 0; 7590} 7591_ACEOF 7592rm -f conftest.$ac_objext conftest$ac_exeext 7593if { (ac_try="$ac_link" 7594case "(($ac_try" in 7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7596 *) ac_try_echo=$ac_try;; 7597esac 7598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7599 (eval "$ac_link") 2>conftest.er1 7600 ac_status=$? 7601 grep -v '^ *+' conftest.er1 >conftest.err 7602 rm -f conftest.er1 7603 cat conftest.err >&5 7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); } && { 7606 test -z "$ac_c_werror_flag" || 7607 test ! -s conftest.err 7608 } && test -s conftest$ac_exeext && 7609 $as_test_x conftest$ac_exeext; then 7610 ac_cv_lib_pthread_pthread_mutex_init=yes 7611else 7612 echo "$as_me: failed program was:" >&5 7613sed 's/^/| /' conftest.$ac_ext >&5 7614 7615 ac_cv_lib_pthread_pthread_mutex_init=no 7616fi 7617 7618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7619 conftest$ac_exeext conftest.$ac_ext 7620LIBS=$ac_check_lib_save_LIBS 7621fi 7622{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7623echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7624if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7625 tcl_ok=yes 7626else 7627 tcl_ok=no 7628fi 7629 7630 if test "$tcl_ok" = "no"; then 7631 # Check a little harder for __pthread_mutex_init in the same 7632 # library, as some systems hide it there until pthread.h is 7633 # defined. We could alternatively do an AC_TRY_COMPILE with 7634 # pthread.h, but that will work with libpthread really doesn't 7635 # exist, like AIX 4.2. [Bug: 4359] 7636 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7637echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7638if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7639 echo $ECHO_N "(cached) $ECHO_C" >&6 7640else 7641 ac_check_lib_save_LIBS=$LIBS 7642LIBS="-lpthread $LIBS" 7643cat >conftest.$ac_ext <<_ACEOF 7644/* confdefs.h. */ 7645_ACEOF 7646cat confdefs.h >>conftest.$ac_ext 7647cat >>conftest.$ac_ext <<_ACEOF 7648/* end confdefs.h. */ 7649 7650/* Override any GCC internal prototype to avoid an error. 7651 Use char because int might match the return type of a GCC 7652 builtin and then its argument prototype would still apply. */ 7653#ifdef __cplusplus 7654extern "C" 7655#endif 7656char __pthread_mutex_init (); 7657int 7658main () 7659{ 7660return __pthread_mutex_init (); 7661 ; 7662 return 0; 7663} 7664_ACEOF 7665rm -f conftest.$ac_objext conftest$ac_exeext 7666if { (ac_try="$ac_link" 7667case "(($ac_try" in 7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7669 *) ac_try_echo=$ac_try;; 7670esac 7671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7672 (eval "$ac_link") 2>conftest.er1 7673 ac_status=$? 7674 grep -v '^ *+' conftest.er1 >conftest.err 7675 rm -f conftest.er1 7676 cat conftest.err >&5 7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7678 (exit $ac_status); } && { 7679 test -z "$ac_c_werror_flag" || 7680 test ! -s conftest.err 7681 } && test -s conftest$ac_exeext && 7682 $as_test_x conftest$ac_exeext; then 7683 ac_cv_lib_pthread___pthread_mutex_init=yes 7684else 7685 echo "$as_me: failed program was:" >&5 7686sed 's/^/| /' conftest.$ac_ext >&5 7687 7688 ac_cv_lib_pthread___pthread_mutex_init=no 7689fi 7690 7691rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7692 conftest$ac_exeext conftest.$ac_ext 7693LIBS=$ac_check_lib_save_LIBS 7694fi 7695{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7696echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7697if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7698 tcl_ok=yes 7699else 7700 tcl_ok=no 7701fi 7702 7703 fi 7704 7705 if test "$tcl_ok" = "yes"; then 7706 # The space is needed 7707 THREADS_LIBS=" -lpthread" 7708 else 7709 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7710echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7711if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7712 echo $ECHO_N "(cached) $ECHO_C" >&6 7713else 7714 ac_check_lib_save_LIBS=$LIBS 7715LIBS="-lpthreads $LIBS" 7716cat >conftest.$ac_ext <<_ACEOF 7717/* confdefs.h. */ 7718_ACEOF 7719cat confdefs.h >>conftest.$ac_ext 7720cat >>conftest.$ac_ext <<_ACEOF 7721/* end confdefs.h. */ 7722 7723/* Override any GCC internal prototype to avoid an error. 7724 Use char because int might match the return type of a GCC 7725 builtin and then its argument prototype would still apply. */ 7726#ifdef __cplusplus 7727extern "C" 7728#endif 7729char pthread_mutex_init (); 7730int 7731main () 7732{ 7733return pthread_mutex_init (); 7734 ; 7735 return 0; 7736} 7737_ACEOF 7738rm -f conftest.$ac_objext conftest$ac_exeext 7739if { (ac_try="$ac_link" 7740case "(($ac_try" in 7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7742 *) ac_try_echo=$ac_try;; 7743esac 7744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7745 (eval "$ac_link") 2>conftest.er1 7746 ac_status=$? 7747 grep -v '^ *+' conftest.er1 >conftest.err 7748 rm -f conftest.er1 7749 cat conftest.err >&5 7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7751 (exit $ac_status); } && { 7752 test -z "$ac_c_werror_flag" || 7753 test ! -s conftest.err 7754 } && test -s conftest$ac_exeext && 7755 $as_test_x conftest$ac_exeext; then 7756 ac_cv_lib_pthreads_pthread_mutex_init=yes 7757else 7758 echo "$as_me: failed program was:" >&5 7759sed 's/^/| /' conftest.$ac_ext >&5 7760 7761 ac_cv_lib_pthreads_pthread_mutex_init=no 7762fi 7763 7764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7765 conftest$ac_exeext conftest.$ac_ext 7766LIBS=$ac_check_lib_save_LIBS 7767fi 7768{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7769echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7770if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7771 tcl_ok=yes 7772else 7773 tcl_ok=no 7774fi 7775 7776 if test "$tcl_ok" = "yes"; then 7777 # The space is needed 7778 THREADS_LIBS=" -lpthreads" 7779 else 7780 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7781echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7782if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7783 echo $ECHO_N "(cached) $ECHO_C" >&6 7784else 7785 ac_check_lib_save_LIBS=$LIBS 7786LIBS="-lc $LIBS" 7787cat >conftest.$ac_ext <<_ACEOF 7788/* confdefs.h. */ 7789_ACEOF 7790cat confdefs.h >>conftest.$ac_ext 7791cat >>conftest.$ac_ext <<_ACEOF 7792/* end confdefs.h. */ 7793 7794/* Override any GCC internal prototype to avoid an error. 7795 Use char because int might match the return type of a GCC 7796 builtin and then its argument prototype would still apply. */ 7797#ifdef __cplusplus 7798extern "C" 7799#endif 7800char pthread_mutex_init (); 7801int 7802main () 7803{ 7804return pthread_mutex_init (); 7805 ; 7806 return 0; 7807} 7808_ACEOF 7809rm -f conftest.$ac_objext conftest$ac_exeext 7810if { (ac_try="$ac_link" 7811case "(($ac_try" in 7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7813 *) ac_try_echo=$ac_try;; 7814esac 7815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7816 (eval "$ac_link") 2>conftest.er1 7817 ac_status=$? 7818 grep -v '^ *+' conftest.er1 >conftest.err 7819 rm -f conftest.er1 7820 cat conftest.err >&5 7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7822 (exit $ac_status); } && { 7823 test -z "$ac_c_werror_flag" || 7824 test ! -s conftest.err 7825 } && test -s conftest$ac_exeext && 7826 $as_test_x conftest$ac_exeext; then 7827 ac_cv_lib_c_pthread_mutex_init=yes 7828else 7829 echo "$as_me: failed program was:" >&5 7830sed 's/^/| /' conftest.$ac_ext >&5 7831 7832 ac_cv_lib_c_pthread_mutex_init=no 7833fi 7834 7835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7836 conftest$ac_exeext conftest.$ac_ext 7837LIBS=$ac_check_lib_save_LIBS 7838fi 7839{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7840echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7841if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7842 tcl_ok=yes 7843else 7844 tcl_ok=no 7845fi 7846 7847 if test "$tcl_ok" = "no"; then 7848 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7849echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7850if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7851 echo $ECHO_N "(cached) $ECHO_C" >&6 7852else 7853 ac_check_lib_save_LIBS=$LIBS 7854LIBS="-lc_r $LIBS" 7855cat >conftest.$ac_ext <<_ACEOF 7856/* confdefs.h. */ 7857_ACEOF 7858cat confdefs.h >>conftest.$ac_ext 7859cat >>conftest.$ac_ext <<_ACEOF 7860/* end confdefs.h. */ 7861 7862/* Override any GCC internal prototype to avoid an error. 7863 Use char because int might match the return type of a GCC 7864 builtin and then its argument prototype would still apply. */ 7865#ifdef __cplusplus 7866extern "C" 7867#endif 7868char pthread_mutex_init (); 7869int 7870main () 7871{ 7872return pthread_mutex_init (); 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877rm -f conftest.$ac_objext conftest$ac_exeext 7878if { (ac_try="$ac_link" 7879case "(($ac_try" in 7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7881 *) ac_try_echo=$ac_try;; 7882esac 7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7884 (eval "$ac_link") 2>conftest.er1 7885 ac_status=$? 7886 grep -v '^ *+' conftest.er1 >conftest.err 7887 rm -f conftest.er1 7888 cat conftest.err >&5 7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7890 (exit $ac_status); } && { 7891 test -z "$ac_c_werror_flag" || 7892 test ! -s conftest.err 7893 } && test -s conftest$ac_exeext && 7894 $as_test_x conftest$ac_exeext; then 7895 ac_cv_lib_c_r_pthread_mutex_init=yes 7896else 7897 echo "$as_me: failed program was:" >&5 7898sed 's/^/| /' conftest.$ac_ext >&5 7899 7900 ac_cv_lib_c_r_pthread_mutex_init=no 7901fi 7902 7903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7904 conftest$ac_exeext conftest.$ac_ext 7905LIBS=$ac_check_lib_save_LIBS 7906fi 7907{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7908echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7909if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7910 tcl_ok=yes 7911else 7912 tcl_ok=no 7913fi 7914 7915 if test "$tcl_ok" = "yes"; then 7916 # The space is needed 7917 THREADS_LIBS=" -pthread" 7918 else 7919 TCL_THREADS=0 7920 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7921echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7922 fi 7923 fi 7924 fi 7925 fi 7926 fi 7927 else 7928 TCL_THREADS=0 7929 fi 7930 # Do checking message here to not mess up interleaved configure output 7931 { echo "$as_me:$LINENO: checking for building with threads" >&5 7932echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7933 if test "${TCL_THREADS}" = 1; then 7934 7935cat >>confdefs.h <<\_ACEOF 7936#define TCL_THREADS 1 7937_ACEOF 7938 7939 { echo "$as_me:$LINENO: result: yes (default)" >&5 7940echo "${ECHO_T}yes (default)" >&6; } 7941 else 7942 { echo "$as_me:$LINENO: result: no" >&5 7943echo "${ECHO_T}no" >&6; } 7944 fi 7945 # TCL_THREADS sanity checking. See if our request for building with 7946 # threads is the same as the way Tcl was built. If not, warn the user. 7947 case ${TCL_DEFS} in 7948 *THREADS=1*) 7949 if test "${TCL_THREADS}" = "0"; then 7950 { echo "$as_me:$LINENO: WARNING: 7951 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7952 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7953echo "$as_me: WARNING: 7954 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7955 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7956 fi 7957 ;; 7958 *) 7959 if test "${TCL_THREADS}" = "1"; then 7960 { echo "$as_me:$LINENO: WARNING: 7961 --enable-threads requested, but building against a Tcl that is NOT 7962 thread-enabled. This is an OK configuration that will also run in 7963 a thread-enabled core." >&5 7964echo "$as_me: WARNING: 7965 --enable-threads requested, but building against a Tcl that is NOT 7966 thread-enabled. This is an OK configuration that will also run in 7967 a thread-enabled core." >&2;} 7968 fi 7969 ;; 7970 esac 7971 7972 7973 7974#-------------------------------------------------------------------- 7975# The statement below defines a collection of symbols related to 7976# building as a shared library instead of a static library. 7977#-------------------------------------------------------------------- 7978 7979 7980 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7981echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7982 # Check whether --enable-shared was given. 7983if test "${enable_shared+set}" = set; then 7984 enableval=$enable_shared; tcl_ok=$enableval 7985else 7986 tcl_ok=yes 7987fi 7988 7989 7990 if test "${enable_shared+set}" = set; then 7991 enableval="$enable_shared" 7992 tcl_ok=$enableval 7993 else 7994 tcl_ok=yes 7995 fi 7996 7997 if test "$tcl_ok" = "yes" ; then 7998 { echo "$as_me:$LINENO: result: shared" >&5 7999echo "${ECHO_T}shared" >&6; } 8000 SHARED_BUILD=1 8001 else 8002 { echo "$as_me:$LINENO: result: static" >&5 8003echo "${ECHO_T}static" >&6; } 8004 SHARED_BUILD=0 8005 8006cat >>confdefs.h <<\_ACEOF 8007#define STATIC_BUILD 1 8008_ACEOF 8009 8010 fi 8011 8012 8013 8014#-------------------------------------------------------------------- 8015# This macro figures out what flags to use with the compiler/linker 8016# when building shared/static debug/optimized objects. This information 8017# can be taken from the tclConfig.sh file, but this figures it all out. 8018#-------------------------------------------------------------------- 8019 8020 8021 8022 8023 # Step 0.a: Enable 64 bit support? 8024 8025 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8026echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8027 # Check whether --enable-64bit was given. 8028if test "${enable_64bit+set}" = set; then 8029 enableval=$enable_64bit; do64bit=$enableval 8030else 8031 do64bit=no 8032fi 8033 8034 { echo "$as_me:$LINENO: result: $do64bit" >&5 8035echo "${ECHO_T}$do64bit" >&6; } 8036 8037 # Step 0.b: Enable Solaris 64 bit VIS support? 8038 8039 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8040echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8041 # Check whether --enable-64bit-vis was given. 8042if test "${enable_64bit_vis+set}" = set; then 8043 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8044else 8045 do64bitVIS=no 8046fi 8047 8048 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8049echo "${ECHO_T}$do64bitVIS" >&6; } 8050 # Force 64bit on with VIS 8051 if test "$do64bitVIS" = "yes"; then 8052 do64bit=yes 8053fi 8054 8055 8056 # Step 0.c: Check if visibility support is available. Do this here so 8057 # that platform specific alternatives can be used below if this fails. 8058 8059 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8060echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8061if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8062 echo $ECHO_N "(cached) $ECHO_C" >&6 8063else 8064 8065 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8066 cat >conftest.$ac_ext <<_ACEOF 8067/* confdefs.h. */ 8068_ACEOF 8069cat confdefs.h >>conftest.$ac_ext 8070cat >>conftest.$ac_ext <<_ACEOF 8071/* end confdefs.h. */ 8072 8073 extern __attribute__((__visibility__("hidden"))) void f(void); 8074 void f(void) {} 8075int 8076main () 8077{ 8078f(); 8079 ; 8080 return 0; 8081} 8082_ACEOF 8083rm -f conftest.$ac_objext conftest$ac_exeext 8084if { (ac_try="$ac_link" 8085case "(($ac_try" in 8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8087 *) ac_try_echo=$ac_try;; 8088esac 8089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8090 (eval "$ac_link") 2>conftest.er1 8091 ac_status=$? 8092 grep -v '^ *+' conftest.er1 >conftest.err 8093 rm -f conftest.er1 8094 cat conftest.err >&5 8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8096 (exit $ac_status); } && { 8097 test -z "$ac_c_werror_flag" || 8098 test ! -s conftest.err 8099 } && test -s conftest$ac_exeext && 8100 $as_test_x conftest$ac_exeext; then 8101 tcl_cv_cc_visibility_hidden=yes 8102else 8103 echo "$as_me: failed program was:" >&5 8104sed 's/^/| /' conftest.$ac_ext >&5 8105 8106 tcl_cv_cc_visibility_hidden=no 8107fi 8108 8109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8110 conftest$ac_exeext conftest.$ac_ext 8111 CFLAGS=$hold_cflags 8112fi 8113{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8114echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8115 if test $tcl_cv_cc_visibility_hidden = yes; then 8116 8117 8118cat >>confdefs.h <<\_ACEOF 8119#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8120_ACEOF 8121 8122 8123fi 8124 8125 8126 # Step 0.d: Disable -rpath support? 8127 8128 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8129echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8130 # Check whether --enable-rpath was given. 8131if test "${enable_rpath+set}" = set; then 8132 enableval=$enable_rpath; doRpath=$enableval 8133else 8134 doRpath=yes 8135fi 8136 8137 { echo "$as_me:$LINENO: result: $doRpath" >&5 8138echo "${ECHO_T}$doRpath" >&6; } 8139 8140 # TEA specific: Cross-compiling options for Windows/CE builds? 8141 8142 if test "${TEA_PLATFORM}" = windows; then 8143 8144 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8145echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8146 # Check whether --enable-wince was given. 8147if test "${enable_wince+set}" = set; then 8148 enableval=$enable_wince; doWince=$enableval 8149else 8150 doWince=no 8151fi 8152 8153 { echo "$as_me:$LINENO: result: $doWince" >&5 8154echo "${ECHO_T}$doWince" >&6; } 8155 8156fi 8157 8158 8159 # Set the variable "system" to hold the name and version number 8160 # for the system. 8161 8162 8163 { echo "$as_me:$LINENO: checking system version" >&5 8164echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8165if test "${tcl_cv_sys_version+set}" = set; then 8166 echo $ECHO_N "(cached) $ECHO_C" >&6 8167else 8168 8169 # TEA specific: 8170 if test "${TEA_PLATFORM}" = "windows" ; then 8171 tcl_cv_sys_version=windows 8172 else 8173 tcl_cv_sys_version=`uname -s`-`uname -r` 8174 if test "$?" -ne 0 ; then 8175 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8176echo "$as_me: WARNING: can't find uname command" >&2;} 8177 tcl_cv_sys_version=unknown 8178 else 8179 if test "`uname -s`" = "AIX" ; then 8180 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8181 fi 8182 fi 8183 fi 8184 8185fi 8186{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8187echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8188 system=$tcl_cv_sys_version 8189 8190 8191 # Require ranlib early so we can override it in special cases below. 8192 8193 8194 8195 # Set configuration options based on system name and version. 8196 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8197 # "windows" case and removed some core-only vars. 8198 8199 do64bit_ok=no 8200 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8201 SHLIB_LD_LIBS='${LIBS}' 8202 # When ld needs options to work in 64-bit mode, put them in 8203 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8204 # is disabled by the user. [Bug 1016796] 8205 LDFLAGS_ARCH="" 8206 UNSHARED_LIB_SUFFIX="" 8207 # TEA specific: use PACKAGE_VERSION instead of VERSION 8208 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8209 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8210 TCL_LIB_VERSIONS_OK=ok 8211 CFLAGS_DEBUG=-g 8212 CFLAGS_OPTIMIZE=-O 8213 if test "$GCC" = yes; then 8214 8215 # TEA specific: 8216 CFLAGS_OPTIMIZE=-O2 8217 CFLAGS_WARNING="-Wall" 8218 8219else 8220 CFLAGS_WARNING="" 8221fi 8222 8223 # Extract the first word of "ar", so it can be a program name with args. 8224set dummy ar; ac_word=$2 8225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8227if test "${ac_cv_prog_AR+set}" = set; then 8228 echo $ECHO_N "(cached) $ECHO_C" >&6 8229else 8230 if test -n "$AR"; then 8231 ac_cv_prog_AR="$AR" # Let the user override the test. 8232else 8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234for as_dir in $PATH 8235do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8240 ac_cv_prog_AR="ar" 8241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244done 8245done 8246IFS=$as_save_IFS 8247 8248fi 8249fi 8250AR=$ac_cv_prog_AR 8251if test -n "$AR"; then 8252 { echo "$as_me:$LINENO: result: $AR" >&5 8253echo "${ECHO_T}$AR" >&6; } 8254else 8255 { echo "$as_me:$LINENO: result: no" >&5 8256echo "${ECHO_T}no" >&6; } 8257fi 8258 8259 8260 STLIB_LD='${AR} cr' 8261 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8262 if test "x$SHLIB_VERSION" = x; then 8263 SHLIB_VERSION="1.0" 8264fi 8265 8266 case $system in 8267 # TEA specific: 8268 windows) 8269 # This is a 2-stage check to make sure we have the 64-bit SDK 8270 # We have to know where the SDK is installed. 8271 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8272 # MACHINE is IX86 for LINK, but this is used by the manifest, 8273 # which requires x86|amd64|ia64. 8274 MACHINE="X86" 8275 if test "$do64bit" != "no" ; then 8276 if test "x${MSSDK}x" = "xx" ; then 8277 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8278 fi 8279 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8280 PATH64="" 8281 case "$do64bit" in 8282 amd64|x64|yes) 8283 MACHINE="AMD64" ; # default to AMD64 64-bit build 8284 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8285 ;; 8286 ia64) 8287 MACHINE="IA64" 8288 PATH64="${MSSDK}/Bin/Win64" 8289 ;; 8290 esac 8291 if test ! -d "${PATH64}" ; then 8292 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8293echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8294 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8295echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8296 do64bit="no" 8297 else 8298 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8299echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8300 do64bit_ok="yes" 8301 fi 8302 fi 8303 8304 if test "$doWince" != "no" ; then 8305 if test "$do64bit" != "no" ; then 8306 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8307echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8308 { (exit 1); exit 1; }; } 8309 fi 8310 if test "$GCC" = "yes" ; then 8311 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8312echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8313 { (exit 1); exit 1; }; } 8314 fi 8315 8316 # First, look for one uninstalled. 8317 # the alternative search directory is invoked by --with-celib 8318 8319 if test x"${no_celib}" = x ; then 8320 # we reset no_celib in case something fails here 8321 no_celib=true 8322 8323# Check whether --with-celib was given. 8324if test "${with_celib+set}" = set; then 8325 withval=$with_celib; with_celibconfig=${withval} 8326fi 8327 8328 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8329echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8330 if test "${ac_cv_c_celibconfig+set}" = set; then 8331 echo $ECHO_N "(cached) $ECHO_C" >&6 8332else 8333 8334 # First check to see if --with-celibconfig was specified. 8335 if test x"${with_celibconfig}" != x ; then 8336 if test -d "${with_celibconfig}/inc" ; then 8337 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8338 else 8339 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8340echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8341 { (exit 1); exit 1; }; } 8342 fi 8343 fi 8344 8345 # then check for a celib library 8346 if test x"${ac_cv_c_celibconfig}" = x ; then 8347 for i in \ 8348 ../celib-palm-3.0 \ 8349 ../celib \ 8350 ../../celib-palm-3.0 \ 8351 ../../celib \ 8352 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8353 ${srcdir}/../celib-palm-3.0 \ 8354 ${srcdir}/../celib \ 8355 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8356 ; do 8357 if test -d "$i/inc" ; then 8358 ac_cv_c_celibconfig=`(cd $i; pwd)` 8359 break 8360 fi 8361 done 8362 fi 8363 8364fi 8365 8366 if test x"${ac_cv_c_celibconfig}" = x ; then 8367 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8368echo "$as_me: error: Cannot find celib support library directory" >&2;} 8369 { (exit 1); exit 1; }; } 8370 else 8371 no_celib= 8372 CELIB_DIR=${ac_cv_c_celibconfig} 8373 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8374 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8375echo "${ECHO_T}found $CELIB_DIR" >&6; } 8376 fi 8377 fi 8378 8379 # Set defaults for common evc4/PPC2003 setup 8380 # Currently Tcl requires 300+, possibly 420+ for sockets 8381 CEVERSION=420; # could be 211 300 301 400 420 ... 8382 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8383 ARCH=ARM; # could be ARM MIPS X86EM ... 8384 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8385 if test "$doWince" != "yes"; then 8386 # If !yes then the user specified something 8387 # Reset ARCH to allow user to skip specifying it 8388 ARCH= 8389 eval `echo $doWince | awk -F, '{ \ 8390 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8391 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8392 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8393 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8394 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8395 }'` 8396 if test "x${ARCH}" = "x" ; then 8397 ARCH=$TARGETCPU; 8398 fi 8399 fi 8400 OSVERSION=WCE$CEVERSION; 8401 if test "x${WCEROOT}" = "x" ; then 8402 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8403 if test ! -d "${WCEROOT}" ; then 8404 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8405 fi 8406 fi 8407 if test "x${SDKROOT}" = "x" ; then 8408 SDKROOT="C:/Program Files/Windows CE Tools" 8409 if test ! -d "${SDKROOT}" ; then 8410 SDKROOT="C:/Windows CE Tools" 8411 fi 8412 fi 8413 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8414 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8415 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8416 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8417 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8418echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8419 { (exit 1); exit 1; }; } 8420 doWince="no" 8421 else 8422 # We could PATH_NOSPACE these, but that's not important, 8423 # as long as we quote them when used. 8424 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8425 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8426 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8427 fi 8428 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8429 fi 8430 fi 8431 8432 if test "$GCC" != "yes" ; then 8433 if test "${SHARED_BUILD}" = "0" ; then 8434 runtime=-MT 8435 else 8436 runtime=-MD 8437 fi 8438 8439 if test "$do64bit" != "no" ; then 8440 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8441 CC="\"${PATH64}/cl.exe\"" 8442 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8443 RC="\"${MSSDK}/bin/rc.exe\"" 8444 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8445 LINKBIN="\"${PATH64}/link.exe\"" 8446 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8447 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8448 # Avoid 'unresolved external symbol __security_cookie' 8449 # errors, c.f. http://support.microsoft.com/?id=894573 8450 8451 vars="bufferoverflowU.lib" 8452 for i in $vars; do 8453 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8454 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8455 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8456 fi 8457 PKG_LIBS="$PKG_LIBS $i" 8458 done 8459 8460 8461 elif test "$doWince" != "no" ; then 8462 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8463 if test "${TARGETCPU}" = "X86"; then 8464 CC="\"${CEBINROOT}/cl.exe\"" 8465 else 8466 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8467 fi 8468 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8469 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8470 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8471 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8472 if test "${SHARED_BUILD}" = "1" ; then 8473 # Static CE builds require static celib as well 8474 defs="${defs} _DLL" 8475 fi 8476 for i in $defs ; do 8477 8478cat >>confdefs.h <<_ACEOF 8479#define $i 1 8480_ACEOF 8481 8482 done 8483 8484cat >>confdefs.h <<_ACEOF 8485#define _WIN32_WCE $CEVERSION 8486_ACEOF 8487 8488 8489cat >>confdefs.h <<_ACEOF 8490#define UNDER_CE $CEVERSION 8491_ACEOF 8492 8493 CFLAGS_DEBUG="-nologo -Zi -Od" 8494 CFLAGS_OPTIMIZE="-nologo -Ox" 8495 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8496 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8497 LINKBIN="\"${CEBINROOT}/link.exe\"" 8498 8499 else 8500 RC="rc" 8501 lflags="-nologo" 8502 LINKBIN="link" 8503 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8504 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8505 fi 8506 fi 8507 8508 if test "$GCC" = "yes"; then 8509 # mingw gcc mode 8510 RC="windres" 8511 CFLAGS_DEBUG="-g" 8512 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8513 SHLIB_LD="$CC -shared" 8514 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8515 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8516 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8517 else 8518 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8519 # link -lib only works when -lib is the first arg 8520 STLIB_LD="${LINKBIN} -lib ${lflags}" 8521 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8522 PATHTYPE=-w 8523 # For information on what debugtype is most useful, see: 8524 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8525 # and also 8526 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8527 # This essentially turns it all on. 8528 LDFLAGS_DEBUG="-debug -debugtype:cv" 8529 LDFLAGS_OPTIMIZE="-release" 8530 if test "$doWince" != "no" ; then 8531 LDFLAGS_CONSOLE="-link ${lflags}" 8532 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8533 else 8534 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8535 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8536 fi 8537 fi 8538 8539 SHLIB_SUFFIX=".dll" 8540 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8541 8542 TCL_LIB_VERSIONS_OK=nodots 8543 ;; 8544 AIX-*) 8545 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8546 8547 # AIX requires the _r compiler when gcc isn't being used 8548 case "${CC}" in 8549 *_r|*_r\ *) 8550 # ok ... 8551 ;; 8552 *) 8553 # Make sure only first arg gets _r 8554 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8555 ;; 8556 esac 8557 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8558echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8559 8560fi 8561 8562 LIBS="$LIBS -lc" 8563 SHLIB_CFLAGS="" 8564 SHLIB_SUFFIX=".so" 8565 8566 LD_LIBRARY_PATH_VAR="LIBPATH" 8567 8568 # Check to enable 64-bit flags for compiler/linker 8569 if test "$do64bit" = yes; then 8570 8571 if test "$GCC" = yes; then 8572 8573 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8574echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8575 8576else 8577 8578 do64bit_ok=yes 8579 CFLAGS="$CFLAGS -q64" 8580 LDFLAGS_ARCH="-q64" 8581 RANLIB="${RANLIB} -X64" 8582 AR="${AR} -X64" 8583 SHLIB_LD_FLAGS="-b64" 8584 8585fi 8586 8587 8588fi 8589 8590 8591 if test "`uname -m`" = ia64; then 8592 8593 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8594 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8595 if test "$GCC" = yes; then 8596 8597 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8598 8599else 8600 8601 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8602 8603fi 8604 8605 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8606 8607else 8608 8609 if test "$GCC" = yes; then 8610 8611 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8612 8613else 8614 8615 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8616 LDFLAGS="$LDFLAGS -brtl" 8617 8618fi 8619 8620 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8621 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8622 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8623 8624fi 8625 8626 ;; 8627 BeOS*) 8628 SHLIB_CFLAGS="-fPIC" 8629 SHLIB_LD='${CC} -nostart' 8630 SHLIB_SUFFIX=".so" 8631 8632 #----------------------------------------------------------- 8633 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8634 # -lsocket, even if the network functions are in -lnet which 8635 # is always linked to, for compatibility. 8636 #----------------------------------------------------------- 8637 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8638echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8639if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8640 echo $ECHO_N "(cached) $ECHO_C" >&6 8641else 8642 ac_check_lib_save_LIBS=$LIBS 8643LIBS="-lbind $LIBS" 8644cat >conftest.$ac_ext <<_ACEOF 8645/* confdefs.h. */ 8646_ACEOF 8647cat confdefs.h >>conftest.$ac_ext 8648cat >>conftest.$ac_ext <<_ACEOF 8649/* end confdefs.h. */ 8650 8651/* Override any GCC internal prototype to avoid an error. 8652 Use char because int might match the return type of a GCC 8653 builtin and then its argument prototype would still apply. */ 8654#ifdef __cplusplus 8655extern "C" 8656#endif 8657char inet_ntoa (); 8658int 8659main () 8660{ 8661return inet_ntoa (); 8662 ; 8663 return 0; 8664} 8665_ACEOF 8666rm -f conftest.$ac_objext conftest$ac_exeext 8667if { (ac_try="$ac_link" 8668case "(($ac_try" in 8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8670 *) ac_try_echo=$ac_try;; 8671esac 8672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8673 (eval "$ac_link") 2>conftest.er1 8674 ac_status=$? 8675 grep -v '^ *+' conftest.er1 >conftest.err 8676 rm -f conftest.er1 8677 cat conftest.err >&5 8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8679 (exit $ac_status); } && { 8680 test -z "$ac_c_werror_flag" || 8681 test ! -s conftest.err 8682 } && test -s conftest$ac_exeext && 8683 $as_test_x conftest$ac_exeext; then 8684 ac_cv_lib_bind_inet_ntoa=yes 8685else 8686 echo "$as_me: failed program was:" >&5 8687sed 's/^/| /' conftest.$ac_ext >&5 8688 8689 ac_cv_lib_bind_inet_ntoa=no 8690fi 8691 8692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8693 conftest$ac_exeext conftest.$ac_ext 8694LIBS=$ac_check_lib_save_LIBS 8695fi 8696{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8697echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8698if test $ac_cv_lib_bind_inet_ntoa = yes; then 8699 LIBS="$LIBS -lbind -lsocket" 8700fi 8701 8702 ;; 8703 BSD/OS-4.*) 8704 SHLIB_CFLAGS="-export-dynamic -fPIC" 8705 SHLIB_LD='${CC} -shared' 8706 SHLIB_SUFFIX=".so" 8707 LDFLAGS="$LDFLAGS -export-dynamic" 8708 CC_SEARCH_FLAGS="" 8709 LD_SEARCH_FLAGS="" 8710 ;; 8711 CYGWIN_*) 8712 SHLIB_CFLAGS="" 8713 SHLIB_LD='${CC} -shared' 8714 SHLIB_SUFFIX=".dll" 8715 EXE_SUFFIX=".exe" 8716 CC_SEARCH_FLAGS="" 8717 LD_SEARCH_FLAGS="" 8718 ;; 8719 Haiku*) 8720 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8721 SHLIB_CFLAGS="-fPIC" 8722 SHLIB_SUFFIX=".so" 8723 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8724 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8725echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8726if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8727 echo $ECHO_N "(cached) $ECHO_C" >&6 8728else 8729 ac_check_lib_save_LIBS=$LIBS 8730LIBS="-lnetwork $LIBS" 8731cat >conftest.$ac_ext <<_ACEOF 8732/* confdefs.h. */ 8733_ACEOF 8734cat confdefs.h >>conftest.$ac_ext 8735cat >>conftest.$ac_ext <<_ACEOF 8736/* end confdefs.h. */ 8737 8738/* Override any GCC internal prototype to avoid an error. 8739 Use char because int might match the return type of a GCC 8740 builtin and then its argument prototype would still apply. */ 8741#ifdef __cplusplus 8742extern "C" 8743#endif 8744char inet_ntoa (); 8745int 8746main () 8747{ 8748return inet_ntoa (); 8749 ; 8750 return 0; 8751} 8752_ACEOF 8753rm -f conftest.$ac_objext conftest$ac_exeext 8754if { (ac_try="$ac_link" 8755case "(($ac_try" in 8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8757 *) ac_try_echo=$ac_try;; 8758esac 8759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8760 (eval "$ac_link") 2>conftest.er1 8761 ac_status=$? 8762 grep -v '^ *+' conftest.er1 >conftest.err 8763 rm -f conftest.er1 8764 cat conftest.err >&5 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8766 (exit $ac_status); } && { 8767 test -z "$ac_c_werror_flag" || 8768 test ! -s conftest.err 8769 } && test -s conftest$ac_exeext && 8770 $as_test_x conftest$ac_exeext; then 8771 ac_cv_lib_network_inet_ntoa=yes 8772else 8773 echo "$as_me: failed program was:" >&5 8774sed 's/^/| /' conftest.$ac_ext >&5 8775 8776 ac_cv_lib_network_inet_ntoa=no 8777fi 8778 8779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8780 conftest$ac_exeext conftest.$ac_ext 8781LIBS=$ac_check_lib_save_LIBS 8782fi 8783{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8784echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8785if test $ac_cv_lib_network_inet_ntoa = yes; then 8786 LIBS="$LIBS -lnetwork" 8787fi 8788 8789 ;; 8790 HP-UX-*.11.*) 8791 # Use updated header definitions where possible 8792 8793cat >>confdefs.h <<\_ACEOF 8794#define _XOPEN_SOURCE_EXTENDED 1 8795_ACEOF 8796 8797 # TEA specific: Needed by Tcl, but not most extensions 8798 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8799 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8800 8801 if test "`uname -m`" = ia64; then 8802 8803 SHLIB_SUFFIX=".so" 8804 # Use newer C++ library for C++ extensions 8805 #if test "$GCC" != "yes" ; then 8806 # CPPFLAGS="-AA" 8807 #fi 8808 8809else 8810 8811 SHLIB_SUFFIX=".sl" 8812 8813fi 8814 8815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8816echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8817if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8818 echo $ECHO_N "(cached) $ECHO_C" >&6 8819else 8820 ac_check_lib_save_LIBS=$LIBS 8821LIBS="-ldld $LIBS" 8822cat >conftest.$ac_ext <<_ACEOF 8823/* confdefs.h. */ 8824_ACEOF 8825cat confdefs.h >>conftest.$ac_ext 8826cat >>conftest.$ac_ext <<_ACEOF 8827/* end confdefs.h. */ 8828 8829/* Override any GCC internal prototype to avoid an error. 8830 Use char because int might match the return type of a GCC 8831 builtin and then its argument prototype would still apply. */ 8832#ifdef __cplusplus 8833extern "C" 8834#endif 8835char shl_load (); 8836int 8837main () 8838{ 8839return shl_load (); 8840 ; 8841 return 0; 8842} 8843_ACEOF 8844rm -f conftest.$ac_objext conftest$ac_exeext 8845if { (ac_try="$ac_link" 8846case "(($ac_try" in 8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8848 *) ac_try_echo=$ac_try;; 8849esac 8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8851 (eval "$ac_link") 2>conftest.er1 8852 ac_status=$? 8853 grep -v '^ *+' conftest.er1 >conftest.err 8854 rm -f conftest.er1 8855 cat conftest.err >&5 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); } && { 8858 test -z "$ac_c_werror_flag" || 8859 test ! -s conftest.err 8860 } && test -s conftest$ac_exeext && 8861 $as_test_x conftest$ac_exeext; then 8862 ac_cv_lib_dld_shl_load=yes 8863else 8864 echo "$as_me: failed program was:" >&5 8865sed 's/^/| /' conftest.$ac_ext >&5 8866 8867 ac_cv_lib_dld_shl_load=no 8868fi 8869 8870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8871 conftest$ac_exeext conftest.$ac_ext 8872LIBS=$ac_check_lib_save_LIBS 8873fi 8874{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8875echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8876if test $ac_cv_lib_dld_shl_load = yes; then 8877 tcl_ok=yes 8878else 8879 tcl_ok=no 8880fi 8881 8882 if test "$tcl_ok" = yes; then 8883 8884 LDFLAGS="$LDFLAGS -E" 8885 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8886 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8887 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8888 8889fi 8890 8891 if test "$GCC" = yes; then 8892 8893 SHLIB_LD='${CC} -shared' 8894 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8895 8896else 8897 8898 CFLAGS="$CFLAGS -z" 8899 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8900 #CFLAGS="$CFLAGS +DAportable" 8901 SHLIB_CFLAGS="+z" 8902 SHLIB_LD="ld -b" 8903 8904fi 8905 8906 8907 # Check to enable 64-bit flags for compiler/linker 8908 if test "$do64bit" = "yes"; then 8909 8910 if test "$GCC" = yes; then 8911 8912 case `${CC} -dumpmachine` in 8913 hppa64*) 8914 # 64-bit gcc in use. Fix flags for GNU ld. 8915 do64bit_ok=yes 8916 SHLIB_LD='${CC} -shared' 8917 if test $doRpath = yes; then 8918 8919 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8920fi 8921 8922 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8923 ;; 8924 *) 8925 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8926echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8927 ;; 8928 esac 8929 8930else 8931 8932 do64bit_ok=yes 8933 CFLAGS="$CFLAGS +DD64" 8934 LDFLAGS_ARCH="+DD64" 8935 8936fi 8937 8938 8939fi 8940 ;; 8941 IRIX-6.*) 8942 SHLIB_CFLAGS="" 8943 SHLIB_LD="ld -n32 -shared -rdata_shared" 8944 SHLIB_SUFFIX=".so" 8945 if test $doRpath = yes; then 8946 8947 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8948 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8949fi 8950 8951 if test "$GCC" = yes; then 8952 8953 CFLAGS="$CFLAGS -mabi=n32" 8954 LDFLAGS="$LDFLAGS -mabi=n32" 8955 8956else 8957 8958 case $system in 8959 IRIX-6.3) 8960 # Use to build 6.2 compatible binaries on 6.3. 8961 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8962 ;; 8963 *) 8964 CFLAGS="$CFLAGS -n32" 8965 ;; 8966 esac 8967 LDFLAGS="$LDFLAGS -n32" 8968 8969fi 8970 8971 ;; 8972 IRIX64-6.*) 8973 SHLIB_CFLAGS="" 8974 SHLIB_LD="ld -n32 -shared -rdata_shared" 8975 SHLIB_SUFFIX=".so" 8976 if test $doRpath = yes; then 8977 8978 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8979 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8980fi 8981 8982 8983 # Check to enable 64-bit flags for compiler/linker 8984 8985 if test "$do64bit" = yes; then 8986 8987 if test "$GCC" = yes; then 8988 8989 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8990echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8991 8992else 8993 8994 do64bit_ok=yes 8995 SHLIB_LD="ld -64 -shared -rdata_shared" 8996 CFLAGS="$CFLAGS -64" 8997 LDFLAGS_ARCH="-64" 8998 8999fi 9000 9001 9002fi 9003 9004 ;; 9005 Linux*) 9006 SHLIB_CFLAGS="-fPIC" 9007 SHLIB_SUFFIX=".so" 9008 9009 # TEA specific: 9010 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9011 9012 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9013 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9014 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9015 if test $doRpath = yes; then 9016 9017 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9018fi 9019 9020 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9021 if test "`uname -m`" = "alpha"; then 9022 CFLAGS="$CFLAGS -mieee" 9023fi 9024 9025 if test $do64bit = yes; then 9026 9027 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9028echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9029if test "${tcl_cv_cc_m64+set}" = set; then 9030 echo $ECHO_N "(cached) $ECHO_C" >&6 9031else 9032 9033 hold_cflags=$CFLAGS 9034 CFLAGS="$CFLAGS -m64" 9035 cat >conftest.$ac_ext <<_ACEOF 9036/* confdefs.h. */ 9037_ACEOF 9038cat confdefs.h >>conftest.$ac_ext 9039cat >>conftest.$ac_ext <<_ACEOF 9040/* end confdefs.h. */ 9041 9042int 9043main () 9044{ 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050rm -f conftest.$ac_objext conftest$ac_exeext 9051if { (ac_try="$ac_link" 9052case "(($ac_try" in 9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9054 *) ac_try_echo=$ac_try;; 9055esac 9056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9057 (eval "$ac_link") 2>conftest.er1 9058 ac_status=$? 9059 grep -v '^ *+' conftest.er1 >conftest.err 9060 rm -f conftest.er1 9061 cat conftest.err >&5 9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9063 (exit $ac_status); } && { 9064 test -z "$ac_c_werror_flag" || 9065 test ! -s conftest.err 9066 } && test -s conftest$ac_exeext && 9067 $as_test_x conftest$ac_exeext; then 9068 tcl_cv_cc_m64=yes 9069else 9070 echo "$as_me: failed program was:" >&5 9071sed 's/^/| /' conftest.$ac_ext >&5 9072 9073 tcl_cv_cc_m64=no 9074fi 9075 9076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9077 conftest$ac_exeext conftest.$ac_ext 9078 CFLAGS=$hold_cflags 9079fi 9080{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9081echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9082 if test $tcl_cv_cc_m64 = yes; then 9083 9084 CFLAGS="$CFLAGS -m64" 9085 do64bit_ok=yes 9086 9087fi 9088 9089 9090fi 9091 9092 9093 # The combo of gcc + glibc has a bug related to inlining of 9094 # functions like strtod(). The -fno-builtin flag should address 9095 # this problem but it does not work. The -fno-inline flag is kind 9096 # of overkill but it works. Disable inlining only when one of the 9097 # files in compat/*.c is being linked in. 9098 9099 if test x"${USE_COMPAT}" != x; then 9100 CFLAGS="$CFLAGS -fno-inline" 9101fi 9102 9103 9104 ;; 9105 GNU*) 9106 SHLIB_CFLAGS="-fPIC" 9107 SHLIB_SUFFIX=".so" 9108 9109 SHLIB_LD='${CC} -shared' 9110 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9111 CC_SEARCH_FLAGS="" 9112 LD_SEARCH_FLAGS="" 9113 if test "`uname -m`" = "alpha"; then 9114 CFLAGS="$CFLAGS -mieee" 9115fi 9116 9117 ;; 9118 Lynx*) 9119 SHLIB_CFLAGS="-fPIC" 9120 SHLIB_SUFFIX=".so" 9121 CFLAGS_OPTIMIZE=-02 9122 SHLIB_LD='${CC} -shared' 9123 LD_FLAGS="-Wl,--export-dynamic" 9124 if test $doRpath = yes; then 9125 9126 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9127 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9128fi 9129 9130 ;; 9131 OpenBSD-*) 9132 SHLIB_CFLAGS="-fPIC" 9133 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9134 SHLIB_SUFFIX=".so" 9135 if test $doRpath = yes; then 9136 9137 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9138fi 9139 9140 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9141 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9142 { echo "$as_me:$LINENO: checking for ELF" >&5 9143echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9144if test "${tcl_cv_ld_elf+set}" = set; then 9145 echo $ECHO_N "(cached) $ECHO_C" >&6 9146else 9147 9148 cat >conftest.$ac_ext <<_ACEOF 9149/* confdefs.h. */ 9150_ACEOF 9151cat confdefs.h >>conftest.$ac_ext 9152cat >>conftest.$ac_ext <<_ACEOF 9153/* end confdefs.h. */ 9154 9155#ifdef __ELF__ 9156 yes 9157#endif 9158 9159_ACEOF 9160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9161 $EGREP "yes" >/dev/null 2>&1; then 9162 tcl_cv_ld_elf=yes 9163else 9164 tcl_cv_ld_elf=no 9165fi 9166rm -f -r conftest* 9167 9168fi 9169{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9170echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9171 if test $tcl_cv_ld_elf = yes; then 9172 9173 LDFLAGS=-Wl,-export-dynamic 9174 9175else 9176 LDFLAGS="" 9177fi 9178 9179 if test "${TCL_THREADS}" = "1"; then 9180 9181 # OpenBSD builds and links with -pthread, never -lpthread. 9182 LIBS=`echo $LIBS | sed s/-lpthread//` 9183 CFLAGS="$CFLAGS -pthread" 9184 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9185 9186fi 9187 9188 # OpenBSD doesn't do version numbers with dots. 9189 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9190 TCL_LIB_VERSIONS_OK=nodots 9191 ;; 9192 NetBSD-*|FreeBSD-[3-4].*) 9193 # FreeBSD 3.* and greater have ELF. 9194 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9195 SHLIB_CFLAGS="-fPIC" 9196 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9197 SHLIB_SUFFIX=".so" 9198 LDFLAGS="$LDFLAGS -export-dynamic" 9199 if test $doRpath = yes; then 9200 9201 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9202fi 9203 9204 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9205 if test "${TCL_THREADS}" = "1"; then 9206 9207 # The -pthread needs to go in the CFLAGS, not LIBS 9208 LIBS=`echo $LIBS | sed s/-pthread//` 9209 CFLAGS="$CFLAGS -pthread" 9210 LDFLAGS="$LDFLAGS -pthread" 9211 9212fi 9213 9214 case $system in 9215 FreeBSD-3.*) 9216 # FreeBSD-3 doesn't handle version numbers with dots. 9217 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9218 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9219 TCL_LIB_VERSIONS_OK=nodots 9220 ;; 9221 esac 9222 ;; 9223 FreeBSD-*) 9224 # This configuration from FreeBSD Ports. 9225 SHLIB_CFLAGS="-fPIC" 9226 SHLIB_LD="${CC} -shared" 9227 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9228 SHLIB_SUFFIX=".so" 9229 LDFLAGS="" 9230 if test $doRpath = yes; then 9231 9232 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9233 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9234fi 9235 9236 if test "${TCL_THREADS}" = "1"; then 9237 9238 # The -pthread needs to go in the LDFLAGS, not LIBS 9239 LIBS=`echo $LIBS | sed s/-pthread//` 9240 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9241 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9242fi 9243 9244 # Version numbers are dot-stripped by system policy. 9245 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9246 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9247 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9248 TCL_LIB_VERSIONS_OK=nodots 9249 ;; 9250 Darwin-*) 9251 CFLAGS_OPTIMIZE="-Os" 9252 SHLIB_CFLAGS="-fno-common" 9253 # To avoid discrepancies between what headers configure sees during 9254 # preprocessing tests and compiling tests, move any -isysroot and 9255 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9256 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9257 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9258 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9259 CFLAGS="`echo " ${CFLAGS}" | \ 9260 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9261 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9262 if test $do64bit = yes; then 9263 9264 case `arch` in 9265 ppc) 9266 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9267echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9268if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9269 echo $ECHO_N "(cached) $ECHO_C" >&6 9270else 9271 9272 hold_cflags=$CFLAGS 9273 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9274 cat >conftest.$ac_ext <<_ACEOF 9275/* confdefs.h. */ 9276_ACEOF 9277cat confdefs.h >>conftest.$ac_ext 9278cat >>conftest.$ac_ext <<_ACEOF 9279/* end confdefs.h. */ 9280 9281int 9282main () 9283{ 9284 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289rm -f conftest.$ac_objext conftest$ac_exeext 9290if { (ac_try="$ac_link" 9291case "(($ac_try" in 9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9293 *) ac_try_echo=$ac_try;; 9294esac 9295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9296 (eval "$ac_link") 2>conftest.er1 9297 ac_status=$? 9298 grep -v '^ *+' conftest.er1 >conftest.err 9299 rm -f conftest.er1 9300 cat conftest.err >&5 9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9302 (exit $ac_status); } && { 9303 test -z "$ac_c_werror_flag" || 9304 test ! -s conftest.err 9305 } && test -s conftest$ac_exeext && 9306 $as_test_x conftest$ac_exeext; then 9307 tcl_cv_cc_arch_ppc64=yes 9308else 9309 echo "$as_me: failed program was:" >&5 9310sed 's/^/| /' conftest.$ac_ext >&5 9311 9312 tcl_cv_cc_arch_ppc64=no 9313fi 9314 9315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9316 conftest$ac_exeext conftest.$ac_ext 9317 CFLAGS=$hold_cflags 9318fi 9319{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9320echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9321 if test $tcl_cv_cc_arch_ppc64 = yes; then 9322 9323 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9324 do64bit_ok=yes 9325 9326fi 9327;; 9328 i386) 9329 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9330echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9331if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9332 echo $ECHO_N "(cached) $ECHO_C" >&6 9333else 9334 9335 hold_cflags=$CFLAGS 9336 CFLAGS="$CFLAGS -arch x86_64" 9337 cat >conftest.$ac_ext <<_ACEOF 9338/* confdefs.h. */ 9339_ACEOF 9340cat confdefs.h >>conftest.$ac_ext 9341cat >>conftest.$ac_ext <<_ACEOF 9342/* end confdefs.h. */ 9343 9344int 9345main () 9346{ 9347 9348 ; 9349 return 0; 9350} 9351_ACEOF 9352rm -f conftest.$ac_objext conftest$ac_exeext 9353if { (ac_try="$ac_link" 9354case "(($ac_try" in 9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9356 *) ac_try_echo=$ac_try;; 9357esac 9358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9359 (eval "$ac_link") 2>conftest.er1 9360 ac_status=$? 9361 grep -v '^ *+' conftest.er1 >conftest.err 9362 rm -f conftest.er1 9363 cat conftest.err >&5 9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9365 (exit $ac_status); } && { 9366 test -z "$ac_c_werror_flag" || 9367 test ! -s conftest.err 9368 } && test -s conftest$ac_exeext && 9369 $as_test_x conftest$ac_exeext; then 9370 tcl_cv_cc_arch_x86_64=yes 9371else 9372 echo "$as_me: failed program was:" >&5 9373sed 's/^/| /' conftest.$ac_ext >&5 9374 9375 tcl_cv_cc_arch_x86_64=no 9376fi 9377 9378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9379 conftest$ac_exeext conftest.$ac_ext 9380 CFLAGS=$hold_cflags 9381fi 9382{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9383echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9384 if test $tcl_cv_cc_arch_x86_64 = yes; then 9385 9386 CFLAGS="$CFLAGS -arch x86_64" 9387 do64bit_ok=yes 9388 9389fi 9390;; 9391 *) 9392 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9393echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9394 esac 9395 9396else 9397 9398 # Check for combined 32-bit and 64-bit fat build 9399 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9400 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9401 9402 fat_32_64=yes 9403fi 9404 9405 9406fi 9407 9408 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9409 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9410 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9411echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9412if test "${tcl_cv_ld_single_module+set}" = set; then 9413 echo $ECHO_N "(cached) $ECHO_C" >&6 9414else 9415 9416 hold_ldflags=$LDFLAGS 9417 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9418 cat >conftest.$ac_ext <<_ACEOF 9419/* confdefs.h. */ 9420_ACEOF 9421cat confdefs.h >>conftest.$ac_ext 9422cat >>conftest.$ac_ext <<_ACEOF 9423/* end confdefs.h. */ 9424 9425int 9426main () 9427{ 9428int i; 9429 ; 9430 return 0; 9431} 9432_ACEOF 9433rm -f conftest.$ac_objext conftest$ac_exeext 9434if { (ac_try="$ac_link" 9435case "(($ac_try" in 9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9437 *) ac_try_echo=$ac_try;; 9438esac 9439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9440 (eval "$ac_link") 2>conftest.er1 9441 ac_status=$? 9442 grep -v '^ *+' conftest.er1 >conftest.err 9443 rm -f conftest.er1 9444 cat conftest.err >&5 9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9446 (exit $ac_status); } && { 9447 test -z "$ac_c_werror_flag" || 9448 test ! -s conftest.err 9449 } && test -s conftest$ac_exeext && 9450 $as_test_x conftest$ac_exeext; then 9451 tcl_cv_ld_single_module=yes 9452else 9453 echo "$as_me: failed program was:" >&5 9454sed 's/^/| /' conftest.$ac_ext >&5 9455 9456 tcl_cv_ld_single_module=no 9457fi 9458 9459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9460 conftest$ac_exeext conftest.$ac_ext 9461 LDFLAGS=$hold_ldflags 9462fi 9463{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9464echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9465 if test $tcl_cv_ld_single_module = yes; then 9466 9467 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9468 9469fi 9470 9471 # TEA specific: link shlib with current and compatiblity version flags 9472 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9473 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9474 SHLIB_SUFFIX=".dylib" 9475 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9476 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9477 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9478 9479 LDFLAGS="$LDFLAGS -prebind" 9480fi 9481 9482 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9483 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9484echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9485if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9486 echo $ECHO_N "(cached) $ECHO_C" >&6 9487else 9488 9489 hold_ldflags=$LDFLAGS 9490 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9491 cat >conftest.$ac_ext <<_ACEOF 9492/* confdefs.h. */ 9493_ACEOF 9494cat confdefs.h >>conftest.$ac_ext 9495cat >>conftest.$ac_ext <<_ACEOF 9496/* end confdefs.h. */ 9497 9498int 9499main () 9500{ 9501int i; 9502 ; 9503 return 0; 9504} 9505_ACEOF 9506rm -f conftest.$ac_objext conftest$ac_exeext 9507if { (ac_try="$ac_link" 9508case "(($ac_try" in 9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9510 *) ac_try_echo=$ac_try;; 9511esac 9512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9513 (eval "$ac_link") 2>conftest.er1 9514 ac_status=$? 9515 grep -v '^ *+' conftest.er1 >conftest.err 9516 rm -f conftest.er1 9517 cat conftest.err >&5 9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 (exit $ac_status); } && { 9520 test -z "$ac_c_werror_flag" || 9521 test ! -s conftest.err 9522 } && test -s conftest$ac_exeext && 9523 $as_test_x conftest$ac_exeext; then 9524 tcl_cv_ld_search_paths_first=yes 9525else 9526 echo "$as_me: failed program was:" >&5 9527sed 's/^/| /' conftest.$ac_ext >&5 9528 9529 tcl_cv_ld_search_paths_first=no 9530fi 9531 9532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9533 conftest$ac_exeext conftest.$ac_ext 9534 LDFLAGS=$hold_ldflags 9535fi 9536{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9537echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9538 if test $tcl_cv_ld_search_paths_first = yes; then 9539 9540 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9541 9542fi 9543 9544 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9545 9546 9547cat >>confdefs.h <<\_ACEOF 9548#define MODULE_SCOPE __private_extern__ 9549_ACEOF 9550 9551 tcl_cv_cc_visibility_hidden=yes 9552 9553fi 9554 9555 CC_SEARCH_FLAGS="" 9556 LD_SEARCH_FLAGS="" 9557 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9558 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9559 # extensions, verify that 64-bit build is possible. 9560 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9561 9562 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9563 9564 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9565echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9566if test "${tcl_cv_lib_x11_64+set}" = set; then 9567 echo $ECHO_N "(cached) $ECHO_C" >&6 9568else 9569 9570 for v in CFLAGS CPPFLAGS LDFLAGS; do 9571 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9572 done 9573 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9574 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9575 cat >conftest.$ac_ext <<_ACEOF 9576/* confdefs.h. */ 9577_ACEOF 9578cat confdefs.h >>conftest.$ac_ext 9579cat >>conftest.$ac_ext <<_ACEOF 9580/* end confdefs.h. */ 9581#include <X11/Xlib.h> 9582int 9583main () 9584{ 9585XrmInitialize(); 9586 ; 9587 return 0; 9588} 9589_ACEOF 9590rm -f conftest.$ac_objext conftest$ac_exeext 9591if { (ac_try="$ac_link" 9592case "(($ac_try" in 9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9594 *) ac_try_echo=$ac_try;; 9595esac 9596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9597 (eval "$ac_link") 2>conftest.er1 9598 ac_status=$? 9599 grep -v '^ *+' conftest.er1 >conftest.err 9600 rm -f conftest.er1 9601 cat conftest.err >&5 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9603 (exit $ac_status); } && { 9604 test -z "$ac_c_werror_flag" || 9605 test ! -s conftest.err 9606 } && test -s conftest$ac_exeext && 9607 $as_test_x conftest$ac_exeext; then 9608 tcl_cv_lib_x11_64=yes 9609else 9610 echo "$as_me: failed program was:" >&5 9611sed 's/^/| /' conftest.$ac_ext >&5 9612 9613 tcl_cv_lib_x11_64=no 9614fi 9615 9616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9617 conftest$ac_exeext conftest.$ac_ext 9618 for v in CFLAGS CPPFLAGS LDFLAGS; do 9619 eval $v'="$hold_'$v'"' 9620 done 9621fi 9622{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9623echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9624 9625fi 9626 9627 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9628 9629 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9630echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9631if test "${tcl_cv_lib_tk_64+set}" = set; then 9632 echo $ECHO_N "(cached) $ECHO_C" >&6 9633else 9634 9635 for v in CFLAGS CPPFLAGS LDFLAGS; do 9636 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9637 done 9638 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9639 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9640 cat >conftest.$ac_ext <<_ACEOF 9641/* confdefs.h. */ 9642_ACEOF 9643cat confdefs.h >>conftest.$ac_ext 9644cat >>conftest.$ac_ext <<_ACEOF 9645/* end confdefs.h. */ 9646#include <tk.h> 9647int 9648main () 9649{ 9650Tk_InitStubs(NULL, "", 0); 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655rm -f conftest.$ac_objext conftest$ac_exeext 9656if { (ac_try="$ac_link" 9657case "(($ac_try" in 9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9659 *) ac_try_echo=$ac_try;; 9660esac 9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9662 (eval "$ac_link") 2>conftest.er1 9663 ac_status=$? 9664 grep -v '^ *+' conftest.er1 >conftest.err 9665 rm -f conftest.er1 9666 cat conftest.err >&5 9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9668 (exit $ac_status); } && { 9669 test -z "$ac_c_werror_flag" || 9670 test ! -s conftest.err 9671 } && test -s conftest$ac_exeext && 9672 $as_test_x conftest$ac_exeext; then 9673 tcl_cv_lib_tk_64=yes 9674else 9675 echo "$as_me: failed program was:" >&5 9676sed 's/^/| /' conftest.$ac_ext >&5 9677 9678 tcl_cv_lib_tk_64=no 9679fi 9680 9681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9682 conftest$ac_exeext conftest.$ac_ext 9683 for v in CFLAGS CPPFLAGS LDFLAGS; do 9684 eval $v'="$hold_'$v'"' 9685 done 9686fi 9687{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9688echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9689 9690fi 9691 9692 # remove 64-bit arch flags from CFLAGS et al. if configuration 9693 # does not support 64-bit. 9694 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9695 9696 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9697echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9698 for v in CFLAGS CPPFLAGS LDFLAGS; do 9699 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9700 done 9701fi 9702 9703 9704fi 9705 9706 ;; 9707 OS/390-*) 9708 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9709 9710cat >>confdefs.h <<\_ACEOF 9711#define _OE_SOCKETS 1 9712_ACEOF 9713 9714 ;; 9715 OSF1-V*) 9716 # Digital OSF/1 9717 SHLIB_CFLAGS="" 9718 if test "$SHARED_BUILD" = 1; then 9719 9720 SHLIB_LD='ld -shared -expect_unresolved "*"' 9721 9722else 9723 9724 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9725 9726fi 9727 9728 SHLIB_SUFFIX=".so" 9729 if test $doRpath = yes; then 9730 9731 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9732 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9733fi 9734 9735 if test "$GCC" = yes; then 9736 CFLAGS="$CFLAGS -mieee" 9737else 9738 9739 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9740fi 9741 9742 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9743 if test "${TCL_THREADS}" = 1; then 9744 9745 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9746 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9747 LIBS=`echo $LIBS | sed s/-lpthreads//` 9748 if test "$GCC" = yes; then 9749 9750 LIBS="$LIBS -lpthread -lmach -lexc" 9751 9752else 9753 9754 CFLAGS="$CFLAGS -pthread" 9755 LDFLAGS="$LDFLAGS -pthread" 9756 9757fi 9758 9759 9760fi 9761 9762 ;; 9763 QNX-6*) 9764 # QNX RTP 9765 # This may work for all QNX, but it was only reported for v6. 9766 SHLIB_CFLAGS="-fPIC" 9767 SHLIB_LD="ld -Bshareable -x" 9768 SHLIB_LD_LIBS="" 9769 SHLIB_SUFFIX=".so" 9770 CC_SEARCH_FLAGS="" 9771 LD_SEARCH_FLAGS="" 9772 ;; 9773 SCO_SV-3.2*) 9774 if test "$GCC" = yes; then 9775 9776 SHLIB_CFLAGS="-fPIC -melf" 9777 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9778 9779else 9780 9781 SHLIB_CFLAGS="-Kpic -belf" 9782 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9783 9784fi 9785 9786 SHLIB_LD="ld -G" 9787 SHLIB_LD_LIBS="" 9788 SHLIB_SUFFIX=".so" 9789 CC_SEARCH_FLAGS="" 9790 LD_SEARCH_FLAGS="" 9791 ;; 9792 SunOS-5.[0-6]) 9793 # Careful to not let 5.10+ fall into this case 9794 9795 # Note: If _REENTRANT isn't defined, then Solaris 9796 # won't define thread-safe library routines. 9797 9798 9799cat >>confdefs.h <<\_ACEOF 9800#define _REENTRANT 1 9801_ACEOF 9802 9803 9804cat >>confdefs.h <<\_ACEOF 9805#define _POSIX_PTHREAD_SEMANTICS 1 9806_ACEOF 9807 9808 9809 SHLIB_CFLAGS="-KPIC" 9810 SHLIB_SUFFIX=".so" 9811 if test "$GCC" = yes; then 9812 9813 SHLIB_LD='${CC} -shared' 9814 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9815 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9816 9817else 9818 9819 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9820 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9821 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9822 9823fi 9824 9825 ;; 9826 SunOS-5*) 9827 # Note: If _REENTRANT isn't defined, then Solaris 9828 # won't define thread-safe library routines. 9829 9830 9831cat >>confdefs.h <<\_ACEOF 9832#define _REENTRANT 1 9833_ACEOF 9834 9835 9836cat >>confdefs.h <<\_ACEOF 9837#define _POSIX_PTHREAD_SEMANTICS 1 9838_ACEOF 9839 9840 9841 SHLIB_CFLAGS="-KPIC" 9842 9843 # Check to enable 64-bit flags for compiler/linker 9844 if test "$do64bit" = yes; then 9845 9846 arch=`isainfo` 9847 if test "$arch" = "sparcv9 sparc"; then 9848 9849 if test "$GCC" = yes; then 9850 9851 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9852 9853 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9854echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9855 9856else 9857 9858 do64bit_ok=yes 9859 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9860 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9861 SHLIB_CFLAGS="-fPIC" 9862 9863fi 9864 9865 9866else 9867 9868 do64bit_ok=yes 9869 if test "$do64bitVIS" = yes; then 9870 9871 CFLAGS="$CFLAGS -xarch=v9a" 9872 LDFLAGS_ARCH="-xarch=v9a" 9873 9874else 9875 9876 CFLAGS="$CFLAGS -xarch=v9" 9877 LDFLAGS_ARCH="-xarch=v9" 9878 9879fi 9880 9881 # Solaris 64 uses this as well 9882 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9883 9884fi 9885 9886 9887else 9888 if test "$arch" = "amd64 i386"; then 9889 9890 if test "$GCC" = yes; then 9891 9892 case $system in 9893 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9894 do64bit_ok=yes 9895 CFLAGS="$CFLAGS -m64" 9896 LDFLAGS="$LDFLAGS -m64";; 9897 *) 9898 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9899echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9900 esac 9901 9902else 9903 9904 do64bit_ok=yes 9905 case $system in 9906 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9907 CFLAGS="$CFLAGS -m64" 9908 LDFLAGS="$LDFLAGS -m64";; 9909 *) 9910 CFLAGS="$CFLAGS -xarch=amd64" 9911 LDFLAGS="$LDFLAGS -xarch=amd64";; 9912 esac 9913 9914fi 9915 9916 9917else 9918 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9919echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9920fi 9921 9922fi 9923 9924 9925fi 9926 9927 9928 SHLIB_SUFFIX=".so" 9929 if test "$GCC" = yes; then 9930 9931 SHLIB_LD='${CC} -shared' 9932 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9933 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9934 if test "$do64bit_ok" = yes; then 9935 9936 if test "$arch" = "sparcv9 sparc"; then 9937 9938 # We need to specify -static-libgcc or we need to 9939 # add the path to the sparv9 libgcc. 9940 # JH: static-libgcc is necessary for core Tcl, but may 9941 # not be necessary for extensions. 9942 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9943 # for finding sparcv9 libgcc, get the regular libgcc 9944 # path, remove so name and append 'sparcv9' 9945 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9946 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9947 9948else 9949 if test "$arch" = "amd64 i386"; then 9950 9951 # JH: static-libgcc is necessary for core Tcl, but may 9952 # not be necessary for extensions. 9953 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9954 9955fi 9956 9957fi 9958 9959 9960fi 9961 9962 9963else 9964 9965 case $system in 9966 SunOS-5.[1-9][0-9]*) 9967 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9968 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9969 *) 9970 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9971 esac 9972 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9973 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9974 9975fi 9976 9977 ;; 9978 esac 9979 9980 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9981 9982 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9983echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9984 9985fi 9986 9987 9988 9989 9990 # Add in the arch flags late to ensure it wasn't removed. 9991 # Not necessary in TEA, but this is aligned with core 9992 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9993 9994 # If we're running gcc, then change the C flags for compiling shared 9995 # libraries to the right flags for gcc, instead of those for the 9996 # standard manufacturer compiler. 9997 9998 if test "$GCC" = yes; then 9999 10000 case $system in 10001 AIX-*) ;; 10002 BSD/OS*) ;; 10003 CYGWIN_*) ;; 10004 IRIX*) ;; 10005 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10006 Darwin-*) ;; 10007 SCO_SV-3.2*) ;; 10008 windows) ;; 10009 *) SHLIB_CFLAGS="-fPIC" ;; 10010 esac 10011fi 10012 10013 10014 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10015 10016 10017cat >>confdefs.h <<\_ACEOF 10018#define MODULE_SCOPE extern 10019_ACEOF 10020 10021 10022cat >>confdefs.h <<\_ACEOF 10023#define NO_VIZ 10024_ACEOF 10025 10026 10027fi 10028 10029 10030 if test "$SHARED_LIB_SUFFIX" = ""; then 10031 10032 # TEA specific: use PACKAGE_VERSION instead of VERSION 10033 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10034fi 10035 10036 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10037 10038 # TEA specific: use PACKAGE_VERSION instead of VERSION 10039 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10040fi 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 # These must be called after we do the basic CFLAGS checks and 10056 # verify any possible 64-bit or similar switches are necessary 10057 10058 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10059echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10060 tcl_flags="" 10061 10062 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10063 echo $ECHO_N "(cached) $ECHO_C" >&6 10064else 10065 cat >conftest.$ac_ext <<_ACEOF 10066/* confdefs.h. */ 10067_ACEOF 10068cat confdefs.h >>conftest.$ac_ext 10069cat >>conftest.$ac_ext <<_ACEOF 10070/* end confdefs.h. */ 10071#include <stdlib.h> 10072int 10073main () 10074{ 10075char *p = (char *)strtoll; char *q = (char *)strtoull; 10076 ; 10077 return 0; 10078} 10079_ACEOF 10080rm -f conftest.$ac_objext 10081if { (ac_try="$ac_compile" 10082case "(($ac_try" in 10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10084 *) ac_try_echo=$ac_try;; 10085esac 10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10087 (eval "$ac_compile") 2>conftest.er1 10088 ac_status=$? 10089 grep -v '^ *+' conftest.er1 >conftest.err 10090 rm -f conftest.er1 10091 cat conftest.err >&5 10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10093 (exit $ac_status); } && { 10094 test -z "$ac_c_werror_flag" || 10095 test ! -s conftest.err 10096 } && test -s conftest.$ac_objext; then 10097 tcl_cv_flag__isoc99_source=no 10098else 10099 echo "$as_me: failed program was:" >&5 10100sed 's/^/| /' conftest.$ac_ext >&5 10101 10102 cat >conftest.$ac_ext <<_ACEOF 10103/* confdefs.h. */ 10104_ACEOF 10105cat confdefs.h >>conftest.$ac_ext 10106cat >>conftest.$ac_ext <<_ACEOF 10107/* end confdefs.h. */ 10108#define _ISOC99_SOURCE 1 10109#include <stdlib.h> 10110int 10111main () 10112{ 10113char *p = (char *)strtoll; char *q = (char *)strtoull; 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118rm -f conftest.$ac_objext 10119if { (ac_try="$ac_compile" 10120case "(($ac_try" in 10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10122 *) ac_try_echo=$ac_try;; 10123esac 10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10125 (eval "$ac_compile") 2>conftest.er1 10126 ac_status=$? 10127 grep -v '^ *+' conftest.er1 >conftest.err 10128 rm -f conftest.er1 10129 cat conftest.err >&5 10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10131 (exit $ac_status); } && { 10132 test -z "$ac_c_werror_flag" || 10133 test ! -s conftest.err 10134 } && test -s conftest.$ac_objext; then 10135 tcl_cv_flag__isoc99_source=yes 10136else 10137 echo "$as_me: failed program was:" >&5 10138sed 's/^/| /' conftest.$ac_ext >&5 10139 10140 tcl_cv_flag__isoc99_source=no 10141fi 10142 10143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10144fi 10145 10146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10147fi 10148 10149 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10150 10151cat >>confdefs.h <<\_ACEOF 10152#define _ISOC99_SOURCE 1 10153_ACEOF 10154 10155 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10156 fi 10157 10158 10159 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10160 echo $ECHO_N "(cached) $ECHO_C" >&6 10161else 10162 cat >conftest.$ac_ext <<_ACEOF 10163/* confdefs.h. */ 10164_ACEOF 10165cat confdefs.h >>conftest.$ac_ext 10166cat >>conftest.$ac_ext <<_ACEOF 10167/* end confdefs.h. */ 10168#include <sys/stat.h> 10169int 10170main () 10171{ 10172struct stat64 buf; int i = stat64("/", &buf); 10173 ; 10174 return 0; 10175} 10176_ACEOF 10177rm -f conftest.$ac_objext 10178if { (ac_try="$ac_compile" 10179case "(($ac_try" in 10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10181 *) ac_try_echo=$ac_try;; 10182esac 10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10184 (eval "$ac_compile") 2>conftest.er1 10185 ac_status=$? 10186 grep -v '^ *+' conftest.er1 >conftest.err 10187 rm -f conftest.er1 10188 cat conftest.err >&5 10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10190 (exit $ac_status); } && { 10191 test -z "$ac_c_werror_flag" || 10192 test ! -s conftest.err 10193 } && test -s conftest.$ac_objext; then 10194 tcl_cv_flag__largefile64_source=no 10195else 10196 echo "$as_me: failed program was:" >&5 10197sed 's/^/| /' conftest.$ac_ext >&5 10198 10199 cat >conftest.$ac_ext <<_ACEOF 10200/* confdefs.h. */ 10201_ACEOF 10202cat confdefs.h >>conftest.$ac_ext 10203cat >>conftest.$ac_ext <<_ACEOF 10204/* end confdefs.h. */ 10205#define _LARGEFILE64_SOURCE 1 10206#include <sys/stat.h> 10207int 10208main () 10209{ 10210struct stat64 buf; int i = stat64("/", &buf); 10211 ; 10212 return 0; 10213} 10214_ACEOF 10215rm -f conftest.$ac_objext 10216if { (ac_try="$ac_compile" 10217case "(($ac_try" in 10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10219 *) ac_try_echo=$ac_try;; 10220esac 10221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10222 (eval "$ac_compile") 2>conftest.er1 10223 ac_status=$? 10224 grep -v '^ *+' conftest.er1 >conftest.err 10225 rm -f conftest.er1 10226 cat conftest.err >&5 10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10228 (exit $ac_status); } && { 10229 test -z "$ac_c_werror_flag" || 10230 test ! -s conftest.err 10231 } && test -s conftest.$ac_objext; then 10232 tcl_cv_flag__largefile64_source=yes 10233else 10234 echo "$as_me: failed program was:" >&5 10235sed 's/^/| /' conftest.$ac_ext >&5 10236 10237 tcl_cv_flag__largefile64_source=no 10238fi 10239 10240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10241fi 10242 10243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10244fi 10245 10246 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10247 10248cat >>confdefs.h <<\_ACEOF 10249#define _LARGEFILE64_SOURCE 1 10250_ACEOF 10251 10252 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10253 fi 10254 10255 10256 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10257 echo $ECHO_N "(cached) $ECHO_C" >&6 10258else 10259 cat >conftest.$ac_ext <<_ACEOF 10260/* confdefs.h. */ 10261_ACEOF 10262cat confdefs.h >>conftest.$ac_ext 10263cat >>conftest.$ac_ext <<_ACEOF 10264/* end confdefs.h. */ 10265#include <sys/stat.h> 10266int 10267main () 10268{ 10269char *p = (char *)open64; 10270 ; 10271 return 0; 10272} 10273_ACEOF 10274rm -f conftest.$ac_objext 10275if { (ac_try="$ac_compile" 10276case "(($ac_try" in 10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10278 *) ac_try_echo=$ac_try;; 10279esac 10280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10281 (eval "$ac_compile") 2>conftest.er1 10282 ac_status=$? 10283 grep -v '^ *+' conftest.er1 >conftest.err 10284 rm -f conftest.er1 10285 cat conftest.err >&5 10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10287 (exit $ac_status); } && { 10288 test -z "$ac_c_werror_flag" || 10289 test ! -s conftest.err 10290 } && test -s conftest.$ac_objext; then 10291 tcl_cv_flag__largefile_source64=no 10292else 10293 echo "$as_me: failed program was:" >&5 10294sed 's/^/| /' conftest.$ac_ext >&5 10295 10296 cat >conftest.$ac_ext <<_ACEOF 10297/* confdefs.h. */ 10298_ACEOF 10299cat confdefs.h >>conftest.$ac_ext 10300cat >>conftest.$ac_ext <<_ACEOF 10301/* end confdefs.h. */ 10302#define _LARGEFILE_SOURCE64 1 10303#include <sys/stat.h> 10304int 10305main () 10306{ 10307char *p = (char *)open64; 10308 ; 10309 return 0; 10310} 10311_ACEOF 10312rm -f conftest.$ac_objext 10313if { (ac_try="$ac_compile" 10314case "(($ac_try" in 10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10316 *) ac_try_echo=$ac_try;; 10317esac 10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10319 (eval "$ac_compile") 2>conftest.er1 10320 ac_status=$? 10321 grep -v '^ *+' conftest.er1 >conftest.err 10322 rm -f conftest.er1 10323 cat conftest.err >&5 10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10325 (exit $ac_status); } && { 10326 test -z "$ac_c_werror_flag" || 10327 test ! -s conftest.err 10328 } && test -s conftest.$ac_objext; then 10329 tcl_cv_flag__largefile_source64=yes 10330else 10331 echo "$as_me: failed program was:" >&5 10332sed 's/^/| /' conftest.$ac_ext >&5 10333 10334 tcl_cv_flag__largefile_source64=no 10335fi 10336 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10338fi 10339 10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10341fi 10342 10343 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10344 10345cat >>confdefs.h <<\_ACEOF 10346#define _LARGEFILE_SOURCE64 1 10347_ACEOF 10348 10349 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10350 fi 10351 10352 if test "x${tcl_flags}" = "x" ; then 10353 { echo "$as_me:$LINENO: result: none" >&5 10354echo "${ECHO_T}none" >&6; } 10355 else 10356 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10357echo "${ECHO_T}${tcl_flags}" >&6; } 10358 fi 10359 10360 10361 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10362echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10363 if test "${tcl_cv_type_64bit+set}" = set; then 10364 echo $ECHO_N "(cached) $ECHO_C" >&6 10365else 10366 10367 tcl_cv_type_64bit=none 10368 # See if the compiler knows natively about __int64 10369 cat >conftest.$ac_ext <<_ACEOF 10370/* confdefs.h. */ 10371_ACEOF 10372cat confdefs.h >>conftest.$ac_ext 10373cat >>conftest.$ac_ext <<_ACEOF 10374/* end confdefs.h. */ 10375 10376int 10377main () 10378{ 10379__int64 value = (__int64) 0; 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384rm -f conftest.$ac_objext 10385if { (ac_try="$ac_compile" 10386case "(($ac_try" in 10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10388 *) ac_try_echo=$ac_try;; 10389esac 10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10391 (eval "$ac_compile") 2>conftest.er1 10392 ac_status=$? 10393 grep -v '^ *+' conftest.er1 >conftest.err 10394 rm -f conftest.er1 10395 cat conftest.err >&5 10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 (exit $ac_status); } && { 10398 test -z "$ac_c_werror_flag" || 10399 test ! -s conftest.err 10400 } && test -s conftest.$ac_objext; then 10401 tcl_type_64bit=__int64 10402else 10403 echo "$as_me: failed program was:" >&5 10404sed 's/^/| /' conftest.$ac_ext >&5 10405 10406 tcl_type_64bit="long long" 10407fi 10408 10409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10410 # See if we should use long anyway Note that we substitute in the 10411 # type that is our current guess for a 64-bit type inside this check 10412 # program, so it should be modified only carefully... 10413 cat >conftest.$ac_ext <<_ACEOF 10414/* confdefs.h. */ 10415_ACEOF 10416cat confdefs.h >>conftest.$ac_ext 10417cat >>conftest.$ac_ext <<_ACEOF 10418/* end confdefs.h. */ 10419 10420int 10421main () 10422{ 10423switch (0) { 10424 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10425 } 10426 ; 10427 return 0; 10428} 10429_ACEOF 10430rm -f conftest.$ac_objext 10431if { (ac_try="$ac_compile" 10432case "(($ac_try" in 10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10434 *) ac_try_echo=$ac_try;; 10435esac 10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10437 (eval "$ac_compile") 2>conftest.er1 10438 ac_status=$? 10439 grep -v '^ *+' conftest.er1 >conftest.err 10440 rm -f conftest.er1 10441 cat conftest.err >&5 10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10443 (exit $ac_status); } && { 10444 test -z "$ac_c_werror_flag" || 10445 test ! -s conftest.err 10446 } && test -s conftest.$ac_objext; then 10447 tcl_cv_type_64bit=${tcl_type_64bit} 10448else 10449 echo "$as_me: failed program was:" >&5 10450sed 's/^/| /' conftest.$ac_ext >&5 10451 10452 10453fi 10454 10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10456fi 10457 10458 if test "${tcl_cv_type_64bit}" = none ; then 10459 10460cat >>confdefs.h <<\_ACEOF 10461#define TCL_WIDE_INT_IS_LONG 1 10462_ACEOF 10463 10464 { echo "$as_me:$LINENO: result: using long" >&5 10465echo "${ECHO_T}using long" >&6; } 10466 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10467 -a "${TEA_PLATFORM}" = "windows" ; then 10468 # TEA specific: We actually want to use the default tcl.h checks in 10469 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10470 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10471echo "${ECHO_T}using Tcl header defaults" >&6; } 10472 else 10473 10474cat >>confdefs.h <<_ACEOF 10475#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10476_ACEOF 10477 10478 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10479echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10480 10481 # Now check for auxiliary declarations 10482 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10483echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10484if test "${tcl_cv_struct_dirent64+set}" = set; then 10485 echo $ECHO_N "(cached) $ECHO_C" >&6 10486else 10487 10488 cat >conftest.$ac_ext <<_ACEOF 10489/* confdefs.h. */ 10490_ACEOF 10491cat confdefs.h >>conftest.$ac_ext 10492cat >>conftest.$ac_ext <<_ACEOF 10493/* end confdefs.h. */ 10494#include <sys/types.h> 10495#include <sys/dirent.h> 10496int 10497main () 10498{ 10499struct dirent64 p; 10500 ; 10501 return 0; 10502} 10503_ACEOF 10504rm -f conftest.$ac_objext 10505if { (ac_try="$ac_compile" 10506case "(($ac_try" in 10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10508 *) ac_try_echo=$ac_try;; 10509esac 10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10511 (eval "$ac_compile") 2>conftest.er1 10512 ac_status=$? 10513 grep -v '^ *+' conftest.er1 >conftest.err 10514 rm -f conftest.er1 10515 cat conftest.err >&5 10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10517 (exit $ac_status); } && { 10518 test -z "$ac_c_werror_flag" || 10519 test ! -s conftest.err 10520 } && test -s conftest.$ac_objext; then 10521 tcl_cv_struct_dirent64=yes 10522else 10523 echo "$as_me: failed program was:" >&5 10524sed 's/^/| /' conftest.$ac_ext >&5 10525 10526 tcl_cv_struct_dirent64=no 10527fi 10528 10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10530fi 10531{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10532echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10533 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10534 10535cat >>confdefs.h <<\_ACEOF 10536#define HAVE_STRUCT_DIRENT64 1 10537_ACEOF 10538 10539 fi 10540 10541 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10542echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10543if test "${tcl_cv_struct_stat64+set}" = set; then 10544 echo $ECHO_N "(cached) $ECHO_C" >&6 10545else 10546 10547 cat >conftest.$ac_ext <<_ACEOF 10548/* confdefs.h. */ 10549_ACEOF 10550cat confdefs.h >>conftest.$ac_ext 10551cat >>conftest.$ac_ext <<_ACEOF 10552/* end confdefs.h. */ 10553#include <sys/stat.h> 10554int 10555main () 10556{ 10557struct stat64 p; 10558 10559 ; 10560 return 0; 10561} 10562_ACEOF 10563rm -f conftest.$ac_objext 10564if { (ac_try="$ac_compile" 10565case "(($ac_try" in 10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10567 *) ac_try_echo=$ac_try;; 10568esac 10569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10570 (eval "$ac_compile") 2>conftest.er1 10571 ac_status=$? 10572 grep -v '^ *+' conftest.er1 >conftest.err 10573 rm -f conftest.er1 10574 cat conftest.err >&5 10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10576 (exit $ac_status); } && { 10577 test -z "$ac_c_werror_flag" || 10578 test ! -s conftest.err 10579 } && test -s conftest.$ac_objext; then 10580 tcl_cv_struct_stat64=yes 10581else 10582 echo "$as_me: failed program was:" >&5 10583sed 's/^/| /' conftest.$ac_ext >&5 10584 10585 tcl_cv_struct_stat64=no 10586fi 10587 10588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10589fi 10590{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10591echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10592 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10593 10594cat >>confdefs.h <<\_ACEOF 10595#define HAVE_STRUCT_STAT64 1 10596_ACEOF 10597 10598 fi 10599 10600 10601 10602for ac_func in open64 lseek64 10603do 10604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10605{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10608 echo $ECHO_N "(cached) $ECHO_C" >&6 10609else 10610 cat >conftest.$ac_ext <<_ACEOF 10611/* confdefs.h. */ 10612_ACEOF 10613cat confdefs.h >>conftest.$ac_ext 10614cat >>conftest.$ac_ext <<_ACEOF 10615/* end confdefs.h. */ 10616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10617 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10618#define $ac_func innocuous_$ac_func 10619 10620/* System header to define __stub macros and hopefully few prototypes, 10621 which can conflict with char $ac_func (); below. 10622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10623 <limits.h> exists even on freestanding compilers. */ 10624 10625#ifdef __STDC__ 10626# include <limits.h> 10627#else 10628# include <assert.h> 10629#endif 10630 10631#undef $ac_func 10632 10633/* Override any GCC internal prototype to avoid an error. 10634 Use char because int might match the return type of a GCC 10635 builtin and then its argument prototype would still apply. */ 10636#ifdef __cplusplus 10637extern "C" 10638#endif 10639char $ac_func (); 10640/* The GNU C library defines this for functions which it implements 10641 to always fail with ENOSYS. Some functions are actually named 10642 something starting with __ and the normal name is an alias. */ 10643#if defined __stub_$ac_func || defined __stub___$ac_func 10644choke me 10645#endif 10646 10647int 10648main () 10649{ 10650return $ac_func (); 10651 ; 10652 return 0; 10653} 10654_ACEOF 10655rm -f conftest.$ac_objext conftest$ac_exeext 10656if { (ac_try="$ac_link" 10657case "(($ac_try" in 10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10659 *) ac_try_echo=$ac_try;; 10660esac 10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10662 (eval "$ac_link") 2>conftest.er1 10663 ac_status=$? 10664 grep -v '^ *+' conftest.er1 >conftest.err 10665 rm -f conftest.er1 10666 cat conftest.err >&5 10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10668 (exit $ac_status); } && { 10669 test -z "$ac_c_werror_flag" || 10670 test ! -s conftest.err 10671 } && test -s conftest$ac_exeext && 10672 $as_test_x conftest$ac_exeext; then 10673 eval "$as_ac_var=yes" 10674else 10675 echo "$as_me: failed program was:" >&5 10676sed 's/^/| /' conftest.$ac_ext >&5 10677 10678 eval "$as_ac_var=no" 10679fi 10680 10681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10682 conftest$ac_exeext conftest.$ac_ext 10683fi 10684ac_res=`eval echo '${'$as_ac_var'}'` 10685 { echo "$as_me:$LINENO: result: $ac_res" >&5 10686echo "${ECHO_T}$ac_res" >&6; } 10687if test `eval echo '${'$as_ac_var'}'` = yes; then 10688 cat >>confdefs.h <<_ACEOF 10689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10690_ACEOF 10691 10692fi 10693done 10694 10695 { echo "$as_me:$LINENO: checking for off64_t" >&5 10696echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10697 if test "${tcl_cv_type_off64_t+set}" = set; then 10698 echo $ECHO_N "(cached) $ECHO_C" >&6 10699else 10700 10701 cat >conftest.$ac_ext <<_ACEOF 10702/* confdefs.h. */ 10703_ACEOF 10704cat confdefs.h >>conftest.$ac_ext 10705cat >>conftest.$ac_ext <<_ACEOF 10706/* end confdefs.h. */ 10707#include <sys/types.h> 10708int 10709main () 10710{ 10711off64_t offset; 10712 10713 ; 10714 return 0; 10715} 10716_ACEOF 10717rm -f conftest.$ac_objext 10718if { (ac_try="$ac_compile" 10719case "(($ac_try" in 10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10721 *) ac_try_echo=$ac_try;; 10722esac 10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10724 (eval "$ac_compile") 2>conftest.er1 10725 ac_status=$? 10726 grep -v '^ *+' conftest.er1 >conftest.err 10727 rm -f conftest.er1 10728 cat conftest.err >&5 10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10730 (exit $ac_status); } && { 10731 test -z "$ac_c_werror_flag" || 10732 test ! -s conftest.err 10733 } && test -s conftest.$ac_objext; then 10734 tcl_cv_type_off64_t=yes 10735else 10736 echo "$as_me: failed program was:" >&5 10737sed 's/^/| /' conftest.$ac_ext >&5 10738 10739 tcl_cv_type_off64_t=no 10740fi 10741 10742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10743fi 10744 10745 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10746 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10747 test "x${ac_cv_func_open64}" = "xyes" ; then 10748 10749cat >>confdefs.h <<\_ACEOF 10750#define HAVE_TYPE_OFF64_T 1 10751_ACEOF 10752 10753 { echo "$as_me:$LINENO: result: yes" >&5 10754echo "${ECHO_T}yes" >&6; } 10755 else 10756 { echo "$as_me:$LINENO: result: no" >&5 10757echo "${ECHO_T}no" >&6; } 10758 fi 10759 fi 10760 10761 10762 10763#-------------------------------------------------------------------- 10764# Set the default compiler switches based on the --enable-symbols option. 10765#-------------------------------------------------------------------- 10766 10767 10768 10769 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10770echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10771 # Check whether --enable-symbols was given. 10772if test "${enable_symbols+set}" = set; then 10773 enableval=$enable_symbols; tcl_ok=$enableval 10774else 10775 tcl_ok=no 10776fi 10777 10778 DBGX="" 10779 if test "$tcl_ok" = "no"; then 10780 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10781 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10782 { echo "$as_me:$LINENO: result: no" >&5 10783echo "${ECHO_T}no" >&6; } 10784 else 10785 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10786 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10787 if test "$tcl_ok" = "yes"; then 10788 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10789echo "${ECHO_T}yes (standard debugging)" >&6; } 10790 fi 10791 fi 10792 # TEA specific: 10793 if test "${TEA_PLATFORM}" != "windows" ; then 10794 LDFLAGS_DEFAULT="${LDFLAGS}" 10795 fi 10796 10797 10798 10799 10800 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10801 10802cat >>confdefs.h <<\_ACEOF 10803#define TCL_MEM_DEBUG 1 10804_ACEOF 10805 10806 fi 10807 10808 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10809 if test "$tcl_ok" = "all"; then 10810 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10811echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10812 else 10813 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10814echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10815 fi 10816 fi 10817 10818 10819#-------------------------------------------------------------------- 10820# For Unix/Tk builds, make sure that the X libraries/headers are found. 10821# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 10822#-------------------------------------------------------------------- 10823 10824 10825 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 10826 10827 { echo "$as_me:$LINENO: checking for X" >&5 10828echo $ECHO_N "checking for X... $ECHO_C" >&6; } 10829 10830 10831# Check whether --with-x was given. 10832if test "${with_x+set}" = set; then 10833 withval=$with_x; 10834fi 10835 10836# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 10837if test "x$with_x" = xno; then 10838 # The user explicitly disabled X. 10839 have_x=disabled 10840else 10841 case $x_includes,$x_libraries in #( 10842 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 10843echo "$as_me: error: Cannot use X directory names containing '" >&2;} 10844 { (exit 1); exit 1; }; };; #( 10845 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 10846 echo $ECHO_N "(cached) $ECHO_C" >&6 10847else 10848 # One or both of the vars are not set, and there is no cached value. 10849ac_x_includes=no ac_x_libraries=no 10850rm -f -r conftest.dir 10851if mkdir conftest.dir; then 10852 cd conftest.dir 10853 cat >Imakefile <<'_ACEOF' 10854incroot: 10855 @echo incroot='${INCROOT}' 10856usrlibdir: 10857 @echo usrlibdir='${USRLIBDIR}' 10858libdir: 10859 @echo libdir='${LIBDIR}' 10860_ACEOF 10861 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 10862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10863 for ac_var in incroot usrlibdir libdir; do 10864 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 10865 done 10866 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 10867 for ac_extension in a so sl dylib la dll; do 10868 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 10869 test -f "$ac_im_libdir/libX11.$ac_extension"; then 10870 ac_im_usrlibdir=$ac_im_libdir; break 10871 fi 10872 done 10873 # Screen out bogus values from the imake configuration. They are 10874 # bogus both because they are the default anyway, and because 10875 # using them would break gcc on systems where it needs fixed includes. 10876 case $ac_im_incroot in 10877 /usr/include) ac_x_includes= ;; 10878 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 10879 esac 10880 case $ac_im_usrlibdir in 10881 /usr/lib | /lib) ;; 10882 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 10883 esac 10884 fi 10885 cd .. 10886 rm -f -r conftest.dir 10887fi 10888 10889# Standard set of common directories for X headers. 10890# Check X11 before X11Rn because it is often a symlink to the current release. 10891ac_x_header_dirs=' 10892/usr/X11/include 10893/usr/X11R6/include 10894/usr/X11R5/include 10895/usr/X11R4/include 10896 10897/usr/include/X11 10898/usr/include/X11R6 10899/usr/include/X11R5 10900/usr/include/X11R4 10901 10902/usr/local/X11/include 10903/usr/local/X11R6/include 10904/usr/local/X11R5/include 10905/usr/local/X11R4/include 10906 10907/usr/local/include/X11 10908/usr/local/include/X11R6 10909/usr/local/include/X11R5 10910/usr/local/include/X11R4 10911 10912/usr/X386/include 10913/usr/x386/include 10914/usr/XFree86/include/X11 10915 10916/usr/include 10917/usr/local/include 10918/usr/unsupported/include 10919/usr/athena/include 10920/usr/local/x11r5/include 10921/usr/lpp/Xamples/include 10922 10923/usr/openwin/include 10924/usr/openwin/share/include' 10925 10926if test "$ac_x_includes" = no; then 10927 # Guess where to find include files, by looking for Xlib.h. 10928 # First, try using that file with no special directory specified. 10929 cat >conftest.$ac_ext <<_ACEOF 10930/* confdefs.h. */ 10931_ACEOF 10932cat confdefs.h >>conftest.$ac_ext 10933cat >>conftest.$ac_ext <<_ACEOF 10934/* end confdefs.h. */ 10935#include <X11/Xlib.h> 10936_ACEOF 10937if { (ac_try="$ac_cpp conftest.$ac_ext" 10938case "(($ac_try" in 10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10940 *) ac_try_echo=$ac_try;; 10941esac 10942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10944 ac_status=$? 10945 grep -v '^ *+' conftest.er1 >conftest.err 10946 rm -f conftest.er1 10947 cat conftest.err >&5 10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10949 (exit $ac_status); } >/dev/null && { 10950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10951 test ! -s conftest.err 10952 }; then 10953 # We can compile using X headers with no special include directory. 10954ac_x_includes= 10955else 10956 echo "$as_me: failed program was:" >&5 10957sed 's/^/| /' conftest.$ac_ext >&5 10958 10959 for ac_dir in $ac_x_header_dirs; do 10960 if test -r "$ac_dir/X11/Xlib.h"; then 10961 ac_x_includes=$ac_dir 10962 break 10963 fi 10964done 10965fi 10966 10967rm -f conftest.err conftest.$ac_ext 10968fi # $ac_x_includes = no 10969 10970if test "$ac_x_libraries" = no; then 10971 # Check for the libraries. 10972 # See if we find them without any special options. 10973 # Don't add to $LIBS permanently. 10974 ac_save_LIBS=$LIBS 10975 LIBS="-lX11 $LIBS" 10976 cat >conftest.$ac_ext <<_ACEOF 10977/* confdefs.h. */ 10978_ACEOF 10979cat confdefs.h >>conftest.$ac_ext 10980cat >>conftest.$ac_ext <<_ACEOF 10981/* end confdefs.h. */ 10982#include <X11/Xlib.h> 10983int 10984main () 10985{ 10986XrmInitialize () 10987 ; 10988 return 0; 10989} 10990_ACEOF 10991rm -f conftest.$ac_objext conftest$ac_exeext 10992if { (ac_try="$ac_link" 10993case "(($ac_try" in 10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10995 *) ac_try_echo=$ac_try;; 10996esac 10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10998 (eval "$ac_link") 2>conftest.er1 10999 ac_status=$? 11000 grep -v '^ *+' conftest.er1 >conftest.err 11001 rm -f conftest.er1 11002 cat conftest.err >&5 11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11004 (exit $ac_status); } && { 11005 test -z "$ac_c_werror_flag" || 11006 test ! -s conftest.err 11007 } && test -s conftest$ac_exeext && 11008 $as_test_x conftest$ac_exeext; then 11009 LIBS=$ac_save_LIBS 11010# We can link X programs with no special library path. 11011ac_x_libraries= 11012else 11013 echo "$as_me: failed program was:" >&5 11014sed 's/^/| /' conftest.$ac_ext >&5 11015 11016 LIBS=$ac_save_LIBS 11017for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11018do 11019 # Don't even attempt the hair of trying to link an X program! 11020 for ac_extension in a so sl dylib la dll; do 11021 if test -r "$ac_dir/libX11.$ac_extension"; then 11022 ac_x_libraries=$ac_dir 11023 break 2 11024 fi 11025 done 11026done 11027fi 11028 11029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11030 conftest$ac_exeext conftest.$ac_ext 11031fi # $ac_x_libraries = no 11032 11033case $ac_x_includes,$ac_x_libraries in #( 11034 no,* | *,no | *\'*) 11035 # Didn't find X, or a directory has "'" in its name. 11036 ac_cv_have_x="have_x=no";; #( 11037 *) 11038 # Record where we found X for the cache. 11039 ac_cv_have_x="have_x=yes\ 11040 ac_x_includes='$ac_x_includes'\ 11041 ac_x_libraries='$ac_x_libraries'" 11042esac 11043fi 11044;; #( 11045 *) have_x=yes;; 11046 esac 11047 eval "$ac_cv_have_x" 11048fi # $with_x != no 11049 11050if test "$have_x" != yes; then 11051 { echo "$as_me:$LINENO: result: $have_x" >&5 11052echo "${ECHO_T}$have_x" >&6; } 11053 no_x=yes 11054else 11055 # If each of the values was on the command line, it overrides each guess. 11056 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11057 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11058 # Update the cache value to reflect the command line values. 11059 ac_cv_have_x="have_x=yes\ 11060 ac_x_includes='$x_includes'\ 11061 ac_x_libraries='$x_libraries'" 11062 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 11063echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 11064fi 11065 11066 not_really_there="" 11067 if test "$no_x" = ""; then 11068 if test "$x_includes" = ""; then 11069 cat >conftest.$ac_ext <<_ACEOF 11070/* confdefs.h. */ 11071_ACEOF 11072cat confdefs.h >>conftest.$ac_ext 11073cat >>conftest.$ac_ext <<_ACEOF 11074/* end confdefs.h. */ 11075#include <X11/XIntrinsic.h> 11076_ACEOF 11077if { (ac_try="$ac_cpp conftest.$ac_ext" 11078case "(($ac_try" in 11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11080 *) ac_try_echo=$ac_try;; 11081esac 11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11084 ac_status=$? 11085 grep -v '^ *+' conftest.er1 >conftest.err 11086 rm -f conftest.er1 11087 cat conftest.err >&5 11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11089 (exit $ac_status); } >/dev/null && { 11090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11091 test ! -s conftest.err 11092 }; then 11093 : 11094else 11095 echo "$as_me: failed program was:" >&5 11096sed 's/^/| /' conftest.$ac_ext >&5 11097 11098 not_really_there="yes" 11099fi 11100 11101rm -f conftest.err conftest.$ac_ext 11102 else 11103 if test ! -r $x_includes/X11/Intrinsic.h; then 11104 not_really_there="yes" 11105 fi 11106 fi 11107 fi 11108 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 11109 { echo "$as_me:$LINENO: checking for X11 header files" >&5 11110echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 11111 found_xincludes="no" 11112 cat >conftest.$ac_ext <<_ACEOF 11113/* confdefs.h. */ 11114_ACEOF 11115cat confdefs.h >>conftest.$ac_ext 11116cat >>conftest.$ac_ext <<_ACEOF 11117/* end confdefs.h. */ 11118#include <X11/Intrinsic.h> 11119_ACEOF 11120if { (ac_try="$ac_cpp conftest.$ac_ext" 11121case "(($ac_try" in 11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11123 *) ac_try_echo=$ac_try;; 11124esac 11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11127 ac_status=$? 11128 grep -v '^ *+' conftest.er1 >conftest.err 11129 rm -f conftest.er1 11130 cat conftest.err >&5 11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11132 (exit $ac_status); } >/dev/null && { 11133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11134 test ! -s conftest.err 11135 }; then 11136 found_xincludes="yes" 11137else 11138 echo "$as_me: failed program was:" >&5 11139sed 's/^/| /' conftest.$ac_ext >&5 11140 11141 found_xincludes="no" 11142fi 11143 11144rm -f conftest.err conftest.$ac_ext 11145 if test "$found_xincludes" = "no"; then 11146 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" 11147 for i in $dirs ; do 11148 if test -r $i/X11/Intrinsic.h; then 11149 { echo "$as_me:$LINENO: result: $i" >&5 11150echo "${ECHO_T}$i" >&6; } 11151 XINCLUDES=" -I$i" 11152 found_xincludes="yes" 11153 break 11154 fi 11155 done 11156 fi 11157 else 11158 if test "$x_includes" != ""; then 11159 XINCLUDES="-I$x_includes" 11160 found_xincludes="yes" 11161 fi 11162 fi 11163 if test "$found_xincludes" = "no"; then 11164 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 11165echo "${ECHO_T}couldn't find any!" >&6; } 11166 fi 11167 11168 if test "$no_x" = yes; then 11169 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 11170echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 11171 XLIBSW=nope 11172 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 11173 for i in $dirs ; do 11174 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 11175 { echo "$as_me:$LINENO: result: $i" >&5 11176echo "${ECHO_T}$i" >&6; } 11177 XLIBSW="-L$i -lX11" 11178 x_libraries="$i" 11179 break 11180 fi 11181 done 11182 else 11183 if test "$x_libraries" = ""; then 11184 XLIBSW=-lX11 11185 else 11186 XLIBSW="-L$x_libraries -lX11" 11187 fi 11188 fi 11189 if test "$XLIBSW" = nope ; then 11190 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 11191echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 11192if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 11193 echo $ECHO_N "(cached) $ECHO_C" >&6 11194else 11195 ac_check_lib_save_LIBS=$LIBS 11196LIBS="-lXwindow $LIBS" 11197cat >conftest.$ac_ext <<_ACEOF 11198/* confdefs.h. */ 11199_ACEOF 11200cat confdefs.h >>conftest.$ac_ext 11201cat >>conftest.$ac_ext <<_ACEOF 11202/* end confdefs.h. */ 11203 11204/* Override any GCC internal prototype to avoid an error. 11205 Use char because int might match the return type of a GCC 11206 builtin and then its argument prototype would still apply. */ 11207#ifdef __cplusplus 11208extern "C" 11209#endif 11210char XCreateWindow (); 11211int 11212main () 11213{ 11214return XCreateWindow (); 11215 ; 11216 return 0; 11217} 11218_ACEOF 11219rm -f conftest.$ac_objext conftest$ac_exeext 11220if { (ac_try="$ac_link" 11221case "(($ac_try" in 11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11223 *) ac_try_echo=$ac_try;; 11224esac 11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11226 (eval "$ac_link") 2>conftest.er1 11227 ac_status=$? 11228 grep -v '^ *+' conftest.er1 >conftest.err 11229 rm -f conftest.er1 11230 cat conftest.err >&5 11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11232 (exit $ac_status); } && { 11233 test -z "$ac_c_werror_flag" || 11234 test ! -s conftest.err 11235 } && test -s conftest$ac_exeext && 11236 $as_test_x conftest$ac_exeext; then 11237 ac_cv_lib_Xwindow_XCreateWindow=yes 11238else 11239 echo "$as_me: failed program was:" >&5 11240sed 's/^/| /' conftest.$ac_ext >&5 11241 11242 ac_cv_lib_Xwindow_XCreateWindow=no 11243fi 11244 11245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11246 conftest$ac_exeext conftest.$ac_ext 11247LIBS=$ac_check_lib_save_LIBS 11248fi 11249{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 11250echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 11251if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 11252 XLIBSW=-lXwindow 11253fi 11254 11255 fi 11256 if test "$XLIBSW" = nope ; then 11257 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 11258echo "${ECHO_T}could not find any! Using -lX11." >&6; } 11259 XLIBSW=-lX11 11260 fi 11261 # TEA specific: 11262 if test x"${XLIBSW}" != x ; then 11263 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 11264 fi 11265 11266 fi 11267 11268 11269#-------------------------------------------------------------------- 11270# Everyone should be linking against the Tcl stub library. If you 11271# can't for some reason, remove this definition. If you aren't using 11272# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 11273# link against the non-stubbed Tcl library. 11274#-------------------------------------------------------------------- 11275 11276cat >>confdefs.h <<\_ACEOF 11277#define USE_TCL_STUBS 1 11278_ACEOF 11279 11280cat >>confdefs.h <<\_ACEOF 11281#define USE_TK_STUBS 1 11282_ACEOF 11283 11284 11285#-------------------------------------------------------------------- 11286# This macro generates a line to use when building a library. It 11287# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 11288# and TEA_LOAD_TCLCONFIG macros above. 11289#-------------------------------------------------------------------- 11290 11291 11292 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 11293 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 11294 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 11295 cat >conftest.$ac_ext <<_ACEOF 11296/* confdefs.h. */ 11297_ACEOF 11298cat confdefs.h >>conftest.$ac_ext 11299cat >>conftest.$ac_ext <<_ACEOF 11300/* end confdefs.h. */ 11301 11302#if defined(_MSC_VER) && _MSC_VER >= 1400 11303print("manifest needed") 11304#endif 11305 11306_ACEOF 11307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11308 $EGREP "manifest needed" >/dev/null 2>&1; then 11309 11310 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11311 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11312 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11313 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11314 11315 CLEANFILES="$CLEANFILES *.manifest" 11316 11317 11318fi 11319rm -f -r conftest* 11320 11321 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11322 else 11323 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11324 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11325 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11326 fi 11327 11328 if test "${SHARED_BUILD}" = "1" ; then 11329 MAKE_LIB="${MAKE_SHARED_LIB} " 11330 else 11331 MAKE_LIB="${MAKE_STATIC_LIB} " 11332 fi 11333 11334 #-------------------------------------------------------------------- 11335 # Shared libraries and static libraries have different names. 11336 # Use the double eval to make sure any variables in the suffix is 11337 # substituted. (@@@ Might not be necessary anymore) 11338 #-------------------------------------------------------------------- 11339 11340 if test "${TEA_PLATFORM}" = "windows" ; then 11341 if test "${SHARED_BUILD}" = "1" ; then 11342 # We force the unresolved linking of symbols that are really in 11343 # the private libraries of Tcl and Tk. 11344 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11345 if test x"${TK_BIN_DIR}" != x ; then 11346 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11347 fi 11348 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11349 else 11350 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11351 fi 11352 # Some packages build their own stubs libraries 11353 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11354 if test "$GCC" = "yes"; then 11355 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11356 fi 11357 # These aren't needed on Windows (either MSVC or gcc) 11358 RANLIB=: 11359 RANLIB_STUB=: 11360 else 11361 RANLIB_STUB="${RANLIB}" 11362 if test "${SHARED_BUILD}" = "1" ; then 11363 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11364 if test x"${TK_BIN_DIR}" != x ; then 11365 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11366 fi 11367 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11368 RANLIB=: 11369 else 11370 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11371 fi 11372 # Some packages build their own stubs libraries 11373 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11374 fi 11375 11376 # These are escaped so that only CFLAGS is picked up at configure time. 11377 # The other values will be substituted at make time. 11378 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11379 if test "${SHARED_BUILD}" = "1" ; then 11380 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11381 fi 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392#-------------------------------------------------------------------- 11393# __CHANGE__ 11394# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 11395#-------------------------------------------------------------------- 11396 11397if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 11398 11399 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 11400 for i in $vars; do 11401 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11402 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11403 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11404 fi 11405 PKG_LIBS="$PKG_LIBS $i" 11406 done 11407 11408 11409else 11410 11411 vars="${tkimg_STUB_LIB_SPEC}" 11412 for i in $vars; do 11413 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11414 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11415 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11416 fi 11417 PKG_LIBS="$PKG_LIBS $i" 11418 done 11419 11420 11421fi 11422 11423#-------------------------------------------------------------------- 11424# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11425# file during the install process. Don't run the TCLSH_PROG through 11426# ${CYGPATH} because it's being used directly by make. 11427# Require that we use a tclsh shell version 8.2 or later since earlier 11428# versions have bugs in the pkg_mkIndex routine. 11429# Add WISH as well if this is a Tk extension. 11430#-------------------------------------------------------------------- 11431 11432 11433 { echo "$as_me:$LINENO: checking for tclsh" >&5 11434echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11435 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11436 # tclConfig.sh is in Tcl build directory 11437 if test "${TEA_PLATFORM}" = "windows"; then 11438 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11439 else 11440 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11441 fi 11442 else 11443 # tclConfig.sh is in install location 11444 if test "${TEA_PLATFORM}" = "windows"; then 11445 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11446 else 11447 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11448 fi 11449 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11450 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11451 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11452 for i in $list ; do 11453 if test -f "$i/${TCLSH_PROG}" ; then 11454 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11455 break 11456 fi 11457 done 11458 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11459 fi 11460 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11461echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11462 11463 11464 11465 { echo "$as_me:$LINENO: checking for wish" >&5 11466echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11467 if test -f "${TK_BIN_DIR}/Makefile" ; then 11468 # tkConfig.sh is in Tk build directory 11469 if test "${TEA_PLATFORM}" = "windows"; then 11470 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11471 else 11472 WISH_PROG="${TK_BIN_DIR}/wish" 11473 fi 11474 else 11475 # tkConfig.sh is in install location 11476 if test "${TEA_PLATFORM}" = "windows"; then 11477 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11478 else 11479 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11480 fi 11481 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11482 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11483 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11484 for i in $list ; do 11485 if test -f "$i/${WISH_PROG}" ; then 11486 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11487 break 11488 fi 11489 done 11490 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11491 fi 11492 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11493echo "${ECHO_T}${WISH_PROG}" >&6; } 11494 11495 11496 11497#-------------------------------------------------------------------- 11498# Finally, substitute all of the various values into the Makefile. 11499# You may alternatively have a special pkgIndex.tcl.in or other files 11500# which require substituting th AC variables in. Include these here. 11501#-------------------------------------------------------------------- 11502 11503ac_config_files="$ac_config_files Makefile" 11504 11505cat >confcache <<\_ACEOF 11506# This file is a shell script that caches the results of configure 11507# tests run on this system so they can be shared between configure 11508# scripts and configure runs, see configure's option --config-cache. 11509# It is not useful on other systems. If it contains results you don't 11510# want to keep, you may remove or edit it. 11511# 11512# config.status only pays attention to the cache file if you give it 11513# the --recheck option to rerun configure. 11514# 11515# `ac_cv_env_foo' variables (set or unset) will be overridden when 11516# loading this file, other *unset* `ac_cv_foo' will be assigned the 11517# following values. 11518 11519_ACEOF 11520 11521# The following way of writing the cache mishandles newlines in values, 11522# but we know of no workaround that is simple, portable, and efficient. 11523# So, we kill variables containing newlines. 11524# Ultrix sh set writes to stderr and can't be redirected directly, 11525# and sets the high bit in the cache file unless we assign to the vars. 11526( 11527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11528 eval ac_val=\$$ac_var 11529 case $ac_val in #( 11530 *${as_nl}*) 11531 case $ac_var in #( 11532 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11533echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11534 esac 11535 case $ac_var in #( 11536 _ | IFS | as_nl) ;; #( 11537 *) $as_unset $ac_var ;; 11538 esac ;; 11539 esac 11540 done 11541 11542 (set) 2>&1 | 11543 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11544 *${as_nl}ac_space=\ *) 11545 # `set' does not quote correctly, so add quotes (double-quote 11546 # substitution turns \\\\ into \\, and sed turns \\ into \). 11547 sed -n \ 11548 "s/'/'\\\\''/g; 11549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11550 ;; #( 11551 *) 11552 # `set' quotes correctly as required by POSIX, so do not add quotes. 11553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11554 ;; 11555 esac | 11556 sort 11557) | 11558 sed ' 11559 /^ac_cv_env_/b end 11560 t clear 11561 :clear 11562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11563 t end 11564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11565 :end' >>confcache 11566if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11567 if test -w "$cache_file"; then 11568 test "x$cache_file" != "x/dev/null" && 11569 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11570echo "$as_me: updating cache $cache_file" >&6;} 11571 cat confcache >$cache_file 11572 else 11573 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11574echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11575 fi 11576fi 11577rm -f confcache 11578 11579test "x$prefix" = xNONE && prefix=$ac_default_prefix 11580# Let make expand exec_prefix. 11581test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11582 11583# Transform confdefs.h into DEFS. 11584# Protect against shell expansion while executing Makefile rules. 11585# Protect against Makefile macro expansion. 11586# 11587# If the first sed substitution is executed (which looks for macros that 11588# take arguments), then branch to the quote section. Otherwise, 11589# look for a macro that doesn't take arguments. 11590ac_script=' 11591t clear 11592:clear 11593s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11594t quote 11595s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11596t quote 11597b any 11598:quote 11599s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11600s/\[/\\&/g 11601s/\]/\\&/g 11602s/\$/$$/g 11603H 11604:any 11605${ 11606 g 11607 s/^\n// 11608 s/\n/ /g 11609 p 11610} 11611' 11612DEFS=`sed -n "$ac_script" confdefs.h` 11613 11614 11615ac_libobjs= 11616ac_ltlibobjs= 11617for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11618 # 1. Remove the extension, and $U if already installed. 11619 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11620 ac_i=`echo "$ac_i" | sed "$ac_script"` 11621 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11622 # will be set to the directory where LIBOBJS objects are built. 11623 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11624 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11625done 11626LIBOBJS=$ac_libobjs 11627 11628LTLIBOBJS=$ac_ltlibobjs 11629 11630 11631CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11632 11633: ${CONFIG_STATUS=./config.status} 11634ac_clean_files_save=$ac_clean_files 11635ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11636{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11637echo "$as_me: creating $CONFIG_STATUS" >&6;} 11638cat >$CONFIG_STATUS <<_ACEOF 11639#! $SHELL 11640# Generated by $as_me. 11641# Run this file to recreate the current configuration. 11642# Compiler output produced by configure, useful for debugging 11643# configure, is in config.log if it exists. 11644 11645debug=false 11646ac_cs_recheck=false 11647ac_cs_silent=false 11648SHELL=\${CONFIG_SHELL-$SHELL} 11649_ACEOF 11650 11651cat >>$CONFIG_STATUS <<\_ACEOF 11652## --------------------- ## 11653## M4sh Initialization. ## 11654## --------------------- ## 11655 11656# Be more Bourne compatible 11657DUALCASE=1; export DUALCASE # for MKS sh 11658if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11659 emulate sh 11660 NULLCMD=: 11661 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11662 # is contrary to our usage. Disable this feature. 11663 alias -g '${1+"$@"}'='"$@"' 11664 setopt NO_GLOB_SUBST 11665else 11666 case `(set -o) 2>/dev/null` in 11667 *posix*) set -o posix ;; 11668esac 11669 11670fi 11671 11672 11673 11674 11675# PATH needs CR 11676# Avoid depending upon Character Ranges. 11677as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11679as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11680as_cr_digits='0123456789' 11681as_cr_alnum=$as_cr_Letters$as_cr_digits 11682 11683# The user is always right. 11684if test "${PATH_SEPARATOR+set}" != set; then 11685 echo "#! /bin/sh" >conf$$.sh 11686 echo "exit 0" >>conf$$.sh 11687 chmod +x conf$$.sh 11688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11689 PATH_SEPARATOR=';' 11690 else 11691 PATH_SEPARATOR=: 11692 fi 11693 rm -f conf$$.sh 11694fi 11695 11696# Support unset when possible. 11697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11698 as_unset=unset 11699else 11700 as_unset=false 11701fi 11702 11703 11704# IFS 11705# We need space, tab and new line, in precisely that order. Quoting is 11706# there to prevent editors from complaining about space-tab. 11707# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11708# splitting by setting IFS to empty value.) 11709as_nl=' 11710' 11711IFS=" "" $as_nl" 11712 11713# Find who we are. Look in the path if we contain no directory separator. 11714case $0 in 11715 *[\\/]* ) as_myself=$0 ;; 11716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11717for as_dir in $PATH 11718do 11719 IFS=$as_save_IFS 11720 test -z "$as_dir" && as_dir=. 11721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11722done 11723IFS=$as_save_IFS 11724 11725 ;; 11726esac 11727# We did not find ourselves, most probably we were run as `sh COMMAND' 11728# in which case we are not to be found in the path. 11729if test "x$as_myself" = x; then 11730 as_myself=$0 11731fi 11732if test ! -f "$as_myself"; then 11733 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11734 { (exit 1); exit 1; } 11735fi 11736 11737# Work around bugs in pre-3.0 UWIN ksh. 11738for as_var in ENV MAIL MAILPATH 11739do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11740done 11741PS1='$ ' 11742PS2='> ' 11743PS4='+ ' 11744 11745# NLS nuisances. 11746for as_var in \ 11747 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11748 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11749 LC_TELEPHONE LC_TIME 11750do 11751 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11752 eval $as_var=C; export $as_var 11753 else 11754 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11755 fi 11756done 11757 11758# Required to use basename. 11759if expr a : '\(a\)' >/dev/null 2>&1 && 11760 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11761 as_expr=expr 11762else 11763 as_expr=false 11764fi 11765 11766if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11767 as_basename=basename 11768else 11769 as_basename=false 11770fi 11771 11772 11773# Name of the executable. 11774as_me=`$as_basename -- "$0" || 11775$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11776 X"$0" : 'X\(//\)$' \| \ 11777 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11778echo X/"$0" | 11779 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11780 s//\1/ 11781 q 11782 } 11783 /^X\/\(\/\/\)$/{ 11784 s//\1/ 11785 q 11786 } 11787 /^X\/\(\/\).*/{ 11788 s//\1/ 11789 q 11790 } 11791 s/.*/./; q'` 11792 11793# CDPATH. 11794$as_unset CDPATH 11795 11796 11797 11798 as_lineno_1=$LINENO 11799 as_lineno_2=$LINENO 11800 test "x$as_lineno_1" != "x$as_lineno_2" && 11801 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11802 11803 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11804 # uniformly replaced by the line number. The first 'sed' inserts a 11805 # line-number line after each line using $LINENO; the second 'sed' 11806 # does the real work. The second script uses 'N' to pair each 11807 # line-number line with the line containing $LINENO, and appends 11808 # trailing '-' during substitution so that $LINENO is not a special 11809 # case at line end. 11810 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11811 # scripts with optimization help from Paolo Bonzini. Blame Lee 11812 # E. McMahon (1931-1989) for sed's syntax. :-) 11813 sed -n ' 11814 p 11815 /[$]LINENO/= 11816 ' <$as_myself | 11817 sed ' 11818 s/[$]LINENO.*/&-/ 11819 t lineno 11820 b 11821 :lineno 11822 N 11823 :loop 11824 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11825 t loop 11826 s/-\n.*// 11827 ' >$as_me.lineno && 11828 chmod +x "$as_me.lineno" || 11829 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11830 { (exit 1); exit 1; }; } 11831 11832 # Don't try to exec as it changes $[0], causing all sort of problems 11833 # (the dirname of $[0] is not the place where we might find the 11834 # original and so on. Autoconf is especially sensitive to this). 11835 . "./$as_me.lineno" 11836 # Exit status is that of the last command. 11837 exit 11838} 11839 11840 11841if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11842 as_dirname=dirname 11843else 11844 as_dirname=false 11845fi 11846 11847ECHO_C= ECHO_N= ECHO_T= 11848case `echo -n x` in 11849-n*) 11850 case `echo 'x\c'` in 11851 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11852 *) ECHO_C='\c';; 11853 esac;; 11854*) 11855 ECHO_N='-n';; 11856esac 11857 11858if expr a : '\(a\)' >/dev/null 2>&1 && 11859 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11860 as_expr=expr 11861else 11862 as_expr=false 11863fi 11864 11865rm -f conf$$ conf$$.exe conf$$.file 11866if test -d conf$$.dir; then 11867 rm -f conf$$.dir/conf$$.file 11868else 11869 rm -f conf$$.dir 11870 mkdir conf$$.dir 11871fi 11872echo >conf$$.file 11873if ln -s conf$$.file conf$$ 2>/dev/null; then 11874 as_ln_s='ln -s' 11875 # ... but there are two gotchas: 11876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11878 # In both cases, we have to default to `cp -p'. 11879 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11880 as_ln_s='cp -p' 11881elif ln conf$$.file conf$$ 2>/dev/null; then 11882 as_ln_s=ln 11883else 11884 as_ln_s='cp -p' 11885fi 11886rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11887rmdir conf$$.dir 2>/dev/null 11888 11889if mkdir -p . 2>/dev/null; then 11890 as_mkdir_p=: 11891else 11892 test -d ./-p && rmdir ./-p 11893 as_mkdir_p=false 11894fi 11895 11896if test -x / >/dev/null 2>&1; then 11897 as_test_x='test -x' 11898else 11899 if ls -dL / >/dev/null 2>&1; then 11900 as_ls_L_option=L 11901 else 11902 as_ls_L_option= 11903 fi 11904 as_test_x=' 11905 eval sh -c '\'' 11906 if test -d "$1"; then 11907 test -d "$1/."; 11908 else 11909 case $1 in 11910 -*)set "./$1";; 11911 esac; 11912 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11913 ???[sx]*):;;*)false;;esac;fi 11914 '\'' sh 11915 ' 11916fi 11917as_executable_p=$as_test_x 11918 11919# Sed expression to map a string onto a valid CPP name. 11920as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11921 11922# Sed expression to map a string onto a valid variable name. 11923as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11924 11925 11926exec 6>&1 11927 11928# Save the log message, to keep $[0] and so on meaningful, and to 11929# report actual input values of CONFIG_FILES etc. instead of their 11930# values after options handling. 11931ac_log=" 11932This file was extended by tkimgtga $as_me 1.4, which was 11933generated by GNU Autoconf 2.61. Invocation command line was 11934 11935 CONFIG_FILES = $CONFIG_FILES 11936 CONFIG_HEADERS = $CONFIG_HEADERS 11937 CONFIG_LINKS = $CONFIG_LINKS 11938 CONFIG_COMMANDS = $CONFIG_COMMANDS 11939 $ $0 $@ 11940 11941on `(hostname || uname -n) 2>/dev/null | sed 1q` 11942" 11943 11944_ACEOF 11945 11946cat >>$CONFIG_STATUS <<_ACEOF 11947# Files that config.status was made for. 11948config_files="$ac_config_files" 11949 11950_ACEOF 11951 11952cat >>$CONFIG_STATUS <<\_ACEOF 11953ac_cs_usage="\ 11954\`$as_me' instantiates files from templates according to the 11955current configuration. 11956 11957Usage: $0 [OPTIONS] [FILE]... 11958 11959 -h, --help print this help, then exit 11960 -V, --version print version number and configuration settings, then exit 11961 -q, --quiet do not print progress messages 11962 -d, --debug don't remove temporary files 11963 --recheck update $as_me by reconfiguring in the same conditions 11964 --file=FILE[:TEMPLATE] 11965 instantiate the configuration file FILE 11966 11967Configuration files: 11968$config_files 11969 11970Report bugs to <bug-autoconf@gnu.org>." 11971 11972_ACEOF 11973cat >>$CONFIG_STATUS <<_ACEOF 11974ac_cs_version="\\ 11975tkimgtga config.status 1.4 11976configured by $0, generated by GNU Autoconf 2.61, 11977 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11978 11979Copyright (C) 2006 Free Software Foundation, Inc. 11980This config.status script is free software; the Free Software Foundation 11981gives unlimited permission to copy, distribute and modify it." 11982 11983ac_pwd='$ac_pwd' 11984srcdir='$srcdir' 11985INSTALL='$INSTALL' 11986_ACEOF 11987 11988cat >>$CONFIG_STATUS <<\_ACEOF 11989# If no file are specified by the user, then we need to provide default 11990# value. By we need to know if files were specified by the user. 11991ac_need_defaults=: 11992while test $# != 0 11993do 11994 case $1 in 11995 --*=*) 11996 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11998 ac_shift=: 11999 ;; 12000 *) 12001 ac_option=$1 12002 ac_optarg=$2 12003 ac_shift=shift 12004 ;; 12005 esac 12006 12007 case $ac_option in 12008 # Handling of the options. 12009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12010 ac_cs_recheck=: ;; 12011 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12012 echo "$ac_cs_version"; exit ;; 12013 --debug | --debu | --deb | --de | --d | -d ) 12014 debug=: ;; 12015 --file | --fil | --fi | --f ) 12016 $ac_shift 12017 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12018 ac_need_defaults=false;; 12019 --he | --h | --help | --hel | -h ) 12020 echo "$ac_cs_usage"; exit ;; 12021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12022 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12023 ac_cs_silent=: ;; 12024 12025 # This is an error. 12026 -*) { echo "$as_me: error: unrecognized option: $1 12027Try \`$0 --help' for more information." >&2 12028 { (exit 1); exit 1; }; } ;; 12029 12030 *) ac_config_targets="$ac_config_targets $1" 12031 ac_need_defaults=false ;; 12032 12033 esac 12034 shift 12035done 12036 12037ac_configure_extra_args= 12038 12039if $ac_cs_silent; then 12040 exec 6>/dev/null 12041 ac_configure_extra_args="$ac_configure_extra_args --silent" 12042fi 12043 12044_ACEOF 12045cat >>$CONFIG_STATUS <<_ACEOF 12046if \$ac_cs_recheck; then 12047 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12048 CONFIG_SHELL=$SHELL 12049 export CONFIG_SHELL 12050 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12051fi 12052 12053_ACEOF 12054cat >>$CONFIG_STATUS <<\_ACEOF 12055exec 5>>config.log 12056{ 12057 echo 12058 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12059## Running $as_me. ## 12060_ASBOX 12061 echo "$ac_log" 12062} >&5 12063 12064_ACEOF 12065cat >>$CONFIG_STATUS <<_ACEOF 12066_ACEOF 12067 12068cat >>$CONFIG_STATUS <<\_ACEOF 12069 12070# Handling of arguments. 12071for ac_config_target in $ac_config_targets 12072do 12073 case $ac_config_target in 12074 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12075 12076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12077echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12078 { (exit 1); exit 1; }; };; 12079 esac 12080done 12081 12082 12083# If the user did not use the arguments to specify the items to instantiate, 12084# then the envvar interface is used. Set only those that are not. 12085# We use the long form for the default assignment because of an extremely 12086# bizarre bug on SunOS 4.1.3. 12087if $ac_need_defaults; then 12088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12089fi 12090 12091# Have a temporary directory for convenience. Make it in the build tree 12092# simply because there is no reason against having it here, and in addition, 12093# creating and moving files from /tmp can sometimes cause problems. 12094# Hook for its removal unless debugging. 12095# Note that there is a small window in which the directory will not be cleaned: 12096# after its creation but before its name has been assigned to `$tmp'. 12097$debug || 12098{ 12099 tmp= 12100 trap 'exit_status=$? 12101 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12102' 0 12103 trap '{ (exit 1); exit 1; }' 1 2 13 15 12104} 12105# Create a (secure) tmp directory for tmp files. 12106 12107{ 12108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12109 test -n "$tmp" && test -d "$tmp" 12110} || 12111{ 12112 tmp=./conf$$-$RANDOM 12113 (umask 077 && mkdir "$tmp") 12114} || 12115{ 12116 echo "$me: cannot create a temporary directory in ." >&2 12117 { (exit 1); exit 1; } 12118} 12119 12120# 12121# Set up the sed scripts for CONFIG_FILES section. 12122# 12123 12124# No need to generate the scripts if there are no CONFIG_FILES. 12125# This happens for instance when ./config.status config.h 12126if test -n "$CONFIG_FILES"; then 12127 12128_ACEOF 12129 12130 12131 12132ac_delim='%!_!# ' 12133for ac_last_try in false false false false false :; do 12134 cat >conf$$subs.sed <<_ACEOF 12135SHELL!$SHELL$ac_delim 12136PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12137PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12138PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12139PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12140PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12141PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12142exec_prefix!$exec_prefix$ac_delim 12143prefix!$prefix$ac_delim 12144program_transform_name!$program_transform_name$ac_delim 12145bindir!$bindir$ac_delim 12146sbindir!$sbindir$ac_delim 12147libexecdir!$libexecdir$ac_delim 12148datarootdir!$datarootdir$ac_delim 12149datadir!$datadir$ac_delim 12150sysconfdir!$sysconfdir$ac_delim 12151sharedstatedir!$sharedstatedir$ac_delim 12152localstatedir!$localstatedir$ac_delim 12153includedir!$includedir$ac_delim 12154oldincludedir!$oldincludedir$ac_delim 12155docdir!$docdir$ac_delim 12156infodir!$infodir$ac_delim 12157htmldir!$htmldir$ac_delim 12158dvidir!$dvidir$ac_delim 12159pdfdir!$pdfdir$ac_delim 12160psdir!$psdir$ac_delim 12161libdir!$libdir$ac_delim 12162localedir!$localedir$ac_delim 12163mandir!$mandir$ac_delim 12164DEFS!$DEFS$ac_delim 12165ECHO_C!$ECHO_C$ac_delim 12166ECHO_N!$ECHO_N$ac_delim 12167ECHO_T!$ECHO_T$ac_delim 12168LIBS!$LIBS$ac_delim 12169build_alias!$build_alias$ac_delim 12170host_alias!$host_alias$ac_delim 12171target_alias!$target_alias$ac_delim 12172CYGPATH!$CYGPATH$ac_delim 12173EXEEXT!$EXEEXT$ac_delim 12174PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 12175PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 12176PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 12177PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 12178PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 12179PKG_HEADERS!$PKG_HEADERS$ac_delim 12180PKG_INCLUDES!$PKG_INCLUDES$ac_delim 12181PKG_LIBS!$PKG_LIBS$ac_delim 12182PKG_CFLAGS!$PKG_CFLAGS$ac_delim 12183PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 12184TCL_VERSION!$TCL_VERSION$ac_delim 12185TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 12186TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 12187TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 12188TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 12189TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 12190TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 12191TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 12192TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 12193TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 12194CLEANFILES!$CLEANFILES$ac_delim 12195TCL_LIBS!$TCL_LIBS$ac_delim 12196TCL_DEFS!$TCL_DEFS$ac_delim 12197TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 12198TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 12199TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 12200TK_VERSION!$TK_VERSION$ac_delim 12201TK_BIN_DIR!$TK_BIN_DIR$ac_delim 12202TK_SRC_DIR!$TK_SRC_DIR$ac_delim 12203TK_LIB_FILE!$TK_LIB_FILE$ac_delim 12204TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 12205TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 12206TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 12207TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 12208TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 12209TK_LIBS!$TK_LIBS$ac_delim 12210TK_XINCLUDES!$TK_XINCLUDES$ac_delim 12211CC!$CC$ac_delim 12212CFLAGS!$CFLAGS$ac_delim 12213LDFLAGS!$LDFLAGS$ac_delim 12214CPPFLAGS!$CPPFLAGS$ac_delim 12215ac_ct_CC!$ac_ct_CC$ac_delim 12216OBJEXT!$OBJEXT$ac_delim 12217CPP!$CPP$ac_delim 12218INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12219INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12220INSTALL_DATA!$INSTALL_DATA$ac_delim 12221SET_MAKE!$SET_MAKE$ac_delim 12222RANLIB!$RANLIB$ac_delim 12223GREP!$GREP$ac_delim 12224EGREP!$EGREP$ac_delim 12225MATH_LIBS!$MATH_LIBS$ac_delim 12226tkimg_VERSION!$tkimg_VERSION$ac_delim 12227tkimg_BIN_DIR!$tkimg_BIN_DIR$ac_delim 12228tkimg_SRC_DIR!$tkimg_SRC_DIR$ac_delim 12229tkimg_LIB_FILE!$tkimg_LIB_FILE$ac_delim 12230tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 12231tkimg_STUB_LIB_FILE!$tkimg_STUB_LIB_FILE$ac_delim 12232_ACEOF 12233 12234 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12235 break 12236 elif $ac_last_try; then 12237 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12238echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12239 { (exit 1); exit 1; }; } 12240 else 12241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12242 fi 12243done 12244 12245ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12246if test -n "$ac_eof"; then 12247 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12248 ac_eof=`expr $ac_eof + 1` 12249fi 12250 12251cat >>$CONFIG_STATUS <<_ACEOF 12252cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12254_ACEOF 12255sed ' 12256s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12257s/^/s,@/; s/!/@,|#_!!_#|/ 12258:n 12259t n 12260s/'"$ac_delim"'$/,g/; t 12261s/$/\\/; p 12262N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12263' >>$CONFIG_STATUS <conf$$subs.sed 12264rm -f conf$$subs.sed 12265cat >>$CONFIG_STATUS <<_ACEOF 12266CEOF$ac_eof 12267_ACEOF 12268 12269 12270ac_delim='%!_!# ' 12271for ac_last_try in false false false false false :; do 12272 cat >conf$$subs.sed <<_ACEOF 12273tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 12274tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 12275tkimg_SRC_PATH!$tkimg_SRC_PATH$ac_delim 12276tkimg_BUILD_PATH!$tkimg_BUILD_PATH$ac_delim 12277PKG_SOURCES!$PKG_SOURCES$ac_delim 12278PKG_OBJECTS!$PKG_OBJECTS$ac_delim 12279TCL_INCLUDES!$TCL_INCLUDES$ac_delim 12280TK_INCLUDES!$TK_INCLUDES$ac_delim 12281TCL_THREADS!$TCL_THREADS$ac_delim 12282SHARED_BUILD!$SHARED_BUILD$ac_delim 12283AR!$AR$ac_delim 12284CELIB_DIR!$CELIB_DIR$ac_delim 12285CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 12286CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 12287CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 12288STLIB_LD!$STLIB_LD$ac_delim 12289SHLIB_LD!$SHLIB_LD$ac_delim 12290SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 12291SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 12292LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 12293CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 12294LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 12295TCL_DBGX!$TCL_DBGX$ac_delim 12296XMKMF!$XMKMF$ac_delim 12297MAKE_LIB!$MAKE_LIB$ac_delim 12298MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 12299MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 12300MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 12301RANLIB_STUB!$RANLIB_STUB$ac_delim 12302VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 12303VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 12304TCLSH_PROG!$TCLSH_PROG$ac_delim 12305WISH_PROG!$WISH_PROG$ac_delim 12306LIBOBJS!$LIBOBJS$ac_delim 12307LTLIBOBJS!$LTLIBOBJS$ac_delim 12308_ACEOF 12309 12310 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then 12311 break 12312 elif $ac_last_try; then 12313 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12314echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12315 { (exit 1); exit 1; }; } 12316 else 12317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12318 fi 12319done 12320 12321ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12322if test -n "$ac_eof"; then 12323 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12324 ac_eof=`expr $ac_eof + 1` 12325fi 12326 12327cat >>$CONFIG_STATUS <<_ACEOF 12328cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12330_ACEOF 12331sed ' 12332s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12333s/^/s,@/; s/!/@,|#_!!_#|/ 12334:n 12335t n 12336s/'"$ac_delim"'$/,g/; t 12337s/$/\\/; p 12338N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12339' >>$CONFIG_STATUS <conf$$subs.sed 12340rm -f conf$$subs.sed 12341cat >>$CONFIG_STATUS <<_ACEOF 12342:end 12343s/|#_!!_#|//g 12344CEOF$ac_eof 12345_ACEOF 12346 12347 12348# VPATH may cause trouble with some makes, so we remove $(srcdir), 12349# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12350# trailing colons and then remove the whole line if VPATH becomes empty 12351# (actually we leave an empty line to preserve line numbers). 12352if test "x$srcdir" = x.; then 12353 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12354s/:*\$(srcdir):*/:/ 12355s/:*\${srcdir}:*/:/ 12356s/:*@srcdir@:*/:/ 12357s/^\([^=]*=[ ]*\):*/\1/ 12358s/:*$// 12359s/^[^=]*=[ ]*$// 12360}' 12361fi 12362 12363cat >>$CONFIG_STATUS <<\_ACEOF 12364fi # test -n "$CONFIG_FILES" 12365 12366 12367for ac_tag in :F $CONFIG_FILES 12368do 12369 case $ac_tag in 12370 :[FHLC]) ac_mode=$ac_tag; continue;; 12371 esac 12372 case $ac_mode$ac_tag in 12373 :[FHL]*:*);; 12374 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12375echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12376 { (exit 1); exit 1; }; };; 12377 :[FH]-) ac_tag=-:-;; 12378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12379 esac 12380 ac_save_IFS=$IFS 12381 IFS=: 12382 set x $ac_tag 12383 IFS=$ac_save_IFS 12384 shift 12385 ac_file=$1 12386 shift 12387 12388 case $ac_mode in 12389 :L) ac_source=$1;; 12390 :[FH]) 12391 ac_file_inputs= 12392 for ac_f 12393 do 12394 case $ac_f in 12395 -) ac_f="$tmp/stdin";; 12396 *) # Look for the file first in the build tree, then in the source tree 12397 # (if the path is not absolute). The absolute path cannot be DOS-style, 12398 # because $ac_f cannot contain `:'. 12399 test -f "$ac_f" || 12400 case $ac_f in 12401 [\\/$]*) false;; 12402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12403 esac || 12404 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12405echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12406 { (exit 1); exit 1; }; };; 12407 esac 12408 ac_file_inputs="$ac_file_inputs $ac_f" 12409 done 12410 12411 # Let's still pretend it is `configure' which instantiates (i.e., don't 12412 # use $as_me), people would be surprised to read: 12413 # /* config.h. Generated by config.status. */ 12414 configure_input="Generated from "`IFS=: 12415 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12416 if test x"$ac_file" != x-; then 12417 configure_input="$ac_file. $configure_input" 12418 { echo "$as_me:$LINENO: creating $ac_file" >&5 12419echo "$as_me: creating $ac_file" >&6;} 12420 fi 12421 12422 case $ac_tag in 12423 *:-:* | *:-) cat >"$tmp/stdin";; 12424 esac 12425 ;; 12426 esac 12427 12428 ac_dir=`$as_dirname -- "$ac_file" || 12429$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12430 X"$ac_file" : 'X\(//\)[^/]' \| \ 12431 X"$ac_file" : 'X\(//\)$' \| \ 12432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12433echo X"$ac_file" | 12434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12435 s//\1/ 12436 q 12437 } 12438 /^X\(\/\/\)[^/].*/{ 12439 s//\1/ 12440 q 12441 } 12442 /^X\(\/\/\)$/{ 12443 s//\1/ 12444 q 12445 } 12446 /^X\(\/\).*/{ 12447 s//\1/ 12448 q 12449 } 12450 s/.*/./; q'` 12451 { as_dir="$ac_dir" 12452 case $as_dir in #( 12453 -*) as_dir=./$as_dir;; 12454 esac 12455 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12456 as_dirs= 12457 while :; do 12458 case $as_dir in #( 12459 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12460 *) as_qdir=$as_dir;; 12461 esac 12462 as_dirs="'$as_qdir' $as_dirs" 12463 as_dir=`$as_dirname -- "$as_dir" || 12464$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12465 X"$as_dir" : 'X\(//\)[^/]' \| \ 12466 X"$as_dir" : 'X\(//\)$' \| \ 12467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12468echo X"$as_dir" | 12469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12470 s//\1/ 12471 q 12472 } 12473 /^X\(\/\/\)[^/].*/{ 12474 s//\1/ 12475 q 12476 } 12477 /^X\(\/\/\)$/{ 12478 s//\1/ 12479 q 12480 } 12481 /^X\(\/\).*/{ 12482 s//\1/ 12483 q 12484 } 12485 s/.*/./; q'` 12486 test -d "$as_dir" && break 12487 done 12488 test -z "$as_dirs" || eval "mkdir $as_dirs" 12489 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12490echo "$as_me: error: cannot create directory $as_dir" >&2;} 12491 { (exit 1); exit 1; }; }; } 12492 ac_builddir=. 12493 12494case "$ac_dir" in 12495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12496*) 12497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12498 # A ".." for each directory in $ac_dir_suffix. 12499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12500 case $ac_top_builddir_sub in 12501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12503 esac ;; 12504esac 12505ac_abs_top_builddir=$ac_pwd 12506ac_abs_builddir=$ac_pwd$ac_dir_suffix 12507# for backward compatibility: 12508ac_top_builddir=$ac_top_build_prefix 12509 12510case $srcdir in 12511 .) # We are building in place. 12512 ac_srcdir=. 12513 ac_top_srcdir=$ac_top_builddir_sub 12514 ac_abs_top_srcdir=$ac_pwd ;; 12515 [\\/]* | ?:[\\/]* ) # Absolute name. 12516 ac_srcdir=$srcdir$ac_dir_suffix; 12517 ac_top_srcdir=$srcdir 12518 ac_abs_top_srcdir=$srcdir ;; 12519 *) # Relative name. 12520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12521 ac_top_srcdir=$ac_top_build_prefix$srcdir 12522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12523esac 12524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12525 12526 12527 case $ac_mode in 12528 :F) 12529 # 12530 # CONFIG_FILE 12531 # 12532 12533 case $INSTALL in 12534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12535 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12536 esac 12537_ACEOF 12538 12539cat >>$CONFIG_STATUS <<\_ACEOF 12540# If the template does not know about datarootdir, expand it. 12541# FIXME: This hack should be removed a few years after 2.60. 12542ac_datarootdir_hack=; ac_datarootdir_seen= 12543 12544case `sed -n '/datarootdir/ { 12545 p 12546 q 12547} 12548/@datadir@/p 12549/@docdir@/p 12550/@infodir@/p 12551/@localedir@/p 12552/@mandir@/p 12553' $ac_file_inputs` in 12554*datarootdir*) ac_datarootdir_seen=yes;; 12555*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12556 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12557echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12558_ACEOF 12559cat >>$CONFIG_STATUS <<_ACEOF 12560 ac_datarootdir_hack=' 12561 s&@datadir@&$datadir&g 12562 s&@docdir@&$docdir&g 12563 s&@infodir@&$infodir&g 12564 s&@localedir@&$localedir&g 12565 s&@mandir@&$mandir&g 12566 s&\\\${datarootdir}&$datarootdir&g' ;; 12567esac 12568_ACEOF 12569 12570# Neutralize VPATH when `$srcdir' = `.'. 12571# Shell code in configure.ac might set extrasub. 12572# FIXME: do we really want to maintain this feature? 12573cat >>$CONFIG_STATUS <<_ACEOF 12574 sed "$ac_vpsub 12575$extrasub 12576_ACEOF 12577cat >>$CONFIG_STATUS <<\_ACEOF 12578:t 12579/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12580s&@configure_input@&$configure_input&;t t 12581s&@top_builddir@&$ac_top_builddir_sub&;t t 12582s&@srcdir@&$ac_srcdir&;t t 12583s&@abs_srcdir@&$ac_abs_srcdir&;t t 12584s&@top_srcdir@&$ac_top_srcdir&;t t 12585s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12586s&@builddir@&$ac_builddir&;t t 12587s&@abs_builddir@&$ac_abs_builddir&;t t 12588s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12589s&@INSTALL@&$ac_INSTALL&;t t 12590$ac_datarootdir_hack 12591" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12592 12593test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12596 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12597which seems to be undefined. Please make sure it is defined." >&5 12598echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12599which seems to be undefined. Please make sure it is defined." >&2;} 12600 12601 rm -f "$tmp/stdin" 12602 case $ac_file in 12603 -) cat "$tmp/out"; rm -f "$tmp/out";; 12604 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12605 esac 12606 ;; 12607 12608 12609 12610 esac 12611 12612done # for ac_tag 12613 12614 12615{ (exit 0); exit 0; } 12616_ACEOF 12617chmod +x $CONFIG_STATUS 12618ac_clean_files=$ac_clean_files_save 12619 12620 12621# configure is writing to config.log, and then calls config.status. 12622# config.status does its own redirection, appending to config.log. 12623# Unfortunately, on DOS this fails, as config.log is still kept open 12624# by configure, so config.status won't be able to write to it; its 12625# output is simply discarded. So we exec the FD to /dev/null, 12626# effectively closing config.log, so it can be properly (re)opened and 12627# appended to by config.status. When coming back to configure, we 12628# need to make the FD available again. 12629if test "$no_create" != yes; then 12630 ac_cs_success=: 12631 ac_config_status_args= 12632 test "$silent" = yes && 12633 ac_config_status_args="$ac_config_status_args --quiet" 12634 exec 5>/dev/null 12635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12636 exec 5>>config.log 12637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12638 # would make configure fail if this is the last instruction. 12639 $ac_cs_success || { (exit 1); exit 1; } 12640fi 12641 12642 12643#-------------------------------------------------------------------- 12644