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 tkimgdted 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='tkimgdted' 575PACKAGE_TARNAME='tkimgdted' 576PACKAGE_VERSION='1.4' 577PACKAGE_STRING='tkimgdted 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 tkimgdted 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/tkimgdted] 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 tkimgdted 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 1427tkimgdted 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 tkimgdted $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="dted" 1938CPACKAGE="Tkimgdted" 1939PACKAGE_TCLNAME="img::dted" 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="dted.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 7221if test "${TEA_PLATFORM}" = "windows" ; then 7222 7223 vars="" 7224 for i in $vars; do 7225 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7226 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7227 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7228 fi 7229 PKG_LIBS="$PKG_LIBS $i" 7230 done 7231 7232 7233else 7234 7235 vars="${MATH_LIBS}" 7236 for i in $vars; do 7237 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7238 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7239 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7240 fi 7241 PKG_LIBS="$PKG_LIBS $i" 7242 done 7243 7244 7245fi 7246 7247 7248 PKG_CFLAGS="$PKG_CFLAGS " 7249 7250 7251 7252 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\"" 7253 7254 7255 7256 vars="" 7257 for i in $vars; do 7258 # check for existence - allows for generic/win/unix VPATH 7259 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7260 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7261 -a ! -f "${srcdir}/macosx/$i" \ 7262 ; then 7263 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 7264echo "$as_me: error: could not find stub source file '$i'" >&2;} 7265 { (exit 1); exit 1; }; } 7266 fi 7267 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 7268 # this assumes it is in a VPATH dir 7269 i=`basename $i` 7270 # handle user calling this before or after TEA_SETUP_COMPILER 7271 if test x"${OBJEXT}" != x ; then 7272 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7273 else 7274 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7275 fi 7276 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 7277 done 7278 7279 7280 7281 7282 vars="" 7283 for i in $vars; do 7284 # check for existence, be strict because it is installed 7285 if test ! -f "${srcdir}/$i" ; then 7286 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 7287echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 7288 { (exit 1); exit 1; }; } 7289 fi 7290 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 7291 done 7292 7293 7294 7295PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`" 7296 7297sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \ 7298 -e "s/@CPACKAGE@/${CPACKAGE}/" \ 7299 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \ 7300 -e "s/%PACKAGE_UP%/${PUP}/" \ 7301 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/" 7302 7303# init.c is an included source file, not a source by itself 7304# FUTURE: Do this through AC_OUTPUT!! 7305 7306#-------------------------------------------------------------------- 7307# __CHANGE__ 7308# Choose which headers you need. Extension authors should try very 7309# hard to only rely on the Tcl public header files. Internal headers 7310# contain private data structures and are subject to change without 7311# notice. 7312# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 7313#-------------------------------------------------------------------- 7314 7315 7316 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 7317echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 7318 7319 7320# Check whether --with-tclinclude was given. 7321if test "${with_tclinclude+set}" = set; then 7322 withval=$with_tclinclude; with_tclinclude=${withval} 7323fi 7324 7325 7326 if test "${ac_cv_c_tclh+set}" = set; then 7327 echo $ECHO_N "(cached) $ECHO_C" >&6 7328else 7329 7330 # Use the value from --with-tclinclude, if it was given 7331 7332 if test x"${with_tclinclude}" != x ; then 7333 if test -f "${with_tclinclude}/tcl.h" ; then 7334 ac_cv_c_tclh=${with_tclinclude} 7335 else 7336 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 7337echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 7338 { (exit 1); exit 1; }; } 7339 fi 7340 else 7341 list="" 7342 if test "`uname -s`" = "Darwin"; then 7343 # If Tcl was built as a framework, attempt to use 7344 # the framework's Headers directory 7345 case ${TCL_DEFS} in 7346 *TCL_FRAMEWORK*) 7347 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 7348 ;; 7349 esac 7350 fi 7351 7352 # Look in the source dir only if Tcl is not installed, 7353 # and in that situation, look there before installed locations. 7354 if test -f "${TCL_BIN_DIR}/Makefile" ; then 7355 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 7356 fi 7357 7358 # Check order: pkg --prefix location, Tcl's --prefix location, 7359 # relative to directory of tclConfig.sh. 7360 7361 eval "temp_includedir=${includedir}" 7362 list="$list \ 7363 `ls -d ${temp_includedir} 2>/dev/null` \ 7364 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7365 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7366 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7367 list="$list /usr/local/include /usr/include" 7368 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7369 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7370 list="$list `ls -d ${d} 2>/dev/null`" 7371 fi 7372 fi 7373 for i in $list ; do 7374 if test -f "$i/tcl.h" ; then 7375 ac_cv_c_tclh=$i 7376 break 7377 fi 7378 done 7379 fi 7380 7381fi 7382 7383 7384 # Print a message based on how we determined the include path 7385 7386 if test x"${ac_cv_c_tclh}" = x ; then 7387 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7388echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7389 { (exit 1); exit 1; }; } 7390 else 7391 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7392echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7393 fi 7394 7395 # Convert to a native path and substitute into the output files. 7396 7397 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7398 7399 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7400 7401 7402 7403 7404 { echo "$as_me:$LINENO: checking for Tk public headers" >&5 7405echo $ECHO_N "checking for Tk public headers... $ECHO_C" >&6; } 7406 7407 7408# Check whether --with-tkinclude was given. 7409if test "${with_tkinclude+set}" = set; then 7410 withval=$with_tkinclude; with_tkinclude=${withval} 7411fi 7412 7413 7414 if test "${ac_cv_c_tkh+set}" = set; then 7415 echo $ECHO_N "(cached) $ECHO_C" >&6 7416else 7417 7418 # Use the value from --with-tkinclude, if it was given 7419 7420 if test x"${with_tkinclude}" != x ; then 7421 if test -f "${with_tkinclude}/tk.h" ; then 7422 ac_cv_c_tkh=${with_tkinclude} 7423 else 7424 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory does not contain tk.h" >&5 7425echo "$as_me: error: ${with_tkinclude} directory does not contain tk.h" >&2;} 7426 { (exit 1); exit 1; }; } 7427 fi 7428 else 7429 list="" 7430 if test "`uname -s`" = "Darwin"; then 7431 # If Tk was built as a framework, attempt to use 7432 # the framework's Headers directory. 7433 case ${TK_DEFS} in 7434 *TK_FRAMEWORK*) 7435 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`" 7436 ;; 7437 esac 7438 fi 7439 7440 # Look in the source dir only if Tk is not installed, 7441 # and in that situation, look there before installed locations. 7442 if test -f "${TK_BIN_DIR}/Makefile" ; then 7443 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`" 7444 fi 7445 7446 # Check order: pkg --prefix location, Tk's --prefix location, 7447 # relative to directory of tkConfig.sh, Tcl's --prefix location, 7448 # relative to directory of tclConfig.sh. 7449 7450 eval "temp_includedir=${includedir}" 7451 list="$list \ 7452 `ls -d ${temp_includedir} 2>/dev/null` \ 7453 `ls -d ${TK_PREFIX}/include 2>/dev/null` \ 7454 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \ 7455 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7456 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7457 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7458 list="$list /usr/local/include /usr/include" 7459 if test x"${TK_INCLUDE_SPEC}" != x ; then 7460 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7461 list="$list `ls -d ${d} 2>/dev/null`" 7462 fi 7463 fi 7464 for i in $list ; do 7465 if test -f "$i/tk.h" ; then 7466 ac_cv_c_tkh=$i 7467 break 7468 fi 7469 done 7470 fi 7471 7472fi 7473 7474 7475 # Print a message based on how we determined the include path 7476 7477 if test x"${ac_cv_c_tkh}" = x ; then 7478 { { echo "$as_me:$LINENO: error: tk.h not found. Please specify its location with --with-tkinclude" >&5 7479echo "$as_me: error: tk.h not found. Please specify its location with --with-tkinclude" >&2;} 7480 { (exit 1); exit 1; }; } 7481 else 7482 { echo "$as_me:$LINENO: result: ${ac_cv_c_tkh}" >&5 7483echo "${ECHO_T}${ac_cv_c_tkh}" >&6; } 7484 fi 7485 7486 # Convert to a native path and substitute into the output files. 7487 7488 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}` 7489 7490 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7491 7492 7493 7494 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then 7495 # On Windows and Aqua, we need the X compat headers 7496 { echo "$as_me:$LINENO: checking for X11 header files" >&5 7497echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 7498 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then 7499 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`" 7500 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7501 7502 fi 7503 { echo "$as_me:$LINENO: result: ${INCLUDE_DIR_NATIVE}" >&5 7504echo "${ECHO_T}${INCLUDE_DIR_NATIVE}" >&6; } 7505 fi 7506 7507 7508#-------------------------------------------------------------------- 7509# A few miscellaneous platform-specific items: 7510# 7511# Windows creates a few extra files that need to be cleaned up. 7512# We can add more files to clean if our extension creates any extra 7513# files in the future. 7514# 7515# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 7516# These will be appended to the current set of compiler flags for 7517# your system. 7518#-------------------------------------------------------------------- 7519 7520if test "${TEA_PLATFORM}" = "windows" ; then 7521 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch init.c" 7522else 7523 CLEANFILES="init.c" 7524fi 7525 7526 7527#-------------------------------------------------------------------- 7528# Check whether --enable-threads or --disable-threads was given. 7529# So far only Tcl responds to this one. 7530#-------------------------------------------------------------------- 7531 7532 7533 # Check whether --enable-threads was given. 7534if test "${enable_threads+set}" = set; then 7535 enableval=$enable_threads; tcl_ok=$enableval 7536else 7537 tcl_ok=yes 7538fi 7539 7540 7541 if test "${enable_threads+set}" = set; then 7542 enableval="$enable_threads" 7543 tcl_ok=$enableval 7544 else 7545 tcl_ok=yes 7546 fi 7547 7548 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7549 TCL_THREADS=1 7550 7551 if test "${TEA_PLATFORM}" != "windows" ; then 7552 # We are always OK on Windows, so check what this platform wants: 7553 7554 # USE_THREAD_ALLOC tells us to try the special thread-based 7555 # allocator that significantly reduces lock contention 7556 7557cat >>confdefs.h <<\_ACEOF 7558#define USE_THREAD_ALLOC 1 7559_ACEOF 7560 7561 7562cat >>confdefs.h <<\_ACEOF 7563#define _REENTRANT 1 7564_ACEOF 7565 7566 if test "`uname -s`" = "SunOS" ; then 7567 7568cat >>confdefs.h <<\_ACEOF 7569#define _POSIX_PTHREAD_SEMANTICS 1 7570_ACEOF 7571 7572 fi 7573 7574cat >>confdefs.h <<\_ACEOF 7575#define _THREAD_SAFE 1 7576_ACEOF 7577 7578 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7579echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7580if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7581 echo $ECHO_N "(cached) $ECHO_C" >&6 7582else 7583 ac_check_lib_save_LIBS=$LIBS 7584LIBS="-lpthread $LIBS" 7585cat >conftest.$ac_ext <<_ACEOF 7586/* confdefs.h. */ 7587_ACEOF 7588cat confdefs.h >>conftest.$ac_ext 7589cat >>conftest.$ac_ext <<_ACEOF 7590/* end confdefs.h. */ 7591 7592/* Override any GCC internal prototype to avoid an error. 7593 Use char because int might match the return type of a GCC 7594 builtin and then its argument prototype would still apply. */ 7595#ifdef __cplusplus 7596extern "C" 7597#endif 7598char pthread_mutex_init (); 7599int 7600main () 7601{ 7602return pthread_mutex_init (); 7603 ; 7604 return 0; 7605} 7606_ACEOF 7607rm -f conftest.$ac_objext conftest$ac_exeext 7608if { (ac_try="$ac_link" 7609case "(($ac_try" in 7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7611 *) ac_try_echo=$ac_try;; 7612esac 7613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7614 (eval "$ac_link") 2>conftest.er1 7615 ac_status=$? 7616 grep -v '^ *+' conftest.er1 >conftest.err 7617 rm -f conftest.er1 7618 cat conftest.err >&5 7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7620 (exit $ac_status); } && { 7621 test -z "$ac_c_werror_flag" || 7622 test ! -s conftest.err 7623 } && test -s conftest$ac_exeext && 7624 $as_test_x conftest$ac_exeext; then 7625 ac_cv_lib_pthread_pthread_mutex_init=yes 7626else 7627 echo "$as_me: failed program was:" >&5 7628sed 's/^/| /' conftest.$ac_ext >&5 7629 7630 ac_cv_lib_pthread_pthread_mutex_init=no 7631fi 7632 7633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7634 conftest$ac_exeext conftest.$ac_ext 7635LIBS=$ac_check_lib_save_LIBS 7636fi 7637{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7638echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7639if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7640 tcl_ok=yes 7641else 7642 tcl_ok=no 7643fi 7644 7645 if test "$tcl_ok" = "no"; then 7646 # Check a little harder for __pthread_mutex_init in the same 7647 # library, as some systems hide it there until pthread.h is 7648 # defined. We could alternatively do an AC_TRY_COMPILE with 7649 # pthread.h, but that will work with libpthread really doesn't 7650 # exist, like AIX 4.2. [Bug: 4359] 7651 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7652echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7653if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7654 echo $ECHO_N "(cached) $ECHO_C" >&6 7655else 7656 ac_check_lib_save_LIBS=$LIBS 7657LIBS="-lpthread $LIBS" 7658cat >conftest.$ac_ext <<_ACEOF 7659/* confdefs.h. */ 7660_ACEOF 7661cat confdefs.h >>conftest.$ac_ext 7662cat >>conftest.$ac_ext <<_ACEOF 7663/* end confdefs.h. */ 7664 7665/* Override any GCC internal prototype to avoid an error. 7666 Use char because int might match the return type of a GCC 7667 builtin and then its argument prototype would still apply. */ 7668#ifdef __cplusplus 7669extern "C" 7670#endif 7671char __pthread_mutex_init (); 7672int 7673main () 7674{ 7675return __pthread_mutex_init (); 7676 ; 7677 return 0; 7678} 7679_ACEOF 7680rm -f conftest.$ac_objext conftest$ac_exeext 7681if { (ac_try="$ac_link" 7682case "(($ac_try" in 7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7684 *) ac_try_echo=$ac_try;; 7685esac 7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7687 (eval "$ac_link") 2>conftest.er1 7688 ac_status=$? 7689 grep -v '^ *+' conftest.er1 >conftest.err 7690 rm -f conftest.er1 7691 cat conftest.err >&5 7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 (exit $ac_status); } && { 7694 test -z "$ac_c_werror_flag" || 7695 test ! -s conftest.err 7696 } && test -s conftest$ac_exeext && 7697 $as_test_x conftest$ac_exeext; then 7698 ac_cv_lib_pthread___pthread_mutex_init=yes 7699else 7700 echo "$as_me: failed program was:" >&5 7701sed 's/^/| /' conftest.$ac_ext >&5 7702 7703 ac_cv_lib_pthread___pthread_mutex_init=no 7704fi 7705 7706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7707 conftest$ac_exeext conftest.$ac_ext 7708LIBS=$ac_check_lib_save_LIBS 7709fi 7710{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7711echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7712if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7713 tcl_ok=yes 7714else 7715 tcl_ok=no 7716fi 7717 7718 fi 7719 7720 if test "$tcl_ok" = "yes"; then 7721 # The space is needed 7722 THREADS_LIBS=" -lpthread" 7723 else 7724 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7725echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7726if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7727 echo $ECHO_N "(cached) $ECHO_C" >&6 7728else 7729 ac_check_lib_save_LIBS=$LIBS 7730LIBS="-lpthreads $LIBS" 7731cat >conftest.$ac_ext <<_ACEOF 7732/* confdefs.h. */ 7733_ACEOF 7734cat confdefs.h >>conftest.$ac_ext 7735cat >>conftest.$ac_ext <<_ACEOF 7736/* end confdefs.h. */ 7737 7738/* Override any GCC internal prototype to avoid an error. 7739 Use char because int might match the return type of a GCC 7740 builtin and then its argument prototype would still apply. */ 7741#ifdef __cplusplus 7742extern "C" 7743#endif 7744char pthread_mutex_init (); 7745int 7746main () 7747{ 7748return pthread_mutex_init (); 7749 ; 7750 return 0; 7751} 7752_ACEOF 7753rm -f conftest.$ac_objext conftest$ac_exeext 7754if { (ac_try="$ac_link" 7755case "(($ac_try" in 7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7757 *) ac_try_echo=$ac_try;; 7758esac 7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7760 (eval "$ac_link") 2>conftest.er1 7761 ac_status=$? 7762 grep -v '^ *+' conftest.er1 >conftest.err 7763 rm -f conftest.er1 7764 cat conftest.err >&5 7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7766 (exit $ac_status); } && { 7767 test -z "$ac_c_werror_flag" || 7768 test ! -s conftest.err 7769 } && test -s conftest$ac_exeext && 7770 $as_test_x conftest$ac_exeext; then 7771 ac_cv_lib_pthreads_pthread_mutex_init=yes 7772else 7773 echo "$as_me: failed program was:" >&5 7774sed 's/^/| /' conftest.$ac_ext >&5 7775 7776 ac_cv_lib_pthreads_pthread_mutex_init=no 7777fi 7778 7779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7780 conftest$ac_exeext conftest.$ac_ext 7781LIBS=$ac_check_lib_save_LIBS 7782fi 7783{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7784echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7785if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7786 tcl_ok=yes 7787else 7788 tcl_ok=no 7789fi 7790 7791 if test "$tcl_ok" = "yes"; then 7792 # The space is needed 7793 THREADS_LIBS=" -lpthreads" 7794 else 7795 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7796echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7797if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7798 echo $ECHO_N "(cached) $ECHO_C" >&6 7799else 7800 ac_check_lib_save_LIBS=$LIBS 7801LIBS="-lc $LIBS" 7802cat >conftest.$ac_ext <<_ACEOF 7803/* confdefs.h. */ 7804_ACEOF 7805cat confdefs.h >>conftest.$ac_ext 7806cat >>conftest.$ac_ext <<_ACEOF 7807/* end confdefs.h. */ 7808 7809/* Override any GCC internal prototype to avoid an error. 7810 Use char because int might match the return type of a GCC 7811 builtin and then its argument prototype would still apply. */ 7812#ifdef __cplusplus 7813extern "C" 7814#endif 7815char pthread_mutex_init (); 7816int 7817main () 7818{ 7819return pthread_mutex_init (); 7820 ; 7821 return 0; 7822} 7823_ACEOF 7824rm -f conftest.$ac_objext conftest$ac_exeext 7825if { (ac_try="$ac_link" 7826case "(($ac_try" in 7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7828 *) ac_try_echo=$ac_try;; 7829esac 7830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7831 (eval "$ac_link") 2>conftest.er1 7832 ac_status=$? 7833 grep -v '^ *+' conftest.er1 >conftest.err 7834 rm -f conftest.er1 7835 cat conftest.err >&5 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); } && { 7838 test -z "$ac_c_werror_flag" || 7839 test ! -s conftest.err 7840 } && test -s conftest$ac_exeext && 7841 $as_test_x conftest$ac_exeext; then 7842 ac_cv_lib_c_pthread_mutex_init=yes 7843else 7844 echo "$as_me: failed program was:" >&5 7845sed 's/^/| /' conftest.$ac_ext >&5 7846 7847 ac_cv_lib_c_pthread_mutex_init=no 7848fi 7849 7850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7851 conftest$ac_exeext conftest.$ac_ext 7852LIBS=$ac_check_lib_save_LIBS 7853fi 7854{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7855echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7856if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7857 tcl_ok=yes 7858else 7859 tcl_ok=no 7860fi 7861 7862 if test "$tcl_ok" = "no"; then 7863 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7864echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7865if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7866 echo $ECHO_N "(cached) $ECHO_C" >&6 7867else 7868 ac_check_lib_save_LIBS=$LIBS 7869LIBS="-lc_r $LIBS" 7870cat >conftest.$ac_ext <<_ACEOF 7871/* confdefs.h. */ 7872_ACEOF 7873cat confdefs.h >>conftest.$ac_ext 7874cat >>conftest.$ac_ext <<_ACEOF 7875/* end confdefs.h. */ 7876 7877/* Override any GCC internal prototype to avoid an error. 7878 Use char because int might match the return type of a GCC 7879 builtin and then its argument prototype would still apply. */ 7880#ifdef __cplusplus 7881extern "C" 7882#endif 7883char pthread_mutex_init (); 7884int 7885main () 7886{ 7887return pthread_mutex_init (); 7888 ; 7889 return 0; 7890} 7891_ACEOF 7892rm -f conftest.$ac_objext conftest$ac_exeext 7893if { (ac_try="$ac_link" 7894case "(($ac_try" in 7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7896 *) ac_try_echo=$ac_try;; 7897esac 7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7899 (eval "$ac_link") 2>conftest.er1 7900 ac_status=$? 7901 grep -v '^ *+' conftest.er1 >conftest.err 7902 rm -f conftest.er1 7903 cat conftest.err >&5 7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7905 (exit $ac_status); } && { 7906 test -z "$ac_c_werror_flag" || 7907 test ! -s conftest.err 7908 } && test -s conftest$ac_exeext && 7909 $as_test_x conftest$ac_exeext; then 7910 ac_cv_lib_c_r_pthread_mutex_init=yes 7911else 7912 echo "$as_me: failed program was:" >&5 7913sed 's/^/| /' conftest.$ac_ext >&5 7914 7915 ac_cv_lib_c_r_pthread_mutex_init=no 7916fi 7917 7918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7919 conftest$ac_exeext conftest.$ac_ext 7920LIBS=$ac_check_lib_save_LIBS 7921fi 7922{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7923echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7924if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7925 tcl_ok=yes 7926else 7927 tcl_ok=no 7928fi 7929 7930 if test "$tcl_ok" = "yes"; then 7931 # The space is needed 7932 THREADS_LIBS=" -pthread" 7933 else 7934 TCL_THREADS=0 7935 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7936echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7937 fi 7938 fi 7939 fi 7940 fi 7941 fi 7942 else 7943 TCL_THREADS=0 7944 fi 7945 # Do checking message here to not mess up interleaved configure output 7946 { echo "$as_me:$LINENO: checking for building with threads" >&5 7947echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7948 if test "${TCL_THREADS}" = 1; then 7949 7950cat >>confdefs.h <<\_ACEOF 7951#define TCL_THREADS 1 7952_ACEOF 7953 7954 { echo "$as_me:$LINENO: result: yes (default)" >&5 7955echo "${ECHO_T}yes (default)" >&6; } 7956 else 7957 { echo "$as_me:$LINENO: result: no" >&5 7958echo "${ECHO_T}no" >&6; } 7959 fi 7960 # TCL_THREADS sanity checking. See if our request for building with 7961 # threads is the same as the way Tcl was built. If not, warn the user. 7962 case ${TCL_DEFS} in 7963 *THREADS=1*) 7964 if test "${TCL_THREADS}" = "0"; then 7965 { echo "$as_me:$LINENO: WARNING: 7966 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7967 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7968echo "$as_me: WARNING: 7969 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7970 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7971 fi 7972 ;; 7973 *) 7974 if test "${TCL_THREADS}" = "1"; then 7975 { echo "$as_me:$LINENO: WARNING: 7976 --enable-threads requested, but building against a Tcl that is NOT 7977 thread-enabled. This is an OK configuration that will also run in 7978 a thread-enabled core." >&5 7979echo "$as_me: WARNING: 7980 --enable-threads requested, but building against a Tcl that is NOT 7981 thread-enabled. This is an OK configuration that will also run in 7982 a thread-enabled core." >&2;} 7983 fi 7984 ;; 7985 esac 7986 7987 7988 7989#-------------------------------------------------------------------- 7990# The statement below defines a collection of symbols related to 7991# building as a shared library instead of a static library. 7992#-------------------------------------------------------------------- 7993 7994 7995 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7996echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7997 # Check whether --enable-shared was given. 7998if test "${enable_shared+set}" = set; then 7999 enableval=$enable_shared; tcl_ok=$enableval 8000else 8001 tcl_ok=yes 8002fi 8003 8004 8005 if test "${enable_shared+set}" = set; then 8006 enableval="$enable_shared" 8007 tcl_ok=$enableval 8008 else 8009 tcl_ok=yes 8010 fi 8011 8012 if test "$tcl_ok" = "yes" ; then 8013 { echo "$as_me:$LINENO: result: shared" >&5 8014echo "${ECHO_T}shared" >&6; } 8015 SHARED_BUILD=1 8016 else 8017 { echo "$as_me:$LINENO: result: static" >&5 8018echo "${ECHO_T}static" >&6; } 8019 SHARED_BUILD=0 8020 8021cat >>confdefs.h <<\_ACEOF 8022#define STATIC_BUILD 1 8023_ACEOF 8024 8025 fi 8026 8027 8028 8029#-------------------------------------------------------------------- 8030# This macro figures out what flags to use with the compiler/linker 8031# when building shared/static debug/optimized objects. This information 8032# can be taken from the tclConfig.sh file, but this figures it all out. 8033#-------------------------------------------------------------------- 8034 8035 8036 8037 8038 # Step 0.a: Enable 64 bit support? 8039 8040 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 8041echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 8042 # Check whether --enable-64bit was given. 8043if test "${enable_64bit+set}" = set; then 8044 enableval=$enable_64bit; do64bit=$enableval 8045else 8046 do64bit=no 8047fi 8048 8049 { echo "$as_me:$LINENO: result: $do64bit" >&5 8050echo "${ECHO_T}$do64bit" >&6; } 8051 8052 # Step 0.b: Enable Solaris 64 bit VIS support? 8053 8054 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 8055echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 8056 # Check whether --enable-64bit-vis was given. 8057if test "${enable_64bit_vis+set}" = set; then 8058 enableval=$enable_64bit_vis; do64bitVIS=$enableval 8059else 8060 do64bitVIS=no 8061fi 8062 8063 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 8064echo "${ECHO_T}$do64bitVIS" >&6; } 8065 # Force 64bit on with VIS 8066 if test "$do64bitVIS" = "yes"; then 8067 do64bit=yes 8068fi 8069 8070 8071 # Step 0.c: Check if visibility support is available. Do this here so 8072 # that platform specific alternatives can be used below if this fails. 8073 8074 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 8075echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 8076if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 8077 echo $ECHO_N "(cached) $ECHO_C" >&6 8078else 8079 8080 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 8081 cat >conftest.$ac_ext <<_ACEOF 8082/* confdefs.h. */ 8083_ACEOF 8084cat confdefs.h >>conftest.$ac_ext 8085cat >>conftest.$ac_ext <<_ACEOF 8086/* end confdefs.h. */ 8087 8088 extern __attribute__((__visibility__("hidden"))) void f(void); 8089 void f(void) {} 8090int 8091main () 8092{ 8093f(); 8094 ; 8095 return 0; 8096} 8097_ACEOF 8098rm -f conftest.$ac_objext conftest$ac_exeext 8099if { (ac_try="$ac_link" 8100case "(($ac_try" in 8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8102 *) ac_try_echo=$ac_try;; 8103esac 8104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8105 (eval "$ac_link") 2>conftest.er1 8106 ac_status=$? 8107 grep -v '^ *+' conftest.er1 >conftest.err 8108 rm -f conftest.er1 8109 cat conftest.err >&5 8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8111 (exit $ac_status); } && { 8112 test -z "$ac_c_werror_flag" || 8113 test ! -s conftest.err 8114 } && test -s conftest$ac_exeext && 8115 $as_test_x conftest$ac_exeext; then 8116 tcl_cv_cc_visibility_hidden=yes 8117else 8118 echo "$as_me: failed program was:" >&5 8119sed 's/^/| /' conftest.$ac_ext >&5 8120 8121 tcl_cv_cc_visibility_hidden=no 8122fi 8123 8124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8125 conftest$ac_exeext conftest.$ac_ext 8126 CFLAGS=$hold_cflags 8127fi 8128{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 8129echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 8130 if test $tcl_cv_cc_visibility_hidden = yes; then 8131 8132 8133cat >>confdefs.h <<\_ACEOF 8134#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 8135_ACEOF 8136 8137 8138fi 8139 8140 8141 # Step 0.d: Disable -rpath support? 8142 8143 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 8144echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 8145 # Check whether --enable-rpath was given. 8146if test "${enable_rpath+set}" = set; then 8147 enableval=$enable_rpath; doRpath=$enableval 8148else 8149 doRpath=yes 8150fi 8151 8152 { echo "$as_me:$LINENO: result: $doRpath" >&5 8153echo "${ECHO_T}$doRpath" >&6; } 8154 8155 # TEA specific: Cross-compiling options for Windows/CE builds? 8156 8157 if test "${TEA_PLATFORM}" = windows; then 8158 8159 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 8160echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 8161 # Check whether --enable-wince was given. 8162if test "${enable_wince+set}" = set; then 8163 enableval=$enable_wince; doWince=$enableval 8164else 8165 doWince=no 8166fi 8167 8168 { echo "$as_me:$LINENO: result: $doWince" >&5 8169echo "${ECHO_T}$doWince" >&6; } 8170 8171fi 8172 8173 8174 # Set the variable "system" to hold the name and version number 8175 # for the system. 8176 8177 8178 { echo "$as_me:$LINENO: checking system version" >&5 8179echo $ECHO_N "checking system version... $ECHO_C" >&6; } 8180if test "${tcl_cv_sys_version+set}" = set; then 8181 echo $ECHO_N "(cached) $ECHO_C" >&6 8182else 8183 8184 # TEA specific: 8185 if test "${TEA_PLATFORM}" = "windows" ; then 8186 tcl_cv_sys_version=windows 8187 else 8188 tcl_cv_sys_version=`uname -s`-`uname -r` 8189 if test "$?" -ne 0 ; then 8190 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 8191echo "$as_me: WARNING: can't find uname command" >&2;} 8192 tcl_cv_sys_version=unknown 8193 else 8194 if test "`uname -s`" = "AIX" ; then 8195 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 8196 fi 8197 fi 8198 fi 8199 8200fi 8201{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 8202echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 8203 system=$tcl_cv_sys_version 8204 8205 8206 # Require ranlib early so we can override it in special cases below. 8207 8208 8209 8210 # Set configuration options based on system name and version. 8211 # This is similar to Tcl's unix/tcl.m4 except that we've added a 8212 # "windows" case and removed some core-only vars. 8213 8214 do64bit_ok=no 8215 # default to '{$LIBS}' and set to "" on per-platform necessary basis 8216 SHLIB_LD_LIBS='${LIBS}' 8217 # When ld needs options to work in 64-bit mode, put them in 8218 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 8219 # is disabled by the user. [Bug 1016796] 8220 LDFLAGS_ARCH="" 8221 UNSHARED_LIB_SUFFIX="" 8222 # TEA specific: use PACKAGE_VERSION instead of VERSION 8223 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 8224 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 8225 TCL_LIB_VERSIONS_OK=ok 8226 CFLAGS_DEBUG=-g 8227 CFLAGS_OPTIMIZE=-O 8228 if test "$GCC" = yes; then 8229 8230 # TEA specific: 8231 CFLAGS_OPTIMIZE=-O2 8232 CFLAGS_WARNING="-Wall" 8233 8234else 8235 CFLAGS_WARNING="" 8236fi 8237 8238 # Extract the first word of "ar", so it can be a program name with args. 8239set dummy ar; ac_word=$2 8240{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8242if test "${ac_cv_prog_AR+set}" = set; then 8243 echo $ECHO_N "(cached) $ECHO_C" >&6 8244else 8245 if test -n "$AR"; then 8246 ac_cv_prog_AR="$AR" # Let the user override the test. 8247else 8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8249for as_dir in $PATH 8250do 8251 IFS=$as_save_IFS 8252 test -z "$as_dir" && as_dir=. 8253 for ac_exec_ext in '' $ac_executable_extensions; do 8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8255 ac_cv_prog_AR="ar" 8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8257 break 2 8258 fi 8259done 8260done 8261IFS=$as_save_IFS 8262 8263fi 8264fi 8265AR=$ac_cv_prog_AR 8266if test -n "$AR"; then 8267 { echo "$as_me:$LINENO: result: $AR" >&5 8268echo "${ECHO_T}$AR" >&6; } 8269else 8270 { echo "$as_me:$LINENO: result: no" >&5 8271echo "${ECHO_T}no" >&6; } 8272fi 8273 8274 8275 STLIB_LD='${AR} cr' 8276 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 8277 if test "x$SHLIB_VERSION" = x; then 8278 SHLIB_VERSION="1.0" 8279fi 8280 8281 case $system in 8282 # TEA specific: 8283 windows) 8284 # This is a 2-stage check to make sure we have the 64-bit SDK 8285 # We have to know where the SDK is installed. 8286 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 8287 # MACHINE is IX86 for LINK, but this is used by the manifest, 8288 # which requires x86|amd64|ia64. 8289 MACHINE="X86" 8290 if test "$do64bit" != "no" ; then 8291 if test "x${MSSDK}x" = "xx" ; then 8292 MSSDK="C:/Progra~1/Microsoft Platform SDK" 8293 fi 8294 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 8295 PATH64="" 8296 case "$do64bit" in 8297 amd64|x64|yes) 8298 MACHINE="AMD64" ; # default to AMD64 64-bit build 8299 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 8300 ;; 8301 ia64) 8302 MACHINE="IA64" 8303 PATH64="${MSSDK}/Bin/Win64" 8304 ;; 8305 esac 8306 if test ! -d "${PATH64}" ; then 8307 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 8308echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 8309 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 8310echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 8311 do64bit="no" 8312 else 8313 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 8314echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 8315 do64bit_ok="yes" 8316 fi 8317 fi 8318 8319 if test "$doWince" != "no" ; then 8320 if test "$do64bit" != "no" ; then 8321 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 8322echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 8323 { (exit 1); exit 1; }; } 8324 fi 8325 if test "$GCC" = "yes" ; then 8326 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 8327echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 8328 { (exit 1); exit 1; }; } 8329 fi 8330 8331 # First, look for one uninstalled. 8332 # the alternative search directory is invoked by --with-celib 8333 8334 if test x"${no_celib}" = x ; then 8335 # we reset no_celib in case something fails here 8336 no_celib=true 8337 8338# Check whether --with-celib was given. 8339if test "${with_celib+set}" = set; then 8340 withval=$with_celib; with_celibconfig=${withval} 8341fi 8342 8343 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 8344echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 8345 if test "${ac_cv_c_celibconfig+set}" = set; then 8346 echo $ECHO_N "(cached) $ECHO_C" >&6 8347else 8348 8349 # First check to see if --with-celibconfig was specified. 8350 if test x"${with_celibconfig}" != x ; then 8351 if test -d "${with_celibconfig}/inc" ; then 8352 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 8353 else 8354 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 8355echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 8356 { (exit 1); exit 1; }; } 8357 fi 8358 fi 8359 8360 # then check for a celib library 8361 if test x"${ac_cv_c_celibconfig}" = x ; then 8362 for i in \ 8363 ../celib-palm-3.0 \ 8364 ../celib \ 8365 ../../celib-palm-3.0 \ 8366 ../../celib \ 8367 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 8368 ${srcdir}/../celib-palm-3.0 \ 8369 ${srcdir}/../celib \ 8370 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 8371 ; do 8372 if test -d "$i/inc" ; then 8373 ac_cv_c_celibconfig=`(cd $i; pwd)` 8374 break 8375 fi 8376 done 8377 fi 8378 8379fi 8380 8381 if test x"${ac_cv_c_celibconfig}" = x ; then 8382 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 8383echo "$as_me: error: Cannot find celib support library directory" >&2;} 8384 { (exit 1); exit 1; }; } 8385 else 8386 no_celib= 8387 CELIB_DIR=${ac_cv_c_celibconfig} 8388 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 8389 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 8390echo "${ECHO_T}found $CELIB_DIR" >&6; } 8391 fi 8392 fi 8393 8394 # Set defaults for common evc4/PPC2003 setup 8395 # Currently Tcl requires 300+, possibly 420+ for sockets 8396 CEVERSION=420; # could be 211 300 301 400 420 ... 8397 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 8398 ARCH=ARM; # could be ARM MIPS X86EM ... 8399 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 8400 if test "$doWince" != "yes"; then 8401 # If !yes then the user specified something 8402 # Reset ARCH to allow user to skip specifying it 8403 ARCH= 8404 eval `echo $doWince | awk -F, '{ \ 8405 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 8406 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 8407 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 8408 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 8409 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 8410 }'` 8411 if test "x${ARCH}" = "x" ; then 8412 ARCH=$TARGETCPU; 8413 fi 8414 fi 8415 OSVERSION=WCE$CEVERSION; 8416 if test "x${WCEROOT}" = "x" ; then 8417 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 8418 if test ! -d "${WCEROOT}" ; then 8419 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 8420 fi 8421 fi 8422 if test "x${SDKROOT}" = "x" ; then 8423 SDKROOT="C:/Program Files/Windows CE Tools" 8424 if test ! -d "${SDKROOT}" ; then 8425 SDKROOT="C:/Windows CE Tools" 8426 fi 8427 fi 8428 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 8429 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 8430 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 8431 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 8432 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 8433echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 8434 { (exit 1); exit 1; }; } 8435 doWince="no" 8436 else 8437 # We could PATH_NOSPACE these, but that's not important, 8438 # as long as we quote them when used. 8439 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 8440 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 8441 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 8442 fi 8443 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 8444 fi 8445 fi 8446 8447 if test "$GCC" != "yes" ; then 8448 if test "${SHARED_BUILD}" = "0" ; then 8449 runtime=-MT 8450 else 8451 runtime=-MD 8452 fi 8453 8454 if test "$do64bit" != "no" ; then 8455 # All this magic is necessary for the Win64 SDK RC1 - hobbs 8456 CC="\"${PATH64}/cl.exe\"" 8457 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 8458 RC="\"${MSSDK}/bin/rc.exe\"" 8459 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 8460 LINKBIN="\"${PATH64}/link.exe\"" 8461 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 8462 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8463 # Avoid 'unresolved external symbol __security_cookie' 8464 # errors, c.f. http://support.microsoft.com/?id=894573 8465 8466 vars="bufferoverflowU.lib" 8467 for i in $vars; do 8468 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 8469 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 8470 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 8471 fi 8472 PKG_LIBS="$PKG_LIBS $i" 8473 done 8474 8475 8476 elif test "$doWince" != "no" ; then 8477 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 8478 if test "${TARGETCPU}" = "X86"; then 8479 CC="\"${CEBINROOT}/cl.exe\"" 8480 else 8481 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 8482 fi 8483 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 8484 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8485 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8486 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8487 if test "${SHARED_BUILD}" = "1" ; then 8488 # Static CE builds require static celib as well 8489 defs="${defs} _DLL" 8490 fi 8491 for i in $defs ; do 8492 8493cat >>confdefs.h <<_ACEOF 8494#define $i 1 8495_ACEOF 8496 8497 done 8498 8499cat >>confdefs.h <<_ACEOF 8500#define _WIN32_WCE $CEVERSION 8501_ACEOF 8502 8503 8504cat >>confdefs.h <<_ACEOF 8505#define UNDER_CE $CEVERSION 8506_ACEOF 8507 8508 CFLAGS_DEBUG="-nologo -Zi -Od" 8509 CFLAGS_OPTIMIZE="-nologo -Ox" 8510 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8511 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8512 LINKBIN="\"${CEBINROOT}/link.exe\"" 8513 8514 else 8515 RC="rc" 8516 lflags="-nologo" 8517 LINKBIN="link" 8518 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8519 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8520 fi 8521 fi 8522 8523 if test "$GCC" = "yes"; then 8524 # mingw gcc mode 8525 RC="windres" 8526 CFLAGS_DEBUG="-g" 8527 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8528 SHLIB_LD="$CC -shared" 8529 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8530 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8531 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8532 else 8533 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8534 # link -lib only works when -lib is the first arg 8535 STLIB_LD="${LINKBIN} -lib ${lflags}" 8536 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8537 PATHTYPE=-w 8538 # For information on what debugtype is most useful, see: 8539 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8540 # and also 8541 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8542 # This essentially turns it all on. 8543 LDFLAGS_DEBUG="-debug -debugtype:cv" 8544 LDFLAGS_OPTIMIZE="-release" 8545 if test "$doWince" != "no" ; then 8546 LDFLAGS_CONSOLE="-link ${lflags}" 8547 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8548 else 8549 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8550 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8551 fi 8552 fi 8553 8554 SHLIB_SUFFIX=".dll" 8555 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8556 8557 TCL_LIB_VERSIONS_OK=nodots 8558 ;; 8559 AIX-*) 8560 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8561 8562 # AIX requires the _r compiler when gcc isn't being used 8563 case "${CC}" in 8564 *_r|*_r\ *) 8565 # ok ... 8566 ;; 8567 *) 8568 # Make sure only first arg gets _r 8569 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8570 ;; 8571 esac 8572 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8573echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8574 8575fi 8576 8577 LIBS="$LIBS -lc" 8578 SHLIB_CFLAGS="" 8579 SHLIB_SUFFIX=".so" 8580 8581 LD_LIBRARY_PATH_VAR="LIBPATH" 8582 8583 # Check to enable 64-bit flags for compiler/linker 8584 if test "$do64bit" = yes; then 8585 8586 if test "$GCC" = yes; then 8587 8588 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8589echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8590 8591else 8592 8593 do64bit_ok=yes 8594 CFLAGS="$CFLAGS -q64" 8595 LDFLAGS_ARCH="-q64" 8596 RANLIB="${RANLIB} -X64" 8597 AR="${AR} -X64" 8598 SHLIB_LD_FLAGS="-b64" 8599 8600fi 8601 8602 8603fi 8604 8605 8606 if test "`uname -m`" = ia64; then 8607 8608 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8609 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8610 if test "$GCC" = yes; then 8611 8612 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8613 8614else 8615 8616 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8617 8618fi 8619 8620 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8621 8622else 8623 8624 if test "$GCC" = yes; then 8625 8626 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8627 8628else 8629 8630 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8631 LDFLAGS="$LDFLAGS -brtl" 8632 8633fi 8634 8635 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8636 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8637 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8638 8639fi 8640 8641 ;; 8642 BeOS*) 8643 SHLIB_CFLAGS="-fPIC" 8644 SHLIB_LD='${CC} -nostart' 8645 SHLIB_SUFFIX=".so" 8646 8647 #----------------------------------------------------------- 8648 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8649 # -lsocket, even if the network functions are in -lnet which 8650 # is always linked to, for compatibility. 8651 #----------------------------------------------------------- 8652 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8653echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8654if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8655 echo $ECHO_N "(cached) $ECHO_C" >&6 8656else 8657 ac_check_lib_save_LIBS=$LIBS 8658LIBS="-lbind $LIBS" 8659cat >conftest.$ac_ext <<_ACEOF 8660/* confdefs.h. */ 8661_ACEOF 8662cat confdefs.h >>conftest.$ac_ext 8663cat >>conftest.$ac_ext <<_ACEOF 8664/* end confdefs.h. */ 8665 8666/* Override any GCC internal prototype to avoid an error. 8667 Use char because int might match the return type of a GCC 8668 builtin and then its argument prototype would still apply. */ 8669#ifdef __cplusplus 8670extern "C" 8671#endif 8672char inet_ntoa (); 8673int 8674main () 8675{ 8676return inet_ntoa (); 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681rm -f conftest.$ac_objext conftest$ac_exeext 8682if { (ac_try="$ac_link" 8683case "(($ac_try" in 8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8685 *) ac_try_echo=$ac_try;; 8686esac 8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8688 (eval "$ac_link") 2>conftest.er1 8689 ac_status=$? 8690 grep -v '^ *+' conftest.er1 >conftest.err 8691 rm -f conftest.er1 8692 cat conftest.err >&5 8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8694 (exit $ac_status); } && { 8695 test -z "$ac_c_werror_flag" || 8696 test ! -s conftest.err 8697 } && test -s conftest$ac_exeext && 8698 $as_test_x conftest$ac_exeext; then 8699 ac_cv_lib_bind_inet_ntoa=yes 8700else 8701 echo "$as_me: failed program was:" >&5 8702sed 's/^/| /' conftest.$ac_ext >&5 8703 8704 ac_cv_lib_bind_inet_ntoa=no 8705fi 8706 8707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8708 conftest$ac_exeext conftest.$ac_ext 8709LIBS=$ac_check_lib_save_LIBS 8710fi 8711{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8712echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8713if test $ac_cv_lib_bind_inet_ntoa = yes; then 8714 LIBS="$LIBS -lbind -lsocket" 8715fi 8716 8717 ;; 8718 BSD/OS-4.*) 8719 SHLIB_CFLAGS="-export-dynamic -fPIC" 8720 SHLIB_LD='${CC} -shared' 8721 SHLIB_SUFFIX=".so" 8722 LDFLAGS="$LDFLAGS -export-dynamic" 8723 CC_SEARCH_FLAGS="" 8724 LD_SEARCH_FLAGS="" 8725 ;; 8726 CYGWIN_*) 8727 SHLIB_CFLAGS="" 8728 SHLIB_LD='${CC} -shared' 8729 SHLIB_SUFFIX=".dll" 8730 EXE_SUFFIX=".exe" 8731 CC_SEARCH_FLAGS="" 8732 LD_SEARCH_FLAGS="" 8733 ;; 8734 Haiku*) 8735 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8736 SHLIB_CFLAGS="-fPIC" 8737 SHLIB_SUFFIX=".so" 8738 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8739 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8740echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8741if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8742 echo $ECHO_N "(cached) $ECHO_C" >&6 8743else 8744 ac_check_lib_save_LIBS=$LIBS 8745LIBS="-lnetwork $LIBS" 8746cat >conftest.$ac_ext <<_ACEOF 8747/* confdefs.h. */ 8748_ACEOF 8749cat confdefs.h >>conftest.$ac_ext 8750cat >>conftest.$ac_ext <<_ACEOF 8751/* end confdefs.h. */ 8752 8753/* Override any GCC internal prototype to avoid an error. 8754 Use char because int might match the return type of a GCC 8755 builtin and then its argument prototype would still apply. */ 8756#ifdef __cplusplus 8757extern "C" 8758#endif 8759char inet_ntoa (); 8760int 8761main () 8762{ 8763return inet_ntoa (); 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768rm -f conftest.$ac_objext conftest$ac_exeext 8769if { (ac_try="$ac_link" 8770case "(($ac_try" in 8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8772 *) ac_try_echo=$ac_try;; 8773esac 8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8775 (eval "$ac_link") 2>conftest.er1 8776 ac_status=$? 8777 grep -v '^ *+' conftest.er1 >conftest.err 8778 rm -f conftest.er1 8779 cat conftest.err >&5 8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8781 (exit $ac_status); } && { 8782 test -z "$ac_c_werror_flag" || 8783 test ! -s conftest.err 8784 } && test -s conftest$ac_exeext && 8785 $as_test_x conftest$ac_exeext; then 8786 ac_cv_lib_network_inet_ntoa=yes 8787else 8788 echo "$as_me: failed program was:" >&5 8789sed 's/^/| /' conftest.$ac_ext >&5 8790 8791 ac_cv_lib_network_inet_ntoa=no 8792fi 8793 8794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8795 conftest$ac_exeext conftest.$ac_ext 8796LIBS=$ac_check_lib_save_LIBS 8797fi 8798{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8799echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8800if test $ac_cv_lib_network_inet_ntoa = yes; then 8801 LIBS="$LIBS -lnetwork" 8802fi 8803 8804 ;; 8805 HP-UX-*.11.*) 8806 # Use updated header definitions where possible 8807 8808cat >>confdefs.h <<\_ACEOF 8809#define _XOPEN_SOURCE_EXTENDED 1 8810_ACEOF 8811 8812 # TEA specific: Needed by Tcl, but not most extensions 8813 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8814 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8815 8816 if test "`uname -m`" = ia64; then 8817 8818 SHLIB_SUFFIX=".so" 8819 # Use newer C++ library for C++ extensions 8820 #if test "$GCC" != "yes" ; then 8821 # CPPFLAGS="-AA" 8822 #fi 8823 8824else 8825 8826 SHLIB_SUFFIX=".sl" 8827 8828fi 8829 8830 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8831echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8832if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8833 echo $ECHO_N "(cached) $ECHO_C" >&6 8834else 8835 ac_check_lib_save_LIBS=$LIBS 8836LIBS="-ldld $LIBS" 8837cat >conftest.$ac_ext <<_ACEOF 8838/* confdefs.h. */ 8839_ACEOF 8840cat confdefs.h >>conftest.$ac_ext 8841cat >>conftest.$ac_ext <<_ACEOF 8842/* end confdefs.h. */ 8843 8844/* Override any GCC internal prototype to avoid an error. 8845 Use char because int might match the return type of a GCC 8846 builtin and then its argument prototype would still apply. */ 8847#ifdef __cplusplus 8848extern "C" 8849#endif 8850char shl_load (); 8851int 8852main () 8853{ 8854return shl_load (); 8855 ; 8856 return 0; 8857} 8858_ACEOF 8859rm -f conftest.$ac_objext conftest$ac_exeext 8860if { (ac_try="$ac_link" 8861case "(($ac_try" in 8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8863 *) ac_try_echo=$ac_try;; 8864esac 8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8866 (eval "$ac_link") 2>conftest.er1 8867 ac_status=$? 8868 grep -v '^ *+' conftest.er1 >conftest.err 8869 rm -f conftest.er1 8870 cat conftest.err >&5 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 (exit $ac_status); } && { 8873 test -z "$ac_c_werror_flag" || 8874 test ! -s conftest.err 8875 } && test -s conftest$ac_exeext && 8876 $as_test_x conftest$ac_exeext; then 8877 ac_cv_lib_dld_shl_load=yes 8878else 8879 echo "$as_me: failed program was:" >&5 8880sed 's/^/| /' conftest.$ac_ext >&5 8881 8882 ac_cv_lib_dld_shl_load=no 8883fi 8884 8885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8886 conftest$ac_exeext conftest.$ac_ext 8887LIBS=$ac_check_lib_save_LIBS 8888fi 8889{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8890echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8891if test $ac_cv_lib_dld_shl_load = yes; then 8892 tcl_ok=yes 8893else 8894 tcl_ok=no 8895fi 8896 8897 if test "$tcl_ok" = yes; then 8898 8899 LDFLAGS="$LDFLAGS -E" 8900 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8901 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8902 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8903 8904fi 8905 8906 if test "$GCC" = yes; then 8907 8908 SHLIB_LD='${CC} -shared' 8909 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8910 8911else 8912 8913 CFLAGS="$CFLAGS -z" 8914 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8915 #CFLAGS="$CFLAGS +DAportable" 8916 SHLIB_CFLAGS="+z" 8917 SHLIB_LD="ld -b" 8918 8919fi 8920 8921 8922 # Check to enable 64-bit flags for compiler/linker 8923 if test "$do64bit" = "yes"; then 8924 8925 if test "$GCC" = yes; then 8926 8927 case `${CC} -dumpmachine` in 8928 hppa64*) 8929 # 64-bit gcc in use. Fix flags for GNU ld. 8930 do64bit_ok=yes 8931 SHLIB_LD='${CC} -shared' 8932 if test $doRpath = yes; then 8933 8934 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8935fi 8936 8937 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8938 ;; 8939 *) 8940 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8941echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8942 ;; 8943 esac 8944 8945else 8946 8947 do64bit_ok=yes 8948 CFLAGS="$CFLAGS +DD64" 8949 LDFLAGS_ARCH="+DD64" 8950 8951fi 8952 8953 8954fi 8955 ;; 8956 IRIX-6.*) 8957 SHLIB_CFLAGS="" 8958 SHLIB_LD="ld -n32 -shared -rdata_shared" 8959 SHLIB_SUFFIX=".so" 8960 if test $doRpath = yes; then 8961 8962 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8963 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8964fi 8965 8966 if test "$GCC" = yes; then 8967 8968 CFLAGS="$CFLAGS -mabi=n32" 8969 LDFLAGS="$LDFLAGS -mabi=n32" 8970 8971else 8972 8973 case $system in 8974 IRIX-6.3) 8975 # Use to build 6.2 compatible binaries on 6.3. 8976 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8977 ;; 8978 *) 8979 CFLAGS="$CFLAGS -n32" 8980 ;; 8981 esac 8982 LDFLAGS="$LDFLAGS -n32" 8983 8984fi 8985 8986 ;; 8987 IRIX64-6.*) 8988 SHLIB_CFLAGS="" 8989 SHLIB_LD="ld -n32 -shared -rdata_shared" 8990 SHLIB_SUFFIX=".so" 8991 if test $doRpath = yes; then 8992 8993 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8994 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8995fi 8996 8997 8998 # Check to enable 64-bit flags for compiler/linker 8999 9000 if test "$do64bit" = yes; then 9001 9002 if test "$GCC" = yes; then 9003 9004 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 9005echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 9006 9007else 9008 9009 do64bit_ok=yes 9010 SHLIB_LD="ld -64 -shared -rdata_shared" 9011 CFLAGS="$CFLAGS -64" 9012 LDFLAGS_ARCH="-64" 9013 9014fi 9015 9016 9017fi 9018 9019 ;; 9020 Linux*) 9021 SHLIB_CFLAGS="-fPIC" 9022 SHLIB_SUFFIX=".so" 9023 9024 # TEA specific: 9025 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 9026 9027 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9028 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 9029 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9030 if test $doRpath = yes; then 9031 9032 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9033fi 9034 9035 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9036 if test "`uname -m`" = "alpha"; then 9037 CFLAGS="$CFLAGS -mieee" 9038fi 9039 9040 if test $do64bit = yes; then 9041 9042 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 9043echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 9044if test "${tcl_cv_cc_m64+set}" = set; then 9045 echo $ECHO_N "(cached) $ECHO_C" >&6 9046else 9047 9048 hold_cflags=$CFLAGS 9049 CFLAGS="$CFLAGS -m64" 9050 cat >conftest.$ac_ext <<_ACEOF 9051/* confdefs.h. */ 9052_ACEOF 9053cat confdefs.h >>conftest.$ac_ext 9054cat >>conftest.$ac_ext <<_ACEOF 9055/* end confdefs.h. */ 9056 9057int 9058main () 9059{ 9060 9061 ; 9062 return 0; 9063} 9064_ACEOF 9065rm -f conftest.$ac_objext conftest$ac_exeext 9066if { (ac_try="$ac_link" 9067case "(($ac_try" in 9068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9069 *) ac_try_echo=$ac_try;; 9070esac 9071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9072 (eval "$ac_link") 2>conftest.er1 9073 ac_status=$? 9074 grep -v '^ *+' conftest.er1 >conftest.err 9075 rm -f conftest.er1 9076 cat conftest.err >&5 9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9078 (exit $ac_status); } && { 9079 test -z "$ac_c_werror_flag" || 9080 test ! -s conftest.err 9081 } && test -s conftest$ac_exeext && 9082 $as_test_x conftest$ac_exeext; then 9083 tcl_cv_cc_m64=yes 9084else 9085 echo "$as_me: failed program was:" >&5 9086sed 's/^/| /' conftest.$ac_ext >&5 9087 9088 tcl_cv_cc_m64=no 9089fi 9090 9091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9092 conftest$ac_exeext conftest.$ac_ext 9093 CFLAGS=$hold_cflags 9094fi 9095{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 9096echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 9097 if test $tcl_cv_cc_m64 = yes; then 9098 9099 CFLAGS="$CFLAGS -m64" 9100 do64bit_ok=yes 9101 9102fi 9103 9104 9105fi 9106 9107 9108 # The combo of gcc + glibc has a bug related to inlining of 9109 # functions like strtod(). The -fno-builtin flag should address 9110 # this problem but it does not work. The -fno-inline flag is kind 9111 # of overkill but it works. Disable inlining only when one of the 9112 # files in compat/*.c is being linked in. 9113 9114 if test x"${USE_COMPAT}" != x; then 9115 CFLAGS="$CFLAGS -fno-inline" 9116fi 9117 9118 9119 ;; 9120 GNU*) 9121 SHLIB_CFLAGS="-fPIC" 9122 SHLIB_SUFFIX=".so" 9123 9124 SHLIB_LD='${CC} -shared' 9125 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 9126 CC_SEARCH_FLAGS="" 9127 LD_SEARCH_FLAGS="" 9128 if test "`uname -m`" = "alpha"; then 9129 CFLAGS="$CFLAGS -mieee" 9130fi 9131 9132 ;; 9133 Lynx*) 9134 SHLIB_CFLAGS="-fPIC" 9135 SHLIB_SUFFIX=".so" 9136 CFLAGS_OPTIMIZE=-02 9137 SHLIB_LD='${CC} -shared' 9138 LD_FLAGS="-Wl,--export-dynamic" 9139 if test $doRpath = yes; then 9140 9141 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9142 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9143fi 9144 9145 ;; 9146 OpenBSD-*) 9147 SHLIB_CFLAGS="-fPIC" 9148 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9149 SHLIB_SUFFIX=".so" 9150 if test $doRpath = yes; then 9151 9152 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9153fi 9154 9155 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9156 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 9157 { echo "$as_me:$LINENO: checking for ELF" >&5 9158echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 9159if test "${tcl_cv_ld_elf+set}" = set; then 9160 echo $ECHO_N "(cached) $ECHO_C" >&6 9161else 9162 9163 cat >conftest.$ac_ext <<_ACEOF 9164/* confdefs.h. */ 9165_ACEOF 9166cat confdefs.h >>conftest.$ac_ext 9167cat >>conftest.$ac_ext <<_ACEOF 9168/* end confdefs.h. */ 9169 9170#ifdef __ELF__ 9171 yes 9172#endif 9173 9174_ACEOF 9175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9176 $EGREP "yes" >/dev/null 2>&1; then 9177 tcl_cv_ld_elf=yes 9178else 9179 tcl_cv_ld_elf=no 9180fi 9181rm -f -r conftest* 9182 9183fi 9184{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 9185echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 9186 if test $tcl_cv_ld_elf = yes; then 9187 9188 LDFLAGS=-Wl,-export-dynamic 9189 9190else 9191 LDFLAGS="" 9192fi 9193 9194 if test "${TCL_THREADS}" = "1"; then 9195 9196 # OpenBSD builds and links with -pthread, never -lpthread. 9197 LIBS=`echo $LIBS | sed s/-lpthread//` 9198 CFLAGS="$CFLAGS -pthread" 9199 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 9200 9201fi 9202 9203 # OpenBSD doesn't do version numbers with dots. 9204 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9205 TCL_LIB_VERSIONS_OK=nodots 9206 ;; 9207 NetBSD-*|FreeBSD-[3-4].*) 9208 # FreeBSD 3.* and greater have ELF. 9209 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 9210 SHLIB_CFLAGS="-fPIC" 9211 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 9212 SHLIB_SUFFIX=".so" 9213 LDFLAGS="$LDFLAGS -export-dynamic" 9214 if test $doRpath = yes; then 9215 9216 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9217fi 9218 9219 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9220 if test "${TCL_THREADS}" = "1"; then 9221 9222 # The -pthread needs to go in the CFLAGS, not LIBS 9223 LIBS=`echo $LIBS | sed s/-pthread//` 9224 CFLAGS="$CFLAGS -pthread" 9225 LDFLAGS="$LDFLAGS -pthread" 9226 9227fi 9228 9229 case $system in 9230 FreeBSD-3.*) 9231 # FreeBSD-3 doesn't handle version numbers with dots. 9232 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9233 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 9234 TCL_LIB_VERSIONS_OK=nodots 9235 ;; 9236 esac 9237 ;; 9238 FreeBSD-*) 9239 # This configuration from FreeBSD Ports. 9240 SHLIB_CFLAGS="-fPIC" 9241 SHLIB_LD="${CC} -shared" 9242 TCL_SHLIB_LD_EXTRAS="-soname \$@" 9243 SHLIB_SUFFIX=".so" 9244 LDFLAGS="" 9245 if test $doRpath = yes; then 9246 9247 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9248 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9249fi 9250 9251 if test "${TCL_THREADS}" = "1"; then 9252 9253 # The -pthread needs to go in the LDFLAGS, not LIBS 9254 LIBS=`echo $LIBS | sed s/-pthread//` 9255 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9256 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 9257fi 9258 9259 # Version numbers are dot-stripped by system policy. 9260 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 9261 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 9262 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 9263 TCL_LIB_VERSIONS_OK=nodots 9264 ;; 9265 Darwin-*) 9266 CFLAGS_OPTIMIZE="-Os" 9267 SHLIB_CFLAGS="-fno-common" 9268 # To avoid discrepancies between what headers configure sees during 9269 # preprocessing tests and compiling tests, move any -isysroot and 9270 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 9271 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 9272 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9273 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 9274 CFLAGS="`echo " ${CFLAGS}" | \ 9275 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 9276 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 9277 if test $do64bit = yes; then 9278 9279 case `arch` in 9280 ppc) 9281 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 9282echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 9283if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 9284 echo $ECHO_N "(cached) $ECHO_C" >&6 9285else 9286 9287 hold_cflags=$CFLAGS 9288 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9289 cat >conftest.$ac_ext <<_ACEOF 9290/* confdefs.h. */ 9291_ACEOF 9292cat confdefs.h >>conftest.$ac_ext 9293cat >>conftest.$ac_ext <<_ACEOF 9294/* end confdefs.h. */ 9295 9296int 9297main () 9298{ 9299 9300 ; 9301 return 0; 9302} 9303_ACEOF 9304rm -f conftest.$ac_objext conftest$ac_exeext 9305if { (ac_try="$ac_link" 9306case "(($ac_try" in 9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9308 *) ac_try_echo=$ac_try;; 9309esac 9310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9311 (eval "$ac_link") 2>conftest.er1 9312 ac_status=$? 9313 grep -v '^ *+' conftest.er1 >conftest.err 9314 rm -f conftest.er1 9315 cat conftest.err >&5 9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9317 (exit $ac_status); } && { 9318 test -z "$ac_c_werror_flag" || 9319 test ! -s conftest.err 9320 } && test -s conftest$ac_exeext && 9321 $as_test_x conftest$ac_exeext; then 9322 tcl_cv_cc_arch_ppc64=yes 9323else 9324 echo "$as_me: failed program was:" >&5 9325sed 's/^/| /' conftest.$ac_ext >&5 9326 9327 tcl_cv_cc_arch_ppc64=no 9328fi 9329 9330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9331 conftest$ac_exeext conftest.$ac_ext 9332 CFLAGS=$hold_cflags 9333fi 9334{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 9335echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 9336 if test $tcl_cv_cc_arch_ppc64 = yes; then 9337 9338 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 9339 do64bit_ok=yes 9340 9341fi 9342;; 9343 i386) 9344 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 9345echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 9346if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 9347 echo $ECHO_N "(cached) $ECHO_C" >&6 9348else 9349 9350 hold_cflags=$CFLAGS 9351 CFLAGS="$CFLAGS -arch x86_64" 9352 cat >conftest.$ac_ext <<_ACEOF 9353/* confdefs.h. */ 9354_ACEOF 9355cat confdefs.h >>conftest.$ac_ext 9356cat >>conftest.$ac_ext <<_ACEOF 9357/* end confdefs.h. */ 9358 9359int 9360main () 9361{ 9362 9363 ; 9364 return 0; 9365} 9366_ACEOF 9367rm -f conftest.$ac_objext conftest$ac_exeext 9368if { (ac_try="$ac_link" 9369case "(($ac_try" in 9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9371 *) ac_try_echo=$ac_try;; 9372esac 9373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9374 (eval "$ac_link") 2>conftest.er1 9375 ac_status=$? 9376 grep -v '^ *+' conftest.er1 >conftest.err 9377 rm -f conftest.er1 9378 cat conftest.err >&5 9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9380 (exit $ac_status); } && { 9381 test -z "$ac_c_werror_flag" || 9382 test ! -s conftest.err 9383 } && test -s conftest$ac_exeext && 9384 $as_test_x conftest$ac_exeext; then 9385 tcl_cv_cc_arch_x86_64=yes 9386else 9387 echo "$as_me: failed program was:" >&5 9388sed 's/^/| /' conftest.$ac_ext >&5 9389 9390 tcl_cv_cc_arch_x86_64=no 9391fi 9392 9393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9394 conftest$ac_exeext conftest.$ac_ext 9395 CFLAGS=$hold_cflags 9396fi 9397{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 9398echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 9399 if test $tcl_cv_cc_arch_x86_64 = yes; then 9400 9401 CFLAGS="$CFLAGS -arch x86_64" 9402 do64bit_ok=yes 9403 9404fi 9405;; 9406 *) 9407 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 9408echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 9409 esac 9410 9411else 9412 9413 # Check for combined 32-bit and 64-bit fat build 9414 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 9415 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 9416 9417 fat_32_64=yes 9418fi 9419 9420 9421fi 9422 9423 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9424 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 9425 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 9426echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 9427if test "${tcl_cv_ld_single_module+set}" = set; then 9428 echo $ECHO_N "(cached) $ECHO_C" >&6 9429else 9430 9431 hold_ldflags=$LDFLAGS 9432 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 9433 cat >conftest.$ac_ext <<_ACEOF 9434/* confdefs.h. */ 9435_ACEOF 9436cat confdefs.h >>conftest.$ac_ext 9437cat >>conftest.$ac_ext <<_ACEOF 9438/* end confdefs.h. */ 9439 9440int 9441main () 9442{ 9443int i; 9444 ; 9445 return 0; 9446} 9447_ACEOF 9448rm -f conftest.$ac_objext conftest$ac_exeext 9449if { (ac_try="$ac_link" 9450case "(($ac_try" in 9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9452 *) ac_try_echo=$ac_try;; 9453esac 9454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9455 (eval "$ac_link") 2>conftest.er1 9456 ac_status=$? 9457 grep -v '^ *+' conftest.er1 >conftest.err 9458 rm -f conftest.er1 9459 cat conftest.err >&5 9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9461 (exit $ac_status); } && { 9462 test -z "$ac_c_werror_flag" || 9463 test ! -s conftest.err 9464 } && test -s conftest$ac_exeext && 9465 $as_test_x conftest$ac_exeext; then 9466 tcl_cv_ld_single_module=yes 9467else 9468 echo "$as_me: failed program was:" >&5 9469sed 's/^/| /' conftest.$ac_ext >&5 9470 9471 tcl_cv_ld_single_module=no 9472fi 9473 9474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9475 conftest$ac_exeext conftest.$ac_ext 9476 LDFLAGS=$hold_ldflags 9477fi 9478{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 9479echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 9480 if test $tcl_cv_ld_single_module = yes; then 9481 9482 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 9483 9484fi 9485 9486 # TEA specific: link shlib with current and compatiblity version flags 9487 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9488 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9489 SHLIB_SUFFIX=".dylib" 9490 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9491 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9492 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9493 9494 LDFLAGS="$LDFLAGS -prebind" 9495fi 9496 9497 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9498 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9499echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9500if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9501 echo $ECHO_N "(cached) $ECHO_C" >&6 9502else 9503 9504 hold_ldflags=$LDFLAGS 9505 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9506 cat >conftest.$ac_ext <<_ACEOF 9507/* confdefs.h. */ 9508_ACEOF 9509cat confdefs.h >>conftest.$ac_ext 9510cat >>conftest.$ac_ext <<_ACEOF 9511/* end confdefs.h. */ 9512 9513int 9514main () 9515{ 9516int i; 9517 ; 9518 return 0; 9519} 9520_ACEOF 9521rm -f conftest.$ac_objext conftest$ac_exeext 9522if { (ac_try="$ac_link" 9523case "(($ac_try" in 9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9525 *) ac_try_echo=$ac_try;; 9526esac 9527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9528 (eval "$ac_link") 2>conftest.er1 9529 ac_status=$? 9530 grep -v '^ *+' conftest.er1 >conftest.err 9531 rm -f conftest.er1 9532 cat conftest.err >&5 9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9534 (exit $ac_status); } && { 9535 test -z "$ac_c_werror_flag" || 9536 test ! -s conftest.err 9537 } && test -s conftest$ac_exeext && 9538 $as_test_x conftest$ac_exeext; then 9539 tcl_cv_ld_search_paths_first=yes 9540else 9541 echo "$as_me: failed program was:" >&5 9542sed 's/^/| /' conftest.$ac_ext >&5 9543 9544 tcl_cv_ld_search_paths_first=no 9545fi 9546 9547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9548 conftest$ac_exeext conftest.$ac_ext 9549 LDFLAGS=$hold_ldflags 9550fi 9551{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9552echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9553 if test $tcl_cv_ld_search_paths_first = yes; then 9554 9555 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9556 9557fi 9558 9559 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9560 9561 9562cat >>confdefs.h <<\_ACEOF 9563#define MODULE_SCOPE __private_extern__ 9564_ACEOF 9565 9566 tcl_cv_cc_visibility_hidden=yes 9567 9568fi 9569 9570 CC_SEARCH_FLAGS="" 9571 LD_SEARCH_FLAGS="" 9572 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9573 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9574 # extensions, verify that 64-bit build is possible. 9575 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9576 9577 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9578 9579 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9580echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9581if test "${tcl_cv_lib_x11_64+set}" = set; then 9582 echo $ECHO_N "(cached) $ECHO_C" >&6 9583else 9584 9585 for v in CFLAGS CPPFLAGS LDFLAGS; do 9586 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9587 done 9588 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9589 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9590 cat >conftest.$ac_ext <<_ACEOF 9591/* confdefs.h. */ 9592_ACEOF 9593cat confdefs.h >>conftest.$ac_ext 9594cat >>conftest.$ac_ext <<_ACEOF 9595/* end confdefs.h. */ 9596#include <X11/Xlib.h> 9597int 9598main () 9599{ 9600XrmInitialize(); 9601 ; 9602 return 0; 9603} 9604_ACEOF 9605rm -f conftest.$ac_objext conftest$ac_exeext 9606if { (ac_try="$ac_link" 9607case "(($ac_try" in 9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9609 *) ac_try_echo=$ac_try;; 9610esac 9611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9612 (eval "$ac_link") 2>conftest.er1 9613 ac_status=$? 9614 grep -v '^ *+' conftest.er1 >conftest.err 9615 rm -f conftest.er1 9616 cat conftest.err >&5 9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9618 (exit $ac_status); } && { 9619 test -z "$ac_c_werror_flag" || 9620 test ! -s conftest.err 9621 } && test -s conftest$ac_exeext && 9622 $as_test_x conftest$ac_exeext; then 9623 tcl_cv_lib_x11_64=yes 9624else 9625 echo "$as_me: failed program was:" >&5 9626sed 's/^/| /' conftest.$ac_ext >&5 9627 9628 tcl_cv_lib_x11_64=no 9629fi 9630 9631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9632 conftest$ac_exeext conftest.$ac_ext 9633 for v in CFLAGS CPPFLAGS LDFLAGS; do 9634 eval $v'="$hold_'$v'"' 9635 done 9636fi 9637{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9638echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9639 9640fi 9641 9642 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9643 9644 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9645echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9646if test "${tcl_cv_lib_tk_64+set}" = set; then 9647 echo $ECHO_N "(cached) $ECHO_C" >&6 9648else 9649 9650 for v in CFLAGS CPPFLAGS LDFLAGS; do 9651 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9652 done 9653 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9654 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9655 cat >conftest.$ac_ext <<_ACEOF 9656/* confdefs.h. */ 9657_ACEOF 9658cat confdefs.h >>conftest.$ac_ext 9659cat >>conftest.$ac_ext <<_ACEOF 9660/* end confdefs.h. */ 9661#include <tk.h> 9662int 9663main () 9664{ 9665Tk_InitStubs(NULL, "", 0); 9666 ; 9667 return 0; 9668} 9669_ACEOF 9670rm -f conftest.$ac_objext conftest$ac_exeext 9671if { (ac_try="$ac_link" 9672case "(($ac_try" in 9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9674 *) ac_try_echo=$ac_try;; 9675esac 9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9677 (eval "$ac_link") 2>conftest.er1 9678 ac_status=$? 9679 grep -v '^ *+' conftest.er1 >conftest.err 9680 rm -f conftest.er1 9681 cat conftest.err >&5 9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9683 (exit $ac_status); } && { 9684 test -z "$ac_c_werror_flag" || 9685 test ! -s conftest.err 9686 } && test -s conftest$ac_exeext && 9687 $as_test_x conftest$ac_exeext; then 9688 tcl_cv_lib_tk_64=yes 9689else 9690 echo "$as_me: failed program was:" >&5 9691sed 's/^/| /' conftest.$ac_ext >&5 9692 9693 tcl_cv_lib_tk_64=no 9694fi 9695 9696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9697 conftest$ac_exeext conftest.$ac_ext 9698 for v in CFLAGS CPPFLAGS LDFLAGS; do 9699 eval $v'="$hold_'$v'"' 9700 done 9701fi 9702{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9703echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9704 9705fi 9706 9707 # remove 64-bit arch flags from CFLAGS et al. if configuration 9708 # does not support 64-bit. 9709 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9710 9711 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9712echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9713 for v in CFLAGS CPPFLAGS LDFLAGS; do 9714 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9715 done 9716fi 9717 9718 9719fi 9720 9721 ;; 9722 OS/390-*) 9723 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9724 9725cat >>confdefs.h <<\_ACEOF 9726#define _OE_SOCKETS 1 9727_ACEOF 9728 9729 ;; 9730 OSF1-V*) 9731 # Digital OSF/1 9732 SHLIB_CFLAGS="" 9733 if test "$SHARED_BUILD" = 1; then 9734 9735 SHLIB_LD='ld -shared -expect_unresolved "*"' 9736 9737else 9738 9739 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9740 9741fi 9742 9743 SHLIB_SUFFIX=".so" 9744 if test $doRpath = yes; then 9745 9746 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9747 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9748fi 9749 9750 if test "$GCC" = yes; then 9751 CFLAGS="$CFLAGS -mieee" 9752else 9753 9754 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9755fi 9756 9757 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9758 if test "${TCL_THREADS}" = 1; then 9759 9760 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9761 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9762 LIBS=`echo $LIBS | sed s/-lpthreads//` 9763 if test "$GCC" = yes; then 9764 9765 LIBS="$LIBS -lpthread -lmach -lexc" 9766 9767else 9768 9769 CFLAGS="$CFLAGS -pthread" 9770 LDFLAGS="$LDFLAGS -pthread" 9771 9772fi 9773 9774 9775fi 9776 9777 ;; 9778 QNX-6*) 9779 # QNX RTP 9780 # This may work for all QNX, but it was only reported for v6. 9781 SHLIB_CFLAGS="-fPIC" 9782 SHLIB_LD="ld -Bshareable -x" 9783 SHLIB_LD_LIBS="" 9784 SHLIB_SUFFIX=".so" 9785 CC_SEARCH_FLAGS="" 9786 LD_SEARCH_FLAGS="" 9787 ;; 9788 SCO_SV-3.2*) 9789 if test "$GCC" = yes; then 9790 9791 SHLIB_CFLAGS="-fPIC -melf" 9792 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9793 9794else 9795 9796 SHLIB_CFLAGS="-Kpic -belf" 9797 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9798 9799fi 9800 9801 SHLIB_LD="ld -G" 9802 SHLIB_LD_LIBS="" 9803 SHLIB_SUFFIX=".so" 9804 CC_SEARCH_FLAGS="" 9805 LD_SEARCH_FLAGS="" 9806 ;; 9807 SunOS-5.[0-6]) 9808 # Careful to not let 5.10+ fall into this case 9809 9810 # Note: If _REENTRANT isn't defined, then Solaris 9811 # won't define thread-safe library routines. 9812 9813 9814cat >>confdefs.h <<\_ACEOF 9815#define _REENTRANT 1 9816_ACEOF 9817 9818 9819cat >>confdefs.h <<\_ACEOF 9820#define _POSIX_PTHREAD_SEMANTICS 1 9821_ACEOF 9822 9823 9824 SHLIB_CFLAGS="-KPIC" 9825 SHLIB_SUFFIX=".so" 9826 if test "$GCC" = yes; then 9827 9828 SHLIB_LD='${CC} -shared' 9829 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9830 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9831 9832else 9833 9834 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9835 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9836 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9837 9838fi 9839 9840 ;; 9841 SunOS-5*) 9842 # Note: If _REENTRANT isn't defined, then Solaris 9843 # won't define thread-safe library routines. 9844 9845 9846cat >>confdefs.h <<\_ACEOF 9847#define _REENTRANT 1 9848_ACEOF 9849 9850 9851cat >>confdefs.h <<\_ACEOF 9852#define _POSIX_PTHREAD_SEMANTICS 1 9853_ACEOF 9854 9855 9856 SHLIB_CFLAGS="-KPIC" 9857 9858 # Check to enable 64-bit flags for compiler/linker 9859 if test "$do64bit" = yes; then 9860 9861 arch=`isainfo` 9862 if test "$arch" = "sparcv9 sparc"; then 9863 9864 if test "$GCC" = yes; then 9865 9866 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9867 9868 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9869echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9870 9871else 9872 9873 do64bit_ok=yes 9874 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9875 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9876 SHLIB_CFLAGS="-fPIC" 9877 9878fi 9879 9880 9881else 9882 9883 do64bit_ok=yes 9884 if test "$do64bitVIS" = yes; then 9885 9886 CFLAGS="$CFLAGS -xarch=v9a" 9887 LDFLAGS_ARCH="-xarch=v9a" 9888 9889else 9890 9891 CFLAGS="$CFLAGS -xarch=v9" 9892 LDFLAGS_ARCH="-xarch=v9" 9893 9894fi 9895 9896 # Solaris 64 uses this as well 9897 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9898 9899fi 9900 9901 9902else 9903 if test "$arch" = "amd64 i386"; then 9904 9905 if test "$GCC" = yes; then 9906 9907 case $system in 9908 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9909 do64bit_ok=yes 9910 CFLAGS="$CFLAGS -m64" 9911 LDFLAGS="$LDFLAGS -m64";; 9912 *) 9913 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9914echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9915 esac 9916 9917else 9918 9919 do64bit_ok=yes 9920 case $system in 9921 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9922 CFLAGS="$CFLAGS -m64" 9923 LDFLAGS="$LDFLAGS -m64";; 9924 *) 9925 CFLAGS="$CFLAGS -xarch=amd64" 9926 LDFLAGS="$LDFLAGS -xarch=amd64";; 9927 esac 9928 9929fi 9930 9931 9932else 9933 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9934echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9935fi 9936 9937fi 9938 9939 9940fi 9941 9942 9943 SHLIB_SUFFIX=".so" 9944 if test "$GCC" = yes; then 9945 9946 SHLIB_LD='${CC} -shared' 9947 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9948 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9949 if test "$do64bit_ok" = yes; then 9950 9951 if test "$arch" = "sparcv9 sparc"; then 9952 9953 # We need to specify -static-libgcc or we need to 9954 # add the path to the sparv9 libgcc. 9955 # JH: static-libgcc is necessary for core Tcl, but may 9956 # not be necessary for extensions. 9957 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9958 # for finding sparcv9 libgcc, get the regular libgcc 9959 # path, remove so name and append 'sparcv9' 9960 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9961 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9962 9963else 9964 if test "$arch" = "amd64 i386"; then 9965 9966 # JH: static-libgcc is necessary for core Tcl, but may 9967 # not be necessary for extensions. 9968 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9969 9970fi 9971 9972fi 9973 9974 9975fi 9976 9977 9978else 9979 9980 case $system in 9981 SunOS-5.[1-9][0-9]*) 9982 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9983 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9984 *) 9985 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9986 esac 9987 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9988 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9989 9990fi 9991 9992 ;; 9993 esac 9994 9995 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9996 9997 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9998echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9999 10000fi 10001 10002 10003 10004 10005 # Add in the arch flags late to ensure it wasn't removed. 10006 # Not necessary in TEA, but this is aligned with core 10007 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 10008 10009 # If we're running gcc, then change the C flags for compiling shared 10010 # libraries to the right flags for gcc, instead of those for the 10011 # standard manufacturer compiler. 10012 10013 if test "$GCC" = yes; then 10014 10015 case $system in 10016 AIX-*) ;; 10017 BSD/OS*) ;; 10018 CYGWIN_*) ;; 10019 IRIX*) ;; 10020 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 10021 Darwin-*) ;; 10022 SCO_SV-3.2*) ;; 10023 windows) ;; 10024 *) SHLIB_CFLAGS="-fPIC" ;; 10025 esac 10026fi 10027 10028 10029 if test "$tcl_cv_cc_visibility_hidden" != yes; then 10030 10031 10032cat >>confdefs.h <<\_ACEOF 10033#define MODULE_SCOPE extern 10034_ACEOF 10035 10036 10037cat >>confdefs.h <<\_ACEOF 10038#define NO_VIZ 10039_ACEOF 10040 10041 10042fi 10043 10044 10045 if test "$SHARED_LIB_SUFFIX" = ""; then 10046 10047 # TEA specific: use PACKAGE_VERSION instead of VERSION 10048 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 10049fi 10050 10051 if test "$UNSHARED_LIB_SUFFIX" = ""; then 10052 10053 # TEA specific: use PACKAGE_VERSION instead of VERSION 10054 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 10055fi 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 # These must be called after we do the basic CFLAGS checks and 10071 # verify any possible 64-bit or similar switches are necessary 10072 10073 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 10074echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 10075 tcl_flags="" 10076 10077 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 10078 echo $ECHO_N "(cached) $ECHO_C" >&6 10079else 10080 cat >conftest.$ac_ext <<_ACEOF 10081/* confdefs.h. */ 10082_ACEOF 10083cat confdefs.h >>conftest.$ac_ext 10084cat >>conftest.$ac_ext <<_ACEOF 10085/* end confdefs.h. */ 10086#include <stdlib.h> 10087int 10088main () 10089{ 10090char *p = (char *)strtoll; char *q = (char *)strtoull; 10091 ; 10092 return 0; 10093} 10094_ACEOF 10095rm -f conftest.$ac_objext 10096if { (ac_try="$ac_compile" 10097case "(($ac_try" in 10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10099 *) ac_try_echo=$ac_try;; 10100esac 10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10102 (eval "$ac_compile") 2>conftest.er1 10103 ac_status=$? 10104 grep -v '^ *+' conftest.er1 >conftest.err 10105 rm -f conftest.er1 10106 cat conftest.err >&5 10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10108 (exit $ac_status); } && { 10109 test -z "$ac_c_werror_flag" || 10110 test ! -s conftest.err 10111 } && test -s conftest.$ac_objext; then 10112 tcl_cv_flag__isoc99_source=no 10113else 10114 echo "$as_me: failed program was:" >&5 10115sed 's/^/| /' conftest.$ac_ext >&5 10116 10117 cat >conftest.$ac_ext <<_ACEOF 10118/* confdefs.h. */ 10119_ACEOF 10120cat confdefs.h >>conftest.$ac_ext 10121cat >>conftest.$ac_ext <<_ACEOF 10122/* end confdefs.h. */ 10123#define _ISOC99_SOURCE 1 10124#include <stdlib.h> 10125int 10126main () 10127{ 10128char *p = (char *)strtoll; char *q = (char *)strtoull; 10129 ; 10130 return 0; 10131} 10132_ACEOF 10133rm -f conftest.$ac_objext 10134if { (ac_try="$ac_compile" 10135case "(($ac_try" in 10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10137 *) ac_try_echo=$ac_try;; 10138esac 10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10140 (eval "$ac_compile") 2>conftest.er1 10141 ac_status=$? 10142 grep -v '^ *+' conftest.er1 >conftest.err 10143 rm -f conftest.er1 10144 cat conftest.err >&5 10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10146 (exit $ac_status); } && { 10147 test -z "$ac_c_werror_flag" || 10148 test ! -s conftest.err 10149 } && test -s conftest.$ac_objext; then 10150 tcl_cv_flag__isoc99_source=yes 10151else 10152 echo "$as_me: failed program was:" >&5 10153sed 's/^/| /' conftest.$ac_ext >&5 10154 10155 tcl_cv_flag__isoc99_source=no 10156fi 10157 10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159fi 10160 10161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10162fi 10163 10164 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 10165 10166cat >>confdefs.h <<\_ACEOF 10167#define _ISOC99_SOURCE 1 10168_ACEOF 10169 10170 tcl_flags="$tcl_flags _ISOC99_SOURCE" 10171 fi 10172 10173 10174 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 10175 echo $ECHO_N "(cached) $ECHO_C" >&6 10176else 10177 cat >conftest.$ac_ext <<_ACEOF 10178/* confdefs.h. */ 10179_ACEOF 10180cat confdefs.h >>conftest.$ac_ext 10181cat >>conftest.$ac_ext <<_ACEOF 10182/* end confdefs.h. */ 10183#include <sys/stat.h> 10184int 10185main () 10186{ 10187struct stat64 buf; int i = stat64("/", &buf); 10188 ; 10189 return 0; 10190} 10191_ACEOF 10192rm -f conftest.$ac_objext 10193if { (ac_try="$ac_compile" 10194case "(($ac_try" in 10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10196 *) ac_try_echo=$ac_try;; 10197esac 10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10199 (eval "$ac_compile") 2>conftest.er1 10200 ac_status=$? 10201 grep -v '^ *+' conftest.er1 >conftest.err 10202 rm -f conftest.er1 10203 cat conftest.err >&5 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 (exit $ac_status); } && { 10206 test -z "$ac_c_werror_flag" || 10207 test ! -s conftest.err 10208 } && test -s conftest.$ac_objext; then 10209 tcl_cv_flag__largefile64_source=no 10210else 10211 echo "$as_me: failed program was:" >&5 10212sed 's/^/| /' conftest.$ac_ext >&5 10213 10214 cat >conftest.$ac_ext <<_ACEOF 10215/* confdefs.h. */ 10216_ACEOF 10217cat confdefs.h >>conftest.$ac_ext 10218cat >>conftest.$ac_ext <<_ACEOF 10219/* end confdefs.h. */ 10220#define _LARGEFILE64_SOURCE 1 10221#include <sys/stat.h> 10222int 10223main () 10224{ 10225struct stat64 buf; int i = stat64("/", &buf); 10226 ; 10227 return 0; 10228} 10229_ACEOF 10230rm -f conftest.$ac_objext 10231if { (ac_try="$ac_compile" 10232case "(($ac_try" in 10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10234 *) ac_try_echo=$ac_try;; 10235esac 10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10237 (eval "$ac_compile") 2>conftest.er1 10238 ac_status=$? 10239 grep -v '^ *+' conftest.er1 >conftest.err 10240 rm -f conftest.er1 10241 cat conftest.err >&5 10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10243 (exit $ac_status); } && { 10244 test -z "$ac_c_werror_flag" || 10245 test ! -s conftest.err 10246 } && test -s conftest.$ac_objext; then 10247 tcl_cv_flag__largefile64_source=yes 10248else 10249 echo "$as_me: failed program was:" >&5 10250sed 's/^/| /' conftest.$ac_ext >&5 10251 10252 tcl_cv_flag__largefile64_source=no 10253fi 10254 10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10256fi 10257 10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10259fi 10260 10261 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 10262 10263cat >>confdefs.h <<\_ACEOF 10264#define _LARGEFILE64_SOURCE 1 10265_ACEOF 10266 10267 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 10268 fi 10269 10270 10271 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 10272 echo $ECHO_N "(cached) $ECHO_C" >&6 10273else 10274 cat >conftest.$ac_ext <<_ACEOF 10275/* confdefs.h. */ 10276_ACEOF 10277cat confdefs.h >>conftest.$ac_ext 10278cat >>conftest.$ac_ext <<_ACEOF 10279/* end confdefs.h. */ 10280#include <sys/stat.h> 10281int 10282main () 10283{ 10284char *p = (char *)open64; 10285 ; 10286 return 0; 10287} 10288_ACEOF 10289rm -f conftest.$ac_objext 10290if { (ac_try="$ac_compile" 10291case "(($ac_try" in 10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10293 *) ac_try_echo=$ac_try;; 10294esac 10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10296 (eval "$ac_compile") 2>conftest.er1 10297 ac_status=$? 10298 grep -v '^ *+' conftest.er1 >conftest.err 10299 rm -f conftest.er1 10300 cat conftest.err >&5 10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10302 (exit $ac_status); } && { 10303 test -z "$ac_c_werror_flag" || 10304 test ! -s conftest.err 10305 } && test -s conftest.$ac_objext; then 10306 tcl_cv_flag__largefile_source64=no 10307else 10308 echo "$as_me: failed program was:" >&5 10309sed 's/^/| /' conftest.$ac_ext >&5 10310 10311 cat >conftest.$ac_ext <<_ACEOF 10312/* confdefs.h. */ 10313_ACEOF 10314cat confdefs.h >>conftest.$ac_ext 10315cat >>conftest.$ac_ext <<_ACEOF 10316/* end confdefs.h. */ 10317#define _LARGEFILE_SOURCE64 1 10318#include <sys/stat.h> 10319int 10320main () 10321{ 10322char *p = (char *)open64; 10323 ; 10324 return 0; 10325} 10326_ACEOF 10327rm -f conftest.$ac_objext 10328if { (ac_try="$ac_compile" 10329case "(($ac_try" in 10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10331 *) ac_try_echo=$ac_try;; 10332esac 10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10334 (eval "$ac_compile") 2>conftest.er1 10335 ac_status=$? 10336 grep -v '^ *+' conftest.er1 >conftest.err 10337 rm -f conftest.er1 10338 cat conftest.err >&5 10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10340 (exit $ac_status); } && { 10341 test -z "$ac_c_werror_flag" || 10342 test ! -s conftest.err 10343 } && test -s conftest.$ac_objext; then 10344 tcl_cv_flag__largefile_source64=yes 10345else 10346 echo "$as_me: failed program was:" >&5 10347sed 's/^/| /' conftest.$ac_ext >&5 10348 10349 tcl_cv_flag__largefile_source64=no 10350fi 10351 10352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10353fi 10354 10355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10356fi 10357 10358 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 10359 10360cat >>confdefs.h <<\_ACEOF 10361#define _LARGEFILE_SOURCE64 1 10362_ACEOF 10363 10364 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 10365 fi 10366 10367 if test "x${tcl_flags}" = "x" ; then 10368 { echo "$as_me:$LINENO: result: none" >&5 10369echo "${ECHO_T}none" >&6; } 10370 else 10371 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 10372echo "${ECHO_T}${tcl_flags}" >&6; } 10373 fi 10374 10375 10376 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 10377echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 10378 if test "${tcl_cv_type_64bit+set}" = set; then 10379 echo $ECHO_N "(cached) $ECHO_C" >&6 10380else 10381 10382 tcl_cv_type_64bit=none 10383 # See if the compiler knows natively about __int64 10384 cat >conftest.$ac_ext <<_ACEOF 10385/* confdefs.h. */ 10386_ACEOF 10387cat confdefs.h >>conftest.$ac_ext 10388cat >>conftest.$ac_ext <<_ACEOF 10389/* end confdefs.h. */ 10390 10391int 10392main () 10393{ 10394__int64 value = (__int64) 0; 10395 ; 10396 return 0; 10397} 10398_ACEOF 10399rm -f conftest.$ac_objext 10400if { (ac_try="$ac_compile" 10401case "(($ac_try" in 10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10403 *) ac_try_echo=$ac_try;; 10404esac 10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10406 (eval "$ac_compile") 2>conftest.er1 10407 ac_status=$? 10408 grep -v '^ *+' conftest.er1 >conftest.err 10409 rm -f conftest.er1 10410 cat conftest.err >&5 10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10412 (exit $ac_status); } && { 10413 test -z "$ac_c_werror_flag" || 10414 test ! -s conftest.err 10415 } && test -s conftest.$ac_objext; then 10416 tcl_type_64bit=__int64 10417else 10418 echo "$as_me: failed program was:" >&5 10419sed 's/^/| /' conftest.$ac_ext >&5 10420 10421 tcl_type_64bit="long long" 10422fi 10423 10424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10425 # See if we should use long anyway Note that we substitute in the 10426 # type that is our current guess for a 64-bit type inside this check 10427 # program, so it should be modified only carefully... 10428 cat >conftest.$ac_ext <<_ACEOF 10429/* confdefs.h. */ 10430_ACEOF 10431cat confdefs.h >>conftest.$ac_ext 10432cat >>conftest.$ac_ext <<_ACEOF 10433/* end confdefs.h. */ 10434 10435int 10436main () 10437{ 10438switch (0) { 10439 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 10440 } 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445rm -f conftest.$ac_objext 10446if { (ac_try="$ac_compile" 10447case "(($ac_try" in 10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10449 *) ac_try_echo=$ac_try;; 10450esac 10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10452 (eval "$ac_compile") 2>conftest.er1 10453 ac_status=$? 10454 grep -v '^ *+' conftest.er1 >conftest.err 10455 rm -f conftest.er1 10456 cat conftest.err >&5 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); } && { 10459 test -z "$ac_c_werror_flag" || 10460 test ! -s conftest.err 10461 } && test -s conftest.$ac_objext; then 10462 tcl_cv_type_64bit=${tcl_type_64bit} 10463else 10464 echo "$as_me: failed program was:" >&5 10465sed 's/^/| /' conftest.$ac_ext >&5 10466 10467 10468fi 10469 10470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10471fi 10472 10473 if test "${tcl_cv_type_64bit}" = none ; then 10474 10475cat >>confdefs.h <<\_ACEOF 10476#define TCL_WIDE_INT_IS_LONG 1 10477_ACEOF 10478 10479 { echo "$as_me:$LINENO: result: using long" >&5 10480echo "${ECHO_T}using long" >&6; } 10481 elif test "${tcl_cv_type_64bit}" = "__int64" \ 10482 -a "${TEA_PLATFORM}" = "windows" ; then 10483 # TEA specific: We actually want to use the default tcl.h checks in 10484 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10485 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10486echo "${ECHO_T}using Tcl header defaults" >&6; } 10487 else 10488 10489cat >>confdefs.h <<_ACEOF 10490#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10491_ACEOF 10492 10493 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10494echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10495 10496 # Now check for auxiliary declarations 10497 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10498echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10499if test "${tcl_cv_struct_dirent64+set}" = set; then 10500 echo $ECHO_N "(cached) $ECHO_C" >&6 10501else 10502 10503 cat >conftest.$ac_ext <<_ACEOF 10504/* confdefs.h. */ 10505_ACEOF 10506cat confdefs.h >>conftest.$ac_ext 10507cat >>conftest.$ac_ext <<_ACEOF 10508/* end confdefs.h. */ 10509#include <sys/types.h> 10510#include <sys/dirent.h> 10511int 10512main () 10513{ 10514struct dirent64 p; 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519rm -f conftest.$ac_objext 10520if { (ac_try="$ac_compile" 10521case "(($ac_try" in 10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10523 *) ac_try_echo=$ac_try;; 10524esac 10525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10526 (eval "$ac_compile") 2>conftest.er1 10527 ac_status=$? 10528 grep -v '^ *+' conftest.er1 >conftest.err 10529 rm -f conftest.er1 10530 cat conftest.err >&5 10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 (exit $ac_status); } && { 10533 test -z "$ac_c_werror_flag" || 10534 test ! -s conftest.err 10535 } && test -s conftest.$ac_objext; then 10536 tcl_cv_struct_dirent64=yes 10537else 10538 echo "$as_me: failed program was:" >&5 10539sed 's/^/| /' conftest.$ac_ext >&5 10540 10541 tcl_cv_struct_dirent64=no 10542fi 10543 10544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10545fi 10546{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10547echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10548 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10549 10550cat >>confdefs.h <<\_ACEOF 10551#define HAVE_STRUCT_DIRENT64 1 10552_ACEOF 10553 10554 fi 10555 10556 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10557echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10558if test "${tcl_cv_struct_stat64+set}" = set; then 10559 echo $ECHO_N "(cached) $ECHO_C" >&6 10560else 10561 10562 cat >conftest.$ac_ext <<_ACEOF 10563/* confdefs.h. */ 10564_ACEOF 10565cat confdefs.h >>conftest.$ac_ext 10566cat >>conftest.$ac_ext <<_ACEOF 10567/* end confdefs.h. */ 10568#include <sys/stat.h> 10569int 10570main () 10571{ 10572struct stat64 p; 10573 10574 ; 10575 return 0; 10576} 10577_ACEOF 10578rm -f conftest.$ac_objext 10579if { (ac_try="$ac_compile" 10580case "(($ac_try" in 10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10582 *) ac_try_echo=$ac_try;; 10583esac 10584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10585 (eval "$ac_compile") 2>conftest.er1 10586 ac_status=$? 10587 grep -v '^ *+' conftest.er1 >conftest.err 10588 rm -f conftest.er1 10589 cat conftest.err >&5 10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10591 (exit $ac_status); } && { 10592 test -z "$ac_c_werror_flag" || 10593 test ! -s conftest.err 10594 } && test -s conftest.$ac_objext; then 10595 tcl_cv_struct_stat64=yes 10596else 10597 echo "$as_me: failed program was:" >&5 10598sed 's/^/| /' conftest.$ac_ext >&5 10599 10600 tcl_cv_struct_stat64=no 10601fi 10602 10603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10604fi 10605{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10606echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10607 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10608 10609cat >>confdefs.h <<\_ACEOF 10610#define HAVE_STRUCT_STAT64 1 10611_ACEOF 10612 10613 fi 10614 10615 10616 10617for ac_func in open64 lseek64 10618do 10619as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10620{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10622if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10623 echo $ECHO_N "(cached) $ECHO_C" >&6 10624else 10625 cat >conftest.$ac_ext <<_ACEOF 10626/* confdefs.h. */ 10627_ACEOF 10628cat confdefs.h >>conftest.$ac_ext 10629cat >>conftest.$ac_ext <<_ACEOF 10630/* end confdefs.h. */ 10631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10632 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10633#define $ac_func innocuous_$ac_func 10634 10635/* System header to define __stub macros and hopefully few prototypes, 10636 which can conflict with char $ac_func (); below. 10637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10638 <limits.h> exists even on freestanding compilers. */ 10639 10640#ifdef __STDC__ 10641# include <limits.h> 10642#else 10643# include <assert.h> 10644#endif 10645 10646#undef $ac_func 10647 10648/* Override any GCC internal prototype to avoid an error. 10649 Use char because int might match the return type of a GCC 10650 builtin and then its argument prototype would still apply. */ 10651#ifdef __cplusplus 10652extern "C" 10653#endif 10654char $ac_func (); 10655/* The GNU C library defines this for functions which it implements 10656 to always fail with ENOSYS. Some functions are actually named 10657 something starting with __ and the normal name is an alias. */ 10658#if defined __stub_$ac_func || defined __stub___$ac_func 10659choke me 10660#endif 10661 10662int 10663main () 10664{ 10665return $ac_func (); 10666 ; 10667 return 0; 10668} 10669_ACEOF 10670rm -f conftest.$ac_objext conftest$ac_exeext 10671if { (ac_try="$ac_link" 10672case "(($ac_try" in 10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10674 *) ac_try_echo=$ac_try;; 10675esac 10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10677 (eval "$ac_link") 2>conftest.er1 10678 ac_status=$? 10679 grep -v '^ *+' conftest.er1 >conftest.err 10680 rm -f conftest.er1 10681 cat conftest.err >&5 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10683 (exit $ac_status); } && { 10684 test -z "$ac_c_werror_flag" || 10685 test ! -s conftest.err 10686 } && test -s conftest$ac_exeext && 10687 $as_test_x conftest$ac_exeext; then 10688 eval "$as_ac_var=yes" 10689else 10690 echo "$as_me: failed program was:" >&5 10691sed 's/^/| /' conftest.$ac_ext >&5 10692 10693 eval "$as_ac_var=no" 10694fi 10695 10696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10697 conftest$ac_exeext conftest.$ac_ext 10698fi 10699ac_res=`eval echo '${'$as_ac_var'}'` 10700 { echo "$as_me:$LINENO: result: $ac_res" >&5 10701echo "${ECHO_T}$ac_res" >&6; } 10702if test `eval echo '${'$as_ac_var'}'` = yes; then 10703 cat >>confdefs.h <<_ACEOF 10704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10705_ACEOF 10706 10707fi 10708done 10709 10710 { echo "$as_me:$LINENO: checking for off64_t" >&5 10711echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10712 if test "${tcl_cv_type_off64_t+set}" = set; then 10713 echo $ECHO_N "(cached) $ECHO_C" >&6 10714else 10715 10716 cat >conftest.$ac_ext <<_ACEOF 10717/* confdefs.h. */ 10718_ACEOF 10719cat confdefs.h >>conftest.$ac_ext 10720cat >>conftest.$ac_ext <<_ACEOF 10721/* end confdefs.h. */ 10722#include <sys/types.h> 10723int 10724main () 10725{ 10726off64_t offset; 10727 10728 ; 10729 return 0; 10730} 10731_ACEOF 10732rm -f conftest.$ac_objext 10733if { (ac_try="$ac_compile" 10734case "(($ac_try" in 10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10736 *) ac_try_echo=$ac_try;; 10737esac 10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10739 (eval "$ac_compile") 2>conftest.er1 10740 ac_status=$? 10741 grep -v '^ *+' conftest.er1 >conftest.err 10742 rm -f conftest.er1 10743 cat conftest.err >&5 10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10745 (exit $ac_status); } && { 10746 test -z "$ac_c_werror_flag" || 10747 test ! -s conftest.err 10748 } && test -s conftest.$ac_objext; then 10749 tcl_cv_type_off64_t=yes 10750else 10751 echo "$as_me: failed program was:" >&5 10752sed 's/^/| /' conftest.$ac_ext >&5 10753 10754 tcl_cv_type_off64_t=no 10755fi 10756 10757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10758fi 10759 10760 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10761 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10762 test "x${ac_cv_func_open64}" = "xyes" ; then 10763 10764cat >>confdefs.h <<\_ACEOF 10765#define HAVE_TYPE_OFF64_T 1 10766_ACEOF 10767 10768 { echo "$as_me:$LINENO: result: yes" >&5 10769echo "${ECHO_T}yes" >&6; } 10770 else 10771 { echo "$as_me:$LINENO: result: no" >&5 10772echo "${ECHO_T}no" >&6; } 10773 fi 10774 fi 10775 10776 10777 10778#-------------------------------------------------------------------- 10779# Set the default compiler switches based on the --enable-symbols option. 10780#-------------------------------------------------------------------- 10781 10782 10783 10784 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10785echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10786 # Check whether --enable-symbols was given. 10787if test "${enable_symbols+set}" = set; then 10788 enableval=$enable_symbols; tcl_ok=$enableval 10789else 10790 tcl_ok=no 10791fi 10792 10793 DBGX="" 10794 if test "$tcl_ok" = "no"; then 10795 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10796 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10797 { echo "$as_me:$LINENO: result: no" >&5 10798echo "${ECHO_T}no" >&6; } 10799 else 10800 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10801 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10802 if test "$tcl_ok" = "yes"; then 10803 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10804echo "${ECHO_T}yes (standard debugging)" >&6; } 10805 fi 10806 fi 10807 # TEA specific: 10808 if test "${TEA_PLATFORM}" != "windows" ; then 10809 LDFLAGS_DEFAULT="${LDFLAGS}" 10810 fi 10811 10812 10813 10814 10815 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10816 10817cat >>confdefs.h <<\_ACEOF 10818#define TCL_MEM_DEBUG 1 10819_ACEOF 10820 10821 fi 10822 10823 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10824 if test "$tcl_ok" = "all"; then 10825 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10826echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10827 else 10828 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10829echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10830 fi 10831 fi 10832 10833 10834#-------------------------------------------------------------------- 10835# For Unix/Tk builds, make sure that the X libraries/headers are found. 10836# This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS. 10837#-------------------------------------------------------------------- 10838 10839 10840 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then 10841 10842 { echo "$as_me:$LINENO: checking for X" >&5 10843echo $ECHO_N "checking for X... $ECHO_C" >&6; } 10844 10845 10846# Check whether --with-x was given. 10847if test "${with_x+set}" = set; then 10848 withval=$with_x; 10849fi 10850 10851# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 10852if test "x$with_x" = xno; then 10853 # The user explicitly disabled X. 10854 have_x=disabled 10855else 10856 case $x_includes,$x_libraries in #( 10857 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 10858echo "$as_me: error: Cannot use X directory names containing '" >&2;} 10859 { (exit 1); exit 1; }; };; #( 10860 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 10861 echo $ECHO_N "(cached) $ECHO_C" >&6 10862else 10863 # One or both of the vars are not set, and there is no cached value. 10864ac_x_includes=no ac_x_libraries=no 10865rm -f -r conftest.dir 10866if mkdir conftest.dir; then 10867 cd conftest.dir 10868 cat >Imakefile <<'_ACEOF' 10869incroot: 10870 @echo incroot='${INCROOT}' 10871usrlibdir: 10872 @echo usrlibdir='${USRLIBDIR}' 10873libdir: 10874 @echo libdir='${LIBDIR}' 10875_ACEOF 10876 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 10877 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10878 for ac_var in incroot usrlibdir libdir; do 10879 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 10880 done 10881 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 10882 for ac_extension in a so sl dylib la dll; do 10883 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 10884 test -f "$ac_im_libdir/libX11.$ac_extension"; then 10885 ac_im_usrlibdir=$ac_im_libdir; break 10886 fi 10887 done 10888 # Screen out bogus values from the imake configuration. They are 10889 # bogus both because they are the default anyway, and because 10890 # using them would break gcc on systems where it needs fixed includes. 10891 case $ac_im_incroot in 10892 /usr/include) ac_x_includes= ;; 10893 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 10894 esac 10895 case $ac_im_usrlibdir in 10896 /usr/lib | /lib) ;; 10897 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 10898 esac 10899 fi 10900 cd .. 10901 rm -f -r conftest.dir 10902fi 10903 10904# Standard set of common directories for X headers. 10905# Check X11 before X11Rn because it is often a symlink to the current release. 10906ac_x_header_dirs=' 10907/usr/X11/include 10908/usr/X11R6/include 10909/usr/X11R5/include 10910/usr/X11R4/include 10911 10912/usr/include/X11 10913/usr/include/X11R6 10914/usr/include/X11R5 10915/usr/include/X11R4 10916 10917/usr/local/X11/include 10918/usr/local/X11R6/include 10919/usr/local/X11R5/include 10920/usr/local/X11R4/include 10921 10922/usr/local/include/X11 10923/usr/local/include/X11R6 10924/usr/local/include/X11R5 10925/usr/local/include/X11R4 10926 10927/usr/X386/include 10928/usr/x386/include 10929/usr/XFree86/include/X11 10930 10931/usr/include 10932/usr/local/include 10933/usr/unsupported/include 10934/usr/athena/include 10935/usr/local/x11r5/include 10936/usr/lpp/Xamples/include 10937 10938/usr/openwin/include 10939/usr/openwin/share/include' 10940 10941if test "$ac_x_includes" = no; then 10942 # Guess where to find include files, by looking for Xlib.h. 10943 # First, try using that file with no special directory specified. 10944 cat >conftest.$ac_ext <<_ACEOF 10945/* confdefs.h. */ 10946_ACEOF 10947cat confdefs.h >>conftest.$ac_ext 10948cat >>conftest.$ac_ext <<_ACEOF 10949/* end confdefs.h. */ 10950#include <X11/Xlib.h> 10951_ACEOF 10952if { (ac_try="$ac_cpp conftest.$ac_ext" 10953case "(($ac_try" in 10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10955 *) ac_try_echo=$ac_try;; 10956esac 10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10959 ac_status=$? 10960 grep -v '^ *+' conftest.er1 >conftest.err 10961 rm -f conftest.er1 10962 cat conftest.err >&5 10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10964 (exit $ac_status); } >/dev/null && { 10965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10966 test ! -s conftest.err 10967 }; then 10968 # We can compile using X headers with no special include directory. 10969ac_x_includes= 10970else 10971 echo "$as_me: failed program was:" >&5 10972sed 's/^/| /' conftest.$ac_ext >&5 10973 10974 for ac_dir in $ac_x_header_dirs; do 10975 if test -r "$ac_dir/X11/Xlib.h"; then 10976 ac_x_includes=$ac_dir 10977 break 10978 fi 10979done 10980fi 10981 10982rm -f conftest.err conftest.$ac_ext 10983fi # $ac_x_includes = no 10984 10985if test "$ac_x_libraries" = no; then 10986 # Check for the libraries. 10987 # See if we find them without any special options. 10988 # Don't add to $LIBS permanently. 10989 ac_save_LIBS=$LIBS 10990 LIBS="-lX11 $LIBS" 10991 cat >conftest.$ac_ext <<_ACEOF 10992/* confdefs.h. */ 10993_ACEOF 10994cat confdefs.h >>conftest.$ac_ext 10995cat >>conftest.$ac_ext <<_ACEOF 10996/* end confdefs.h. */ 10997#include <X11/Xlib.h> 10998int 10999main () 11000{ 11001XrmInitialize () 11002 ; 11003 return 0; 11004} 11005_ACEOF 11006rm -f conftest.$ac_objext conftest$ac_exeext 11007if { (ac_try="$ac_link" 11008case "(($ac_try" in 11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11010 *) ac_try_echo=$ac_try;; 11011esac 11012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11013 (eval "$ac_link") 2>conftest.er1 11014 ac_status=$? 11015 grep -v '^ *+' conftest.er1 >conftest.err 11016 rm -f conftest.er1 11017 cat conftest.err >&5 11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11019 (exit $ac_status); } && { 11020 test -z "$ac_c_werror_flag" || 11021 test ! -s conftest.err 11022 } && test -s conftest$ac_exeext && 11023 $as_test_x conftest$ac_exeext; then 11024 LIBS=$ac_save_LIBS 11025# We can link X programs with no special library path. 11026ac_x_libraries= 11027else 11028 echo "$as_me: failed program was:" >&5 11029sed 's/^/| /' conftest.$ac_ext >&5 11030 11031 LIBS=$ac_save_LIBS 11032for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 11033do 11034 # Don't even attempt the hair of trying to link an X program! 11035 for ac_extension in a so sl dylib la dll; do 11036 if test -r "$ac_dir/libX11.$ac_extension"; then 11037 ac_x_libraries=$ac_dir 11038 break 2 11039 fi 11040 done 11041done 11042fi 11043 11044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11045 conftest$ac_exeext conftest.$ac_ext 11046fi # $ac_x_libraries = no 11047 11048case $ac_x_includes,$ac_x_libraries in #( 11049 no,* | *,no | *\'*) 11050 # Didn't find X, or a directory has "'" in its name. 11051 ac_cv_have_x="have_x=no";; #( 11052 *) 11053 # Record where we found X for the cache. 11054 ac_cv_have_x="have_x=yes\ 11055 ac_x_includes='$ac_x_includes'\ 11056 ac_x_libraries='$ac_x_libraries'" 11057esac 11058fi 11059;; #( 11060 *) have_x=yes;; 11061 esac 11062 eval "$ac_cv_have_x" 11063fi # $with_x != no 11064 11065if test "$have_x" != yes; then 11066 { echo "$as_me:$LINENO: result: $have_x" >&5 11067echo "${ECHO_T}$have_x" >&6; } 11068 no_x=yes 11069else 11070 # If each of the values was on the command line, it overrides each guess. 11071 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 11072 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 11073 # Update the cache value to reflect the command line values. 11074 ac_cv_have_x="have_x=yes\ 11075 ac_x_includes='$x_includes'\ 11076 ac_x_libraries='$x_libraries'" 11077 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 11078echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 11079fi 11080 11081 not_really_there="" 11082 if test "$no_x" = ""; then 11083 if test "$x_includes" = ""; then 11084 cat >conftest.$ac_ext <<_ACEOF 11085/* confdefs.h. */ 11086_ACEOF 11087cat confdefs.h >>conftest.$ac_ext 11088cat >>conftest.$ac_ext <<_ACEOF 11089/* end confdefs.h. */ 11090#include <X11/XIntrinsic.h> 11091_ACEOF 11092if { (ac_try="$ac_cpp conftest.$ac_ext" 11093case "(($ac_try" in 11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11095 *) ac_try_echo=$ac_try;; 11096esac 11097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11099 ac_status=$? 11100 grep -v '^ *+' conftest.er1 >conftest.err 11101 rm -f conftest.er1 11102 cat conftest.err >&5 11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); } >/dev/null && { 11105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11106 test ! -s conftest.err 11107 }; then 11108 : 11109else 11110 echo "$as_me: failed program was:" >&5 11111sed 's/^/| /' conftest.$ac_ext >&5 11112 11113 not_really_there="yes" 11114fi 11115 11116rm -f conftest.err conftest.$ac_ext 11117 else 11118 if test ! -r $x_includes/X11/Intrinsic.h; then 11119 not_really_there="yes" 11120 fi 11121 fi 11122 fi 11123 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 11124 { echo "$as_me:$LINENO: checking for X11 header files" >&5 11125echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; } 11126 found_xincludes="no" 11127 cat >conftest.$ac_ext <<_ACEOF 11128/* confdefs.h. */ 11129_ACEOF 11130cat confdefs.h >>conftest.$ac_ext 11131cat >>conftest.$ac_ext <<_ACEOF 11132/* end confdefs.h. */ 11133#include <X11/Intrinsic.h> 11134_ACEOF 11135if { (ac_try="$ac_cpp conftest.$ac_ext" 11136case "(($ac_try" in 11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11138 *) ac_try_echo=$ac_try;; 11139esac 11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11142 ac_status=$? 11143 grep -v '^ *+' conftest.er1 >conftest.err 11144 rm -f conftest.er1 11145 cat conftest.err >&5 11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11147 (exit $ac_status); } >/dev/null && { 11148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11149 test ! -s conftest.err 11150 }; then 11151 found_xincludes="yes" 11152else 11153 echo "$as_me: failed program was:" >&5 11154sed 's/^/| /' conftest.$ac_ext >&5 11155 11156 found_xincludes="no" 11157fi 11158 11159rm -f conftest.err conftest.$ac_ext 11160 if test "$found_xincludes" = "no"; then 11161 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" 11162 for i in $dirs ; do 11163 if test -r $i/X11/Intrinsic.h; then 11164 { echo "$as_me:$LINENO: result: $i" >&5 11165echo "${ECHO_T}$i" >&6; } 11166 XINCLUDES=" -I$i" 11167 found_xincludes="yes" 11168 break 11169 fi 11170 done 11171 fi 11172 else 11173 if test "$x_includes" != ""; then 11174 XINCLUDES="-I$x_includes" 11175 found_xincludes="yes" 11176 fi 11177 fi 11178 if test "$found_xincludes" = "no"; then 11179 { echo "$as_me:$LINENO: result: couldn't find any!" >&5 11180echo "${ECHO_T}couldn't find any!" >&6; } 11181 fi 11182 11183 if test "$no_x" = yes; then 11184 { echo "$as_me:$LINENO: checking for X11 libraries" >&5 11185echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; } 11186 XLIBSW=nope 11187 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" 11188 for i in $dirs ; do 11189 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 11190 { echo "$as_me:$LINENO: result: $i" >&5 11191echo "${ECHO_T}$i" >&6; } 11192 XLIBSW="-L$i -lX11" 11193 x_libraries="$i" 11194 break 11195 fi 11196 done 11197 else 11198 if test "$x_libraries" = ""; then 11199 XLIBSW=-lX11 11200 else 11201 XLIBSW="-L$x_libraries -lX11" 11202 fi 11203 fi 11204 if test "$XLIBSW" = nope ; then 11205 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 11206echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; } 11207if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 11208 echo $ECHO_N "(cached) $ECHO_C" >&6 11209else 11210 ac_check_lib_save_LIBS=$LIBS 11211LIBS="-lXwindow $LIBS" 11212cat >conftest.$ac_ext <<_ACEOF 11213/* confdefs.h. */ 11214_ACEOF 11215cat confdefs.h >>conftest.$ac_ext 11216cat >>conftest.$ac_ext <<_ACEOF 11217/* end confdefs.h. */ 11218 11219/* Override any GCC internal prototype to avoid an error. 11220 Use char because int might match the return type of a GCC 11221 builtin and then its argument prototype would still apply. */ 11222#ifdef __cplusplus 11223extern "C" 11224#endif 11225char XCreateWindow (); 11226int 11227main () 11228{ 11229return XCreateWindow (); 11230 ; 11231 return 0; 11232} 11233_ACEOF 11234rm -f conftest.$ac_objext conftest$ac_exeext 11235if { (ac_try="$ac_link" 11236case "(($ac_try" in 11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11238 *) ac_try_echo=$ac_try;; 11239esac 11240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11241 (eval "$ac_link") 2>conftest.er1 11242 ac_status=$? 11243 grep -v '^ *+' conftest.er1 >conftest.err 11244 rm -f conftest.er1 11245 cat conftest.err >&5 11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11247 (exit $ac_status); } && { 11248 test -z "$ac_c_werror_flag" || 11249 test ! -s conftest.err 11250 } && test -s conftest$ac_exeext && 11251 $as_test_x conftest$ac_exeext; then 11252 ac_cv_lib_Xwindow_XCreateWindow=yes 11253else 11254 echo "$as_me: failed program was:" >&5 11255sed 's/^/| /' conftest.$ac_ext >&5 11256 11257 ac_cv_lib_Xwindow_XCreateWindow=no 11258fi 11259 11260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11261 conftest$ac_exeext conftest.$ac_ext 11262LIBS=$ac_check_lib_save_LIBS 11263fi 11264{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 11265echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; } 11266if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 11267 XLIBSW=-lXwindow 11268fi 11269 11270 fi 11271 if test "$XLIBSW" = nope ; then 11272 { echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 11273echo "${ECHO_T}could not find any! Using -lX11." >&6; } 11274 XLIBSW=-lX11 11275 fi 11276 # TEA specific: 11277 if test x"${XLIBSW}" != x ; then 11278 PKG_LIBS="${PKG_LIBS} ${XLIBSW}" 11279 fi 11280 11281 fi 11282 11283 11284#-------------------------------------------------------------------- 11285# Everyone should be linking against the Tcl stub library. If you 11286# can't for some reason, remove this definition. If you aren't using 11287# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 11288# link against the non-stubbed Tcl library. 11289#-------------------------------------------------------------------- 11290 11291cat >>confdefs.h <<\_ACEOF 11292#define USE_TCL_STUBS 1 11293_ACEOF 11294 11295cat >>confdefs.h <<\_ACEOF 11296#define USE_TK_STUBS 1 11297_ACEOF 11298 11299 11300#-------------------------------------------------------------------- 11301# This macro generates a line to use when building a library. It 11302# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 11303# and TEA_LOAD_TCLCONFIG macros above. 11304#-------------------------------------------------------------------- 11305 11306 11307 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 11308 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 11309 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 11310 cat >conftest.$ac_ext <<_ACEOF 11311/* confdefs.h. */ 11312_ACEOF 11313cat confdefs.h >>conftest.$ac_ext 11314cat >>conftest.$ac_ext <<_ACEOF 11315/* end confdefs.h. */ 11316 11317#if defined(_MSC_VER) && _MSC_VER >= 1400 11318print("manifest needed") 11319#endif 11320 11321_ACEOF 11322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11323 $EGREP "manifest needed" >/dev/null 2>&1; then 11324 11325 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 11326 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 11327 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 11328 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 11329 11330 CLEANFILES="$CLEANFILES *.manifest" 11331 11332 11333fi 11334rm -f -r conftest* 11335 11336 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 11337 else 11338 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 11339 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 11340 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 11341 fi 11342 11343 if test "${SHARED_BUILD}" = "1" ; then 11344 MAKE_LIB="${MAKE_SHARED_LIB} " 11345 else 11346 MAKE_LIB="${MAKE_STATIC_LIB} " 11347 fi 11348 11349 #-------------------------------------------------------------------- 11350 # Shared libraries and static libraries have different names. 11351 # Use the double eval to make sure any variables in the suffix is 11352 # substituted. (@@@ Might not be necessary anymore) 11353 #-------------------------------------------------------------------- 11354 11355 if test "${TEA_PLATFORM}" = "windows" ; then 11356 if test "${SHARED_BUILD}" = "1" ; then 11357 # We force the unresolved linking of symbols that are really in 11358 # the private libraries of Tcl and Tk. 11359 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 11360 if test x"${TK_BIN_DIR}" != x ; then 11361 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 11362 fi 11363 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11364 else 11365 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11366 fi 11367 # Some packages build their own stubs libraries 11368 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11369 if test "$GCC" = "yes"; then 11370 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 11371 fi 11372 # These aren't needed on Windows (either MSVC or gcc) 11373 RANLIB=: 11374 RANLIB_STUB=: 11375 else 11376 RANLIB_STUB="${RANLIB}" 11377 if test "${SHARED_BUILD}" = "1" ; then 11378 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 11379 if test x"${TK_BIN_DIR}" != x ; then 11380 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 11381 fi 11382 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 11383 RANLIB=: 11384 else 11385 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 11386 fi 11387 # Some packages build their own stubs libraries 11388 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 11389 fi 11390 11391 # These are escaped so that only CFLAGS is picked up at configure time. 11392 # The other values will be substituted at make time. 11393 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 11394 if test "${SHARED_BUILD}" = "1" ; then 11395 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 11396 fi 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407#-------------------------------------------------------------------- 11408# __CHANGE__ 11409# Add platform libs to LIBS or SHLIB_LD_LIBS as necessary. 11410#-------------------------------------------------------------------- 11411 11412if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 11413 11414 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\"" 11415 for i in $vars; do 11416 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11417 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11418 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11419 fi 11420 PKG_LIBS="$PKG_LIBS $i" 11421 done 11422 11423 11424else 11425 11426 vars="${tkimg_STUB_LIB_SPEC}" 11427 for i in $vars; do 11428 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 11429 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 11430 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 11431 fi 11432 PKG_LIBS="$PKG_LIBS $i" 11433 done 11434 11435 11436fi 11437 11438#-------------------------------------------------------------------- 11439# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 11440# file during the install process. Don't run the TCLSH_PROG through 11441# ${CYGPATH} because it's being used directly by make. 11442# Require that we use a tclsh shell version 8.2 or later since earlier 11443# versions have bugs in the pkg_mkIndex routine. 11444# Add WISH as well if this is a Tk extension. 11445#-------------------------------------------------------------------- 11446 11447 11448 { echo "$as_me:$LINENO: checking for tclsh" >&5 11449echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 11450 if test -f "${TCL_BIN_DIR}/Makefile" ; then 11451 # tclConfig.sh is in Tcl build directory 11452 if test "${TEA_PLATFORM}" = "windows"; then 11453 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11454 else 11455 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 11456 fi 11457 else 11458 # tclConfig.sh is in install location 11459 if test "${TEA_PLATFORM}" = "windows"; then 11460 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 11461 else 11462 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 11463 fi 11464 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 11465 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 11466 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 11467 for i in $list ; do 11468 if test -f "$i/${TCLSH_PROG}" ; then 11469 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 11470 break 11471 fi 11472 done 11473 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 11474 fi 11475 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 11476echo "${ECHO_T}${TCLSH_PROG}" >&6; } 11477 11478 11479 11480 { echo "$as_me:$LINENO: checking for wish" >&5 11481echo $ECHO_N "checking for wish... $ECHO_C" >&6; } 11482 if test -f "${TK_BIN_DIR}/Makefile" ; then 11483 # tkConfig.sh is in Tk build directory 11484 if test "${TEA_PLATFORM}" = "windows"; then 11485 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11486 else 11487 WISH_PROG="${TK_BIN_DIR}/wish" 11488 fi 11489 else 11490 # tkConfig.sh is in install location 11491 if test "${TEA_PLATFORM}" = "windows"; then 11492 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${TK_DBGX}${EXEEXT}" 11493 else 11494 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}${TK_DBGX}" 11495 fi 11496 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \ 11497 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \ 11498 `ls -d ${TK_PREFIX}/bin 2>/dev/null`" 11499 for i in $list ; do 11500 if test -f "$i/${WISH_PROG}" ; then 11501 REAL_TK_BIN_DIR="`cd "$i"; pwd`/" 11502 break 11503 fi 11504 done 11505 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}" 11506 fi 11507 { echo "$as_me:$LINENO: result: ${WISH_PROG}" >&5 11508echo "${ECHO_T}${WISH_PROG}" >&6; } 11509 11510 11511 11512#-------------------------------------------------------------------- 11513# Finally, substitute all of the various values into the Makefile. 11514# You may alternatively have a special pkgIndex.tcl.in or other files 11515# which require substituting th AC variables in. Include these here. 11516#-------------------------------------------------------------------- 11517 11518ac_config_files="$ac_config_files Makefile" 11519 11520cat >confcache <<\_ACEOF 11521# This file is a shell script that caches the results of configure 11522# tests run on this system so they can be shared between configure 11523# scripts and configure runs, see configure's option --config-cache. 11524# It is not useful on other systems. If it contains results you don't 11525# want to keep, you may remove or edit it. 11526# 11527# config.status only pays attention to the cache file if you give it 11528# the --recheck option to rerun configure. 11529# 11530# `ac_cv_env_foo' variables (set or unset) will be overridden when 11531# loading this file, other *unset* `ac_cv_foo' will be assigned the 11532# following values. 11533 11534_ACEOF 11535 11536# The following way of writing the cache mishandles newlines in values, 11537# but we know of no workaround that is simple, portable, and efficient. 11538# So, we kill variables containing newlines. 11539# Ultrix sh set writes to stderr and can't be redirected directly, 11540# and sets the high bit in the cache file unless we assign to the vars. 11541( 11542 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11543 eval ac_val=\$$ac_var 11544 case $ac_val in #( 11545 *${as_nl}*) 11546 case $ac_var in #( 11547 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11548echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11549 esac 11550 case $ac_var in #( 11551 _ | IFS | as_nl) ;; #( 11552 *) $as_unset $ac_var ;; 11553 esac ;; 11554 esac 11555 done 11556 11557 (set) 2>&1 | 11558 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11559 *${as_nl}ac_space=\ *) 11560 # `set' does not quote correctly, so add quotes (double-quote 11561 # substitution turns \\\\ into \\, and sed turns \\ into \). 11562 sed -n \ 11563 "s/'/'\\\\''/g; 11564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11565 ;; #( 11566 *) 11567 # `set' quotes correctly as required by POSIX, so do not add quotes. 11568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11569 ;; 11570 esac | 11571 sort 11572) | 11573 sed ' 11574 /^ac_cv_env_/b end 11575 t clear 11576 :clear 11577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11578 t end 11579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11580 :end' >>confcache 11581if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11582 if test -w "$cache_file"; then 11583 test "x$cache_file" != "x/dev/null" && 11584 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11585echo "$as_me: updating cache $cache_file" >&6;} 11586 cat confcache >$cache_file 11587 else 11588 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11589echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11590 fi 11591fi 11592rm -f confcache 11593 11594test "x$prefix" = xNONE && prefix=$ac_default_prefix 11595# Let make expand exec_prefix. 11596test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11597 11598# Transform confdefs.h into DEFS. 11599# Protect against shell expansion while executing Makefile rules. 11600# Protect against Makefile macro expansion. 11601# 11602# If the first sed substitution is executed (which looks for macros that 11603# take arguments), then branch to the quote section. Otherwise, 11604# look for a macro that doesn't take arguments. 11605ac_script=' 11606t clear 11607:clear 11608s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11609t quote 11610s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11611t quote 11612b any 11613:quote 11614s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11615s/\[/\\&/g 11616s/\]/\\&/g 11617s/\$/$$/g 11618H 11619:any 11620${ 11621 g 11622 s/^\n// 11623 s/\n/ /g 11624 p 11625} 11626' 11627DEFS=`sed -n "$ac_script" confdefs.h` 11628 11629 11630ac_libobjs= 11631ac_ltlibobjs= 11632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11633 # 1. Remove the extension, and $U if already installed. 11634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11635 ac_i=`echo "$ac_i" | sed "$ac_script"` 11636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11637 # will be set to the directory where LIBOBJS objects are built. 11638 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11639 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11640done 11641LIBOBJS=$ac_libobjs 11642 11643LTLIBOBJS=$ac_ltlibobjs 11644 11645 11646CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11647 11648: ${CONFIG_STATUS=./config.status} 11649ac_clean_files_save=$ac_clean_files 11650ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11651{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11652echo "$as_me: creating $CONFIG_STATUS" >&6;} 11653cat >$CONFIG_STATUS <<_ACEOF 11654#! $SHELL 11655# Generated by $as_me. 11656# Run this file to recreate the current configuration. 11657# Compiler output produced by configure, useful for debugging 11658# configure, is in config.log if it exists. 11659 11660debug=false 11661ac_cs_recheck=false 11662ac_cs_silent=false 11663SHELL=\${CONFIG_SHELL-$SHELL} 11664_ACEOF 11665 11666cat >>$CONFIG_STATUS <<\_ACEOF 11667## --------------------- ## 11668## M4sh Initialization. ## 11669## --------------------- ## 11670 11671# Be more Bourne compatible 11672DUALCASE=1; export DUALCASE # for MKS sh 11673if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11674 emulate sh 11675 NULLCMD=: 11676 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11677 # is contrary to our usage. Disable this feature. 11678 alias -g '${1+"$@"}'='"$@"' 11679 setopt NO_GLOB_SUBST 11680else 11681 case `(set -o) 2>/dev/null` in 11682 *posix*) set -o posix ;; 11683esac 11684 11685fi 11686 11687 11688 11689 11690# PATH needs CR 11691# Avoid depending upon Character Ranges. 11692as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11693as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11694as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11695as_cr_digits='0123456789' 11696as_cr_alnum=$as_cr_Letters$as_cr_digits 11697 11698# The user is always right. 11699if test "${PATH_SEPARATOR+set}" != set; then 11700 echo "#! /bin/sh" >conf$$.sh 11701 echo "exit 0" >>conf$$.sh 11702 chmod +x conf$$.sh 11703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11704 PATH_SEPARATOR=';' 11705 else 11706 PATH_SEPARATOR=: 11707 fi 11708 rm -f conf$$.sh 11709fi 11710 11711# Support unset when possible. 11712if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11713 as_unset=unset 11714else 11715 as_unset=false 11716fi 11717 11718 11719# IFS 11720# We need space, tab and new line, in precisely that order. Quoting is 11721# there to prevent editors from complaining about space-tab. 11722# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11723# splitting by setting IFS to empty value.) 11724as_nl=' 11725' 11726IFS=" "" $as_nl" 11727 11728# Find who we are. Look in the path if we contain no directory separator. 11729case $0 in 11730 *[\\/]* ) as_myself=$0 ;; 11731 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11732for as_dir in $PATH 11733do 11734 IFS=$as_save_IFS 11735 test -z "$as_dir" && as_dir=. 11736 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11737done 11738IFS=$as_save_IFS 11739 11740 ;; 11741esac 11742# We did not find ourselves, most probably we were run as `sh COMMAND' 11743# in which case we are not to be found in the path. 11744if test "x$as_myself" = x; then 11745 as_myself=$0 11746fi 11747if test ! -f "$as_myself"; then 11748 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11749 { (exit 1); exit 1; } 11750fi 11751 11752# Work around bugs in pre-3.0 UWIN ksh. 11753for as_var in ENV MAIL MAILPATH 11754do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11755done 11756PS1='$ ' 11757PS2='> ' 11758PS4='+ ' 11759 11760# NLS nuisances. 11761for as_var in \ 11762 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11763 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11764 LC_TELEPHONE LC_TIME 11765do 11766 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11767 eval $as_var=C; export $as_var 11768 else 11769 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11770 fi 11771done 11772 11773# Required to use basename. 11774if expr a : '\(a\)' >/dev/null 2>&1 && 11775 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11776 as_expr=expr 11777else 11778 as_expr=false 11779fi 11780 11781if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11782 as_basename=basename 11783else 11784 as_basename=false 11785fi 11786 11787 11788# Name of the executable. 11789as_me=`$as_basename -- "$0" || 11790$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11791 X"$0" : 'X\(//\)$' \| \ 11792 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11793echo X/"$0" | 11794 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11795 s//\1/ 11796 q 11797 } 11798 /^X\/\(\/\/\)$/{ 11799 s//\1/ 11800 q 11801 } 11802 /^X\/\(\/\).*/{ 11803 s//\1/ 11804 q 11805 } 11806 s/.*/./; q'` 11807 11808# CDPATH. 11809$as_unset CDPATH 11810 11811 11812 11813 as_lineno_1=$LINENO 11814 as_lineno_2=$LINENO 11815 test "x$as_lineno_1" != "x$as_lineno_2" && 11816 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11817 11818 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11819 # uniformly replaced by the line number. The first 'sed' inserts a 11820 # line-number line after each line using $LINENO; the second 'sed' 11821 # does the real work. The second script uses 'N' to pair each 11822 # line-number line with the line containing $LINENO, and appends 11823 # trailing '-' during substitution so that $LINENO is not a special 11824 # case at line end. 11825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11826 # scripts with optimization help from Paolo Bonzini. Blame Lee 11827 # E. McMahon (1931-1989) for sed's syntax. :-) 11828 sed -n ' 11829 p 11830 /[$]LINENO/= 11831 ' <$as_myself | 11832 sed ' 11833 s/[$]LINENO.*/&-/ 11834 t lineno 11835 b 11836 :lineno 11837 N 11838 :loop 11839 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11840 t loop 11841 s/-\n.*// 11842 ' >$as_me.lineno && 11843 chmod +x "$as_me.lineno" || 11844 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11845 { (exit 1); exit 1; }; } 11846 11847 # Don't try to exec as it changes $[0], causing all sort of problems 11848 # (the dirname of $[0] is not the place where we might find the 11849 # original and so on. Autoconf is especially sensitive to this). 11850 . "./$as_me.lineno" 11851 # Exit status is that of the last command. 11852 exit 11853} 11854 11855 11856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11857 as_dirname=dirname 11858else 11859 as_dirname=false 11860fi 11861 11862ECHO_C= ECHO_N= ECHO_T= 11863case `echo -n x` in 11864-n*) 11865 case `echo 'x\c'` in 11866 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11867 *) ECHO_C='\c';; 11868 esac;; 11869*) 11870 ECHO_N='-n';; 11871esac 11872 11873if expr a : '\(a\)' >/dev/null 2>&1 && 11874 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11875 as_expr=expr 11876else 11877 as_expr=false 11878fi 11879 11880rm -f conf$$ conf$$.exe conf$$.file 11881if test -d conf$$.dir; then 11882 rm -f conf$$.dir/conf$$.file 11883else 11884 rm -f conf$$.dir 11885 mkdir conf$$.dir 11886fi 11887echo >conf$$.file 11888if ln -s conf$$.file conf$$ 2>/dev/null; then 11889 as_ln_s='ln -s' 11890 # ... but there are two gotchas: 11891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11893 # In both cases, we have to default to `cp -p'. 11894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11895 as_ln_s='cp -p' 11896elif ln conf$$.file conf$$ 2>/dev/null; then 11897 as_ln_s=ln 11898else 11899 as_ln_s='cp -p' 11900fi 11901rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11902rmdir conf$$.dir 2>/dev/null 11903 11904if mkdir -p . 2>/dev/null; then 11905 as_mkdir_p=: 11906else 11907 test -d ./-p && rmdir ./-p 11908 as_mkdir_p=false 11909fi 11910 11911if test -x / >/dev/null 2>&1; then 11912 as_test_x='test -x' 11913else 11914 if ls -dL / >/dev/null 2>&1; then 11915 as_ls_L_option=L 11916 else 11917 as_ls_L_option= 11918 fi 11919 as_test_x=' 11920 eval sh -c '\'' 11921 if test -d "$1"; then 11922 test -d "$1/."; 11923 else 11924 case $1 in 11925 -*)set "./$1";; 11926 esac; 11927 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11928 ???[sx]*):;;*)false;;esac;fi 11929 '\'' sh 11930 ' 11931fi 11932as_executable_p=$as_test_x 11933 11934# Sed expression to map a string onto a valid CPP name. 11935as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11936 11937# Sed expression to map a string onto a valid variable name. 11938as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11939 11940 11941exec 6>&1 11942 11943# Save the log message, to keep $[0] and so on meaningful, and to 11944# report actual input values of CONFIG_FILES etc. instead of their 11945# values after options handling. 11946ac_log=" 11947This file was extended by tkimgdted $as_me 1.4, which was 11948generated by GNU Autoconf 2.61. Invocation command line was 11949 11950 CONFIG_FILES = $CONFIG_FILES 11951 CONFIG_HEADERS = $CONFIG_HEADERS 11952 CONFIG_LINKS = $CONFIG_LINKS 11953 CONFIG_COMMANDS = $CONFIG_COMMANDS 11954 $ $0 $@ 11955 11956on `(hostname || uname -n) 2>/dev/null | sed 1q` 11957" 11958 11959_ACEOF 11960 11961cat >>$CONFIG_STATUS <<_ACEOF 11962# Files that config.status was made for. 11963config_files="$ac_config_files" 11964 11965_ACEOF 11966 11967cat >>$CONFIG_STATUS <<\_ACEOF 11968ac_cs_usage="\ 11969\`$as_me' instantiates files from templates according to the 11970current configuration. 11971 11972Usage: $0 [OPTIONS] [FILE]... 11973 11974 -h, --help print this help, then exit 11975 -V, --version print version number and configuration settings, then exit 11976 -q, --quiet do not print progress messages 11977 -d, --debug don't remove temporary files 11978 --recheck update $as_me by reconfiguring in the same conditions 11979 --file=FILE[:TEMPLATE] 11980 instantiate the configuration file FILE 11981 11982Configuration files: 11983$config_files 11984 11985Report bugs to <bug-autoconf@gnu.org>." 11986 11987_ACEOF 11988cat >>$CONFIG_STATUS <<_ACEOF 11989ac_cs_version="\\ 11990tkimgdted config.status 1.4 11991configured by $0, generated by GNU Autoconf 2.61, 11992 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11993 11994Copyright (C) 2006 Free Software Foundation, Inc. 11995This config.status script is free software; the Free Software Foundation 11996gives unlimited permission to copy, distribute and modify it." 11997 11998ac_pwd='$ac_pwd' 11999srcdir='$srcdir' 12000INSTALL='$INSTALL' 12001_ACEOF 12002 12003cat >>$CONFIG_STATUS <<\_ACEOF 12004# If no file are specified by the user, then we need to provide default 12005# value. By we need to know if files were specified by the user. 12006ac_need_defaults=: 12007while test $# != 0 12008do 12009 case $1 in 12010 --*=*) 12011 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12012 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12013 ac_shift=: 12014 ;; 12015 *) 12016 ac_option=$1 12017 ac_optarg=$2 12018 ac_shift=shift 12019 ;; 12020 esac 12021 12022 case $ac_option in 12023 # Handling of the options. 12024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12025 ac_cs_recheck=: ;; 12026 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12027 echo "$ac_cs_version"; exit ;; 12028 --debug | --debu | --deb | --de | --d | -d ) 12029 debug=: ;; 12030 --file | --fil | --fi | --f ) 12031 $ac_shift 12032 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12033 ac_need_defaults=false;; 12034 --he | --h | --help | --hel | -h ) 12035 echo "$ac_cs_usage"; exit ;; 12036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12037 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12038 ac_cs_silent=: ;; 12039 12040 # This is an error. 12041 -*) { echo "$as_me: error: unrecognized option: $1 12042Try \`$0 --help' for more information." >&2 12043 { (exit 1); exit 1; }; } ;; 12044 12045 *) ac_config_targets="$ac_config_targets $1" 12046 ac_need_defaults=false ;; 12047 12048 esac 12049 shift 12050done 12051 12052ac_configure_extra_args= 12053 12054if $ac_cs_silent; then 12055 exec 6>/dev/null 12056 ac_configure_extra_args="$ac_configure_extra_args --silent" 12057fi 12058 12059_ACEOF 12060cat >>$CONFIG_STATUS <<_ACEOF 12061if \$ac_cs_recheck; then 12062 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12063 CONFIG_SHELL=$SHELL 12064 export CONFIG_SHELL 12065 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12066fi 12067 12068_ACEOF 12069cat >>$CONFIG_STATUS <<\_ACEOF 12070exec 5>>config.log 12071{ 12072 echo 12073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12074## Running $as_me. ## 12075_ASBOX 12076 echo "$ac_log" 12077} >&5 12078 12079_ACEOF 12080cat >>$CONFIG_STATUS <<_ACEOF 12081_ACEOF 12082 12083cat >>$CONFIG_STATUS <<\_ACEOF 12084 12085# Handling of arguments. 12086for ac_config_target in $ac_config_targets 12087do 12088 case $ac_config_target in 12089 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12090 12091 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12092echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12093 { (exit 1); exit 1; }; };; 12094 esac 12095done 12096 12097 12098# If the user did not use the arguments to specify the items to instantiate, 12099# then the envvar interface is used. Set only those that are not. 12100# We use the long form for the default assignment because of an extremely 12101# bizarre bug on SunOS 4.1.3. 12102if $ac_need_defaults; then 12103 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12104fi 12105 12106# Have a temporary directory for convenience. Make it in the build tree 12107# simply because there is no reason against having it here, and in addition, 12108# creating and moving files from /tmp can sometimes cause problems. 12109# Hook for its removal unless debugging. 12110# Note that there is a small window in which the directory will not be cleaned: 12111# after its creation but before its name has been assigned to `$tmp'. 12112$debug || 12113{ 12114 tmp= 12115 trap 'exit_status=$? 12116 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12117' 0 12118 trap '{ (exit 1); exit 1; }' 1 2 13 15 12119} 12120# Create a (secure) tmp directory for tmp files. 12121 12122{ 12123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12124 test -n "$tmp" && test -d "$tmp" 12125} || 12126{ 12127 tmp=./conf$$-$RANDOM 12128 (umask 077 && mkdir "$tmp") 12129} || 12130{ 12131 echo "$me: cannot create a temporary directory in ." >&2 12132 { (exit 1); exit 1; } 12133} 12134 12135# 12136# Set up the sed scripts for CONFIG_FILES section. 12137# 12138 12139# No need to generate the scripts if there are no CONFIG_FILES. 12140# This happens for instance when ./config.status config.h 12141if test -n "$CONFIG_FILES"; then 12142 12143_ACEOF 12144 12145 12146 12147ac_delim='%!_!# ' 12148for ac_last_try in false false false false false :; do 12149 cat >conf$$subs.sed <<_ACEOF 12150SHELL!$SHELL$ac_delim 12151PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12152PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12153PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12154PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12155PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12156PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 12157exec_prefix!$exec_prefix$ac_delim 12158prefix!$prefix$ac_delim 12159program_transform_name!$program_transform_name$ac_delim 12160bindir!$bindir$ac_delim 12161sbindir!$sbindir$ac_delim 12162libexecdir!$libexecdir$ac_delim 12163datarootdir!$datarootdir$ac_delim 12164datadir!$datadir$ac_delim 12165sysconfdir!$sysconfdir$ac_delim 12166sharedstatedir!$sharedstatedir$ac_delim 12167localstatedir!$localstatedir$ac_delim 12168includedir!$includedir$ac_delim 12169oldincludedir!$oldincludedir$ac_delim 12170docdir!$docdir$ac_delim 12171infodir!$infodir$ac_delim 12172htmldir!$htmldir$ac_delim 12173dvidir!$dvidir$ac_delim 12174pdfdir!$pdfdir$ac_delim 12175psdir!$psdir$ac_delim 12176libdir!$libdir$ac_delim 12177localedir!$localedir$ac_delim 12178mandir!$mandir$ac_delim 12179DEFS!$DEFS$ac_delim 12180ECHO_C!$ECHO_C$ac_delim 12181ECHO_N!$ECHO_N$ac_delim 12182ECHO_T!$ECHO_T$ac_delim 12183LIBS!$LIBS$ac_delim 12184build_alias!$build_alias$ac_delim 12185host_alias!$host_alias$ac_delim 12186target_alias!$target_alias$ac_delim 12187CYGPATH!$CYGPATH$ac_delim 12188EXEEXT!$EXEEXT$ac_delim 12189PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 12190PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 12191PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 12192PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 12193PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 12194PKG_HEADERS!$PKG_HEADERS$ac_delim 12195PKG_INCLUDES!$PKG_INCLUDES$ac_delim 12196PKG_LIBS!$PKG_LIBS$ac_delim 12197PKG_CFLAGS!$PKG_CFLAGS$ac_delim 12198PACKAGE_TCLNAME!$PACKAGE_TCLNAME$ac_delim 12199TCL_VERSION!$TCL_VERSION$ac_delim 12200TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 12201TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 12202TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 12203TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 12204TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 12205TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 12206TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 12207TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 12208TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 12209CLEANFILES!$CLEANFILES$ac_delim 12210TCL_LIBS!$TCL_LIBS$ac_delim 12211TCL_DEFS!$TCL_DEFS$ac_delim 12212TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 12213TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 12214TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 12215TK_VERSION!$TK_VERSION$ac_delim 12216TK_BIN_DIR!$TK_BIN_DIR$ac_delim 12217TK_SRC_DIR!$TK_SRC_DIR$ac_delim 12218TK_LIB_FILE!$TK_LIB_FILE$ac_delim 12219TK_LIB_FLAG!$TK_LIB_FLAG$ac_delim 12220TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim 12221TK_STUB_LIB_FILE!$TK_STUB_LIB_FILE$ac_delim 12222TK_STUB_LIB_FLAG!$TK_STUB_LIB_FLAG$ac_delim 12223TK_STUB_LIB_SPEC!$TK_STUB_LIB_SPEC$ac_delim 12224TK_LIBS!$TK_LIBS$ac_delim 12225TK_XINCLUDES!$TK_XINCLUDES$ac_delim 12226CC!$CC$ac_delim 12227CFLAGS!$CFLAGS$ac_delim 12228LDFLAGS!$LDFLAGS$ac_delim 12229CPPFLAGS!$CPPFLAGS$ac_delim 12230ac_ct_CC!$ac_ct_CC$ac_delim 12231OBJEXT!$OBJEXT$ac_delim 12232CPP!$CPP$ac_delim 12233INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 12234INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12235INSTALL_DATA!$INSTALL_DATA$ac_delim 12236SET_MAKE!$SET_MAKE$ac_delim 12237RANLIB!$RANLIB$ac_delim 12238GREP!$GREP$ac_delim 12239EGREP!$EGREP$ac_delim 12240MATH_LIBS!$MATH_LIBS$ac_delim 12241tkimg_VERSION!$tkimg_VERSION$ac_delim 12242tkimg_BIN_DIR!$tkimg_BIN_DIR$ac_delim 12243tkimg_SRC_DIR!$tkimg_SRC_DIR$ac_delim 12244tkimg_LIB_FILE!$tkimg_LIB_FILE$ac_delim 12245tkimg_LIB_SPEC!$tkimg_LIB_SPEC$ac_delim 12246tkimg_STUB_LIB_FILE!$tkimg_STUB_LIB_FILE$ac_delim 12247_ACEOF 12248 12249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12250 break 12251 elif $ac_last_try; then 12252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12253echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12254 { (exit 1); exit 1; }; } 12255 else 12256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12257 fi 12258done 12259 12260ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12261if test -n "$ac_eof"; then 12262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12263 ac_eof=`expr $ac_eof + 1` 12264fi 12265 12266cat >>$CONFIG_STATUS <<_ACEOF 12267cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12269_ACEOF 12270sed ' 12271s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12272s/^/s,@/; s/!/@,|#_!!_#|/ 12273:n 12274t n 12275s/'"$ac_delim"'$/,g/; t 12276s/$/\\/; p 12277N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12278' >>$CONFIG_STATUS <conf$$subs.sed 12279rm -f conf$$subs.sed 12280cat >>$CONFIG_STATUS <<_ACEOF 12281CEOF$ac_eof 12282_ACEOF 12283 12284 12285ac_delim='%!_!# ' 12286for ac_last_try in false false false false false :; do 12287 cat >conf$$subs.sed <<_ACEOF 12288tkimg_STUB_LIB_SPEC!$tkimg_STUB_LIB_SPEC$ac_delim 12289tkimg_STUB_LIB_PATH!$tkimg_STUB_LIB_PATH$ac_delim 12290tkimg_SRC_PATH!$tkimg_SRC_PATH$ac_delim 12291tkimg_BUILD_PATH!$tkimg_BUILD_PATH$ac_delim 12292PKG_SOURCES!$PKG_SOURCES$ac_delim 12293PKG_OBJECTS!$PKG_OBJECTS$ac_delim 12294TCL_INCLUDES!$TCL_INCLUDES$ac_delim 12295TK_INCLUDES!$TK_INCLUDES$ac_delim 12296TCL_THREADS!$TCL_THREADS$ac_delim 12297SHARED_BUILD!$SHARED_BUILD$ac_delim 12298AR!$AR$ac_delim 12299CELIB_DIR!$CELIB_DIR$ac_delim 12300CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 12301CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 12302CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 12303STLIB_LD!$STLIB_LD$ac_delim 12304SHLIB_LD!$SHLIB_LD$ac_delim 12305SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 12306SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 12307LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 12308CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 12309LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 12310TCL_DBGX!$TCL_DBGX$ac_delim 12311XMKMF!$XMKMF$ac_delim 12312MAKE_LIB!$MAKE_LIB$ac_delim 12313MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 12314MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 12315MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 12316RANLIB_STUB!$RANLIB_STUB$ac_delim 12317VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 12318VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 12319TCLSH_PROG!$TCLSH_PROG$ac_delim 12320WISH_PROG!$WISH_PROG$ac_delim 12321LIBOBJS!$LIBOBJS$ac_delim 12322LTLIBOBJS!$LTLIBOBJS$ac_delim 12323_ACEOF 12324 12325 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then 12326 break 12327 elif $ac_last_try; then 12328 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12329echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12330 { (exit 1); exit 1; }; } 12331 else 12332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12333 fi 12334done 12335 12336ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 12337if test -n "$ac_eof"; then 12338 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 12339 ac_eof=`expr $ac_eof + 1` 12340fi 12341 12342cat >>$CONFIG_STATUS <<_ACEOF 12343cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 12344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12345_ACEOF 12346sed ' 12347s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12348s/^/s,@/; s/!/@,|#_!!_#|/ 12349:n 12350t n 12351s/'"$ac_delim"'$/,g/; t 12352s/$/\\/; p 12353N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 12354' >>$CONFIG_STATUS <conf$$subs.sed 12355rm -f conf$$subs.sed 12356cat >>$CONFIG_STATUS <<_ACEOF 12357:end 12358s/|#_!!_#|//g 12359CEOF$ac_eof 12360_ACEOF 12361 12362 12363# VPATH may cause trouble with some makes, so we remove $(srcdir), 12364# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12365# trailing colons and then remove the whole line if VPATH becomes empty 12366# (actually we leave an empty line to preserve line numbers). 12367if test "x$srcdir" = x.; then 12368 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12369s/:*\$(srcdir):*/:/ 12370s/:*\${srcdir}:*/:/ 12371s/:*@srcdir@:*/:/ 12372s/^\([^=]*=[ ]*\):*/\1/ 12373s/:*$// 12374s/^[^=]*=[ ]*$// 12375}' 12376fi 12377 12378cat >>$CONFIG_STATUS <<\_ACEOF 12379fi # test -n "$CONFIG_FILES" 12380 12381 12382for ac_tag in :F $CONFIG_FILES 12383do 12384 case $ac_tag in 12385 :[FHLC]) ac_mode=$ac_tag; continue;; 12386 esac 12387 case $ac_mode$ac_tag in 12388 :[FHL]*:*);; 12389 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 12390echo "$as_me: error: Invalid tag $ac_tag." >&2;} 12391 { (exit 1); exit 1; }; };; 12392 :[FH]-) ac_tag=-:-;; 12393 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12394 esac 12395 ac_save_IFS=$IFS 12396 IFS=: 12397 set x $ac_tag 12398 IFS=$ac_save_IFS 12399 shift 12400 ac_file=$1 12401 shift 12402 12403 case $ac_mode in 12404 :L) ac_source=$1;; 12405 :[FH]) 12406 ac_file_inputs= 12407 for ac_f 12408 do 12409 case $ac_f in 12410 -) ac_f="$tmp/stdin";; 12411 *) # Look for the file first in the build tree, then in the source tree 12412 # (if the path is not absolute). The absolute path cannot be DOS-style, 12413 # because $ac_f cannot contain `:'. 12414 test -f "$ac_f" || 12415 case $ac_f in 12416 [\\/$]*) false;; 12417 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12418 esac || 12419 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12420echo "$as_me: error: cannot find input file: $ac_f" >&2;} 12421 { (exit 1); exit 1; }; };; 12422 esac 12423 ac_file_inputs="$ac_file_inputs $ac_f" 12424 done 12425 12426 # Let's still pretend it is `configure' which instantiates (i.e., don't 12427 # use $as_me), people would be surprised to read: 12428 # /* config.h. Generated by config.status. */ 12429 configure_input="Generated from "`IFS=: 12430 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 12431 if test x"$ac_file" != x-; then 12432 configure_input="$ac_file. $configure_input" 12433 { echo "$as_me:$LINENO: creating $ac_file" >&5 12434echo "$as_me: creating $ac_file" >&6;} 12435 fi 12436 12437 case $ac_tag in 12438 *:-:* | *:-) cat >"$tmp/stdin";; 12439 esac 12440 ;; 12441 esac 12442 12443 ac_dir=`$as_dirname -- "$ac_file" || 12444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12445 X"$ac_file" : 'X\(//\)[^/]' \| \ 12446 X"$ac_file" : 'X\(//\)$' \| \ 12447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12448echo X"$ac_file" | 12449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12450 s//\1/ 12451 q 12452 } 12453 /^X\(\/\/\)[^/].*/{ 12454 s//\1/ 12455 q 12456 } 12457 /^X\(\/\/\)$/{ 12458 s//\1/ 12459 q 12460 } 12461 /^X\(\/\).*/{ 12462 s//\1/ 12463 q 12464 } 12465 s/.*/./; q'` 12466 { as_dir="$ac_dir" 12467 case $as_dir in #( 12468 -*) as_dir=./$as_dir;; 12469 esac 12470 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 12471 as_dirs= 12472 while :; do 12473 case $as_dir in #( 12474 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 12475 *) as_qdir=$as_dir;; 12476 esac 12477 as_dirs="'$as_qdir' $as_dirs" 12478 as_dir=`$as_dirname -- "$as_dir" || 12479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12480 X"$as_dir" : 'X\(//\)[^/]' \| \ 12481 X"$as_dir" : 'X\(//\)$' \| \ 12482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12483echo X"$as_dir" | 12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12485 s//\1/ 12486 q 12487 } 12488 /^X\(\/\/\)[^/].*/{ 12489 s//\1/ 12490 q 12491 } 12492 /^X\(\/\/\)$/{ 12493 s//\1/ 12494 q 12495 } 12496 /^X\(\/\).*/{ 12497 s//\1/ 12498 q 12499 } 12500 s/.*/./; q'` 12501 test -d "$as_dir" && break 12502 done 12503 test -z "$as_dirs" || eval "mkdir $as_dirs" 12504 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12505echo "$as_me: error: cannot create directory $as_dir" >&2;} 12506 { (exit 1); exit 1; }; }; } 12507 ac_builddir=. 12508 12509case "$ac_dir" in 12510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12511*) 12512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12513 # A ".." for each directory in $ac_dir_suffix. 12514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12515 case $ac_top_builddir_sub in 12516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12518 esac ;; 12519esac 12520ac_abs_top_builddir=$ac_pwd 12521ac_abs_builddir=$ac_pwd$ac_dir_suffix 12522# for backward compatibility: 12523ac_top_builddir=$ac_top_build_prefix 12524 12525case $srcdir in 12526 .) # We are building in place. 12527 ac_srcdir=. 12528 ac_top_srcdir=$ac_top_builddir_sub 12529 ac_abs_top_srcdir=$ac_pwd ;; 12530 [\\/]* | ?:[\\/]* ) # Absolute name. 12531 ac_srcdir=$srcdir$ac_dir_suffix; 12532 ac_top_srcdir=$srcdir 12533 ac_abs_top_srcdir=$srcdir ;; 12534 *) # Relative name. 12535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12536 ac_top_srcdir=$ac_top_build_prefix$srcdir 12537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12538esac 12539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12540 12541 12542 case $ac_mode in 12543 :F) 12544 # 12545 # CONFIG_FILE 12546 # 12547 12548 case $INSTALL in 12549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12551 esac 12552_ACEOF 12553 12554cat >>$CONFIG_STATUS <<\_ACEOF 12555# If the template does not know about datarootdir, expand it. 12556# FIXME: This hack should be removed a few years after 2.60. 12557ac_datarootdir_hack=; ac_datarootdir_seen= 12558 12559case `sed -n '/datarootdir/ { 12560 p 12561 q 12562} 12563/@datadir@/p 12564/@docdir@/p 12565/@infodir@/p 12566/@localedir@/p 12567/@mandir@/p 12568' $ac_file_inputs` in 12569*datarootdir*) ac_datarootdir_seen=yes;; 12570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12571 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12572echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12573_ACEOF 12574cat >>$CONFIG_STATUS <<_ACEOF 12575 ac_datarootdir_hack=' 12576 s&@datadir@&$datadir&g 12577 s&@docdir@&$docdir&g 12578 s&@infodir@&$infodir&g 12579 s&@localedir@&$localedir&g 12580 s&@mandir@&$mandir&g 12581 s&\\\${datarootdir}&$datarootdir&g' ;; 12582esac 12583_ACEOF 12584 12585# Neutralize VPATH when `$srcdir' = `.'. 12586# Shell code in configure.ac might set extrasub. 12587# FIXME: do we really want to maintain this feature? 12588cat >>$CONFIG_STATUS <<_ACEOF 12589 sed "$ac_vpsub 12590$extrasub 12591_ACEOF 12592cat >>$CONFIG_STATUS <<\_ACEOF 12593:t 12594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12595s&@configure_input@&$configure_input&;t t 12596s&@top_builddir@&$ac_top_builddir_sub&;t t 12597s&@srcdir@&$ac_srcdir&;t t 12598s&@abs_srcdir@&$ac_abs_srcdir&;t t 12599s&@top_srcdir@&$ac_top_srcdir&;t t 12600s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12601s&@builddir@&$ac_builddir&;t t 12602s&@abs_builddir@&$ac_abs_builddir&;t t 12603s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12604s&@INSTALL@&$ac_INSTALL&;t t 12605$ac_datarootdir_hack 12606" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12607 12608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12611 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12612which seems to be undefined. Please make sure it is defined." >&5 12613echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12614which seems to be undefined. Please make sure it is defined." >&2;} 12615 12616 rm -f "$tmp/stdin" 12617 case $ac_file in 12618 -) cat "$tmp/out"; rm -f "$tmp/out";; 12619 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12620 esac 12621 ;; 12622 12623 12624 12625 esac 12626 12627done # for ac_tag 12628 12629 12630{ (exit 0); exit 0; } 12631_ACEOF 12632chmod +x $CONFIG_STATUS 12633ac_clean_files=$ac_clean_files_save 12634 12635 12636# configure is writing to config.log, and then calls config.status. 12637# config.status does its own redirection, appending to config.log. 12638# Unfortunately, on DOS this fails, as config.log is still kept open 12639# by configure, so config.status won't be able to write to it; its 12640# output is simply discarded. So we exec the FD to /dev/null, 12641# effectively closing config.log, so it can be properly (re)opened and 12642# appended to by config.status. When coming back to configure, we 12643# need to make the FD available again. 12644if test "$no_create" != yes; then 12645 ac_cs_success=: 12646 ac_config_status_args= 12647 test "$silent" = yes && 12648 ac_config_status_args="$ac_config_status_args --quiet" 12649 exec 5>/dev/null 12650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12651 exec 5>>config.log 12652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12653 # would make configure fail if this is the last instruction. 12654 $ac_cs_success || { (exit 1); exit 1; } 12655fi 12656 12657 12658#-------------------------------------------------------------------- 12659