1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for itcl 3.4. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME='itcl' 574PACKAGE_TARNAME='itcl' 575PACKAGE_VERSION='3.4' 576PACKAGE_STRING='itcl 3.4' 577PACKAGE_BUGREPORT='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='SHELL 616PATH_SEPARATOR 617PACKAGE_NAME 618PACKAGE_TARNAME 619PACKAGE_VERSION 620PACKAGE_STRING 621PACKAGE_BUGREPORT 622exec_prefix 623prefix 624program_transform_name 625bindir 626sbindir 627libexecdir 628datarootdir 629datadir 630sysconfdir 631sharedstatedir 632localstatedir 633includedir 634oldincludedir 635docdir 636infodir 637htmldir 638dvidir 639pdfdir 640psdir 641libdir 642localedir 643mandir 644DEFS 645ECHO_C 646ECHO_N 647ECHO_T 648LIBS 649build_alias 650host_alias 651target_alias 652CYGPATH 653EXEEXT 654PKG_LIB_FILE 655PKG_STUB_LIB_FILE 656PKG_STUB_SOURCES 657PKG_STUB_OBJECTS 658PKG_TCL_SOURCES 659PKG_HEADERS 660PKG_INCLUDES 661PKG_LIBS 662PKG_CFLAGS 663LN_S 664CONFIG_CLEAN_FILES 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 681CC 682CFLAGS 683LDFLAGS 684CPPFLAGS 685ac_ct_CC 686OBJEXT 687CPP 688INSTALL_PROGRAM 689INSTALL_SCRIPT 690INSTALL_DATA 691SET_MAKE 692RANLIB 693GREP 694EGREP 695MATH_LIBS 696PKG_SOURCES 697PKG_OBJECTS 698TCL_INCLUDES 699TCL_TOP_DIR_NATIVE 700SHARED_BUILD 701AR 702CELIB_DIR 703CFLAGS_DEBUG 704CFLAGS_OPTIMIZE 705CFLAGS_WARNING 706STLIB_LD 707SHLIB_LD 708SHLIB_LD_LIBS 709SHLIB_CFLAGS 710LD_LIBRARY_PATH_VAR 711CFLAGS_DEFAULT 712LDFLAGS_DEFAULT 713TCL_DBGX 714MAKE_LIB 715MAKE_SHARED_LIB 716MAKE_STATIC_LIB 717MAKE_STUB_LIB 718RANLIB_STUB 719VC_MANIFEST_EMBED_DLL 720VC_MANIFEST_EMBED_EXE 721itcl_STUB_LIB_FILE 722itcl_LIB_FILE 723TCLSH_PROG 724itcl_BUILD_LIB_SPEC 725itcl_LIB_SPEC 726itcl_BUILD_STUB_LIB_SPEC 727itcl_STUB_LIB_SPEC 728itcl_BUILD_STUB_LIB_PATH 729itcl_STUB_LIB_PATH 730MAJOR_VERSION 731MINOR_VERSION 732PATCHLEVEL 733itcl_SRC_DIR 734LIBOBJS 735LTLIBOBJS' 736ac_subst_files='' 737 ac_precious_vars='build_alias 738host_alias 739target_alias 740CC 741CFLAGS 742LDFLAGS 743LIBS 744CPPFLAGS 745CPP' 746 747 748# Initialize some variables set by options. 749ac_init_help= 750ac_init_version=false 751# The variables have the same names as the options, with 752# dashes changed to underlines. 753cache_file=/dev/null 754exec_prefix=NONE 755no_create= 756no_recursion= 757prefix=NONE 758program_prefix=NONE 759program_suffix=NONE 760program_transform_name=s,x,x, 761silent= 762site= 763srcdir= 764verbose= 765x_includes=NONE 766x_libraries=NONE 767 768# Installation directory options. 769# These are left unexpanded so users can "make install exec_prefix=/foo" 770# and all the variables that are supposed to be based on exec_prefix 771# by default will actually change. 772# Use braces instead of parens because sh, perl, etc. also accept them. 773# (The list follows the same order as the GNU Coding Standards.) 774bindir='${exec_prefix}/bin' 775sbindir='${exec_prefix}/sbin' 776libexecdir='${exec_prefix}/libexec' 777datarootdir='${prefix}/share' 778datadir='${datarootdir}' 779sysconfdir='${prefix}/etc' 780sharedstatedir='${prefix}/com' 781localstatedir='${prefix}/var' 782includedir='${prefix}/include' 783oldincludedir='/usr/include' 784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 785infodir='${datarootdir}/info' 786htmldir='${docdir}' 787dvidir='${docdir}' 788pdfdir='${docdir}' 789psdir='${docdir}' 790libdir='${exec_prefix}/lib' 791localedir='${datarootdir}/locale' 792mandir='${datarootdir}/man' 793 794ac_prev= 795ac_dashdash= 796for ac_option 797do 798 # If the previous option needs an argument, assign it. 799 if test -n "$ac_prev"; then 800 eval $ac_prev=\$ac_option 801 ac_prev= 802 continue 803 fi 804 805 case $ac_option in 806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 807 *) ac_optarg=yes ;; 808 esac 809 810 # Accept the important Cygnus configure options, so we can diagnose typos. 811 812 case $ac_dashdash$ac_option in 813 --) 814 ac_dashdash=yes ;; 815 816 -bindir | --bindir | --bindi | --bind | --bin | --bi) 817 ac_prev=bindir ;; 818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 819 bindir=$ac_optarg ;; 820 821 -build | --build | --buil | --bui | --bu) 822 ac_prev=build_alias ;; 823 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 824 build_alias=$ac_optarg ;; 825 826 -cache-file | --cache-file | --cache-fil | --cache-fi \ 827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 828 ac_prev=cache_file ;; 829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 831 cache_file=$ac_optarg ;; 832 833 --config-cache | -C) 834 cache_file=config.cache ;; 835 836 -datadir | --datadir | --datadi | --datad) 837 ac_prev=datadir ;; 838 -datadir=* | --datadir=* | --datadi=* | --datad=*) 839 datadir=$ac_optarg ;; 840 841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 842 | --dataroo | --dataro | --datar) 843 ac_prev=datarootdir ;; 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 846 datarootdir=$ac_optarg ;; 847 848 -disable-* | --disable-*) 849 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 850 # Reject names that are not valid shell variable names. 851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 853 { (exit 1); exit 1; }; } 854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 855 eval enable_$ac_feature=no ;; 856 857 -docdir | --docdir | --docdi | --doc | --do) 858 ac_prev=docdir ;; 859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 860 docdir=$ac_optarg ;; 861 862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 863 ac_prev=dvidir ;; 864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 865 dvidir=$ac_optarg ;; 866 867 -enable-* | --enable-*) 868 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 869 # Reject names that are not valid shell variable names. 870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 872 { (exit 1); exit 1; }; } 873 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 874 eval enable_$ac_feature=\$ac_optarg ;; 875 876 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 877 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 878 | --exec | --exe | --ex) 879 ac_prev=exec_prefix ;; 880 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 881 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 882 | --exec=* | --exe=* | --ex=*) 883 exec_prefix=$ac_optarg ;; 884 885 -gas | --gas | --ga | --g) 886 # Obsolete; use --with-gas. 887 with_gas=yes ;; 888 889 -help | --help | --hel | --he | -h) 890 ac_init_help=long ;; 891 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 892 ac_init_help=recursive ;; 893 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 894 ac_init_help=short ;; 895 896 -host | --host | --hos | --ho) 897 ac_prev=host_alias ;; 898 -host=* | --host=* | --hos=* | --ho=*) 899 host_alias=$ac_optarg ;; 900 901 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 902 ac_prev=htmldir ;; 903 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 904 | --ht=*) 905 htmldir=$ac_optarg ;; 906 907 -includedir | --includedir | --includedi | --included | --include \ 908 | --includ | --inclu | --incl | --inc) 909 ac_prev=includedir ;; 910 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 911 | --includ=* | --inclu=* | --incl=* | --inc=*) 912 includedir=$ac_optarg ;; 913 914 -infodir | --infodir | --infodi | --infod | --info | --inf) 915 ac_prev=infodir ;; 916 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 917 infodir=$ac_optarg ;; 918 919 -libdir | --libdir | --libdi | --libd) 920 ac_prev=libdir ;; 921 -libdir=* | --libdir=* | --libdi=* | --libd=*) 922 libdir=$ac_optarg ;; 923 924 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 925 | --libexe | --libex | --libe) 926 ac_prev=libexecdir ;; 927 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 928 | --libexe=* | --libex=* | --libe=*) 929 libexecdir=$ac_optarg ;; 930 931 -localedir | --localedir | --localedi | --localed | --locale) 932 ac_prev=localedir ;; 933 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 934 localedir=$ac_optarg ;; 935 936 -localstatedir | --localstatedir | --localstatedi | --localstated \ 937 | --localstate | --localstat | --localsta | --localst | --locals) 938 ac_prev=localstatedir ;; 939 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 940 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 941 localstatedir=$ac_optarg ;; 942 943 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 944 ac_prev=mandir ;; 945 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 946 mandir=$ac_optarg ;; 947 948 -nfp | --nfp | --nf) 949 # Obsolete; use --without-fp. 950 with_fp=no ;; 951 952 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 953 | --no-cr | --no-c | -n) 954 no_create=yes ;; 955 956 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 957 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 958 no_recursion=yes ;; 959 960 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 961 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 962 | --oldin | --oldi | --old | --ol | --o) 963 ac_prev=oldincludedir ;; 964 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 965 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 966 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 967 oldincludedir=$ac_optarg ;; 968 969 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 970 ac_prev=prefix ;; 971 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 972 prefix=$ac_optarg ;; 973 974 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 975 | --program-pre | --program-pr | --program-p) 976 ac_prev=program_prefix ;; 977 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 978 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 979 program_prefix=$ac_optarg ;; 980 981 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 982 | --program-suf | --program-su | --program-s) 983 ac_prev=program_suffix ;; 984 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 985 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 986 program_suffix=$ac_optarg ;; 987 988 -program-transform-name | --program-transform-name \ 989 | --program-transform-nam | --program-transform-na \ 990 | --program-transform-n | --program-transform- \ 991 | --program-transform | --program-transfor \ 992 | --program-transfo | --program-transf \ 993 | --program-trans | --program-tran \ 994 | --progr-tra | --program-tr | --program-t) 995 ac_prev=program_transform_name ;; 996 -program-transform-name=* | --program-transform-name=* \ 997 | --program-transform-nam=* | --program-transform-na=* \ 998 | --program-transform-n=* | --program-transform-=* \ 999 | --program-transform=* | --program-transfor=* \ 1000 | --program-transfo=* | --program-transf=* \ 1001 | --program-trans=* | --program-tran=* \ 1002 | --progr-tra=* | --program-tr=* | --program-t=*) 1003 program_transform_name=$ac_optarg ;; 1004 1005 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1006 ac_prev=pdfdir ;; 1007 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1008 pdfdir=$ac_optarg ;; 1009 1010 -psdir | --psdir | --psdi | --psd | --ps) 1011 ac_prev=psdir ;; 1012 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1013 psdir=$ac_optarg ;; 1014 1015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1016 | -silent | --silent | --silen | --sile | --sil) 1017 silent=yes ;; 1018 1019 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1020 ac_prev=sbindir ;; 1021 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1022 | --sbi=* | --sb=*) 1023 sbindir=$ac_optarg ;; 1024 1025 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1026 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1027 | --sharedst | --shareds | --shared | --share | --shar \ 1028 | --sha | --sh) 1029 ac_prev=sharedstatedir ;; 1030 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1031 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1032 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1033 | --sha=* | --sh=*) 1034 sharedstatedir=$ac_optarg ;; 1035 1036 -site | --site | --sit) 1037 ac_prev=site ;; 1038 -site=* | --site=* | --sit=*) 1039 site=$ac_optarg ;; 1040 1041 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1042 ac_prev=srcdir ;; 1043 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1044 srcdir=$ac_optarg ;; 1045 1046 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1047 | --syscon | --sysco | --sysc | --sys | --sy) 1048 ac_prev=sysconfdir ;; 1049 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1050 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1051 sysconfdir=$ac_optarg ;; 1052 1053 -target | --target | --targe | --targ | --tar | --ta | --t) 1054 ac_prev=target_alias ;; 1055 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1056 target_alias=$ac_optarg ;; 1057 1058 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1059 verbose=yes ;; 1060 1061 -version | --version | --versio | --versi | --vers | -V) 1062 ac_init_version=: ;; 1063 1064 -with-* | --with-*) 1065 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1068 { echo "$as_me: error: invalid package name: $ac_package" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1071 eval with_$ac_package=\$ac_optarg ;; 1072 1073 -without-* | --without-*) 1074 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 { echo "$as_me: error: invalid package name: $ac_package" >&2 1078 { (exit 1); exit 1; }; } 1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1080 eval with_$ac_package=no ;; 1081 1082 --x) 1083 # Obsolete; use --with-x. 1084 with_x=yes ;; 1085 1086 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1087 | --x-incl | --x-inc | --x-in | --x-i) 1088 ac_prev=x_includes ;; 1089 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1090 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1091 x_includes=$ac_optarg ;; 1092 1093 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1094 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1095 ac_prev=x_libraries ;; 1096 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1097 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1098 x_libraries=$ac_optarg ;; 1099 1100 -*) { echo "$as_me: error: unrecognized option: $ac_option 1101Try \`$0 --help' for more information." >&2 1102 { (exit 1); exit 1; }; } 1103 ;; 1104 1105 *=*) 1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1110 { (exit 1); exit 1; }; } 1111 eval $ac_envvar=\$ac_optarg 1112 export $ac_envvar ;; 1113 1114 *) 1115 # FIXME: should be removed in autoconf 3.0. 1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1120 ;; 1121 1122 esac 1123done 1124 1125if test -n "$ac_prev"; then 1126 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1127 { echo "$as_me: error: missing argument to $ac_option" >&2 1128 { (exit 1); exit 1; }; } 1129fi 1130 1131# Be sure to have absolute directory names. 1132for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1133 datadir sysconfdir sharedstatedir localstatedir includedir \ 1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1135 libdir localedir mandir 1136do 1137 eval ac_val=\$$ac_var 1138 case $ac_val in 1139 [\\/$]* | ?:[\\/]* ) continue;; 1140 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1141 esac 1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1143 { (exit 1); exit 1; }; } 1144done 1145 1146# There might be people who depend on the old broken behavior: `$host' 1147# used to hold the argument of --host etc. 1148# FIXME: To remove some day. 1149build=$build_alias 1150host=$host_alias 1151target=$target_alias 1152 1153# FIXME: To remove some day. 1154if test "x$host_alias" != x; then 1155 if test "x$build_alias" = x; then 1156 cross_compiling=maybe 1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1158 If a cross compiler is detected then cross compile mode will be used." >&2 1159 elif test "x$build_alias" != "x$host_alias"; then 1160 cross_compiling=yes 1161 fi 1162fi 1163 1164ac_tool_prefix= 1165test -n "$host_alias" && ac_tool_prefix=$host_alias- 1166 1167test "$silent" = yes && exec 6>/dev/null 1168 1169 1170ac_pwd=`pwd` && test -n "$ac_pwd" && 1171ac_ls_di=`ls -di .` && 1172ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1173 { echo "$as_me: error: Working directory cannot be determined" >&2 1174 { (exit 1); exit 1; }; } 1175test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1176 { echo "$as_me: error: pwd does not report name of working directory" >&2 1177 { (exit 1); exit 1; }; } 1178 1179 1180# Find the source files, if location was not specified. 1181if test -z "$srcdir"; then 1182 ac_srcdir_defaulted=yes 1183 # Try the directory containing this script, then the parent directory. 1184 ac_confdir=`$as_dirname -- "$0" || 1185$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1186 X"$0" : 'X\(//\)[^/]' \| \ 1187 X"$0" : 'X\(//\)$' \| \ 1188 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1189echo X"$0" | 1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1191 s//\1/ 1192 q 1193 } 1194 /^X\(\/\/\)[^/].*/{ 1195 s//\1/ 1196 q 1197 } 1198 /^X\(\/\/\)$/{ 1199 s//\1/ 1200 q 1201 } 1202 /^X\(\/\).*/{ 1203 s//\1/ 1204 q 1205 } 1206 s/.*/./; q'` 1207 srcdir=$ac_confdir 1208 if test ! -r "$srcdir/$ac_unique_file"; then 1209 srcdir=.. 1210 fi 1211else 1212 ac_srcdir_defaulted=no 1213fi 1214if test ! -r "$srcdir/$ac_unique_file"; then 1215 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1217 { (exit 1); exit 1; }; } 1218fi 1219ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1220ac_abs_confdir=`( 1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1222 { (exit 1); exit 1; }; } 1223 pwd)` 1224# When building in place, set srcdir=. 1225if test "$ac_abs_confdir" = "$ac_pwd"; then 1226 srcdir=. 1227fi 1228# Remove unnecessary trailing slashes from srcdir. 1229# Double slashes in file names in object file debugging info 1230# mess up M-x gdb in Emacs. 1231case $srcdir in 1232*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1233esac 1234for ac_var in $ac_precious_vars; do 1235 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1236 eval ac_env_${ac_var}_value=\$${ac_var} 1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1238 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1239done 1240 1241# 1242# Report the --help message. 1243# 1244if test "$ac_init_help" = "long"; then 1245 # Omit some internal or obsolete options to make the list less imposing. 1246 # This message is too long to be a string in the A/UX 3.1 sh. 1247 cat <<_ACEOF 1248\`configure' configures itcl 3.4 to adapt to many kinds of systems. 1249 1250Usage: $0 [OPTION]... [VAR=VALUE]... 1251 1252To assign environment variables (e.g., CC, CFLAGS...), specify them as 1253VAR=VALUE. See below for descriptions of some of the useful variables. 1254 1255Defaults for the options are specified in brackets. 1256 1257Configuration: 1258 -h, --help display this help and exit 1259 --help=short display options specific to this package 1260 --help=recursive display the short help of all the included packages 1261 -V, --version display version information and exit 1262 -q, --quiet, --silent do not print \`checking...' messages 1263 --cache-file=FILE cache test results in FILE [disabled] 1264 -C, --config-cache alias for \`--cache-file=config.cache' 1265 -n, --no-create do not create output files 1266 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1267 1268Installation directories: 1269 --prefix=PREFIX install architecture-independent files in PREFIX 1270 [$ac_default_prefix] 1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1272 [PREFIX] 1273 1274By default, \`make install' will install all the files in 1275\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1276an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1277for instance \`--prefix=\$HOME'. 1278 1279For better control, use the options below. 1280 1281Fine tuning of the installation directories: 1282 --bindir=DIR user executables [EPREFIX/bin] 1283 --sbindir=DIR system admin executables [EPREFIX/sbin] 1284 --libexecdir=DIR program executables [EPREFIX/libexec] 1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1288 --libdir=DIR object code libraries [EPREFIX/lib] 1289 --includedir=DIR C header files [PREFIX/include] 1290 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1293 --infodir=DIR info documentation [DATAROOTDIR/info] 1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1295 --mandir=DIR man documentation [DATAROOTDIR/man] 1296 --docdir=DIR documentation root [DATAROOTDIR/doc/itcl] 1297 --htmldir=DIR html documentation [DOCDIR] 1298 --dvidir=DIR dvi documentation [DOCDIR] 1299 --pdfdir=DIR pdf documentation [DOCDIR] 1300 --psdir=DIR ps documentation [DOCDIR] 1301_ACEOF 1302 1303 cat <<\_ACEOF 1304_ACEOF 1305fi 1306 1307if test -n "$ac_init_help"; then 1308 case $ac_init_help in 1309 short | recursive ) echo "Configuration of itcl 3.4:";; 1310 esac 1311 cat <<\_ACEOF 1312 1313Optional Features: 1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1316 --enable-shared build and link with shared libraries (default: on) 1317 --enable-64bit enable 64bit support (default: off) 1318 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1319 --disable-rpath disable rpath support (default: on) 1320 --enable-wince enable Win/CE support (where applicable) 1321 --enable-symbols build with debugging symbols (default: off) 1322 1323Optional Packages: 1324 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1325 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1326 --with-tcl directory containing tcl configuration 1327 (tclConfig.sh) 1328 --with-tclinclude directory containing the public Tcl header files 1329 --with-celib=DIR use Windows/CE support library from DIR 1330 1331Some influential environment variables: 1332 CC C compiler command 1333 CFLAGS C compiler flags 1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1335 nonstandard directory <lib dir> 1336 LIBS libraries to pass to the linker, e.g. -l<library> 1337 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1338 you have headers in a nonstandard directory <include dir> 1339 CPP C preprocessor 1340 1341Use these variables to override the choices made by `configure' or to help 1342it to find libraries and programs with nonstandard names/locations. 1343 1344_ACEOF 1345ac_status=$? 1346fi 1347 1348if test "$ac_init_help" = "recursive"; then 1349 # If there are subdirs, report their specific --help. 1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1351 test -d "$ac_dir" || continue 1352 ac_builddir=. 1353 1354case "$ac_dir" in 1355.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1356*) 1357 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1358 # A ".." for each directory in $ac_dir_suffix. 1359 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1360 case $ac_top_builddir_sub in 1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1363 esac ;; 1364esac 1365ac_abs_top_builddir=$ac_pwd 1366ac_abs_builddir=$ac_pwd$ac_dir_suffix 1367# for backward compatibility: 1368ac_top_builddir=$ac_top_build_prefix 1369 1370case $srcdir in 1371 .) # We are building in place. 1372 ac_srcdir=. 1373 ac_top_srcdir=$ac_top_builddir_sub 1374 ac_abs_top_srcdir=$ac_pwd ;; 1375 [\\/]* | ?:[\\/]* ) # Absolute name. 1376 ac_srcdir=$srcdir$ac_dir_suffix; 1377 ac_top_srcdir=$srcdir 1378 ac_abs_top_srcdir=$srcdir ;; 1379 *) # Relative name. 1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1381 ac_top_srcdir=$ac_top_build_prefix$srcdir 1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1383esac 1384ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1385 1386 cd "$ac_dir" || { ac_status=$?; continue; } 1387 # Check for guested configure. 1388 if test -f "$ac_srcdir/configure.gnu"; then 1389 echo && 1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1391 elif test -f "$ac_srcdir/configure"; then 1392 echo && 1393 $SHELL "$ac_srcdir/configure" --help=recursive 1394 else 1395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1396 fi || ac_status=$? 1397 cd "$ac_pwd" || { ac_status=$?; break; } 1398 done 1399fi 1400 1401test -n "$ac_init_help" && exit $ac_status 1402if $ac_init_version; then 1403 cat <<\_ACEOF 1404itcl configure 3.4 1405generated by GNU Autoconf 2.61 1406 1407Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1409This configure script is free software; the Free Software Foundation 1410gives unlimited permission to copy, distribute and modify it. 1411_ACEOF 1412 exit 1413fi 1414cat >config.log <<_ACEOF 1415This file contains any messages produced by compilers while 1416running configure, to aid debugging if configure makes a mistake. 1417 1418It was created by itcl $as_me 3.4, which was 1419generated by GNU Autoconf 2.61. Invocation command line was 1420 1421 $ $0 $@ 1422 1423_ACEOF 1424exec 5>>config.log 1425{ 1426cat <<_ASUNAME 1427## --------- ## 1428## Platform. ## 1429## --------- ## 1430 1431hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1432uname -m = `(uname -m) 2>/dev/null || echo unknown` 1433uname -r = `(uname -r) 2>/dev/null || echo unknown` 1434uname -s = `(uname -s) 2>/dev/null || echo unknown` 1435uname -v = `(uname -v) 2>/dev/null || echo unknown` 1436 1437/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1438/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1439 1440/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1441/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1442/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1443/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1444/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1445/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1446/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1447 1448_ASUNAME 1449 1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1451for as_dir in $PATH 1452do 1453 IFS=$as_save_IFS 1454 test -z "$as_dir" && as_dir=. 1455 echo "PATH: $as_dir" 1456done 1457IFS=$as_save_IFS 1458 1459} >&5 1460 1461cat >&5 <<_ACEOF 1462 1463 1464## ----------- ## 1465## Core tests. ## 1466## ----------- ## 1467 1468_ACEOF 1469 1470 1471# Keep a trace of the command line. 1472# Strip out --no-create and --no-recursion so they do not pile up. 1473# Strip out --silent because we don't want to record it for future runs. 1474# Also quote any args containing shell meta-characters. 1475# Make two passes to allow for proper duplicate-argument suppression. 1476ac_configure_args= 1477ac_configure_args0= 1478ac_configure_args1= 1479ac_must_keep_next=false 1480for ac_pass in 1 2 1481do 1482 for ac_arg 1483 do 1484 case $ac_arg in 1485 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1487 | -silent | --silent | --silen | --sile | --sil) 1488 continue ;; 1489 *\'*) 1490 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1491 esac 1492 case $ac_pass in 1493 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1494 2) 1495 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1496 if test $ac_must_keep_next = true; then 1497 ac_must_keep_next=false # Got value, back to normal. 1498 else 1499 case $ac_arg in 1500 *=* | --config-cache | -C | -disable-* | --disable-* \ 1501 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1502 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1503 | -with-* | --with-* | -without-* | --without-* | --x) 1504 case "$ac_configure_args0 " in 1505 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1506 esac 1507 ;; 1508 -* ) ac_must_keep_next=true ;; 1509 esac 1510 fi 1511 ac_configure_args="$ac_configure_args '$ac_arg'" 1512 ;; 1513 esac 1514 done 1515done 1516$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1517$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1518 1519# When interrupted or exit'd, cleanup temporary files, and complete 1520# config.log. We remove comments because anyway the quotes in there 1521# would cause problems or look ugly. 1522# WARNING: Use '\'' to represent an apostrophe within the trap. 1523# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1524trap 'exit_status=$? 1525 # Save into config.log some information that might help in debugging. 1526 { 1527 echo 1528 1529 cat <<\_ASBOX 1530## ---------------- ## 1531## Cache variables. ## 1532## ---------------- ## 1533_ASBOX 1534 echo 1535 # The following way of writing the cache mishandles newlines in values, 1536( 1537 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1538 eval ac_val=\$$ac_var 1539 case $ac_val in #( 1540 *${as_nl}*) 1541 case $ac_var in #( 1542 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1543echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1544 esac 1545 case $ac_var in #( 1546 _ | IFS | as_nl) ;; #( 1547 *) $as_unset $ac_var ;; 1548 esac ;; 1549 esac 1550 done 1551 (set) 2>&1 | 1552 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1553 *${as_nl}ac_space=\ *) 1554 sed -n \ 1555 "s/'\''/'\''\\\\'\'''\''/g; 1556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1557 ;; #( 1558 *) 1559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1560 ;; 1561 esac | 1562 sort 1563) 1564 echo 1565 1566 cat <<\_ASBOX 1567## ----------------- ## 1568## Output variables. ## 1569## ----------------- ## 1570_ASBOX 1571 echo 1572 for ac_var in $ac_subst_vars 1573 do 1574 eval ac_val=\$$ac_var 1575 case $ac_val in 1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1577 esac 1578 echo "$ac_var='\''$ac_val'\''" 1579 done | sort 1580 echo 1581 1582 if test -n "$ac_subst_files"; then 1583 cat <<\_ASBOX 1584## ------------------- ## 1585## File substitutions. ## 1586## ------------------- ## 1587_ASBOX 1588 echo 1589 for ac_var in $ac_subst_files 1590 do 1591 eval ac_val=\$$ac_var 1592 case $ac_val in 1593 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1594 esac 1595 echo "$ac_var='\''$ac_val'\''" 1596 done | sort 1597 echo 1598 fi 1599 1600 if test -s confdefs.h; then 1601 cat <<\_ASBOX 1602## ----------- ## 1603## confdefs.h. ## 1604## ----------- ## 1605_ASBOX 1606 echo 1607 cat confdefs.h 1608 echo 1609 fi 1610 test "$ac_signal" != 0 && 1611 echo "$as_me: caught signal $ac_signal" 1612 echo "$as_me: exit $exit_status" 1613 } >&5 1614 rm -f core *.core core.conftest.* && 1615 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1616 exit $exit_status 1617' 0 1618for ac_signal in 1 2 13 15; do 1619 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1620done 1621ac_signal=0 1622 1623# confdefs.h avoids OS command line length limits that DEFS can exceed. 1624rm -f -r conftest* confdefs.h 1625 1626# Predefined preprocessor variables. 1627 1628cat >>confdefs.h <<_ACEOF 1629#define PACKAGE_NAME "$PACKAGE_NAME" 1630_ACEOF 1631 1632 1633cat >>confdefs.h <<_ACEOF 1634#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1635_ACEOF 1636 1637 1638cat >>confdefs.h <<_ACEOF 1639#define PACKAGE_VERSION "$PACKAGE_VERSION" 1640_ACEOF 1641 1642 1643cat >>confdefs.h <<_ACEOF 1644#define PACKAGE_STRING "$PACKAGE_STRING" 1645_ACEOF 1646 1647 1648cat >>confdefs.h <<_ACEOF 1649#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1650_ACEOF 1651 1652 1653# Let the site file select an alternate cache file if it wants to. 1654# Prefer explicitly selected file to automatically selected ones. 1655if test -n "$CONFIG_SITE"; then 1656 set x "$CONFIG_SITE" 1657elif test "x$prefix" != xNONE; then 1658 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1659else 1660 set x "$ac_default_prefix/share/config.site" \ 1661 "$ac_default_prefix/etc/config.site" 1662fi 1663shift 1664for ac_site_file 1665do 1666 if test -r "$ac_site_file"; then 1667 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1668echo "$as_me: loading site script $ac_site_file" >&6;} 1669 sed 's/^/| /' "$ac_site_file" >&5 1670 . "$ac_site_file" 1671 fi 1672done 1673 1674if test -r "$cache_file"; then 1675 # Some versions of bash will fail to source /dev/null (special 1676 # files actually), so we avoid doing that. 1677 if test -f "$cache_file"; then 1678 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1679echo "$as_me: loading cache $cache_file" >&6;} 1680 case $cache_file in 1681 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1682 *) . "./$cache_file";; 1683 esac 1684 fi 1685else 1686 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1687echo "$as_me: creating cache $cache_file" >&6;} 1688 >$cache_file 1689fi 1690 1691# Check that the precious variables saved in the cache have kept the same 1692# value. 1693ac_cache_corrupted=false 1694for ac_var in $ac_precious_vars; do 1695 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1696 eval ac_new_set=\$ac_env_${ac_var}_set 1697 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1698 eval ac_new_val=\$ac_env_${ac_var}_value 1699 case $ac_old_set,$ac_new_set in 1700 set,) 1701 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1702echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1703 ac_cache_corrupted=: ;; 1704 ,set) 1705 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1706echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1707 ac_cache_corrupted=: ;; 1708 ,);; 1709 *) 1710 if test "x$ac_old_val" != "x$ac_new_val"; then 1711 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1712echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1713 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1714echo "$as_me: former value: $ac_old_val" >&2;} 1715 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1716echo "$as_me: current value: $ac_new_val" >&2;} 1717 ac_cache_corrupted=: 1718 fi;; 1719 esac 1720 # Pass precious variables to config.status. 1721 if test "$ac_new_set" = set; then 1722 case $ac_new_val in 1723 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1724 *) ac_arg=$ac_var=$ac_new_val ;; 1725 esac 1726 case " $ac_configure_args " in 1727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1728 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1729 esac 1730 fi 1731done 1732if $ac_cache_corrupted; then 1733 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1734echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1735 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1736echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1737 { (exit 1); exit 1; }; } 1738fi 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764ac_ext=c 1765ac_cpp='$CPP $CPPFLAGS' 1766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1768ac_compiler_gnu=$ac_cv_c_compiler_gnu 1769 1770 1771 1772#-------------------------------------------------------------------- 1773# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1774# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1775# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1776#-------------------------------------------------------------------- 1777 1778 1779 # TEA extensions pass this us the version of TEA they think they 1780 # are compatible with. 1781 TEA_VERSION="3.9" 1782 1783 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1784echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1785 if test x"${PACKAGE_NAME}" = x ; then 1786 { { echo "$as_me:$LINENO: error: 1787The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1788echo "$as_me: error: 1789The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1790 { (exit 1); exit 1; }; } 1791 fi 1792 if test x"3.9" = x ; then 1793 { { echo "$as_me:$LINENO: error: 1794TEA version not specified." >&5 1795echo "$as_me: error: 1796TEA version not specified." >&2;} 1797 { (exit 1); exit 1; }; } 1798 elif test "3.9" != "${TEA_VERSION}" ; then 1799 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1800echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1801 else 1802 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1803echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1804 fi 1805 case "`uname -s`" in 1806 *win32*|*WIN32*|*MINGW32_*) 1807 # Extract the first word of "cygpath", so it can be a program name with args. 1808set dummy cygpath; ac_word=$2 1809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1811if test "${ac_cv_prog_CYGPATH+set}" = set; then 1812 echo $ECHO_N "(cached) $ECHO_C" >&6 1813else 1814 if test -n "$CYGPATH"; then 1815 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1816else 1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1818for as_dir in $PATH 1819do 1820 IFS=$as_save_IFS 1821 test -z "$as_dir" && as_dir=. 1822 for ac_exec_ext in '' $ac_executable_extensions; do 1823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1824 ac_cv_prog_CYGPATH="cygpath -w" 1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1826 break 2 1827 fi 1828done 1829done 1830IFS=$as_save_IFS 1831 1832 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1833fi 1834fi 1835CYGPATH=$ac_cv_prog_CYGPATH 1836if test -n "$CYGPATH"; then 1837 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1838echo "${ECHO_T}$CYGPATH" >&6; } 1839else 1840 { echo "$as_me:$LINENO: result: no" >&5 1841echo "${ECHO_T}no" >&6; } 1842fi 1843 1844 1845 EXEEXT=".exe" 1846 TEA_PLATFORM="windows" 1847 ;; 1848 *CYGWIN_*) 1849 CYGPATH=echo 1850 EXEEXT=".exe" 1851 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1852 ;; 1853 *) 1854 CYGPATH=echo 1855 EXEEXT="" 1856 TEA_PLATFORM="unix" 1857 ;; 1858 esac 1859 1860 # Check if exec_prefix is set. If not use fall back to prefix. 1861 # Note when adjusted, so that TEA_PREFIX can correct for this. 1862 # This is needed for recursive configures, since autoconf propagates 1863 # $prefix, but not $exec_prefix (doh!). 1864 if test x$exec_prefix = xNONE ; then 1865 exec_prefix_default=yes 1866 exec_prefix=$prefix 1867 fi 1868 1869 1870 1871 1872 # This package name must be replaced statically for AC_SUBST to work 1873 1874 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1875 1876 1877 # We AC_SUBST these here to ensure they are subst'ed, 1878 # in case the user doesn't call TEA_ADD_... 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 1889echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 1890LN_S=$as_ln_s 1891if test "$LN_S" = "ln -s"; then 1892 { echo "$as_me:$LINENO: result: yes" >&5 1893echo "${ECHO_T}yes" >&6; } 1894else 1895 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 1896echo "${ECHO_T}no, using $LN_S" >&6; } 1897fi 1898 1899CONFIG_CLEAN_FILES= 1900if test ! -d $srcdir/tclconfig ; then 1901 if test -d $srcdir/../tclconfig ; then 1902 $LN_S $srcdir/../tclconfig tclconfig 1903 CONFIG_CLEAN_FILES=tclconfig 1904 fi 1905fi 1906 1907 1908ac_aux_dir= 1909for ac_dir in ../tclconfig "$srcdir"/../tclconfig; do 1910 if test -f "$ac_dir/install-sh"; then 1911 ac_aux_dir=$ac_dir 1912 ac_install_sh="$ac_aux_dir/install-sh -c" 1913 break 1914 elif test -f "$ac_dir/install.sh"; then 1915 ac_aux_dir=$ac_dir 1916 ac_install_sh="$ac_aux_dir/install.sh -c" 1917 break 1918 elif test -f "$ac_dir/shtool"; then 1919 ac_aux_dir=$ac_dir 1920 ac_install_sh="$ac_aux_dir/shtool install -c" 1921 break 1922 fi 1923done 1924if test -z "$ac_aux_dir"; then 1925 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&5 1926echo "$as_me: error: cannot find install-sh or install.sh in ../tclconfig \"$srcdir\"/../tclconfig" >&2;} 1927 { (exit 1); exit 1; }; } 1928fi 1929 1930# These three variables are undocumented and unsupported, 1931# and are intended to be withdrawn in a future Autoconf release. 1932# They can cause serious problems if a builder's source tree is in a directory 1933# whose full name contains unusual characters. 1934ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1935ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1936ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1937 1938 1939 1940#-------------------------------------------------------------------- 1941# Load the tclConfig.sh file 1942#-------------------------------------------------------------------- 1943 1944 1945 1946 # 1947 # Ok, lets find the tcl configuration 1948 # First, look for one uninstalled. 1949 # the alternative search directory is invoked by --with-tcl 1950 # 1951 1952 if test x"${no_tcl}" = x ; then 1953 # we reset no_tcl in case something fails here 1954 no_tcl=true 1955 1956# Check whether --with-tcl was given. 1957if test "${with_tcl+set}" = set; then 1958 withval=$with_tcl; with_tclconfig="${withval}" 1959fi 1960 1961 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1962echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1963 if test "${ac_cv_c_tclconfig+set}" = set; then 1964 echo $ECHO_N "(cached) $ECHO_C" >&6 1965else 1966 1967 1968 # First check to see if --with-tcl was specified. 1969 if test x"${with_tclconfig}" != x ; then 1970 case "${with_tclconfig}" in 1971 */tclConfig.sh ) 1972 if test -f "${with_tclconfig}"; then 1973 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1974echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1975 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1976 fi ;; 1977 esac 1978 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1979 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1980 else 1981 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1982echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1983 { (exit 1); exit 1; }; } 1984 fi 1985 fi 1986 1987 # then check for a private Tcl installation 1988 if test x"${ac_cv_c_tclconfig}" = x ; then 1989 for i in \ 1990 ../tcl \ 1991 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1992 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1993 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1994 ../../tcl \ 1995 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1996 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1997 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1998 ../../../tcl \ 1999 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2000 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2001 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2002 if test "${TEA_PLATFORM}" = "windows" \ 2003 -a -f "$i/win/tclConfig.sh" ; then 2004 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2005 break 2006 fi 2007 if test -f "$i/unix/tclConfig.sh" ; then 2008 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2009 break 2010 fi 2011 done 2012 fi 2013 2014 # on Darwin, check in Framework installation locations 2015 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2016 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2017 `ls -d /Library/Frameworks 2>/dev/null` \ 2018 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2019 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2020 ; do 2021 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2022 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2023 break 2024 fi 2025 done 2026 fi 2027 2028 # TEA specific: on Windows, check in common installation locations 2029 if test "${TEA_PLATFORM}" = "windows" \ 2030 -a x"${ac_cv_c_tclconfig}" = x ; then 2031 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2032 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2033 ; do 2034 if test -f "$i/tclConfig.sh" ; then 2035 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2036 break 2037 fi 2038 done 2039 fi 2040 2041 # check in a few common install locations 2042 if test x"${ac_cv_c_tclconfig}" = x ; then 2043 for i in `ls -d ${libdir} 2>/dev/null` \ 2044 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2045 `ls -d ${prefix}/lib 2>/dev/null` \ 2046 `ls -d /usr/local/lib 2>/dev/null` \ 2047 `ls -d /usr/contrib/lib 2>/dev/null` \ 2048 `ls -d /usr/lib 2>/dev/null` \ 2049 `ls -d /usr/lib64 2>/dev/null` \ 2050 ; do 2051 if test -f "$i/tclConfig.sh" ; then 2052 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2053 break 2054 fi 2055 done 2056 fi 2057 2058 # check in a few other private locations 2059 if test x"${ac_cv_c_tclconfig}" = x ; then 2060 for i in \ 2061 ${srcdir}/../tcl \ 2062 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2063 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2064 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2065 if test "${TEA_PLATFORM}" = "windows" \ 2066 -a -f "$i/win/tclConfig.sh" ; then 2067 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2068 break 2069 fi 2070 if test -f "$i/unix/tclConfig.sh" ; then 2071 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2072 break 2073 fi 2074 done 2075 fi 2076 2077fi 2078 2079 2080 if test x"${ac_cv_c_tclconfig}" = x ; then 2081 TCL_BIN_DIR="# no Tcl configs found" 2082 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2083echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2084 { (exit 1); exit 1; }; } 2085 else 2086 no_tcl= 2087 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2088 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2089echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2090 fi 2091 fi 2092 2093 2094 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2095echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2096 2097 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2098 { echo "$as_me:$LINENO: result: loading" >&5 2099echo "${ECHO_T}loading" >&6; } 2100 . "${TCL_BIN_DIR}/tclConfig.sh" 2101 else 2102 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2103echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2104 fi 2105 2106 # eval is required to do the TCL_DBGX substitution 2107 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2108 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2109 2110 # If the TCL_BIN_DIR is the build directory (not the install directory), 2111 # then set the common variable name to the value of the build variables. 2112 # For example, the variable TCL_LIB_SPEC will be set to the value 2113 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2114 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2115 # installed and uninstalled version of Tcl. 2116 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2117 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2118 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2119 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2120 elif test "`uname -s`" = "Darwin"; then 2121 # If Tcl was built as a framework, attempt to use the libraries 2122 # from the framework at the given location so that linking works 2123 # against Tcl.framework installed in an arbitrary location. 2124 case ${TCL_DEFS} in 2125 *TCL_FRAMEWORK*) 2126 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2127 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2128 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2129 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2130 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2131 break 2132 fi 2133 done 2134 fi 2135 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2136 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2137 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2138 fi 2139 ;; 2140 esac 2141 fi 2142 2143 # eval is required to do the TCL_DBGX substitution 2144 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2145 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2146 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2147 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 case "`uname -s`" in 2163 *CYGWIN_*) 2164 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2165echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2166 case ${TCL_EXTRA_CFLAGS} in 2167 *-mwin32*|*-mno-cygwin*) 2168 TEA_PLATFORM="windows" 2169 CFLAGS="$CFLAGS -mwin32" 2170 { echo "$as_me:$LINENO: result: win32" >&5 2171echo "${ECHO_T}win32" >&6; } 2172 ;; 2173 *) 2174 TEA_PLATFORM="unix" 2175 { echo "$as_me:$LINENO: result: unix" >&5 2176echo "${ECHO_T}unix" >&6; } 2177 ;; 2178 esac 2179 EXEEXT=".exe" 2180 ;; 2181 *) 2182 ;; 2183 esac 2184 2185 # Do this here as we have fully defined TEA_PLATFORM now 2186 if test "${TEA_PLATFORM}" = "windows" ; then 2187 # The BUILD_$pkg is to define the correct extern storage class 2188 # handling when making this package 2189 2190cat >>confdefs.h <<_ACEOF 2191#define BUILD_${PACKAGE_NAME} 2192_ACEOF 2193 2194 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2195 fi 2196 2197 # TEA specific: 2198 2199 2200 2201 2202 2203 2204 2205 2206#----------------------------------------------------------------------- 2207# Handle the --prefix=... option by defaulting to what Tcl gave. 2208# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2209#----------------------------------------------------------------------- 2210 2211 2212 if test "${prefix}" = "NONE"; then 2213 prefix_default=yes 2214 if test x"${TCL_PREFIX}" != x; then 2215 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2216echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2217 prefix=${TCL_PREFIX} 2218 else 2219 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2220echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2221 prefix=/usr/local 2222 fi 2223 fi 2224 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2225 -o x"${exec_prefix_default}" = x"yes" ; then 2226 if test x"${TCL_EXEC_PREFIX}" != x; then 2227 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2228echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2229 exec_prefix=${TCL_EXEC_PREFIX} 2230 else 2231 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2232echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2233 exec_prefix=$prefix 2234 fi 2235 fi 2236 2237 2238#----------------------------------------------------------------------- 2239# Standard compiler checks. 2240# This sets up CC by using the CC env var, or looks for gcc otherwise. 2241# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2242# the basic setup necessary to compile executables. 2243#----------------------------------------------------------------------- 2244 2245 2246 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2247 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2248 2249 # If the user did not set CFLAGS, set it now to keep 2250 # the AC_PROG_CC macro from adding "-g -O2". 2251 if test "${CFLAGS+set}" != "set" ; then 2252 CFLAGS="" 2253 fi 2254 2255 ac_ext=c 2256ac_cpp='$CPP $CPPFLAGS' 2257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2259ac_compiler_gnu=$ac_cv_c_compiler_gnu 2260if test -n "$ac_tool_prefix"; then 2261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2262set dummy ${ac_tool_prefix}gcc; ac_word=$2 2263{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2265if test "${ac_cv_prog_CC+set}" = set; then 2266 echo $ECHO_N "(cached) $ECHO_C" >&6 2267else 2268 if test -n "$CC"; then 2269 ac_cv_prog_CC="$CC" # Let the user override the test. 2270else 2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2272for as_dir in $PATH 2273do 2274 IFS=$as_save_IFS 2275 test -z "$as_dir" && as_dir=. 2276 for ac_exec_ext in '' $ac_executable_extensions; do 2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2278 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2280 break 2 2281 fi 2282done 2283done 2284IFS=$as_save_IFS 2285 2286fi 2287fi 2288CC=$ac_cv_prog_CC 2289if test -n "$CC"; then 2290 { echo "$as_me:$LINENO: result: $CC" >&5 2291echo "${ECHO_T}$CC" >&6; } 2292else 2293 { echo "$as_me:$LINENO: result: no" >&5 2294echo "${ECHO_T}no" >&6; } 2295fi 2296 2297 2298fi 2299if test -z "$ac_cv_prog_CC"; then 2300 ac_ct_CC=$CC 2301 # Extract the first word of "gcc", so it can be a program name with args. 2302set dummy gcc; ac_word=$2 2303{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2306 echo $ECHO_N "(cached) $ECHO_C" >&6 2307else 2308 if test -n "$ac_ct_CC"; then 2309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2310else 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 for ac_exec_ext in '' $ac_executable_extensions; do 2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2318 ac_cv_prog_ac_ct_CC="gcc" 2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2320 break 2 2321 fi 2322done 2323done 2324IFS=$as_save_IFS 2325 2326fi 2327fi 2328ac_ct_CC=$ac_cv_prog_ac_ct_CC 2329if test -n "$ac_ct_CC"; then 2330 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2331echo "${ECHO_T}$ac_ct_CC" >&6; } 2332else 2333 { echo "$as_me:$LINENO: result: no" >&5 2334echo "${ECHO_T}no" >&6; } 2335fi 2336 2337 if test "x$ac_ct_CC" = x; then 2338 CC="" 2339 else 2340 case $cross_compiling:$ac_tool_warned in 2341yes:) 2342{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2343whose name does not start with the host triplet. If you think this 2344configuration is useful to you, please write to autoconf@gnu.org." >&5 2345echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2346whose name does not start with the host triplet. If you think this 2347configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2348ac_tool_warned=yes ;; 2349esac 2350 CC=$ac_ct_CC 2351 fi 2352else 2353 CC="$ac_cv_prog_CC" 2354fi 2355 2356if test -z "$CC"; then 2357 if test -n "$ac_tool_prefix"; then 2358 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2359set dummy ${ac_tool_prefix}cc; ac_word=$2 2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2362if test "${ac_cv_prog_CC+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 if test -n "$CC"; then 2366 ac_cv_prog_CC="$CC" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_CC="${ac_tool_prefix}cc" 2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385CC=$ac_cv_prog_CC 2386if test -n "$CC"; then 2387 { echo "$as_me:$LINENO: result: $CC" >&5 2388echo "${ECHO_T}$CC" >&6; } 2389else 2390 { echo "$as_me:$LINENO: result: no" >&5 2391echo "${ECHO_T}no" >&6; } 2392fi 2393 2394 2395 fi 2396fi 2397if test -z "$CC"; then 2398 # Extract the first word of "cc", so it can be a program name with args. 2399set dummy cc; ac_word=$2 2400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2402if test "${ac_cv_prog_CC+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404else 2405 if test -n "$CC"; then 2406 ac_cv_prog_CC="$CC" # Let the user override the test. 2407else 2408 ac_prog_rejected=no 2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2410for as_dir in $PATH 2411do 2412 IFS=$as_save_IFS 2413 test -z "$as_dir" && as_dir=. 2414 for ac_exec_ext in '' $ac_executable_extensions; do 2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2416 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2417 ac_prog_rejected=yes 2418 continue 2419 fi 2420 ac_cv_prog_CC="cc" 2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2422 break 2 2423 fi 2424done 2425done 2426IFS=$as_save_IFS 2427 2428if test $ac_prog_rejected = yes; then 2429 # We found a bogon in the path, so make sure we never use it. 2430 set dummy $ac_cv_prog_CC 2431 shift 2432 if test $# != 0; then 2433 # We chose a different compiler from the bogus one. 2434 # However, it has the same basename, so the bogon will be chosen 2435 # first if we set CC to just the basename; use the full file name. 2436 shift 2437 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2438 fi 2439fi 2440fi 2441fi 2442CC=$ac_cv_prog_CC 2443if test -n "$CC"; then 2444 { echo "$as_me:$LINENO: result: $CC" >&5 2445echo "${ECHO_T}$CC" >&6; } 2446else 2447 { echo "$as_me:$LINENO: result: no" >&5 2448echo "${ECHO_T}no" >&6; } 2449fi 2450 2451 2452fi 2453if test -z "$CC"; then 2454 if test -n "$ac_tool_prefix"; then 2455 for ac_prog in cl.exe 2456 do 2457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2458set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2459{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2461if test "${ac_cv_prog_CC+set}" = set; then 2462 echo $ECHO_N "(cached) $ECHO_C" >&6 2463else 2464 if test -n "$CC"; then 2465 ac_cv_prog_CC="$CC" # Let the user override the test. 2466else 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_exec_ext in '' $ac_executable_extensions; do 2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2474 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2476 break 2 2477 fi 2478done 2479done 2480IFS=$as_save_IFS 2481 2482fi 2483fi 2484CC=$ac_cv_prog_CC 2485if test -n "$CC"; then 2486 { echo "$as_me:$LINENO: result: $CC" >&5 2487echo "${ECHO_T}$CC" >&6; } 2488else 2489 { echo "$as_me:$LINENO: result: no" >&5 2490echo "${ECHO_T}no" >&6; } 2491fi 2492 2493 2494 test -n "$CC" && break 2495 done 2496fi 2497if test -z "$CC"; then 2498 ac_ct_CC=$CC 2499 for ac_prog in cl.exe 2500do 2501 # Extract the first word of "$ac_prog", so it can be a program name with args. 2502set dummy $ac_prog; ac_word=$2 2503{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2505if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2506 echo $ECHO_N "(cached) $ECHO_C" >&6 2507else 2508 if test -n "$ac_ct_CC"; then 2509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2510else 2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2512for as_dir in $PATH 2513do 2514 IFS=$as_save_IFS 2515 test -z "$as_dir" && as_dir=. 2516 for ac_exec_ext in '' $ac_executable_extensions; do 2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2518 ac_cv_prog_ac_ct_CC="$ac_prog" 2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2520 break 2 2521 fi 2522done 2523done 2524IFS=$as_save_IFS 2525 2526fi 2527fi 2528ac_ct_CC=$ac_cv_prog_ac_ct_CC 2529if test -n "$ac_ct_CC"; then 2530 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2531echo "${ECHO_T}$ac_ct_CC" >&6; } 2532else 2533 { echo "$as_me:$LINENO: result: no" >&5 2534echo "${ECHO_T}no" >&6; } 2535fi 2536 2537 2538 test -n "$ac_ct_CC" && break 2539done 2540 2541 if test "x$ac_ct_CC" = x; then 2542 CC="" 2543 else 2544 case $cross_compiling:$ac_tool_warned in 2545yes:) 2546{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2547whose name does not start with the host triplet. If you think this 2548configuration is useful to you, please write to autoconf@gnu.org." >&5 2549echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2550whose name does not start with the host triplet. If you think this 2551configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2552ac_tool_warned=yes ;; 2553esac 2554 CC=$ac_ct_CC 2555 fi 2556fi 2557 2558fi 2559 2560 2561test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2562See \`config.log' for more details." >&5 2563echo "$as_me: error: no acceptable C compiler found in \$PATH 2564See \`config.log' for more details." >&2;} 2565 { (exit 1); exit 1; }; } 2566 2567# Provide some information about the compiler. 2568echo "$as_me:$LINENO: checking for C compiler version" >&5 2569ac_compiler=`set X $ac_compile; echo $2` 2570{ (ac_try="$ac_compiler --version >&5" 2571case "(($ac_try" in 2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2573 *) ac_try_echo=$ac_try;; 2574esac 2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2576 (eval "$ac_compiler --version >&5") 2>&5 2577 ac_status=$? 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2579 (exit $ac_status); } 2580{ (ac_try="$ac_compiler -v >&5" 2581case "(($ac_try" in 2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2583 *) ac_try_echo=$ac_try;; 2584esac 2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2586 (eval "$ac_compiler -v >&5") 2>&5 2587 ac_status=$? 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); } 2590{ (ac_try="$ac_compiler -V >&5" 2591case "(($ac_try" in 2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2593 *) ac_try_echo=$ac_try;; 2594esac 2595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2596 (eval "$ac_compiler -V >&5") 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); } 2600 2601cat >conftest.$ac_ext <<_ACEOF 2602/* confdefs.h. */ 2603_ACEOF 2604cat confdefs.h >>conftest.$ac_ext 2605cat >>conftest.$ac_ext <<_ACEOF 2606/* end confdefs.h. */ 2607 2608int 2609main () 2610{ 2611 2612 ; 2613 return 0; 2614} 2615_ACEOF 2616ac_clean_files_save=$ac_clean_files 2617ac_clean_files="$ac_clean_files a.out a.exe b.out" 2618# Try to create an executable without -o first, disregard a.out. 2619# It will help us diagnose broken compilers, and finding out an intuition 2620# of exeext. 2621{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2622echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2623ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2624# 2625# List of possible output files, starting from the most likely. 2626# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2627# only as a last resort. b.out is created by i960 compilers. 2628ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2629# 2630# The IRIX 6 linker writes into existing files which may not be 2631# executable, retaining their permissions. Remove them first so a 2632# subsequent execution test works. 2633ac_rmfiles= 2634for ac_file in $ac_files 2635do 2636 case $ac_file in 2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2638 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2639 esac 2640done 2641rm -f $ac_rmfiles 2642 2643if { (ac_try="$ac_link_default" 2644case "(($ac_try" in 2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2646 *) ac_try_echo=$ac_try;; 2647esac 2648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2649 (eval "$ac_link_default") 2>&5 2650 ac_status=$? 2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); }; then 2653 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2654# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2655# in a Makefile. We should not override ac_cv_exeext if it was cached, 2656# so that the user can short-circuit this test for compilers unknown to 2657# Autoconf. 2658for ac_file in $ac_files '' 2659do 2660 test -f "$ac_file" || continue 2661 case $ac_file in 2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2663 ;; 2664 [ab].out ) 2665 # We found the default executable, but exeext='' is most 2666 # certainly right. 2667 break;; 2668 *.* ) 2669 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2670 then :; else 2671 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2672 fi 2673 # We set ac_cv_exeext here because the later test for it is not 2674 # safe: cross compilers may not add the suffix if given an `-o' 2675 # argument, so we may need to know it at that point already. 2676 # Even if this section looks crufty: it has the advantage of 2677 # actually working. 2678 break;; 2679 * ) 2680 break;; 2681 esac 2682done 2683test "$ac_cv_exeext" = no && ac_cv_exeext= 2684 2685else 2686 ac_file='' 2687fi 2688 2689{ echo "$as_me:$LINENO: result: $ac_file" >&5 2690echo "${ECHO_T}$ac_file" >&6; } 2691if test -z "$ac_file"; then 2692 echo "$as_me: failed program was:" >&5 2693sed 's/^/| /' conftest.$ac_ext >&5 2694 2695{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2696See \`config.log' for more details." >&5 2697echo "$as_me: error: C compiler cannot create executables 2698See \`config.log' for more details." >&2;} 2699 { (exit 77); exit 77; }; } 2700fi 2701 2702ac_exeext=$ac_cv_exeext 2703 2704# Check that the compiler produces executables we can run. If not, either 2705# the compiler is broken, or we cross compile. 2706{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2707echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2708# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2709# If not cross compiling, check that we can run a simple program. 2710if test "$cross_compiling" != yes; then 2711 if { ac_try='./$ac_file' 2712 { (case "(($ac_try" in 2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2714 *) ac_try_echo=$ac_try;; 2715esac 2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2717 (eval "$ac_try") 2>&5 2718 ac_status=$? 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); }; }; then 2721 cross_compiling=no 2722 else 2723 if test "$cross_compiling" = maybe; then 2724 cross_compiling=yes 2725 else 2726 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2727If you meant to cross compile, use \`--host'. 2728See \`config.log' for more details." >&5 2729echo "$as_me: error: cannot run C compiled programs. 2730If you meant to cross compile, use \`--host'. 2731See \`config.log' for more details." >&2;} 2732 { (exit 1); exit 1; }; } 2733 fi 2734 fi 2735fi 2736{ echo "$as_me:$LINENO: result: yes" >&5 2737echo "${ECHO_T}yes" >&6; } 2738 2739rm -f a.out a.exe conftest$ac_cv_exeext b.out 2740ac_clean_files=$ac_clean_files_save 2741# Check that the compiler produces executables we can run. If not, either 2742# the compiler is broken, or we cross compile. 2743{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2744echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2745{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2746echo "${ECHO_T}$cross_compiling" >&6; } 2747 2748{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2749echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2750if { (ac_try="$ac_link" 2751case "(($ac_try" in 2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2753 *) ac_try_echo=$ac_try;; 2754esac 2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2756 (eval "$ac_link") 2>&5 2757 ac_status=$? 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2759 (exit $ac_status); }; then 2760 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2761# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2762# work properly (i.e., refer to `conftest.exe'), while it won't with 2763# `rm'. 2764for ac_file in conftest.exe conftest conftest.*; do 2765 test -f "$ac_file" || continue 2766 case $ac_file in 2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2769 break;; 2770 * ) break;; 2771 esac 2772done 2773else 2774 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2775See \`config.log' for more details." >&5 2776echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2777See \`config.log' for more details." >&2;} 2778 { (exit 1); exit 1; }; } 2779fi 2780 2781rm -f conftest$ac_cv_exeext 2782{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2783echo "${ECHO_T}$ac_cv_exeext" >&6; } 2784 2785rm -f conftest.$ac_ext 2786EXEEXT=$ac_cv_exeext 2787ac_exeext=$EXEEXT 2788{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2789echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2790if test "${ac_cv_objext+set}" = set; then 2791 echo $ECHO_N "(cached) $ECHO_C" >&6 2792else 2793 cat >conftest.$ac_ext <<_ACEOF 2794/* confdefs.h. */ 2795_ACEOF 2796cat confdefs.h >>conftest.$ac_ext 2797cat >>conftest.$ac_ext <<_ACEOF 2798/* end confdefs.h. */ 2799 2800int 2801main () 2802{ 2803 2804 ; 2805 return 0; 2806} 2807_ACEOF 2808rm -f conftest.o conftest.obj 2809if { (ac_try="$ac_compile" 2810case "(($ac_try" in 2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2812 *) ac_try_echo=$ac_try;; 2813esac 2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2815 (eval "$ac_compile") 2>&5 2816 ac_status=$? 2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2818 (exit $ac_status); }; then 2819 for ac_file in conftest.o conftest.obj conftest.*; do 2820 test -f "$ac_file" || continue; 2821 case $ac_file in 2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2824 break;; 2825 esac 2826done 2827else 2828 echo "$as_me: failed program was:" >&5 2829sed 's/^/| /' conftest.$ac_ext >&5 2830 2831{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2832See \`config.log' for more details." >&5 2833echo "$as_me: error: cannot compute suffix of object files: cannot compile 2834See \`config.log' for more details." >&2;} 2835 { (exit 1); exit 1; }; } 2836fi 2837 2838rm -f conftest.$ac_cv_objext conftest.$ac_ext 2839fi 2840{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2841echo "${ECHO_T}$ac_cv_objext" >&6; } 2842OBJEXT=$ac_cv_objext 2843ac_objext=$OBJEXT 2844{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2845echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2846if test "${ac_cv_c_compiler_gnu+set}" = set; then 2847 echo $ECHO_N "(cached) $ECHO_C" >&6 2848else 2849 cat >conftest.$ac_ext <<_ACEOF 2850/* confdefs.h. */ 2851_ACEOF 2852cat confdefs.h >>conftest.$ac_ext 2853cat >>conftest.$ac_ext <<_ACEOF 2854/* end confdefs.h. */ 2855 2856int 2857main () 2858{ 2859#ifndef __GNUC__ 2860 choke me 2861#endif 2862 2863 ; 2864 return 0; 2865} 2866_ACEOF 2867rm -f conftest.$ac_objext 2868if { (ac_try="$ac_compile" 2869case "(($ac_try" in 2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2871 *) ac_try_echo=$ac_try;; 2872esac 2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2874 (eval "$ac_compile") 2>conftest.er1 2875 ac_status=$? 2876 grep -v '^ *+' conftest.er1 >conftest.err 2877 rm -f conftest.er1 2878 cat conftest.err >&5 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2880 (exit $ac_status); } && { 2881 test -z "$ac_c_werror_flag" || 2882 test ! -s conftest.err 2883 } && test -s conftest.$ac_objext; then 2884 ac_compiler_gnu=yes 2885else 2886 echo "$as_me: failed program was:" >&5 2887sed 's/^/| /' conftest.$ac_ext >&5 2888 2889 ac_compiler_gnu=no 2890fi 2891 2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2893ac_cv_c_compiler_gnu=$ac_compiler_gnu 2894 2895fi 2896{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2897echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2898GCC=`test $ac_compiler_gnu = yes && echo yes` 2899ac_test_CFLAGS=${CFLAGS+set} 2900ac_save_CFLAGS=$CFLAGS 2901{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2902echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2903if test "${ac_cv_prog_cc_g+set}" = set; then 2904 echo $ECHO_N "(cached) $ECHO_C" >&6 2905else 2906 ac_save_c_werror_flag=$ac_c_werror_flag 2907 ac_c_werror_flag=yes 2908 ac_cv_prog_cc_g=no 2909 CFLAGS="-g" 2910 cat >conftest.$ac_ext <<_ACEOF 2911/* confdefs.h. */ 2912_ACEOF 2913cat confdefs.h >>conftest.$ac_ext 2914cat >>conftest.$ac_ext <<_ACEOF 2915/* end confdefs.h. */ 2916 2917int 2918main () 2919{ 2920 2921 ; 2922 return 0; 2923} 2924_ACEOF 2925rm -f conftest.$ac_objext 2926if { (ac_try="$ac_compile" 2927case "(($ac_try" in 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2929 *) ac_try_echo=$ac_try;; 2930esac 2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2932 (eval "$ac_compile") 2>conftest.er1 2933 ac_status=$? 2934 grep -v '^ *+' conftest.er1 >conftest.err 2935 rm -f conftest.er1 2936 cat conftest.err >&5 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } && { 2939 test -z "$ac_c_werror_flag" || 2940 test ! -s conftest.err 2941 } && test -s conftest.$ac_objext; then 2942 ac_cv_prog_cc_g=yes 2943else 2944 echo "$as_me: failed program was:" >&5 2945sed 's/^/| /' conftest.$ac_ext >&5 2946 2947 CFLAGS="" 2948 cat >conftest.$ac_ext <<_ACEOF 2949/* confdefs.h. */ 2950_ACEOF 2951cat confdefs.h >>conftest.$ac_ext 2952cat >>conftest.$ac_ext <<_ACEOF 2953/* end confdefs.h. */ 2954 2955int 2956main () 2957{ 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963rm -f conftest.$ac_objext 2964if { (ac_try="$ac_compile" 2965case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968esac 2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2970 (eval "$ac_compile") 2>conftest.er1 2971 ac_status=$? 2972 grep -v '^ *+' conftest.er1 >conftest.err 2973 rm -f conftest.er1 2974 cat conftest.err >&5 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); } && { 2977 test -z "$ac_c_werror_flag" || 2978 test ! -s conftest.err 2979 } && test -s conftest.$ac_objext; then 2980 : 2981else 2982 echo "$as_me: failed program was:" >&5 2983sed 's/^/| /' conftest.$ac_ext >&5 2984 2985 ac_c_werror_flag=$ac_save_c_werror_flag 2986 CFLAGS="-g" 2987 cat >conftest.$ac_ext <<_ACEOF 2988/* confdefs.h. */ 2989_ACEOF 2990cat confdefs.h >>conftest.$ac_ext 2991cat >>conftest.$ac_ext <<_ACEOF 2992/* end confdefs.h. */ 2993 2994int 2995main () 2996{ 2997 2998 ; 2999 return 0; 3000} 3001_ACEOF 3002rm -f conftest.$ac_objext 3003if { (ac_try="$ac_compile" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3009 (eval "$ac_compile") 2>conftest.er1 3010 ac_status=$? 3011 grep -v '^ *+' conftest.er1 >conftest.err 3012 rm -f conftest.er1 3013 cat conftest.err >&5 3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3015 (exit $ac_status); } && { 3016 test -z "$ac_c_werror_flag" || 3017 test ! -s conftest.err 3018 } && test -s conftest.$ac_objext; then 3019 ac_cv_prog_cc_g=yes 3020else 3021 echo "$as_me: failed program was:" >&5 3022sed 's/^/| /' conftest.$ac_ext >&5 3023 3024 3025fi 3026 3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3028fi 3029 3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3031fi 3032 3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3034 ac_c_werror_flag=$ac_save_c_werror_flag 3035fi 3036{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3037echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3038if test "$ac_test_CFLAGS" = set; then 3039 CFLAGS=$ac_save_CFLAGS 3040elif test $ac_cv_prog_cc_g = yes; then 3041 if test "$GCC" = yes; then 3042 CFLAGS="-g -O2" 3043 else 3044 CFLAGS="-g" 3045 fi 3046else 3047 if test "$GCC" = yes; then 3048 CFLAGS="-O2" 3049 else 3050 CFLAGS= 3051 fi 3052fi 3053{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3054echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3055if test "${ac_cv_prog_cc_c89+set}" = set; then 3056 echo $ECHO_N "(cached) $ECHO_C" >&6 3057else 3058 ac_cv_prog_cc_c89=no 3059ac_save_CC=$CC 3060cat >conftest.$ac_ext <<_ACEOF 3061/* confdefs.h. */ 3062_ACEOF 3063cat confdefs.h >>conftest.$ac_ext 3064cat >>conftest.$ac_ext <<_ACEOF 3065/* end confdefs.h. */ 3066#include <stdarg.h> 3067#include <stdio.h> 3068#include <sys/types.h> 3069#include <sys/stat.h> 3070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3071struct buf { int x; }; 3072FILE * (*rcsopen) (struct buf *, struct stat *, int); 3073static char *e (p, i) 3074 char **p; 3075 int i; 3076{ 3077 return p[i]; 3078} 3079static char *f (char * (*g) (char **, int), char **p, ...) 3080{ 3081 char *s; 3082 va_list v; 3083 va_start (v,p); 3084 s = g (p, va_arg (v,int)); 3085 va_end (v); 3086 return s; 3087} 3088 3089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3090 function prototypes and stuff, but not '\xHH' hex character constants. 3091 These don't provoke an error unfortunately, instead are silently treated 3092 as 'x'. The following induces an error, until -std is added to get 3093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3094 array size at least. It's necessary to write '\x00'==0 to get something 3095 that's true only with -std. */ 3096int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3097 3098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3099 inside strings and character constants. */ 3100#define FOO(x) 'x' 3101int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3102 3103int test (int i, double x); 3104struct s1 {int (*f) (int a);}; 3105struct s2 {int (*f) (double a);}; 3106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3107int argc; 3108char **argv; 3109int 3110main () 3111{ 3112return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3119do 3120 CC="$ac_save_CC $ac_arg" 3121 rm -f conftest.$ac_objext 3122if { (ac_try="$ac_compile" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } && { 3135 test -z "$ac_c_werror_flag" || 3136 test ! -s conftest.err 3137 } && test -s conftest.$ac_objext; then 3138 ac_cv_prog_cc_c89=$ac_arg 3139else 3140 echo "$as_me: failed program was:" >&5 3141sed 's/^/| /' conftest.$ac_ext >&5 3142 3143 3144fi 3145 3146rm -f core conftest.err conftest.$ac_objext 3147 test "x$ac_cv_prog_cc_c89" != "xno" && break 3148done 3149rm -f conftest.$ac_ext 3150CC=$ac_save_CC 3151 3152fi 3153# AC_CACHE_VAL 3154case "x$ac_cv_prog_cc_c89" in 3155 x) 3156 { echo "$as_me:$LINENO: result: none needed" >&5 3157echo "${ECHO_T}none needed" >&6; } ;; 3158 xno) 3159 { echo "$as_me:$LINENO: result: unsupported" >&5 3160echo "${ECHO_T}unsupported" >&6; } ;; 3161 *) 3162 CC="$CC $ac_cv_prog_cc_c89" 3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3164echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3165esac 3166 3167 3168ac_ext=c 3169ac_cpp='$CPP $CPPFLAGS' 3170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3172ac_compiler_gnu=$ac_cv_c_compiler_gnu 3173 3174 ac_ext=c 3175ac_cpp='$CPP $CPPFLAGS' 3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3178ac_compiler_gnu=$ac_cv_c_compiler_gnu 3179{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3180echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3181# On Suns, sometimes $CPP names a directory. 3182if test -n "$CPP" && test -d "$CPP"; then 3183 CPP= 3184fi 3185if test -z "$CPP"; then 3186 if test "${ac_cv_prog_CPP+set}" = set; then 3187 echo $ECHO_N "(cached) $ECHO_C" >&6 3188else 3189 # Double quotes because CPP needs to be expanded 3190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3191 do 3192 ac_preproc_ok=false 3193for ac_c_preproc_warn_flag in '' yes 3194do 3195 # Use a header file that comes with gcc, so configuring glibc 3196 # with a fresh cross-compiler works. 3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3198 # <limits.h> exists even on freestanding compilers. 3199 # On the NeXT, cc -E runs the code through the compiler's parser, 3200 # not just through cpp. "Syntax error" is here to catch this case. 3201 cat >conftest.$ac_ext <<_ACEOF 3202/* confdefs.h. */ 3203_ACEOF 3204cat confdefs.h >>conftest.$ac_ext 3205cat >>conftest.$ac_ext <<_ACEOF 3206/* end confdefs.h. */ 3207#ifdef __STDC__ 3208# include <limits.h> 3209#else 3210# include <assert.h> 3211#endif 3212 Syntax error 3213_ACEOF 3214if { (ac_try="$ac_cpp conftest.$ac_ext" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3221 ac_status=$? 3222 grep -v '^ *+' conftest.er1 >conftest.err 3223 rm -f conftest.er1 3224 cat conftest.err >&5 3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3226 (exit $ac_status); } >/dev/null && { 3227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3228 test ! -s conftest.err 3229 }; then 3230 : 3231else 3232 echo "$as_me: failed program was:" >&5 3233sed 's/^/| /' conftest.$ac_ext >&5 3234 3235 # Broken: fails on valid input. 3236continue 3237fi 3238 3239rm -f conftest.err conftest.$ac_ext 3240 3241 # OK, works on sane cases. Now check whether nonexistent headers 3242 # can be detected and how. 3243 cat >conftest.$ac_ext <<_ACEOF 3244/* confdefs.h. */ 3245_ACEOF 3246cat confdefs.h >>conftest.$ac_ext 3247cat >>conftest.$ac_ext <<_ACEOF 3248/* end confdefs.h. */ 3249#include <ac_nonexistent.h> 3250_ACEOF 3251if { (ac_try="$ac_cpp conftest.$ac_ext" 3252case "(($ac_try" in 3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3254 *) ac_try_echo=$ac_try;; 3255esac 3256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3258 ac_status=$? 3259 grep -v '^ *+' conftest.er1 >conftest.err 3260 rm -f conftest.er1 3261 cat conftest.err >&5 3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3263 (exit $ac_status); } >/dev/null && { 3264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3265 test ! -s conftest.err 3266 }; then 3267 # Broken: success on invalid input. 3268continue 3269else 3270 echo "$as_me: failed program was:" >&5 3271sed 's/^/| /' conftest.$ac_ext >&5 3272 3273 # Passes both tests. 3274ac_preproc_ok=: 3275break 3276fi 3277 3278rm -f conftest.err conftest.$ac_ext 3279 3280done 3281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3282rm -f conftest.err conftest.$ac_ext 3283if $ac_preproc_ok; then 3284 break 3285fi 3286 3287 done 3288 ac_cv_prog_CPP=$CPP 3289 3290fi 3291 CPP=$ac_cv_prog_CPP 3292else 3293 ac_cv_prog_CPP=$CPP 3294fi 3295{ echo "$as_me:$LINENO: result: $CPP" >&5 3296echo "${ECHO_T}$CPP" >&6; } 3297ac_preproc_ok=false 3298for ac_c_preproc_warn_flag in '' yes 3299do 3300 # Use a header file that comes with gcc, so configuring glibc 3301 # with a fresh cross-compiler works. 3302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3303 # <limits.h> exists even on freestanding compilers. 3304 # On the NeXT, cc -E runs the code through the compiler's parser, 3305 # not just through cpp. "Syntax error" is here to catch this case. 3306 cat >conftest.$ac_ext <<_ACEOF 3307/* confdefs.h. */ 3308_ACEOF 3309cat confdefs.h >>conftest.$ac_ext 3310cat >>conftest.$ac_ext <<_ACEOF 3311/* end confdefs.h. */ 3312#ifdef __STDC__ 3313# include <limits.h> 3314#else 3315# include <assert.h> 3316#endif 3317 Syntax error 3318_ACEOF 3319if { (ac_try="$ac_cpp conftest.$ac_ext" 3320case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3326 ac_status=$? 3327 grep -v '^ *+' conftest.er1 >conftest.err 3328 rm -f conftest.er1 3329 cat conftest.err >&5 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); } >/dev/null && { 3332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3333 test ! -s conftest.err 3334 }; then 3335 : 3336else 3337 echo "$as_me: failed program was:" >&5 3338sed 's/^/| /' conftest.$ac_ext >&5 3339 3340 # Broken: fails on valid input. 3341continue 3342fi 3343 3344rm -f conftest.err conftest.$ac_ext 3345 3346 # OK, works on sane cases. Now check whether nonexistent headers 3347 # can be detected and how. 3348 cat >conftest.$ac_ext <<_ACEOF 3349/* confdefs.h. */ 3350_ACEOF 3351cat confdefs.h >>conftest.$ac_ext 3352cat >>conftest.$ac_ext <<_ACEOF 3353/* end confdefs.h. */ 3354#include <ac_nonexistent.h> 3355_ACEOF 3356if { (ac_try="$ac_cpp conftest.$ac_ext" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } >/dev/null && { 3369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3370 test ! -s conftest.err 3371 }; then 3372 # Broken: success on invalid input. 3373continue 3374else 3375 echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378 # Passes both tests. 3379ac_preproc_ok=: 3380break 3381fi 3382 3383rm -f conftest.err conftest.$ac_ext 3384 3385done 3386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3387rm -f conftest.err conftest.$ac_ext 3388if $ac_preproc_ok; then 3389 : 3390else 3391 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3392See \`config.log' for more details." >&5 3393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3394See \`config.log' for more details." >&2;} 3395 { (exit 1); exit 1; }; } 3396fi 3397 3398ac_ext=c 3399ac_cpp='$CPP $CPPFLAGS' 3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3402ac_compiler_gnu=$ac_cv_c_compiler_gnu 3403 3404 3405 # Find a good install program. We prefer a C program (faster), 3406# so one script is as good as another. But avoid the broken or 3407# incompatible versions: 3408# SysV /etc/install, /usr/sbin/install 3409# SunOS /usr/etc/install 3410# IRIX /sbin/install 3411# AIX /bin/install 3412# AmigaOS /C/install, which installs bootblocks on floppy discs 3413# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3414# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3415# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3416# OS/2's system install, which has a completely different semantic 3417# ./install, which can be erroneously created by make from ./install.sh. 3418{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3419echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3420if test -z "$INSTALL"; then 3421if test "${ac_cv_path_install+set}" = set; then 3422 echo $ECHO_N "(cached) $ECHO_C" >&6 3423else 3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3425for as_dir in $PATH 3426do 3427 IFS=$as_save_IFS 3428 test -z "$as_dir" && as_dir=. 3429 # Account for people who put trailing slashes in PATH elements. 3430case $as_dir/ in 3431 ./ | .// | /cC/* | \ 3432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3433 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3434 /usr/ucb/* ) ;; 3435 *) 3436 # OSF1 and SCO ODT 3.0 have their own names for install. 3437 # Don't use installbsd from OSF since it installs stuff as root 3438 # by default. 3439 for ac_prog in ginstall scoinst install; do 3440 for ac_exec_ext in '' $ac_executable_extensions; do 3441 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3442 if test $ac_prog = install && 3443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3444 # AIX install. It has an incompatible calling convention. 3445 : 3446 elif test $ac_prog = install && 3447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3448 # program-specific install script used by HP pwplus--don't use. 3449 : 3450 else 3451 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3452 break 3 3453 fi 3454 fi 3455 done 3456 done 3457 ;; 3458esac 3459done 3460IFS=$as_save_IFS 3461 3462 3463fi 3464 if test "${ac_cv_path_install+set}" = set; then 3465 INSTALL=$ac_cv_path_install 3466 else 3467 # As a last resort, use the slow shell script. Don't cache a 3468 # value for INSTALL within a source directory, because that will 3469 # break other packages using the cache if that directory is 3470 # removed, or if the value is a relative name. 3471 INSTALL=$ac_install_sh 3472 fi 3473fi 3474{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3475echo "${ECHO_T}$INSTALL" >&6; } 3476 3477# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3478# It thinks the first close brace ends the variable substitution. 3479test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3480 3481test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3482 3483test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3484 3485 3486 #-------------------------------------------------------------------- 3487 # Checks to see if the make program sets the $MAKE variable. 3488 #-------------------------------------------------------------------- 3489 3490 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3491echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3492set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3493if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3494 echo $ECHO_N "(cached) $ECHO_C" >&6 3495else 3496 cat >conftest.make <<\_ACEOF 3497SHELL = /bin/sh 3498all: 3499 @echo '@@@%%%=$(MAKE)=@@@%%%' 3500_ACEOF 3501# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3502case `${MAKE-make} -f conftest.make 2>/dev/null` in 3503 *@@@%%%=?*=@@@%%%*) 3504 eval ac_cv_prog_make_${ac_make}_set=yes;; 3505 *) 3506 eval ac_cv_prog_make_${ac_make}_set=no;; 3507esac 3508rm -f conftest.make 3509fi 3510if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3511 { echo "$as_me:$LINENO: result: yes" >&5 3512echo "${ECHO_T}yes" >&6; } 3513 SET_MAKE= 3514else 3515 { echo "$as_me:$LINENO: result: no" >&5 3516echo "${ECHO_T}no" >&6; } 3517 SET_MAKE="MAKE=${MAKE-make}" 3518fi 3519 3520 3521 #-------------------------------------------------------------------- 3522 # Find ranlib 3523 #-------------------------------------------------------------------- 3524 3525 if test -n "$ac_tool_prefix"; then 3526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3527set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3528{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3530if test "${ac_cv_prog_RANLIB+set}" = set; then 3531 echo $ECHO_N "(cached) $ECHO_C" >&6 3532else 3533 if test -n "$RANLIB"; then 3534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3535else 3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in $PATH 3538do 3539 IFS=$as_save_IFS 3540 test -z "$as_dir" && as_dir=. 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3545 break 2 3546 fi 3547done 3548done 3549IFS=$as_save_IFS 3550 3551fi 3552fi 3553RANLIB=$ac_cv_prog_RANLIB 3554if test -n "$RANLIB"; then 3555 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3556echo "${ECHO_T}$RANLIB" >&6; } 3557else 3558 { echo "$as_me:$LINENO: result: no" >&5 3559echo "${ECHO_T}no" >&6; } 3560fi 3561 3562 3563fi 3564if test -z "$ac_cv_prog_RANLIB"; then 3565 ac_ct_RANLIB=$RANLIB 3566 # Extract the first word of "ranlib", so it can be a program name with args. 3567set dummy ranlib; ac_word=$2 3568{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3570if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3571 echo $ECHO_N "(cached) $ECHO_C" >&6 3572else 3573 if test -n "$ac_ct_RANLIB"; then 3574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3575else 3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH 3578do 3579 IFS=$as_save_IFS 3580 test -z "$as_dir" && as_dir=. 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3583 ac_cv_prog_ac_ct_RANLIB="ranlib" 3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3585 break 2 3586 fi 3587done 3588done 3589IFS=$as_save_IFS 3590 3591fi 3592fi 3593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3594if test -n "$ac_ct_RANLIB"; then 3595 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3596echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3597else 3598 { echo "$as_me:$LINENO: result: no" >&5 3599echo "${ECHO_T}no" >&6; } 3600fi 3601 3602 if test "x$ac_ct_RANLIB" = x; then 3603 RANLIB=":" 3604 else 3605 case $cross_compiling:$ac_tool_warned in 3606yes:) 3607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3608whose name does not start with the host triplet. If you think this 3609configuration is useful to you, please write to autoconf@gnu.org." >&5 3610echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3611whose name does not start with the host triplet. If you think this 3612configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3613ac_tool_warned=yes ;; 3614esac 3615 RANLIB=$ac_ct_RANLIB 3616 fi 3617else 3618 RANLIB="$ac_cv_prog_RANLIB" 3619fi 3620 3621 3622 #-------------------------------------------------------------------- 3623 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3624 #-------------------------------------------------------------------- 3625 3626 3627 3628 3629 3630 3631{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3632echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3633if test "${ac_cv_path_GREP+set}" = set; then 3634 echo $ECHO_N "(cached) $ECHO_C" >&6 3635else 3636 # Extract the first word of "grep ggrep" to use in msg output 3637if test -z "$GREP"; then 3638set dummy grep ggrep; ac_prog_name=$2 3639if test "${ac_cv_path_GREP+set}" = set; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641else 3642 ac_path_GREP_found=false 3643# Loop through the user's path and test for each of PROGNAME-LIST 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_prog in grep ggrep; do 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3652 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3653 # Check for GNU ac_path_GREP and select it if it is found. 3654 # Check for GNU $ac_path_GREP 3655case `"$ac_path_GREP" --version 2>&1` in 3656*GNU*) 3657 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3658*) 3659 ac_count=0 3660 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3661 while : 3662 do 3663 cat "conftest.in" "conftest.in" >"conftest.tmp" 3664 mv "conftest.tmp" "conftest.in" 3665 cp "conftest.in" "conftest.nl" 3666 echo 'GREP' >> "conftest.nl" 3667 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3669 ac_count=`expr $ac_count + 1` 3670 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3671 # Best one so far, save it but keep looking for a better one 3672 ac_cv_path_GREP="$ac_path_GREP" 3673 ac_path_GREP_max=$ac_count 3674 fi 3675 # 10*(2^10) chars as input seems more than enough 3676 test $ac_count -gt 10 && break 3677 done 3678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3679esac 3680 3681 3682 $ac_path_GREP_found && break 3 3683 done 3684done 3685 3686done 3687IFS=$as_save_IFS 3688 3689 3690fi 3691 3692GREP="$ac_cv_path_GREP" 3693if test -z "$GREP"; then 3694 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3695echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3696 { (exit 1); exit 1; }; } 3697fi 3698 3699else 3700 ac_cv_path_GREP=$GREP 3701fi 3702 3703 3704fi 3705{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3706echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3707 GREP="$ac_cv_path_GREP" 3708 3709 3710{ echo "$as_me:$LINENO: checking for egrep" >&5 3711echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3712if test "${ac_cv_path_EGREP+set}" = set; then 3713 echo $ECHO_N "(cached) $ECHO_C" >&6 3714else 3715 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3716 then ac_cv_path_EGREP="$GREP -E" 3717 else 3718 # Extract the first word of "egrep" to use in msg output 3719if test -z "$EGREP"; then 3720set dummy egrep; ac_prog_name=$2 3721if test "${ac_cv_path_EGREP+set}" = set; then 3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3723else 3724 ac_path_EGREP_found=false 3725# Loop through the user's path and test for each of PROGNAME-LIST 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3728do 3729 IFS=$as_save_IFS 3730 test -z "$as_dir" && as_dir=. 3731 for ac_prog in egrep; do 3732 for ac_exec_ext in '' $ac_executable_extensions; do 3733 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3734 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3735 # Check for GNU ac_path_EGREP and select it if it is found. 3736 # Check for GNU $ac_path_EGREP 3737case `"$ac_path_EGREP" --version 2>&1` in 3738*GNU*) 3739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3740*) 3741 ac_count=0 3742 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3743 while : 3744 do 3745 cat "conftest.in" "conftest.in" >"conftest.tmp" 3746 mv "conftest.tmp" "conftest.in" 3747 cp "conftest.in" "conftest.nl" 3748 echo 'EGREP' >> "conftest.nl" 3749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3751 ac_count=`expr $ac_count + 1` 3752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3753 # Best one so far, save it but keep looking for a better one 3754 ac_cv_path_EGREP="$ac_path_EGREP" 3755 ac_path_EGREP_max=$ac_count 3756 fi 3757 # 10*(2^10) chars as input seems more than enough 3758 test $ac_count -gt 10 && break 3759 done 3760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3761esac 3762 3763 3764 $ac_path_EGREP_found && break 3 3765 done 3766done 3767 3768done 3769IFS=$as_save_IFS 3770 3771 3772fi 3773 3774EGREP="$ac_cv_path_EGREP" 3775if test -z "$EGREP"; then 3776 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3777echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3778 { (exit 1); exit 1; }; } 3779fi 3780 3781else 3782 ac_cv_path_EGREP=$EGREP 3783fi 3784 3785 3786 fi 3787fi 3788{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3789echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3790 EGREP="$ac_cv_path_EGREP" 3791 3792 3793{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3794echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3795if test "${ac_cv_header_stdc+set}" = set; then 3796 echo $ECHO_N "(cached) $ECHO_C" >&6 3797else 3798 cat >conftest.$ac_ext <<_ACEOF 3799/* confdefs.h. */ 3800_ACEOF 3801cat confdefs.h >>conftest.$ac_ext 3802cat >>conftest.$ac_ext <<_ACEOF 3803/* end confdefs.h. */ 3804#include <stdlib.h> 3805#include <stdarg.h> 3806#include <string.h> 3807#include <float.h> 3808 3809int 3810main () 3811{ 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817rm -f conftest.$ac_objext 3818if { (ac_try="$ac_compile" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3824 (eval "$ac_compile") 2>conftest.er1 3825 ac_status=$? 3826 grep -v '^ *+' conftest.er1 >conftest.err 3827 rm -f conftest.er1 3828 cat conftest.err >&5 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); } && { 3831 test -z "$ac_c_werror_flag" || 3832 test ! -s conftest.err 3833 } && test -s conftest.$ac_objext; then 3834 ac_cv_header_stdc=yes 3835else 3836 echo "$as_me: failed program was:" >&5 3837sed 's/^/| /' conftest.$ac_ext >&5 3838 3839 ac_cv_header_stdc=no 3840fi 3841 3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3843 3844if test $ac_cv_header_stdc = yes; then 3845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3846 cat >conftest.$ac_ext <<_ACEOF 3847/* confdefs.h. */ 3848_ACEOF 3849cat confdefs.h >>conftest.$ac_ext 3850cat >>conftest.$ac_ext <<_ACEOF 3851/* end confdefs.h. */ 3852#include <string.h> 3853 3854_ACEOF 3855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3856 $EGREP "memchr" >/dev/null 2>&1; then 3857 : 3858else 3859 ac_cv_header_stdc=no 3860fi 3861rm -f -r conftest* 3862 3863fi 3864 3865if test $ac_cv_header_stdc = yes; then 3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3867 cat >conftest.$ac_ext <<_ACEOF 3868/* confdefs.h. */ 3869_ACEOF 3870cat confdefs.h >>conftest.$ac_ext 3871cat >>conftest.$ac_ext <<_ACEOF 3872/* end confdefs.h. */ 3873#include <stdlib.h> 3874 3875_ACEOF 3876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3877 $EGREP "free" >/dev/null 2>&1; then 3878 : 3879else 3880 ac_cv_header_stdc=no 3881fi 3882rm -f -r conftest* 3883 3884fi 3885 3886if test $ac_cv_header_stdc = yes; then 3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3888 if test "$cross_compiling" = yes; then 3889 : 3890else 3891 cat >conftest.$ac_ext <<_ACEOF 3892/* confdefs.h. */ 3893_ACEOF 3894cat confdefs.h >>conftest.$ac_ext 3895cat >>conftest.$ac_ext <<_ACEOF 3896/* end confdefs.h. */ 3897#include <ctype.h> 3898#include <stdlib.h> 3899#if ((' ' & 0x0FF) == 0x020) 3900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3902#else 3903# define ISLOWER(c) \ 3904 (('a' <= (c) && (c) <= 'i') \ 3905 || ('j' <= (c) && (c) <= 'r') \ 3906 || ('s' <= (c) && (c) <= 'z')) 3907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3908#endif 3909 3910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3911int 3912main () 3913{ 3914 int i; 3915 for (i = 0; i < 256; i++) 3916 if (XOR (islower (i), ISLOWER (i)) 3917 || toupper (i) != TOUPPER (i)) 3918 return 2; 3919 return 0; 3920} 3921_ACEOF 3922rm -f conftest$ac_exeext 3923if { (ac_try="$ac_link" 3924case "(($ac_try" in 3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3926 *) ac_try_echo=$ac_try;; 3927esac 3928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3929 (eval "$ac_link") 2>&5 3930 ac_status=$? 3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3933 { (case "(($ac_try" in 3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3935 *) ac_try_echo=$ac_try;; 3936esac 3937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3938 (eval "$ac_try") 2>&5 3939 ac_status=$? 3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3941 (exit $ac_status); }; }; then 3942 : 3943else 3944 echo "$as_me: program exited with status $ac_status" >&5 3945echo "$as_me: failed program was:" >&5 3946sed 's/^/| /' conftest.$ac_ext >&5 3947 3948( exit $ac_status ) 3949ac_cv_header_stdc=no 3950fi 3951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3952fi 3953 3954 3955fi 3956fi 3957{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3958echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3959if test $ac_cv_header_stdc = yes; then 3960 3961cat >>confdefs.h <<\_ACEOF 3962#define STDC_HEADERS 1 3963_ACEOF 3964 3965fi 3966 3967# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3978 inttypes.h stdint.h unistd.h 3979do 3980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3981{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 cat >conftest.$ac_ext <<_ACEOF 3987/* confdefs.h. */ 3988_ACEOF 3989cat confdefs.h >>conftest.$ac_ext 3990cat >>conftest.$ac_ext <<_ACEOF 3991/* end confdefs.h. */ 3992$ac_includes_default 3993 3994#include <$ac_header> 3995_ACEOF 3996rm -f conftest.$ac_objext 3997if { (ac_try="$ac_compile" 3998case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4003 (eval "$ac_compile") 2>conftest.er1 4004 ac_status=$? 4005 grep -v '^ *+' conftest.er1 >conftest.err 4006 rm -f conftest.er1 4007 cat conftest.err >&5 4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 (exit $ac_status); } && { 4010 test -z "$ac_c_werror_flag" || 4011 test ! -s conftest.err 4012 } && test -s conftest.$ac_objext; then 4013 eval "$as_ac_Header=yes" 4014else 4015 echo "$as_me: failed program was:" >&5 4016sed 's/^/| /' conftest.$ac_ext >&5 4017 4018 eval "$as_ac_Header=no" 4019fi 4020 4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4022fi 4023ac_res=`eval echo '${'$as_ac_Header'}'` 4024 { echo "$as_me:$LINENO: result: $ac_res" >&5 4025echo "${ECHO_T}$ac_res" >&6; } 4026if test `eval echo '${'$as_ac_Header'}'` = yes; then 4027 cat >>confdefs.h <<_ACEOF 4028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4029_ACEOF 4030 4031fi 4032 4033done 4034 4035 4036 4037 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4038 4039 4040 #------------------------------------------------------------------------ 4041 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4042 # It makes compiling go faster. (This is only a performance feature.) 4043 #------------------------------------------------------------------------ 4044 4045 if test -z "$no_pipe" -a -n "$GCC"; then 4046 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4047echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4048if test "${tcl_cv_cc_pipe+set}" = set; then 4049 echo $ECHO_N "(cached) $ECHO_C" >&6 4050else 4051 4052 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4053 cat >conftest.$ac_ext <<_ACEOF 4054/* confdefs.h. */ 4055_ACEOF 4056cat confdefs.h >>conftest.$ac_ext 4057cat >>conftest.$ac_ext <<_ACEOF 4058/* end confdefs.h. */ 4059 4060int 4061main () 4062{ 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068rm -f conftest.$ac_objext 4069if { (ac_try="$ac_compile" 4070case "(($ac_try" in 4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4072 *) ac_try_echo=$ac_try;; 4073esac 4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4075 (eval "$ac_compile") 2>conftest.er1 4076 ac_status=$? 4077 grep -v '^ *+' conftest.er1 >conftest.err 4078 rm -f conftest.er1 4079 cat conftest.err >&5 4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4081 (exit $ac_status); } && { 4082 test -z "$ac_c_werror_flag" || 4083 test ! -s conftest.err 4084 } && test -s conftest.$ac_objext; then 4085 tcl_cv_cc_pipe=yes 4086else 4087 echo "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090 tcl_cv_cc_pipe=no 4091fi 4092 4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4094 CFLAGS=$hold_cflags 4095fi 4096{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4097echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4098 if test $tcl_cv_cc_pipe = yes; then 4099 CFLAGS="$CFLAGS -pipe" 4100 fi 4101 fi 4102 4103 #-------------------------------------------------------------------- 4104 # Common compiler flag setup 4105 #-------------------------------------------------------------------- 4106 4107 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4108echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4109if test "${ac_cv_c_bigendian+set}" = set; then 4110 echo $ECHO_N "(cached) $ECHO_C" >&6 4111else 4112 # See if sys/param.h defines the BYTE_ORDER macro. 4113cat >conftest.$ac_ext <<_ACEOF 4114/* confdefs.h. */ 4115_ACEOF 4116cat confdefs.h >>conftest.$ac_ext 4117cat >>conftest.$ac_ext <<_ACEOF 4118/* end confdefs.h. */ 4119#include <sys/types.h> 4120#include <sys/param.h> 4121 4122int 4123main () 4124{ 4125#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4126 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4127 bogus endian macros 4128#endif 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134rm -f conftest.$ac_objext 4135if { (ac_try="$ac_compile" 4136case "(($ac_try" in 4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4138 *) ac_try_echo=$ac_try;; 4139esac 4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4141 (eval "$ac_compile") 2>conftest.er1 4142 ac_status=$? 4143 grep -v '^ *+' conftest.er1 >conftest.err 4144 rm -f conftest.er1 4145 cat conftest.err >&5 4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4147 (exit $ac_status); } && { 4148 test -z "$ac_c_werror_flag" || 4149 test ! -s conftest.err 4150 } && test -s conftest.$ac_objext; then 4151 # It does; now see whether it defined to BIG_ENDIAN or not. 4152cat >conftest.$ac_ext <<_ACEOF 4153/* confdefs.h. */ 4154_ACEOF 4155cat confdefs.h >>conftest.$ac_ext 4156cat >>conftest.$ac_ext <<_ACEOF 4157/* end confdefs.h. */ 4158#include <sys/types.h> 4159#include <sys/param.h> 4160 4161int 4162main () 4163{ 4164#if BYTE_ORDER != BIG_ENDIAN 4165 not big endian 4166#endif 4167 4168 ; 4169 return 0; 4170} 4171_ACEOF 4172rm -f conftest.$ac_objext 4173if { (ac_try="$ac_compile" 4174case "(($ac_try" in 4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4176 *) ac_try_echo=$ac_try;; 4177esac 4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4179 (eval "$ac_compile") 2>conftest.er1 4180 ac_status=$? 4181 grep -v '^ *+' conftest.er1 >conftest.err 4182 rm -f conftest.er1 4183 cat conftest.err >&5 4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4185 (exit $ac_status); } && { 4186 test -z "$ac_c_werror_flag" || 4187 test ! -s conftest.err 4188 } && test -s conftest.$ac_objext; then 4189 ac_cv_c_bigendian=yes 4190else 4191 echo "$as_me: failed program was:" >&5 4192sed 's/^/| /' conftest.$ac_ext >&5 4193 4194 ac_cv_c_bigendian=no 4195fi 4196 4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202 # It does not; compile a test program. 4203if test "$cross_compiling" = yes; then 4204 # try to guess the endianness by grepping values into an object file 4205 ac_cv_c_bigendian=unknown 4206 cat >conftest.$ac_ext <<_ACEOF 4207/* confdefs.h. */ 4208_ACEOF 4209cat confdefs.h >>conftest.$ac_ext 4210cat >>conftest.$ac_ext <<_ACEOF 4211/* end confdefs.h. */ 4212short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4213short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4214void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4215short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4216short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4217void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4218int 4219main () 4220{ 4221 _ascii (); _ebcdic (); 4222 ; 4223 return 0; 4224} 4225_ACEOF 4226rm -f conftest.$ac_objext 4227if { (ac_try="$ac_compile" 4228case "(($ac_try" in 4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4230 *) ac_try_echo=$ac_try;; 4231esac 4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4233 (eval "$ac_compile") 2>conftest.er1 4234 ac_status=$? 4235 grep -v '^ *+' conftest.er1 >conftest.err 4236 rm -f conftest.er1 4237 cat conftest.err >&5 4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4239 (exit $ac_status); } && { 4240 test -z "$ac_c_werror_flag" || 4241 test ! -s conftest.err 4242 } && test -s conftest.$ac_objext; then 4243 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4244 ac_cv_c_bigendian=yes 4245fi 4246if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4247 if test "$ac_cv_c_bigendian" = unknown; then 4248 ac_cv_c_bigendian=no 4249 else 4250 # finding both strings is unlikely to happen, but who knows? 4251 ac_cv_c_bigendian=unknown 4252 fi 4253fi 4254else 4255 echo "$as_me: failed program was:" >&5 4256sed 's/^/| /' conftest.$ac_ext >&5 4257 4258 4259fi 4260 4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4262else 4263 cat >conftest.$ac_ext <<_ACEOF 4264/* confdefs.h. */ 4265_ACEOF 4266cat confdefs.h >>conftest.$ac_ext 4267cat >>conftest.$ac_ext <<_ACEOF 4268/* end confdefs.h. */ 4269$ac_includes_default 4270int 4271main () 4272{ 4273 4274 /* Are we little or big endian? From Harbison&Steele. */ 4275 union 4276 { 4277 long int l; 4278 char c[sizeof (long int)]; 4279 } u; 4280 u.l = 1; 4281 return u.c[sizeof (long int) - 1] == 1; 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287rm -f conftest$ac_exeext 4288if { (ac_try="$ac_link" 4289case "(($ac_try" in 4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4291 *) ac_try_echo=$ac_try;; 4292esac 4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4294 (eval "$ac_link") 2>&5 4295 ac_status=$? 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4298 { (case "(($ac_try" in 4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4300 *) ac_try_echo=$ac_try;; 4301esac 4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4303 (eval "$ac_try") 2>&5 4304 ac_status=$? 4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306 (exit $ac_status); }; }; then 4307 ac_cv_c_bigendian=no 4308else 4309 echo "$as_me: program exited with status $ac_status" >&5 4310echo "$as_me: failed program was:" >&5 4311sed 's/^/| /' conftest.$ac_ext >&5 4312 4313( exit $ac_status ) 4314ac_cv_c_bigendian=yes 4315fi 4316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4317fi 4318 4319 4320fi 4321 4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4323fi 4324{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4325echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4326case $ac_cv_c_bigendian in 4327 yes) 4328 4329cat >>confdefs.h <<\_ACEOF 4330#define WORDS_BIGENDIAN 1 4331_ACEOF 4332 ;; 4333 no) 4334 ;; 4335 *) 4336 { { echo "$as_me:$LINENO: error: unknown endianness 4337presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4338echo "$as_me: error: unknown endianness 4339presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4340 { (exit 1); exit 1; }; } ;; 4341esac 4342 4343 if test "${TEA_PLATFORM}" = "unix" ; then 4344 4345 #-------------------------------------------------------------------- 4346 # On a few very rare systems, all of the libm.a stuff is 4347 # already in libc.a. Set compiler flags accordingly. 4348 # Also, Linux requires the "ieee" library for math to work 4349 # right (and it must appear before "-lm"). 4350 #-------------------------------------------------------------------- 4351 4352 { echo "$as_me:$LINENO: checking for sin" >&5 4353echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4354if test "${ac_cv_func_sin+set}" = set; then 4355 echo $ECHO_N "(cached) $ECHO_C" >&6 4356else 4357 cat >conftest.$ac_ext <<_ACEOF 4358/* confdefs.h. */ 4359_ACEOF 4360cat confdefs.h >>conftest.$ac_ext 4361cat >>conftest.$ac_ext <<_ACEOF 4362/* end confdefs.h. */ 4363/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4364 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4365#define sin innocuous_sin 4366 4367/* System header to define __stub macros and hopefully few prototypes, 4368 which can conflict with char sin (); below. 4369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4370 <limits.h> exists even on freestanding compilers. */ 4371 4372#ifdef __STDC__ 4373# include <limits.h> 4374#else 4375# include <assert.h> 4376#endif 4377 4378#undef sin 4379 4380/* Override any GCC internal prototype to avoid an error. 4381 Use char because int might match the return type of a GCC 4382 builtin and then its argument prototype would still apply. */ 4383#ifdef __cplusplus 4384extern "C" 4385#endif 4386char sin (); 4387/* The GNU C library defines this for functions which it implements 4388 to always fail with ENOSYS. Some functions are actually named 4389 something starting with __ and the normal name is an alias. */ 4390#if defined __stub_sin || defined __stub___sin 4391choke me 4392#endif 4393 4394int 4395main () 4396{ 4397return sin (); 4398 ; 4399 return 0; 4400} 4401_ACEOF 4402rm -f conftest.$ac_objext conftest$ac_exeext 4403if { (ac_try="$ac_link" 4404case "(($ac_try" in 4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4406 *) ac_try_echo=$ac_try;; 4407esac 4408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4409 (eval "$ac_link") 2>conftest.er1 4410 ac_status=$? 4411 grep -v '^ *+' conftest.er1 >conftest.err 4412 rm -f conftest.er1 4413 cat conftest.err >&5 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); } && { 4416 test -z "$ac_c_werror_flag" || 4417 test ! -s conftest.err 4418 } && test -s conftest$ac_exeext && 4419 $as_test_x conftest$ac_exeext; then 4420 ac_cv_func_sin=yes 4421else 4422 echo "$as_me: failed program was:" >&5 4423sed 's/^/| /' conftest.$ac_ext >&5 4424 4425 ac_cv_func_sin=no 4426fi 4427 4428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4429 conftest$ac_exeext conftest.$ac_ext 4430fi 4431{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4432echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4433if test $ac_cv_func_sin = yes; then 4434 MATH_LIBS="" 4435else 4436 MATH_LIBS="-lm" 4437fi 4438 4439 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4440echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4441if test "${ac_cv_lib_ieee_main+set}" = set; then 4442 echo $ECHO_N "(cached) $ECHO_C" >&6 4443else 4444 ac_check_lib_save_LIBS=$LIBS 4445LIBS="-lieee $LIBS" 4446cat >conftest.$ac_ext <<_ACEOF 4447/* confdefs.h. */ 4448_ACEOF 4449cat confdefs.h >>conftest.$ac_ext 4450cat >>conftest.$ac_ext <<_ACEOF 4451/* end confdefs.h. */ 4452 4453 4454int 4455main () 4456{ 4457return main (); 4458 ; 4459 return 0; 4460} 4461_ACEOF 4462rm -f conftest.$ac_objext conftest$ac_exeext 4463if { (ac_try="$ac_link" 4464case "(($ac_try" in 4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4466 *) ac_try_echo=$ac_try;; 4467esac 4468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4469 (eval "$ac_link") 2>conftest.er1 4470 ac_status=$? 4471 grep -v '^ *+' conftest.er1 >conftest.err 4472 rm -f conftest.er1 4473 cat conftest.err >&5 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } && { 4476 test -z "$ac_c_werror_flag" || 4477 test ! -s conftest.err 4478 } && test -s conftest$ac_exeext && 4479 $as_test_x conftest$ac_exeext; then 4480 ac_cv_lib_ieee_main=yes 4481else 4482 echo "$as_me: failed program was:" >&5 4483sed 's/^/| /' conftest.$ac_ext >&5 4484 4485 ac_cv_lib_ieee_main=no 4486fi 4487 4488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4489 conftest$ac_exeext conftest.$ac_ext 4490LIBS=$ac_check_lib_save_LIBS 4491fi 4492{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4493echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4494if test $ac_cv_lib_ieee_main = yes; then 4495 MATH_LIBS="-lieee $MATH_LIBS" 4496fi 4497 4498 4499 #-------------------------------------------------------------------- 4500 # Interactive UNIX requires -linet instead of -lsocket, plus it 4501 # needs net/errno.h to define the socket-related error codes. 4502 #-------------------------------------------------------------------- 4503 4504 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4505echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4506if test "${ac_cv_lib_inet_main+set}" = set; then 4507 echo $ECHO_N "(cached) $ECHO_C" >&6 4508else 4509 ac_check_lib_save_LIBS=$LIBS 4510LIBS="-linet $LIBS" 4511cat >conftest.$ac_ext <<_ACEOF 4512/* confdefs.h. */ 4513_ACEOF 4514cat confdefs.h >>conftest.$ac_ext 4515cat >>conftest.$ac_ext <<_ACEOF 4516/* end confdefs.h. */ 4517 4518 4519int 4520main () 4521{ 4522return main (); 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527rm -f conftest.$ac_objext conftest$ac_exeext 4528if { (ac_try="$ac_link" 4529case "(($ac_try" in 4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4531 *) ac_try_echo=$ac_try;; 4532esac 4533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4534 (eval "$ac_link") 2>conftest.er1 4535 ac_status=$? 4536 grep -v '^ *+' conftest.er1 >conftest.err 4537 rm -f conftest.er1 4538 cat conftest.err >&5 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } && { 4541 test -z "$ac_c_werror_flag" || 4542 test ! -s conftest.err 4543 } && test -s conftest$ac_exeext && 4544 $as_test_x conftest$ac_exeext; then 4545 ac_cv_lib_inet_main=yes 4546else 4547 echo "$as_me: failed program was:" >&5 4548sed 's/^/| /' conftest.$ac_ext >&5 4549 4550 ac_cv_lib_inet_main=no 4551fi 4552 4553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4554 conftest$ac_exeext conftest.$ac_ext 4555LIBS=$ac_check_lib_save_LIBS 4556fi 4557{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4558echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4559if test $ac_cv_lib_inet_main = yes; then 4560 LIBS="$LIBS -linet" 4561fi 4562 4563 if test "${ac_cv_header_net_errno_h+set}" = set; then 4564 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4565echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4566if test "${ac_cv_header_net_errno_h+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568fi 4569{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4570echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4571else 4572 # Is the header compilable? 4573{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4574echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4575cat >conftest.$ac_ext <<_ACEOF 4576/* confdefs.h. */ 4577_ACEOF 4578cat confdefs.h >>conftest.$ac_ext 4579cat >>conftest.$ac_ext <<_ACEOF 4580/* end confdefs.h. */ 4581$ac_includes_default 4582#include <net/errno.h> 4583_ACEOF 4584rm -f conftest.$ac_objext 4585if { (ac_try="$ac_compile" 4586case "(($ac_try" in 4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4588 *) ac_try_echo=$ac_try;; 4589esac 4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4591 (eval "$ac_compile") 2>conftest.er1 4592 ac_status=$? 4593 grep -v '^ *+' conftest.er1 >conftest.err 4594 rm -f conftest.er1 4595 cat conftest.err >&5 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); } && { 4598 test -z "$ac_c_werror_flag" || 4599 test ! -s conftest.err 4600 } && test -s conftest.$ac_objext; then 4601 ac_header_compiler=yes 4602else 4603 echo "$as_me: failed program was:" >&5 4604sed 's/^/| /' conftest.$ac_ext >&5 4605 4606 ac_header_compiler=no 4607fi 4608 4609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4610{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4611echo "${ECHO_T}$ac_header_compiler" >&6; } 4612 4613# Is the header present? 4614{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4615echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4616cat >conftest.$ac_ext <<_ACEOF 4617/* confdefs.h. */ 4618_ACEOF 4619cat confdefs.h >>conftest.$ac_ext 4620cat >>conftest.$ac_ext <<_ACEOF 4621/* end confdefs.h. */ 4622#include <net/errno.h> 4623_ACEOF 4624if { (ac_try="$ac_cpp conftest.$ac_ext" 4625case "(($ac_try" in 4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4627 *) ac_try_echo=$ac_try;; 4628esac 4629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4631 ac_status=$? 4632 grep -v '^ *+' conftest.er1 >conftest.err 4633 rm -f conftest.er1 4634 cat conftest.err >&5 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4636 (exit $ac_status); } >/dev/null && { 4637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4638 test ! -s conftest.err 4639 }; then 4640 ac_header_preproc=yes 4641else 4642 echo "$as_me: failed program was:" >&5 4643sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 ac_header_preproc=no 4646fi 4647 4648rm -f conftest.err conftest.$ac_ext 4649{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4650echo "${ECHO_T}$ac_header_preproc" >&6; } 4651 4652# So? What about this header? 4653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4654 yes:no: ) 4655 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4656echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4657 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4658echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4659 ac_header_preproc=yes 4660 ;; 4661 no:yes:* ) 4662 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4663echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4664 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4665echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4666 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4667echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4668 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4669echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4670 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4671echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4672 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4673echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4674 4675 ;; 4676esac 4677{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4678echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4679if test "${ac_cv_header_net_errno_h+set}" = set; then 4680 echo $ECHO_N "(cached) $ECHO_C" >&6 4681else 4682 ac_cv_header_net_errno_h=$ac_header_preproc 4683fi 4684{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4685echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4686 4687fi 4688if test $ac_cv_header_net_errno_h = yes; then 4689 4690 4691cat >>confdefs.h <<\_ACEOF 4692#define HAVE_NET_ERRNO_H 1 4693_ACEOF 4694 4695fi 4696 4697 4698 4699 #-------------------------------------------------------------------- 4700 # Check for the existence of the -lsocket and -lnsl libraries. 4701 # The order here is important, so that they end up in the right 4702 # order in the command line generated by make. Here are some 4703 # special considerations: 4704 # 1. Use "connect" and "accept" to check for -lsocket, and 4705 # "gethostbyname" to check for -lnsl. 4706 # 2. Use each function name only once: can't redo a check because 4707 # autoconf caches the results of the last check and won't redo it. 4708 # 3. Use -lnsl and -lsocket only if they supply procedures that 4709 # aren't already present in the normal libraries. This is because 4710 # IRIX 5.2 has libraries, but they aren't needed and they're 4711 # bogus: they goof up name resolution if used. 4712 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4713 # To get around this problem, check for both libraries together 4714 # if -lsocket doesn't work by itself. 4715 #-------------------------------------------------------------------- 4716 4717 tcl_checkBoth=0 4718 { echo "$as_me:$LINENO: checking for connect" >&5 4719echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4720if test "${ac_cv_func_connect+set}" = set; then 4721 echo $ECHO_N "(cached) $ECHO_C" >&6 4722else 4723 cat >conftest.$ac_ext <<_ACEOF 4724/* confdefs.h. */ 4725_ACEOF 4726cat confdefs.h >>conftest.$ac_ext 4727cat >>conftest.$ac_ext <<_ACEOF 4728/* end confdefs.h. */ 4729/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4731#define connect innocuous_connect 4732 4733/* System header to define __stub macros and hopefully few prototypes, 4734 which can conflict with char connect (); below. 4735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4736 <limits.h> exists even on freestanding compilers. */ 4737 4738#ifdef __STDC__ 4739# include <limits.h> 4740#else 4741# include <assert.h> 4742#endif 4743 4744#undef connect 4745 4746/* Override any GCC internal prototype to avoid an error. 4747 Use char because int might match the return type of a GCC 4748 builtin and then its argument prototype would still apply. */ 4749#ifdef __cplusplus 4750extern "C" 4751#endif 4752char connect (); 4753/* The GNU C library defines this for functions which it implements 4754 to always fail with ENOSYS. Some functions are actually named 4755 something starting with __ and the normal name is an alias. */ 4756#if defined __stub_connect || defined __stub___connect 4757choke me 4758#endif 4759 4760int 4761main () 4762{ 4763return connect (); 4764 ; 4765 return 0; 4766} 4767_ACEOF 4768rm -f conftest.$ac_objext conftest$ac_exeext 4769if { (ac_try="$ac_link" 4770case "(($ac_try" in 4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4772 *) ac_try_echo=$ac_try;; 4773esac 4774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4775 (eval "$ac_link") 2>conftest.er1 4776 ac_status=$? 4777 grep -v '^ *+' conftest.er1 >conftest.err 4778 rm -f conftest.er1 4779 cat conftest.err >&5 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); } && { 4782 test -z "$ac_c_werror_flag" || 4783 test ! -s conftest.err 4784 } && test -s conftest$ac_exeext && 4785 $as_test_x conftest$ac_exeext; then 4786 ac_cv_func_connect=yes 4787else 4788 echo "$as_me: failed program was:" >&5 4789sed 's/^/| /' conftest.$ac_ext >&5 4790 4791 ac_cv_func_connect=no 4792fi 4793 4794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4795 conftest$ac_exeext conftest.$ac_ext 4796fi 4797{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4798echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4799if test $ac_cv_func_connect = yes; then 4800 tcl_checkSocket=0 4801else 4802 tcl_checkSocket=1 4803fi 4804 4805 if test "$tcl_checkSocket" = 1; then 4806 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4807echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4808if test "${ac_cv_func_setsockopt+set}" = set; then 4809 echo $ECHO_N "(cached) $ECHO_C" >&6 4810else 4811 cat >conftest.$ac_ext <<_ACEOF 4812/* confdefs.h. */ 4813_ACEOF 4814cat confdefs.h >>conftest.$ac_ext 4815cat >>conftest.$ac_ext <<_ACEOF 4816/* end confdefs.h. */ 4817/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4819#define setsockopt innocuous_setsockopt 4820 4821/* System header to define __stub macros and hopefully few prototypes, 4822 which can conflict with char setsockopt (); below. 4823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4824 <limits.h> exists even on freestanding compilers. */ 4825 4826#ifdef __STDC__ 4827# include <limits.h> 4828#else 4829# include <assert.h> 4830#endif 4831 4832#undef setsockopt 4833 4834/* Override any GCC internal prototype to avoid an error. 4835 Use char because int might match the return type of a GCC 4836 builtin and then its argument prototype would still apply. */ 4837#ifdef __cplusplus 4838extern "C" 4839#endif 4840char setsockopt (); 4841/* The GNU C library defines this for functions which it implements 4842 to always fail with ENOSYS. Some functions are actually named 4843 something starting with __ and the normal name is an alias. */ 4844#if defined __stub_setsockopt || defined __stub___setsockopt 4845choke me 4846#endif 4847 4848int 4849main () 4850{ 4851return setsockopt (); 4852 ; 4853 return 0; 4854} 4855_ACEOF 4856rm -f conftest.$ac_objext conftest$ac_exeext 4857if { (ac_try="$ac_link" 4858case "(($ac_try" in 4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4860 *) ac_try_echo=$ac_try;; 4861esac 4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4863 (eval "$ac_link") 2>conftest.er1 4864 ac_status=$? 4865 grep -v '^ *+' conftest.er1 >conftest.err 4866 rm -f conftest.er1 4867 cat conftest.err >&5 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && { 4870 test -z "$ac_c_werror_flag" || 4871 test ! -s conftest.err 4872 } && test -s conftest$ac_exeext && 4873 $as_test_x conftest$ac_exeext; then 4874 ac_cv_func_setsockopt=yes 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 ac_cv_func_setsockopt=no 4880fi 4881 4882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4883 conftest$ac_exeext conftest.$ac_ext 4884fi 4885{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4886echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4887if test $ac_cv_func_setsockopt = yes; then 4888 : 4889else 4890 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4891echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4892if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4893 echo $ECHO_N "(cached) $ECHO_C" >&6 4894else 4895 ac_check_lib_save_LIBS=$LIBS 4896LIBS="-lsocket $LIBS" 4897cat >conftest.$ac_ext <<_ACEOF 4898/* confdefs.h. */ 4899_ACEOF 4900cat confdefs.h >>conftest.$ac_ext 4901cat >>conftest.$ac_ext <<_ACEOF 4902/* end confdefs.h. */ 4903 4904/* Override any GCC internal prototype to avoid an error. 4905 Use char because int might match the return type of a GCC 4906 builtin and then its argument prototype would still apply. */ 4907#ifdef __cplusplus 4908extern "C" 4909#endif 4910char setsockopt (); 4911int 4912main () 4913{ 4914return setsockopt (); 4915 ; 4916 return 0; 4917} 4918_ACEOF 4919rm -f conftest.$ac_objext conftest$ac_exeext 4920if { (ac_try="$ac_link" 4921case "(($ac_try" in 4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4923 *) ac_try_echo=$ac_try;; 4924esac 4925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4926 (eval "$ac_link") 2>conftest.er1 4927 ac_status=$? 4928 grep -v '^ *+' conftest.er1 >conftest.err 4929 rm -f conftest.er1 4930 cat conftest.err >&5 4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4932 (exit $ac_status); } && { 4933 test -z "$ac_c_werror_flag" || 4934 test ! -s conftest.err 4935 } && test -s conftest$ac_exeext && 4936 $as_test_x conftest$ac_exeext; then 4937 ac_cv_lib_socket_setsockopt=yes 4938else 4939 echo "$as_me: failed program was:" >&5 4940sed 's/^/| /' conftest.$ac_ext >&5 4941 4942 ac_cv_lib_socket_setsockopt=no 4943fi 4944 4945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4946 conftest$ac_exeext conftest.$ac_ext 4947LIBS=$ac_check_lib_save_LIBS 4948fi 4949{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4950echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4951if test $ac_cv_lib_socket_setsockopt = yes; then 4952 LIBS="$LIBS -lsocket" 4953else 4954 tcl_checkBoth=1 4955fi 4956 4957fi 4958 4959 fi 4960 if test "$tcl_checkBoth" = 1; then 4961 tk_oldLibs=$LIBS 4962 LIBS="$LIBS -lsocket -lnsl" 4963 { echo "$as_me:$LINENO: checking for accept" >&5 4964echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4965if test "${ac_cv_func_accept+set}" = set; then 4966 echo $ECHO_N "(cached) $ECHO_C" >&6 4967else 4968 cat >conftest.$ac_ext <<_ACEOF 4969/* confdefs.h. */ 4970_ACEOF 4971cat confdefs.h >>conftest.$ac_ext 4972cat >>conftest.$ac_ext <<_ACEOF 4973/* end confdefs.h. */ 4974/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4975 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4976#define accept innocuous_accept 4977 4978/* System header to define __stub macros and hopefully few prototypes, 4979 which can conflict with char accept (); below. 4980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4981 <limits.h> exists even on freestanding compilers. */ 4982 4983#ifdef __STDC__ 4984# include <limits.h> 4985#else 4986# include <assert.h> 4987#endif 4988 4989#undef accept 4990 4991/* Override any GCC internal prototype to avoid an error. 4992 Use char because int might match the return type of a GCC 4993 builtin and then its argument prototype would still apply. */ 4994#ifdef __cplusplus 4995extern "C" 4996#endif 4997char accept (); 4998/* The GNU C library defines this for functions which it implements 4999 to always fail with ENOSYS. Some functions are actually named 5000 something starting with __ and the normal name is an alias. */ 5001#if defined __stub_accept || defined __stub___accept 5002choke me 5003#endif 5004 5005int 5006main () 5007{ 5008return accept (); 5009 ; 5010 return 0; 5011} 5012_ACEOF 5013rm -f conftest.$ac_objext conftest$ac_exeext 5014if { (ac_try="$ac_link" 5015case "(($ac_try" in 5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5017 *) ac_try_echo=$ac_try;; 5018esac 5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5020 (eval "$ac_link") 2>conftest.er1 5021 ac_status=$? 5022 grep -v '^ *+' conftest.er1 >conftest.err 5023 rm -f conftest.er1 5024 cat conftest.err >&5 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5026 (exit $ac_status); } && { 5027 test -z "$ac_c_werror_flag" || 5028 test ! -s conftest.err 5029 } && test -s conftest$ac_exeext && 5030 $as_test_x conftest$ac_exeext; then 5031 ac_cv_func_accept=yes 5032else 5033 echo "$as_me: failed program was:" >&5 5034sed 's/^/| /' conftest.$ac_ext >&5 5035 5036 ac_cv_func_accept=no 5037fi 5038 5039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5040 conftest$ac_exeext conftest.$ac_ext 5041fi 5042{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5043echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5044if test $ac_cv_func_accept = yes; then 5045 tcl_checkNsl=0 5046else 5047 LIBS=$tk_oldLibs 5048fi 5049 5050 fi 5051 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5052echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5053if test "${ac_cv_func_gethostbyname+set}" = set; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6 5055else 5056 cat >conftest.$ac_ext <<_ACEOF 5057/* confdefs.h. */ 5058_ACEOF 5059cat confdefs.h >>conftest.$ac_ext 5060cat >>conftest.$ac_ext <<_ACEOF 5061/* end confdefs.h. */ 5062/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5063 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5064#define gethostbyname innocuous_gethostbyname 5065 5066/* System header to define __stub macros and hopefully few prototypes, 5067 which can conflict with char gethostbyname (); below. 5068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5069 <limits.h> exists even on freestanding compilers. */ 5070 5071#ifdef __STDC__ 5072# include <limits.h> 5073#else 5074# include <assert.h> 5075#endif 5076 5077#undef gethostbyname 5078 5079/* Override any GCC internal prototype to avoid an error. 5080 Use char because int might match the return type of a GCC 5081 builtin and then its argument prototype would still apply. */ 5082#ifdef __cplusplus 5083extern "C" 5084#endif 5085char gethostbyname (); 5086/* The GNU C library defines this for functions which it implements 5087 to always fail with ENOSYS. Some functions are actually named 5088 something starting with __ and the normal name is an alias. */ 5089#if defined __stub_gethostbyname || defined __stub___gethostbyname 5090choke me 5091#endif 5092 5093int 5094main () 5095{ 5096return gethostbyname (); 5097 ; 5098 return 0; 5099} 5100_ACEOF 5101rm -f conftest.$ac_objext conftest$ac_exeext 5102if { (ac_try="$ac_link" 5103case "(($ac_try" in 5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5105 *) ac_try_echo=$ac_try;; 5106esac 5107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5108 (eval "$ac_link") 2>conftest.er1 5109 ac_status=$? 5110 grep -v '^ *+' conftest.er1 >conftest.err 5111 rm -f conftest.er1 5112 cat conftest.err >&5 5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5114 (exit $ac_status); } && { 5115 test -z "$ac_c_werror_flag" || 5116 test ! -s conftest.err 5117 } && test -s conftest$ac_exeext && 5118 $as_test_x conftest$ac_exeext; then 5119 ac_cv_func_gethostbyname=yes 5120else 5121 echo "$as_me: failed program was:" >&5 5122sed 's/^/| /' conftest.$ac_ext >&5 5123 5124 ac_cv_func_gethostbyname=no 5125fi 5126 5127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5128 conftest$ac_exeext conftest.$ac_ext 5129fi 5130{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5131echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5132if test $ac_cv_func_gethostbyname = yes; then 5133 : 5134else 5135 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5136echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5137if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5138 echo $ECHO_N "(cached) $ECHO_C" >&6 5139else 5140 ac_check_lib_save_LIBS=$LIBS 5141LIBS="-lnsl $LIBS" 5142cat >conftest.$ac_ext <<_ACEOF 5143/* confdefs.h. */ 5144_ACEOF 5145cat confdefs.h >>conftest.$ac_ext 5146cat >>conftest.$ac_ext <<_ACEOF 5147/* end confdefs.h. */ 5148 5149/* Override any GCC internal prototype to avoid an error. 5150 Use char because int might match the return type of a GCC 5151 builtin and then its argument prototype would still apply. */ 5152#ifdef __cplusplus 5153extern "C" 5154#endif 5155char gethostbyname (); 5156int 5157main () 5158{ 5159return gethostbyname (); 5160 ; 5161 return 0; 5162} 5163_ACEOF 5164rm -f conftest.$ac_objext conftest$ac_exeext 5165if { (ac_try="$ac_link" 5166case "(($ac_try" in 5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5168 *) ac_try_echo=$ac_try;; 5169esac 5170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5171 (eval "$ac_link") 2>conftest.er1 5172 ac_status=$? 5173 grep -v '^ *+' conftest.er1 >conftest.err 5174 rm -f conftest.er1 5175 cat conftest.err >&5 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); } && { 5178 test -z "$ac_c_werror_flag" || 5179 test ! -s conftest.err 5180 } && test -s conftest$ac_exeext && 5181 $as_test_x conftest$ac_exeext; then 5182 ac_cv_lib_nsl_gethostbyname=yes 5183else 5184 echo "$as_me: failed program was:" >&5 5185sed 's/^/| /' conftest.$ac_ext >&5 5186 5187 ac_cv_lib_nsl_gethostbyname=no 5188fi 5189 5190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5191 conftest$ac_exeext conftest.$ac_ext 5192LIBS=$ac_check_lib_save_LIBS 5193fi 5194{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5195echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5196if test $ac_cv_lib_nsl_gethostbyname = yes; then 5197 LIBS="$LIBS -lnsl" 5198fi 5199 5200fi 5201 5202 5203 # TEA specific: Don't perform the eval of the libraries here because 5204 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5205 5206 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5207 5208 5209 5210 5211 { echo "$as_me:$LINENO: checking dirent.h" >&5 5212echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5213if test "${tcl_cv_dirent_h+set}" = set; then 5214 echo $ECHO_N "(cached) $ECHO_C" >&6 5215else 5216 5217 cat >conftest.$ac_ext <<_ACEOF 5218/* confdefs.h. */ 5219_ACEOF 5220cat confdefs.h >>conftest.$ac_ext 5221cat >>conftest.$ac_ext <<_ACEOF 5222/* end confdefs.h. */ 5223#include <sys/types.h> 5224#include <dirent.h> 5225int 5226main () 5227{ 5228 5229#ifndef _POSIX_SOURCE 5230# ifdef __Lynx__ 5231 /* 5232 * Generate compilation error to make the test fail: Lynx headers 5233 * are only valid if really in the POSIX environment. 5234 */ 5235 5236 missing_procedure(); 5237# endif 5238#endif 5239DIR *d; 5240struct dirent *entryPtr; 5241char *p; 5242d = opendir("foobar"); 5243entryPtr = readdir(d); 5244p = entryPtr->d_name; 5245closedir(d); 5246 5247 ; 5248 return 0; 5249} 5250_ACEOF 5251rm -f conftest.$ac_objext conftest$ac_exeext 5252if { (ac_try="$ac_link" 5253case "(($ac_try" in 5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5255 *) ac_try_echo=$ac_try;; 5256esac 5257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5258 (eval "$ac_link") 2>conftest.er1 5259 ac_status=$? 5260 grep -v '^ *+' conftest.er1 >conftest.err 5261 rm -f conftest.er1 5262 cat conftest.err >&5 5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5264 (exit $ac_status); } && { 5265 test -z "$ac_c_werror_flag" || 5266 test ! -s conftest.err 5267 } && test -s conftest$ac_exeext && 5268 $as_test_x conftest$ac_exeext; then 5269 tcl_cv_dirent_h=yes 5270else 5271 echo "$as_me: failed program was:" >&5 5272sed 's/^/| /' conftest.$ac_ext >&5 5273 5274 tcl_cv_dirent_h=no 5275fi 5276 5277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5278 conftest$ac_exeext conftest.$ac_ext 5279fi 5280{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5281echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5282 5283 if test $tcl_cv_dirent_h = no; then 5284 5285cat >>confdefs.h <<\_ACEOF 5286#define NO_DIRENT_H 1 5287_ACEOF 5288 5289 fi 5290 5291 # TEA specific: 5292 if test "${ac_cv_header_errno_h+set}" = set; then 5293 { echo "$as_me:$LINENO: checking for errno.h" >&5 5294echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5295if test "${ac_cv_header_errno_h+set}" = set; then 5296 echo $ECHO_N "(cached) $ECHO_C" >&6 5297fi 5298{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5299echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5300else 5301 # Is the header compilable? 5302{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5303echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5304cat >conftest.$ac_ext <<_ACEOF 5305/* confdefs.h. */ 5306_ACEOF 5307cat confdefs.h >>conftest.$ac_ext 5308cat >>conftest.$ac_ext <<_ACEOF 5309/* end confdefs.h. */ 5310$ac_includes_default 5311#include <errno.h> 5312_ACEOF 5313rm -f conftest.$ac_objext 5314if { (ac_try="$ac_compile" 5315case "(($ac_try" in 5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5317 *) ac_try_echo=$ac_try;; 5318esac 5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5320 (eval "$ac_compile") 2>conftest.er1 5321 ac_status=$? 5322 grep -v '^ *+' conftest.er1 >conftest.err 5323 rm -f conftest.er1 5324 cat conftest.err >&5 5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5326 (exit $ac_status); } && { 5327 test -z "$ac_c_werror_flag" || 5328 test ! -s conftest.err 5329 } && test -s conftest.$ac_objext; then 5330 ac_header_compiler=yes 5331else 5332 echo "$as_me: failed program was:" >&5 5333sed 's/^/| /' conftest.$ac_ext >&5 5334 5335 ac_header_compiler=no 5336fi 5337 5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5340echo "${ECHO_T}$ac_header_compiler" >&6; } 5341 5342# Is the header present? 5343{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5344echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5345cat >conftest.$ac_ext <<_ACEOF 5346/* confdefs.h. */ 5347_ACEOF 5348cat confdefs.h >>conftest.$ac_ext 5349cat >>conftest.$ac_ext <<_ACEOF 5350/* end confdefs.h. */ 5351#include <errno.h> 5352_ACEOF 5353if { (ac_try="$ac_cpp conftest.$ac_ext" 5354case "(($ac_try" in 5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5356 *) ac_try_echo=$ac_try;; 5357esac 5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5360 ac_status=$? 5361 grep -v '^ *+' conftest.er1 >conftest.err 5362 rm -f conftest.er1 5363 cat conftest.err >&5 5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5365 (exit $ac_status); } >/dev/null && { 5366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5367 test ! -s conftest.err 5368 }; then 5369 ac_header_preproc=yes 5370else 5371 echo "$as_me: failed program was:" >&5 5372sed 's/^/| /' conftest.$ac_ext >&5 5373 5374 ac_header_preproc=no 5375fi 5376 5377rm -f conftest.err conftest.$ac_ext 5378{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5379echo "${ECHO_T}$ac_header_preproc" >&6; } 5380 5381# So? What about this header? 5382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5383 yes:no: ) 5384 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5385echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5386 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5387echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5388 ac_header_preproc=yes 5389 ;; 5390 no:yes:* ) 5391 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5392echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5393 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5394echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5395 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5396echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5397 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5398echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5399 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5400echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5401 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5402echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5403 5404 ;; 5405esac 5406{ echo "$as_me:$LINENO: checking for errno.h" >&5 5407echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5408if test "${ac_cv_header_errno_h+set}" = set; then 5409 echo $ECHO_N "(cached) $ECHO_C" >&6 5410else 5411 ac_cv_header_errno_h=$ac_header_preproc 5412fi 5413{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5414echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5415 5416fi 5417if test $ac_cv_header_errno_h = yes; then 5418 : 5419else 5420 5421cat >>confdefs.h <<\_ACEOF 5422#define NO_ERRNO_H 1 5423_ACEOF 5424 5425fi 5426 5427 5428 if test "${ac_cv_header_float_h+set}" = set; then 5429 { echo "$as_me:$LINENO: checking for float.h" >&5 5430echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5431if test "${ac_cv_header_float_h+set}" = set; then 5432 echo $ECHO_N "(cached) $ECHO_C" >&6 5433fi 5434{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5435echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5436else 5437 # Is the header compilable? 5438{ echo "$as_me:$LINENO: checking float.h usability" >&5 5439echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5440cat >conftest.$ac_ext <<_ACEOF 5441/* confdefs.h. */ 5442_ACEOF 5443cat confdefs.h >>conftest.$ac_ext 5444cat >>conftest.$ac_ext <<_ACEOF 5445/* end confdefs.h. */ 5446$ac_includes_default 5447#include <float.h> 5448_ACEOF 5449rm -f conftest.$ac_objext 5450if { (ac_try="$ac_compile" 5451case "(($ac_try" in 5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5453 *) ac_try_echo=$ac_try;; 5454esac 5455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5456 (eval "$ac_compile") 2>conftest.er1 5457 ac_status=$? 5458 grep -v '^ *+' conftest.er1 >conftest.err 5459 rm -f conftest.er1 5460 cat conftest.err >&5 5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5462 (exit $ac_status); } && { 5463 test -z "$ac_c_werror_flag" || 5464 test ! -s conftest.err 5465 } && test -s conftest.$ac_objext; then 5466 ac_header_compiler=yes 5467else 5468 echo "$as_me: failed program was:" >&5 5469sed 's/^/| /' conftest.$ac_ext >&5 5470 5471 ac_header_compiler=no 5472fi 5473 5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5476echo "${ECHO_T}$ac_header_compiler" >&6; } 5477 5478# Is the header present? 5479{ echo "$as_me:$LINENO: checking float.h presence" >&5 5480echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5481cat >conftest.$ac_ext <<_ACEOF 5482/* confdefs.h. */ 5483_ACEOF 5484cat confdefs.h >>conftest.$ac_ext 5485cat >>conftest.$ac_ext <<_ACEOF 5486/* end confdefs.h. */ 5487#include <float.h> 5488_ACEOF 5489if { (ac_try="$ac_cpp conftest.$ac_ext" 5490case "(($ac_try" in 5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5492 *) ac_try_echo=$ac_try;; 5493esac 5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5496 ac_status=$? 5497 grep -v '^ *+' conftest.er1 >conftest.err 5498 rm -f conftest.er1 5499 cat conftest.err >&5 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } >/dev/null && { 5502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5503 test ! -s conftest.err 5504 }; then 5505 ac_header_preproc=yes 5506else 5507 echo "$as_me: failed program was:" >&5 5508sed 's/^/| /' conftest.$ac_ext >&5 5509 5510 ac_header_preproc=no 5511fi 5512 5513rm -f conftest.err conftest.$ac_ext 5514{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5515echo "${ECHO_T}$ac_header_preproc" >&6; } 5516 5517# So? What about this header? 5518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5519 yes:no: ) 5520 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5521echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5522 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5523echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5524 ac_header_preproc=yes 5525 ;; 5526 no:yes:* ) 5527 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5528echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5529 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5530echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5531 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5532echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5533 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5534echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5535 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5536echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5537 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5538echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5539 5540 ;; 5541esac 5542{ echo "$as_me:$LINENO: checking for float.h" >&5 5543echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5544if test "${ac_cv_header_float_h+set}" = set; then 5545 echo $ECHO_N "(cached) $ECHO_C" >&6 5546else 5547 ac_cv_header_float_h=$ac_header_preproc 5548fi 5549{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5550echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5551 5552fi 5553if test $ac_cv_header_float_h = yes; then 5554 : 5555else 5556 5557cat >>confdefs.h <<\_ACEOF 5558#define NO_FLOAT_H 1 5559_ACEOF 5560 5561fi 5562 5563 5564 if test "${ac_cv_header_values_h+set}" = set; then 5565 { echo "$as_me:$LINENO: checking for values.h" >&5 5566echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5567if test "${ac_cv_header_values_h+set}" = set; then 5568 echo $ECHO_N "(cached) $ECHO_C" >&6 5569fi 5570{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5571echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5572else 5573 # Is the header compilable? 5574{ echo "$as_me:$LINENO: checking values.h usability" >&5 5575echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5576cat >conftest.$ac_ext <<_ACEOF 5577/* confdefs.h. */ 5578_ACEOF 5579cat confdefs.h >>conftest.$ac_ext 5580cat >>conftest.$ac_ext <<_ACEOF 5581/* end confdefs.h. */ 5582$ac_includes_default 5583#include <values.h> 5584_ACEOF 5585rm -f conftest.$ac_objext 5586if { (ac_try="$ac_compile" 5587case "(($ac_try" in 5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5589 *) ac_try_echo=$ac_try;; 5590esac 5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5592 (eval "$ac_compile") 2>conftest.er1 5593 ac_status=$? 5594 grep -v '^ *+' conftest.er1 >conftest.err 5595 rm -f conftest.er1 5596 cat conftest.err >&5 5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5598 (exit $ac_status); } && { 5599 test -z "$ac_c_werror_flag" || 5600 test ! -s conftest.err 5601 } && test -s conftest.$ac_objext; then 5602 ac_header_compiler=yes 5603else 5604 echo "$as_me: failed program was:" >&5 5605sed 's/^/| /' conftest.$ac_ext >&5 5606 5607 ac_header_compiler=no 5608fi 5609 5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5612echo "${ECHO_T}$ac_header_compiler" >&6; } 5613 5614# Is the header present? 5615{ echo "$as_me:$LINENO: checking values.h presence" >&5 5616echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5617cat >conftest.$ac_ext <<_ACEOF 5618/* confdefs.h. */ 5619_ACEOF 5620cat confdefs.h >>conftest.$ac_ext 5621cat >>conftest.$ac_ext <<_ACEOF 5622/* end confdefs.h. */ 5623#include <values.h> 5624_ACEOF 5625if { (ac_try="$ac_cpp conftest.$ac_ext" 5626case "(($ac_try" in 5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5628 *) ac_try_echo=$ac_try;; 5629esac 5630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5632 ac_status=$? 5633 grep -v '^ *+' conftest.er1 >conftest.err 5634 rm -f conftest.er1 5635 cat conftest.err >&5 5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5637 (exit $ac_status); } >/dev/null && { 5638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5639 test ! -s conftest.err 5640 }; then 5641 ac_header_preproc=yes 5642else 5643 echo "$as_me: failed program was:" >&5 5644sed 's/^/| /' conftest.$ac_ext >&5 5645 5646 ac_header_preproc=no 5647fi 5648 5649rm -f conftest.err conftest.$ac_ext 5650{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5651echo "${ECHO_T}$ac_header_preproc" >&6; } 5652 5653# So? What about this header? 5654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5655 yes:no: ) 5656 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5657echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5658 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5659echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5660 ac_header_preproc=yes 5661 ;; 5662 no:yes:* ) 5663 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5664echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5665 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5666echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5667 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5668echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5669 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5670echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5671 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5672echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5673 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5674echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5675 5676 ;; 5677esac 5678{ echo "$as_me:$LINENO: checking for values.h" >&5 5679echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5680if test "${ac_cv_header_values_h+set}" = set; then 5681 echo $ECHO_N "(cached) $ECHO_C" >&6 5682else 5683 ac_cv_header_values_h=$ac_header_preproc 5684fi 5685{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5686echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5687 5688fi 5689if test $ac_cv_header_values_h = yes; then 5690 : 5691else 5692 5693cat >>confdefs.h <<\_ACEOF 5694#define NO_VALUES_H 1 5695_ACEOF 5696 5697fi 5698 5699 5700 if test "${ac_cv_header_limits_h+set}" = set; then 5701 { echo "$as_me:$LINENO: checking for limits.h" >&5 5702echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5703if test "${ac_cv_header_limits_h+set}" = set; then 5704 echo $ECHO_N "(cached) $ECHO_C" >&6 5705fi 5706{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5707echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5708else 5709 # Is the header compilable? 5710{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5711echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5712cat >conftest.$ac_ext <<_ACEOF 5713/* confdefs.h. */ 5714_ACEOF 5715cat confdefs.h >>conftest.$ac_ext 5716cat >>conftest.$ac_ext <<_ACEOF 5717/* end confdefs.h. */ 5718$ac_includes_default 5719#include <limits.h> 5720_ACEOF 5721rm -f conftest.$ac_objext 5722if { (ac_try="$ac_compile" 5723case "(($ac_try" in 5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5725 *) ac_try_echo=$ac_try;; 5726esac 5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5728 (eval "$ac_compile") 2>conftest.er1 5729 ac_status=$? 5730 grep -v '^ *+' conftest.er1 >conftest.err 5731 rm -f conftest.er1 5732 cat conftest.err >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5734 (exit $ac_status); } && { 5735 test -z "$ac_c_werror_flag" || 5736 test ! -s conftest.err 5737 } && test -s conftest.$ac_objext; then 5738 ac_header_compiler=yes 5739else 5740 echo "$as_me: failed program was:" >&5 5741sed 's/^/| /' conftest.$ac_ext >&5 5742 5743 ac_header_compiler=no 5744fi 5745 5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5748echo "${ECHO_T}$ac_header_compiler" >&6; } 5749 5750# Is the header present? 5751{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5752echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5753cat >conftest.$ac_ext <<_ACEOF 5754/* confdefs.h. */ 5755_ACEOF 5756cat confdefs.h >>conftest.$ac_ext 5757cat >>conftest.$ac_ext <<_ACEOF 5758/* end confdefs.h. */ 5759#include <limits.h> 5760_ACEOF 5761if { (ac_try="$ac_cpp conftest.$ac_ext" 5762case "(($ac_try" in 5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5764 *) ac_try_echo=$ac_try;; 5765esac 5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5768 ac_status=$? 5769 grep -v '^ *+' conftest.er1 >conftest.err 5770 rm -f conftest.er1 5771 cat conftest.err >&5 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); } >/dev/null && { 5774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5775 test ! -s conftest.err 5776 }; then 5777 ac_header_preproc=yes 5778else 5779 echo "$as_me: failed program was:" >&5 5780sed 's/^/| /' conftest.$ac_ext >&5 5781 5782 ac_header_preproc=no 5783fi 5784 5785rm -f conftest.err conftest.$ac_ext 5786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5787echo "${ECHO_T}$ac_header_preproc" >&6; } 5788 5789# So? What about this header? 5790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5791 yes:no: ) 5792 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5793echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5794 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5795echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5796 ac_header_preproc=yes 5797 ;; 5798 no:yes:* ) 5799 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5800echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5801 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5802echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5803 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5804echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5805 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5806echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5807 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5808echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5809 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5810echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5811 5812 ;; 5813esac 5814{ echo "$as_me:$LINENO: checking for limits.h" >&5 5815echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5816if test "${ac_cv_header_limits_h+set}" = set; then 5817 echo $ECHO_N "(cached) $ECHO_C" >&6 5818else 5819 ac_cv_header_limits_h=$ac_header_preproc 5820fi 5821{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5822echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5823 5824fi 5825if test $ac_cv_header_limits_h = yes; then 5826 5827cat >>confdefs.h <<\_ACEOF 5828#define HAVE_LIMITS_H 1 5829_ACEOF 5830 5831else 5832 5833cat >>confdefs.h <<\_ACEOF 5834#define NO_LIMITS_H 1 5835_ACEOF 5836 5837fi 5838 5839 5840 if test "${ac_cv_header_stdlib_h+set}" = set; then 5841 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5842echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5843if test "${ac_cv_header_stdlib_h+set}" = set; then 5844 echo $ECHO_N "(cached) $ECHO_C" >&6 5845fi 5846{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5847echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5848else 5849 # Is the header compilable? 5850{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5851echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5852cat >conftest.$ac_ext <<_ACEOF 5853/* confdefs.h. */ 5854_ACEOF 5855cat confdefs.h >>conftest.$ac_ext 5856cat >>conftest.$ac_ext <<_ACEOF 5857/* end confdefs.h. */ 5858$ac_includes_default 5859#include <stdlib.h> 5860_ACEOF 5861rm -f conftest.$ac_objext 5862if { (ac_try="$ac_compile" 5863case "(($ac_try" in 5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5865 *) ac_try_echo=$ac_try;; 5866esac 5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5868 (eval "$ac_compile") 2>conftest.er1 5869 ac_status=$? 5870 grep -v '^ *+' conftest.er1 >conftest.err 5871 rm -f conftest.er1 5872 cat conftest.err >&5 5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5874 (exit $ac_status); } && { 5875 test -z "$ac_c_werror_flag" || 5876 test ! -s conftest.err 5877 } && test -s conftest.$ac_objext; then 5878 ac_header_compiler=yes 5879else 5880 echo "$as_me: failed program was:" >&5 5881sed 's/^/| /' conftest.$ac_ext >&5 5882 5883 ac_header_compiler=no 5884fi 5885 5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5887{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5888echo "${ECHO_T}$ac_header_compiler" >&6; } 5889 5890# Is the header present? 5891{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5892echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5893cat >conftest.$ac_ext <<_ACEOF 5894/* confdefs.h. */ 5895_ACEOF 5896cat confdefs.h >>conftest.$ac_ext 5897cat >>conftest.$ac_ext <<_ACEOF 5898/* end confdefs.h. */ 5899#include <stdlib.h> 5900_ACEOF 5901if { (ac_try="$ac_cpp conftest.$ac_ext" 5902case "(($ac_try" in 5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5904 *) ac_try_echo=$ac_try;; 5905esac 5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5908 ac_status=$? 5909 grep -v '^ *+' conftest.er1 >conftest.err 5910 rm -f conftest.er1 5911 cat conftest.err >&5 5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5913 (exit $ac_status); } >/dev/null && { 5914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5915 test ! -s conftest.err 5916 }; then 5917 ac_header_preproc=yes 5918else 5919 echo "$as_me: failed program was:" >&5 5920sed 's/^/| /' conftest.$ac_ext >&5 5921 5922 ac_header_preproc=no 5923fi 5924 5925rm -f conftest.err conftest.$ac_ext 5926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5927echo "${ECHO_T}$ac_header_preproc" >&6; } 5928 5929# So? What about this header? 5930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5931 yes:no: ) 5932 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5933echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5934 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5935echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5936 ac_header_preproc=yes 5937 ;; 5938 no:yes:* ) 5939 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5940echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5941 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5942echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5943 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5944echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5945 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5946echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5947 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5948echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5949 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5950echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5951 5952 ;; 5953esac 5954{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5955echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5956if test "${ac_cv_header_stdlib_h+set}" = set; then 5957 echo $ECHO_N "(cached) $ECHO_C" >&6 5958else 5959 ac_cv_header_stdlib_h=$ac_header_preproc 5960fi 5961{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5962echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5963 5964fi 5965if test $ac_cv_header_stdlib_h = yes; then 5966 tcl_ok=1 5967else 5968 tcl_ok=0 5969fi 5970 5971 5972 cat >conftest.$ac_ext <<_ACEOF 5973/* confdefs.h. */ 5974_ACEOF 5975cat confdefs.h >>conftest.$ac_ext 5976cat >>conftest.$ac_ext <<_ACEOF 5977/* end confdefs.h. */ 5978#include <stdlib.h> 5979 5980_ACEOF 5981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5982 $EGREP "strtol" >/dev/null 2>&1; then 5983 : 5984else 5985 tcl_ok=0 5986fi 5987rm -f -r conftest* 5988 5989 cat >conftest.$ac_ext <<_ACEOF 5990/* confdefs.h. */ 5991_ACEOF 5992cat confdefs.h >>conftest.$ac_ext 5993cat >>conftest.$ac_ext <<_ACEOF 5994/* end confdefs.h. */ 5995#include <stdlib.h> 5996 5997_ACEOF 5998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5999 $EGREP "strtoul" >/dev/null 2>&1; then 6000 : 6001else 6002 tcl_ok=0 6003fi 6004rm -f -r conftest* 6005 6006 cat >conftest.$ac_ext <<_ACEOF 6007/* confdefs.h. */ 6008_ACEOF 6009cat confdefs.h >>conftest.$ac_ext 6010cat >>conftest.$ac_ext <<_ACEOF 6011/* end confdefs.h. */ 6012#include <stdlib.h> 6013 6014_ACEOF 6015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6016 $EGREP "strtod" >/dev/null 2>&1; then 6017 : 6018else 6019 tcl_ok=0 6020fi 6021rm -f -r conftest* 6022 6023 if test $tcl_ok = 0; then 6024 6025cat >>confdefs.h <<\_ACEOF 6026#define NO_STDLIB_H 1 6027_ACEOF 6028 6029 fi 6030 if test "${ac_cv_header_string_h+set}" = set; then 6031 { echo "$as_me:$LINENO: checking for string.h" >&5 6032echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6033if test "${ac_cv_header_string_h+set}" = set; then 6034 echo $ECHO_N "(cached) $ECHO_C" >&6 6035fi 6036{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6037echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6038else 6039 # Is the header compilable? 6040{ echo "$as_me:$LINENO: checking string.h usability" >&5 6041echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6042cat >conftest.$ac_ext <<_ACEOF 6043/* confdefs.h. */ 6044_ACEOF 6045cat confdefs.h >>conftest.$ac_ext 6046cat >>conftest.$ac_ext <<_ACEOF 6047/* end confdefs.h. */ 6048$ac_includes_default 6049#include <string.h> 6050_ACEOF 6051rm -f conftest.$ac_objext 6052if { (ac_try="$ac_compile" 6053case "(($ac_try" in 6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6055 *) ac_try_echo=$ac_try;; 6056esac 6057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6058 (eval "$ac_compile") 2>conftest.er1 6059 ac_status=$? 6060 grep -v '^ *+' conftest.er1 >conftest.err 6061 rm -f conftest.er1 6062 cat conftest.err >&5 6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6064 (exit $ac_status); } && { 6065 test -z "$ac_c_werror_flag" || 6066 test ! -s conftest.err 6067 } && test -s conftest.$ac_objext; then 6068 ac_header_compiler=yes 6069else 6070 echo "$as_me: failed program was:" >&5 6071sed 's/^/| /' conftest.$ac_ext >&5 6072 6073 ac_header_compiler=no 6074fi 6075 6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6077{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6078echo "${ECHO_T}$ac_header_compiler" >&6; } 6079 6080# Is the header present? 6081{ echo "$as_me:$LINENO: checking string.h presence" >&5 6082echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6083cat >conftest.$ac_ext <<_ACEOF 6084/* confdefs.h. */ 6085_ACEOF 6086cat confdefs.h >>conftest.$ac_ext 6087cat >>conftest.$ac_ext <<_ACEOF 6088/* end confdefs.h. */ 6089#include <string.h> 6090_ACEOF 6091if { (ac_try="$ac_cpp conftest.$ac_ext" 6092case "(($ac_try" in 6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6094 *) ac_try_echo=$ac_try;; 6095esac 6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6098 ac_status=$? 6099 grep -v '^ *+' conftest.er1 >conftest.err 6100 rm -f conftest.er1 6101 cat conftest.err >&5 6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6103 (exit $ac_status); } >/dev/null && { 6104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6105 test ! -s conftest.err 6106 }; then 6107 ac_header_preproc=yes 6108else 6109 echo "$as_me: failed program was:" >&5 6110sed 's/^/| /' conftest.$ac_ext >&5 6111 6112 ac_header_preproc=no 6113fi 6114 6115rm -f conftest.err conftest.$ac_ext 6116{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6117echo "${ECHO_T}$ac_header_preproc" >&6; } 6118 6119# So? What about this header? 6120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6121 yes:no: ) 6122 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6123echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6124 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6125echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6126 ac_header_preproc=yes 6127 ;; 6128 no:yes:* ) 6129 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6130echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6131 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6132echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6133 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6134echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6135 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6136echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6137 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6138echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6139 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6140echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6141 6142 ;; 6143esac 6144{ echo "$as_me:$LINENO: checking for string.h" >&5 6145echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6146if test "${ac_cv_header_string_h+set}" = set; then 6147 echo $ECHO_N "(cached) $ECHO_C" >&6 6148else 6149 ac_cv_header_string_h=$ac_header_preproc 6150fi 6151{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6152echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6153 6154fi 6155if test $ac_cv_header_string_h = yes; then 6156 tcl_ok=1 6157else 6158 tcl_ok=0 6159fi 6160 6161 6162 cat >conftest.$ac_ext <<_ACEOF 6163/* confdefs.h. */ 6164_ACEOF 6165cat confdefs.h >>conftest.$ac_ext 6166cat >>conftest.$ac_ext <<_ACEOF 6167/* end confdefs.h. */ 6168#include <string.h> 6169 6170_ACEOF 6171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6172 $EGREP "strstr" >/dev/null 2>&1; then 6173 : 6174else 6175 tcl_ok=0 6176fi 6177rm -f -r conftest* 6178 6179 cat >conftest.$ac_ext <<_ACEOF 6180/* confdefs.h. */ 6181_ACEOF 6182cat confdefs.h >>conftest.$ac_ext 6183cat >>conftest.$ac_ext <<_ACEOF 6184/* end confdefs.h. */ 6185#include <string.h> 6186 6187_ACEOF 6188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6189 $EGREP "strerror" >/dev/null 2>&1; then 6190 : 6191else 6192 tcl_ok=0 6193fi 6194rm -f -r conftest* 6195 6196 6197 # See also memmove check below for a place where NO_STRING_H can be 6198 # set and why. 6199 6200 if test $tcl_ok = 0; then 6201 6202cat >>confdefs.h <<\_ACEOF 6203#define NO_STRING_H 1 6204_ACEOF 6205 6206 fi 6207 6208 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6209 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6210echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6211if test "${ac_cv_header_sys_wait_h+set}" = set; then 6212 echo $ECHO_N "(cached) $ECHO_C" >&6 6213fi 6214{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6215echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6216else 6217 # Is the header compilable? 6218{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6219echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6220cat >conftest.$ac_ext <<_ACEOF 6221/* confdefs.h. */ 6222_ACEOF 6223cat confdefs.h >>conftest.$ac_ext 6224cat >>conftest.$ac_ext <<_ACEOF 6225/* end confdefs.h. */ 6226$ac_includes_default 6227#include <sys/wait.h> 6228_ACEOF 6229rm -f conftest.$ac_objext 6230if { (ac_try="$ac_compile" 6231case "(($ac_try" in 6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6233 *) ac_try_echo=$ac_try;; 6234esac 6235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6236 (eval "$ac_compile") 2>conftest.er1 6237 ac_status=$? 6238 grep -v '^ *+' conftest.er1 >conftest.err 6239 rm -f conftest.er1 6240 cat conftest.err >&5 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6242 (exit $ac_status); } && { 6243 test -z "$ac_c_werror_flag" || 6244 test ! -s conftest.err 6245 } && test -s conftest.$ac_objext; then 6246 ac_header_compiler=yes 6247else 6248 echo "$as_me: failed program was:" >&5 6249sed 's/^/| /' conftest.$ac_ext >&5 6250 6251 ac_header_compiler=no 6252fi 6253 6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6255{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6256echo "${ECHO_T}$ac_header_compiler" >&6; } 6257 6258# Is the header present? 6259{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6260echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6261cat >conftest.$ac_ext <<_ACEOF 6262/* confdefs.h. */ 6263_ACEOF 6264cat confdefs.h >>conftest.$ac_ext 6265cat >>conftest.$ac_ext <<_ACEOF 6266/* end confdefs.h. */ 6267#include <sys/wait.h> 6268_ACEOF 6269if { (ac_try="$ac_cpp conftest.$ac_ext" 6270case "(($ac_try" in 6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6272 *) ac_try_echo=$ac_try;; 6273esac 6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6276 ac_status=$? 6277 grep -v '^ *+' conftest.er1 >conftest.err 6278 rm -f conftest.er1 6279 cat conftest.err >&5 6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6281 (exit $ac_status); } >/dev/null && { 6282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6283 test ! -s conftest.err 6284 }; then 6285 ac_header_preproc=yes 6286else 6287 echo "$as_me: failed program was:" >&5 6288sed 's/^/| /' conftest.$ac_ext >&5 6289 6290 ac_header_preproc=no 6291fi 6292 6293rm -f conftest.err conftest.$ac_ext 6294{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6295echo "${ECHO_T}$ac_header_preproc" >&6; } 6296 6297# So? What about this header? 6298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6299 yes:no: ) 6300 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6301echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6302 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6303echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6304 ac_header_preproc=yes 6305 ;; 6306 no:yes:* ) 6307 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6308echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6309 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6310echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6311 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6312echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6313 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6314echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6315 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6316echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6317 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6318echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6319 6320 ;; 6321esac 6322{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6323echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6324if test "${ac_cv_header_sys_wait_h+set}" = set; then 6325 echo $ECHO_N "(cached) $ECHO_C" >&6 6326else 6327 ac_cv_header_sys_wait_h=$ac_header_preproc 6328fi 6329{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6330echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6331 6332fi 6333if test $ac_cv_header_sys_wait_h = yes; then 6334 : 6335else 6336 6337cat >>confdefs.h <<\_ACEOF 6338#define NO_SYS_WAIT_H 1 6339_ACEOF 6340 6341fi 6342 6343 6344 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6345 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6346echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6347if test "${ac_cv_header_dlfcn_h+set}" = set; then 6348 echo $ECHO_N "(cached) $ECHO_C" >&6 6349fi 6350{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6351echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6352else 6353 # Is the header compilable? 6354{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6355echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6356cat >conftest.$ac_ext <<_ACEOF 6357/* confdefs.h. */ 6358_ACEOF 6359cat confdefs.h >>conftest.$ac_ext 6360cat >>conftest.$ac_ext <<_ACEOF 6361/* end confdefs.h. */ 6362$ac_includes_default 6363#include <dlfcn.h> 6364_ACEOF 6365rm -f conftest.$ac_objext 6366if { (ac_try="$ac_compile" 6367case "(($ac_try" in 6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6369 *) ac_try_echo=$ac_try;; 6370esac 6371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6372 (eval "$ac_compile") 2>conftest.er1 6373 ac_status=$? 6374 grep -v '^ *+' conftest.er1 >conftest.err 6375 rm -f conftest.er1 6376 cat conftest.err >&5 6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6378 (exit $ac_status); } && { 6379 test -z "$ac_c_werror_flag" || 6380 test ! -s conftest.err 6381 } && test -s conftest.$ac_objext; then 6382 ac_header_compiler=yes 6383else 6384 echo "$as_me: failed program was:" >&5 6385sed 's/^/| /' conftest.$ac_ext >&5 6386 6387 ac_header_compiler=no 6388fi 6389 6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6392echo "${ECHO_T}$ac_header_compiler" >&6; } 6393 6394# Is the header present? 6395{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6396echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6397cat >conftest.$ac_ext <<_ACEOF 6398/* confdefs.h. */ 6399_ACEOF 6400cat confdefs.h >>conftest.$ac_ext 6401cat >>conftest.$ac_ext <<_ACEOF 6402/* end confdefs.h. */ 6403#include <dlfcn.h> 6404_ACEOF 6405if { (ac_try="$ac_cpp conftest.$ac_ext" 6406case "(($ac_try" in 6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6408 *) ac_try_echo=$ac_try;; 6409esac 6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6412 ac_status=$? 6413 grep -v '^ *+' conftest.er1 >conftest.err 6414 rm -f conftest.er1 6415 cat conftest.err >&5 6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6417 (exit $ac_status); } >/dev/null && { 6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6419 test ! -s conftest.err 6420 }; then 6421 ac_header_preproc=yes 6422else 6423 echo "$as_me: failed program was:" >&5 6424sed 's/^/| /' conftest.$ac_ext >&5 6425 6426 ac_header_preproc=no 6427fi 6428 6429rm -f conftest.err conftest.$ac_ext 6430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6431echo "${ECHO_T}$ac_header_preproc" >&6; } 6432 6433# So? What about this header? 6434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6435 yes:no: ) 6436 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6437echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6438 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6439echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6440 ac_header_preproc=yes 6441 ;; 6442 no:yes:* ) 6443 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6444echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6445 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6446echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6447 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6448echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6449 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6450echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6451 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6452echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6453 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6454echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6455 6456 ;; 6457esac 6458{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6459echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6460if test "${ac_cv_header_dlfcn_h+set}" = set; then 6461 echo $ECHO_N "(cached) $ECHO_C" >&6 6462else 6463 ac_cv_header_dlfcn_h=$ac_header_preproc 6464fi 6465{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6466echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6467 6468fi 6469if test $ac_cv_header_dlfcn_h = yes; then 6470 : 6471else 6472 6473cat >>confdefs.h <<\_ACEOF 6474#define NO_DLFCN_H 1 6475_ACEOF 6476 6477fi 6478 6479 6480 6481 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6482 6483for ac_header in sys/param.h 6484do 6485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6487 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6490 echo $ECHO_N "(cached) $ECHO_C" >&6 6491fi 6492ac_res=`eval echo '${'$as_ac_Header'}'` 6493 { echo "$as_me:$LINENO: result: $ac_res" >&5 6494echo "${ECHO_T}$ac_res" >&6; } 6495else 6496 # Is the header compilable? 6497{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6499cat >conftest.$ac_ext <<_ACEOF 6500/* confdefs.h. */ 6501_ACEOF 6502cat confdefs.h >>conftest.$ac_ext 6503cat >>conftest.$ac_ext <<_ACEOF 6504/* end confdefs.h. */ 6505$ac_includes_default 6506#include <$ac_header> 6507_ACEOF 6508rm -f conftest.$ac_objext 6509if { (ac_try="$ac_compile" 6510case "(($ac_try" in 6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6512 *) ac_try_echo=$ac_try;; 6513esac 6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6515 (eval "$ac_compile") 2>conftest.er1 6516 ac_status=$? 6517 grep -v '^ *+' conftest.er1 >conftest.err 6518 rm -f conftest.er1 6519 cat conftest.err >&5 6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6521 (exit $ac_status); } && { 6522 test -z "$ac_c_werror_flag" || 6523 test ! -s conftest.err 6524 } && test -s conftest.$ac_objext; then 6525 ac_header_compiler=yes 6526else 6527 echo "$as_me: failed program was:" >&5 6528sed 's/^/| /' conftest.$ac_ext >&5 6529 6530 ac_header_compiler=no 6531fi 6532 6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6535echo "${ECHO_T}$ac_header_compiler" >&6; } 6536 6537# Is the header present? 6538{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6540cat >conftest.$ac_ext <<_ACEOF 6541/* confdefs.h. */ 6542_ACEOF 6543cat confdefs.h >>conftest.$ac_ext 6544cat >>conftest.$ac_ext <<_ACEOF 6545/* end confdefs.h. */ 6546#include <$ac_header> 6547_ACEOF 6548if { (ac_try="$ac_cpp conftest.$ac_ext" 6549case "(($ac_try" in 6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6551 *) ac_try_echo=$ac_try;; 6552esac 6553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6555 ac_status=$? 6556 grep -v '^ *+' conftest.er1 >conftest.err 6557 rm -f conftest.er1 6558 cat conftest.err >&5 6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6560 (exit $ac_status); } >/dev/null && { 6561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6562 test ! -s conftest.err 6563 }; then 6564 ac_header_preproc=yes 6565else 6566 echo "$as_me: failed program was:" >&5 6567sed 's/^/| /' conftest.$ac_ext >&5 6568 6569 ac_header_preproc=no 6570fi 6571 6572rm -f conftest.err conftest.$ac_ext 6573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6574echo "${ECHO_T}$ac_header_preproc" >&6; } 6575 6576# So? What about this header? 6577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6578 yes:no: ) 6579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6583 ac_header_preproc=yes 6584 ;; 6585 no:yes:* ) 6586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6598 6599 ;; 6600esac 6601{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6604 echo $ECHO_N "(cached) $ECHO_C" >&6 6605else 6606 eval "$as_ac_Header=\$ac_header_preproc" 6607fi 6608ac_res=`eval echo '${'$as_ac_Header'}'` 6609 { echo "$as_me:$LINENO: result: $ac_res" >&5 6610echo "${ECHO_T}$ac_res" >&6; } 6611 6612fi 6613if test `eval echo '${'$as_ac_Header'}'` = yes; then 6614 cat >>confdefs.h <<_ACEOF 6615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6616_ACEOF 6617 6618fi 6619 6620done 6621 6622 6623 # Let the user call this, because if it triggers, they will 6624 # need a compat/strtod.c that is correct. Users can also 6625 # use Tcl_GetDouble(FromObj) instead. 6626 #TEA_BUGGY_STRTOD 6627 fi 6628 6629 6630#----------------------------------------------------------------------- 6631# __CHANGE__ 6632# Specify the C source files to compile in TEA_ADD_SOURCES, 6633# public headers that need to be installed in TEA_ADD_HEADERS, 6634# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6635# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6636# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6637# and PKG_TCL_SOURCES. 6638#----------------------------------------------------------------------- 6639 6640 6641 vars="itclStubInit.c 6642 itcl_bicmds.c 6643 itcl_class.c 6644 itcl_cmds.c 6645 itcl_ensemble.c 6646 itcl_linkage.c 6647 itcl_methods.c 6648 itcl_migrate.c 6649 itcl_objects.c 6650 itcl_parse.c 6651 itcl_util.c" 6652 for i in $vars; do 6653 case $i in 6654 \$*) 6655 # allow $-var names 6656 PKG_SOURCES="$PKG_SOURCES $i" 6657 PKG_OBJECTS="$PKG_OBJECTS $i" 6658 ;; 6659 *) 6660 # check for existence - allows for generic/win/unix VPATH 6661 # To add more dirs here (like 'src'), you have to update VPATH 6662 # in Makefile.in as well 6663 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6664 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6665 -a ! -f "${srcdir}/macosx/$i" \ 6666 ; then 6667 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6668echo "$as_me: error: could not find source file '$i'" >&2;} 6669 { (exit 1); exit 1; }; } 6670 fi 6671 PKG_SOURCES="$PKG_SOURCES $i" 6672 # this assumes it is in a VPATH dir 6673 i=`basename $i` 6674 # handle user calling this before or after TEA_SETUP_COMPILER 6675 if test x"${OBJEXT}" != x ; then 6676 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6677 else 6678 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6679 fi 6680 PKG_OBJECTS="$PKG_OBJECTS $j" 6681 ;; 6682 esac 6683 done 6684 6685 6686 6687 6688 vars="generic/itcl.h 6689 generic/itclDecls.h 6690 generic/itclInt.h 6691 generic/itclIntDecls.h" 6692 for i in $vars; do 6693 # check for existence, be strict because it is installed 6694 if test ! -f "${srcdir}/$i" ; then 6695 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6696echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6697 { (exit 1); exit 1; }; } 6698 fi 6699 PKG_HEADERS="$PKG_HEADERS $i" 6700 done 6701 6702 6703 6704 vars="-I\"`${CYGPATH} ${srcdir}/generic`\"" 6705 for i in $vars; do 6706 PKG_INCLUDES="$PKG_INCLUDES $i" 6707 done 6708 6709 6710 6711 vars="" 6712 for i in $vars; do 6713 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6714 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6715 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6716 fi 6717 PKG_LIBS="$PKG_LIBS $i" 6718 done 6719 6720 6721 6722 PKG_CFLAGS="$PKG_CFLAGS " 6723 6724 6725 6726 vars="itclStubLib.c" 6727 for i in $vars; do 6728 # check for existence - allows for generic/win/unix VPATH 6729 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6730 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6731 -a ! -f "${srcdir}/macosx/$i" \ 6732 ; then 6733 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6734echo "$as_me: error: could not find stub source file '$i'" >&2;} 6735 { (exit 1); exit 1; }; } 6736 fi 6737 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6738 # this assumes it is in a VPATH dir 6739 i=`basename $i` 6740 # handle user calling this before or after TEA_SETUP_COMPILER 6741 if test x"${OBJEXT}" != x ; then 6742 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6743 else 6744 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6745 fi 6746 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6747 done 6748 6749 6750 6751 6752 vars="library/itcl.tcl" 6753 for i in $vars; do 6754 # check for existence, be strict because it is installed 6755 if test ! -f "${srcdir}/$i" ; then 6756 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6757echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6758 { (exit 1); exit 1; }; } 6759 fi 6760 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6761 done 6762 6763 6764 6765#-------------------------------------------------------------------- 6766# __CHANGE__ 6767# A few miscellaneous platform-specific items: 6768# 6769# Define a special symbol for Windows (BUILD_itcl in this case) so 6770# that we create the export library with the dll. See sha1.h on how 6771# to use this. 6772# 6773# Windows creates a few extra files that need to be cleaned up. 6774# You can add more files to clean if your extension creates any extra 6775# files. 6776# 6777# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6778# These will be appended to the current set of compiler flags for 6779# your system. 6780#-------------------------------------------------------------------- 6781 6782if test "${TEA_PLATFORM}" = "windows" ; then 6783 6784 vars="dllEntryPoint.c" 6785 for i in $vars; do 6786 case $i in 6787 \$*) 6788 # allow $-var names 6789 PKG_SOURCES="$PKG_SOURCES $i" 6790 PKG_OBJECTS="$PKG_OBJECTS $i" 6791 ;; 6792 *) 6793 # check for existence - allows for generic/win/unix VPATH 6794 # To add more dirs here (like 'src'), you have to update VPATH 6795 # in Makefile.in as well 6796 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6797 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6798 -a ! -f "${srcdir}/macosx/$i" \ 6799 ; then 6800 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6801echo "$as_me: error: could not find source file '$i'" >&2;} 6802 { (exit 1); exit 1; }; } 6803 fi 6804 PKG_SOURCES="$PKG_SOURCES $i" 6805 # this assumes it is in a VPATH dir 6806 i=`basename $i` 6807 # handle user calling this before or after TEA_SETUP_COMPILER 6808 if test x"${OBJEXT}" != x ; then 6809 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6810 else 6811 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6812 fi 6813 PKG_OBJECTS="$PKG_OBJECTS $j" 6814 ;; 6815 esac 6816 done 6817 6818 6819 6820fi 6821 6822#-------------------------------------------------------------------- 6823# __CHANGE__ 6824# Choose which headers you need. Extension authors should try very 6825# hard to only rely on the Tcl public header files. Internal headers 6826# contain private data structures and are subject to change without 6827# notice. 6828# This must be done AFTER calling TEA_PATH_TCLCONFIG/TEA_LOAD_TCLCONFIG 6829# so that we can extract TCL_SRC_DIR from the config file (in the case 6830# of private headers 6831#-------------------------------------------------------------------- 6832 6833#TEA_PUBLIC_TCL_HEADERS 6834 6835 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6836echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6837 6838 6839# Check whether --with-tclinclude was given. 6840if test "${with_tclinclude+set}" = set; then 6841 withval=$with_tclinclude; with_tclinclude=${withval} 6842fi 6843 6844 6845 if test "${ac_cv_c_tclh+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847else 6848 6849 # Use the value from --with-tclinclude, if it was given 6850 6851 if test x"${with_tclinclude}" != x ; then 6852 if test -f "${with_tclinclude}/tcl.h" ; then 6853 ac_cv_c_tclh=${with_tclinclude} 6854 else 6855 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6856echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6857 { (exit 1); exit 1; }; } 6858 fi 6859 else 6860 list="" 6861 if test "`uname -s`" = "Darwin"; then 6862 # If Tcl was built as a framework, attempt to use 6863 # the framework's Headers directory 6864 case ${TCL_DEFS} in 6865 *TCL_FRAMEWORK*) 6866 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6867 ;; 6868 esac 6869 fi 6870 6871 # Look in the source dir only if Tcl is not installed, 6872 # and in that situation, look there before installed locations. 6873 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6874 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6875 fi 6876 6877 # Check order: pkg --prefix location, Tcl's --prefix location, 6878 # relative to directory of tclConfig.sh. 6879 6880 eval "temp_includedir=${includedir}" 6881 list="$list \ 6882 `ls -d ${temp_includedir} 2>/dev/null` \ 6883 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6884 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6885 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6886 list="$list /usr/local/include /usr/include" 6887 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6888 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6889 list="$list `ls -d ${d} 2>/dev/null`" 6890 fi 6891 fi 6892 for i in $list ; do 6893 if test -f "$i/tcl.h" ; then 6894 ac_cv_c_tclh=$i 6895 break 6896 fi 6897 done 6898 fi 6899 6900fi 6901 6902 6903 # Print a message based on how we determined the include path 6904 6905 if test x"${ac_cv_c_tclh}" = x ; then 6906 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6907echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6908 { (exit 1); exit 1; }; } 6909 else 6910 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6911echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6912 fi 6913 6914 # Convert to a native path and substitute into the output files. 6915 6916 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6917 6918 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6919 6920 6921 6922 6923 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 6924 6925 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6926echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 6927 6928 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6929 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6930 6931 # Check to see if tcl<Plat>Port.h isn't already with the public headers 6932 # Don't look for tclInt.h because that resides with tcl.h in the core 6933 # sources, but the <plat>Port headers are in a different directory 6934 if test "${TEA_PLATFORM}" = "windows" -a \ 6935 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 6936 result="private headers found with public headers" 6937 elif test "${TEA_PLATFORM}" = "unix" -a \ 6938 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 6939 result="private headers found with public headers" 6940 else 6941 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6942 if test "${TEA_PLATFORM}" = "windows"; then 6943 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6944 else 6945 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6946 fi 6947 # Overwrite the previous TCL_INCLUDES as this should capture both 6948 # public and private headers in the same set. 6949 # We want to ensure these are substituted so as not to require 6950 # any *_NATIVE vars be defined in the Makefile 6951 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6952 if test "`uname -s`" = "Darwin"; then 6953 # If Tcl was built as a framework, attempt to use 6954 # the framework's Headers and PrivateHeaders directories 6955 case ${TCL_DEFS} in 6956 *TCL_FRAMEWORK*) 6957 if test -d "${TCL_BIN_DIR}/Headers" -a \ 6958 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6959 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 6960 else 6961 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 6962 fi 6963 ;; 6964 esac 6965 result="Using ${TCL_INCLUDES}" 6966 else 6967 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6968 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6969echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6970 { (exit 1); exit 1; }; } 6971 fi 6972 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 6973 fi 6974 fi 6975 6976 6977 6978 6979 { echo "$as_me:$LINENO: result: ${result}" >&5 6980echo "${ECHO_T}${result}" >&6; } 6981 6982 6983#-------------------------------------------------------------------- 6984# We need to enable the threading macros found in tcl.h and tclInt.h. 6985# The use of the threading features is determined by the core the 6986# extension is loaded into, but we need to compile with these macros 6987# turned on. 6988#-------------------------------------------------------------------- 6989 6990cat >>confdefs.h <<\_ACEOF 6991#define TCL_THREADS 1 6992_ACEOF 6993 6994 6995#-------------------------------------------------------------------- 6996# Check whether --enable-threads or --disable-threads was given. 6997# This auto-enables if Tcl was compiled threaded. 6998#-------------------------------------------------------------------- 6999 7000#TEA_ENABLE_THREADS 7001 7002#-------------------------------------------------------------------- 7003# The statement below defines a collection of symbols related to 7004# building as a shared library instead of a static library. 7005#-------------------------------------------------------------------- 7006 7007 7008 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7009echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7010 # Check whether --enable-shared was given. 7011if test "${enable_shared+set}" = set; then 7012 enableval=$enable_shared; tcl_ok=$enableval 7013else 7014 tcl_ok=yes 7015fi 7016 7017 7018 if test "${enable_shared+set}" = set; then 7019 enableval="$enable_shared" 7020 tcl_ok=$enableval 7021 else 7022 tcl_ok=yes 7023 fi 7024 7025 if test "$tcl_ok" = "yes" ; then 7026 { echo "$as_me:$LINENO: result: shared" >&5 7027echo "${ECHO_T}shared" >&6; } 7028 SHARED_BUILD=1 7029 else 7030 { echo "$as_me:$LINENO: result: static" >&5 7031echo "${ECHO_T}static" >&6; } 7032 SHARED_BUILD=0 7033 7034cat >>confdefs.h <<\_ACEOF 7035#define STATIC_BUILD 1 7036_ACEOF 7037 7038 fi 7039 7040 7041 7042#-------------------------------------------------------------------- 7043# This macro figures out what flags to use with the compiler/linker 7044# when building shared/static debug/optimized objects. This information 7045# can be taken from the tclConfig.sh file, but this figures it all out. 7046#-------------------------------------------------------------------- 7047 7048 7049 7050 7051 # Step 0.a: Enable 64 bit support? 7052 7053 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7054echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7055 # Check whether --enable-64bit was given. 7056if test "${enable_64bit+set}" = set; then 7057 enableval=$enable_64bit; do64bit=$enableval 7058else 7059 do64bit=no 7060fi 7061 7062 { echo "$as_me:$LINENO: result: $do64bit" >&5 7063echo "${ECHO_T}$do64bit" >&6; } 7064 7065 # Step 0.b: Enable Solaris 64 bit VIS support? 7066 7067 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7068echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7069 # Check whether --enable-64bit-vis was given. 7070if test "${enable_64bit_vis+set}" = set; then 7071 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7072else 7073 do64bitVIS=no 7074fi 7075 7076 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7077echo "${ECHO_T}$do64bitVIS" >&6; } 7078 # Force 64bit on with VIS 7079 if test "$do64bitVIS" = "yes"; then 7080 do64bit=yes 7081fi 7082 7083 7084 # Step 0.c: Check if visibility support is available. Do this here so 7085 # that platform specific alternatives can be used below if this fails. 7086 7087 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7088echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7089if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7090 echo $ECHO_N "(cached) $ECHO_C" >&6 7091else 7092 7093 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7094 cat >conftest.$ac_ext <<_ACEOF 7095/* confdefs.h. */ 7096_ACEOF 7097cat confdefs.h >>conftest.$ac_ext 7098cat >>conftest.$ac_ext <<_ACEOF 7099/* end confdefs.h. */ 7100 7101 extern __attribute__((__visibility__("hidden"))) void f(void); 7102 void f(void) {} 7103int 7104main () 7105{ 7106f(); 7107 ; 7108 return 0; 7109} 7110_ACEOF 7111rm -f conftest.$ac_objext conftest$ac_exeext 7112if { (ac_try="$ac_link" 7113case "(($ac_try" in 7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7115 *) ac_try_echo=$ac_try;; 7116esac 7117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7118 (eval "$ac_link") 2>conftest.er1 7119 ac_status=$? 7120 grep -v '^ *+' conftest.er1 >conftest.err 7121 rm -f conftest.er1 7122 cat conftest.err >&5 7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7124 (exit $ac_status); } && { 7125 test -z "$ac_c_werror_flag" || 7126 test ! -s conftest.err 7127 } && test -s conftest$ac_exeext && 7128 $as_test_x conftest$ac_exeext; then 7129 tcl_cv_cc_visibility_hidden=yes 7130else 7131 echo "$as_me: failed program was:" >&5 7132sed 's/^/| /' conftest.$ac_ext >&5 7133 7134 tcl_cv_cc_visibility_hidden=no 7135fi 7136 7137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7138 conftest$ac_exeext conftest.$ac_ext 7139 CFLAGS=$hold_cflags 7140fi 7141{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7142echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7143 if test $tcl_cv_cc_visibility_hidden = yes; then 7144 7145 7146cat >>confdefs.h <<\_ACEOF 7147#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7148_ACEOF 7149 7150 7151fi 7152 7153 7154 # Step 0.d: Disable -rpath support? 7155 7156 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7157echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7158 # Check whether --enable-rpath was given. 7159if test "${enable_rpath+set}" = set; then 7160 enableval=$enable_rpath; doRpath=$enableval 7161else 7162 doRpath=yes 7163fi 7164 7165 { echo "$as_me:$LINENO: result: $doRpath" >&5 7166echo "${ECHO_T}$doRpath" >&6; } 7167 7168 # TEA specific: Cross-compiling options for Windows/CE builds? 7169 7170 if test "${TEA_PLATFORM}" = windows; then 7171 7172 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7173echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7174 # Check whether --enable-wince was given. 7175if test "${enable_wince+set}" = set; then 7176 enableval=$enable_wince; doWince=$enableval 7177else 7178 doWince=no 7179fi 7180 7181 { echo "$as_me:$LINENO: result: $doWince" >&5 7182echo "${ECHO_T}$doWince" >&6; } 7183 7184fi 7185 7186 7187 # Set the variable "system" to hold the name and version number 7188 # for the system. 7189 7190 7191 { echo "$as_me:$LINENO: checking system version" >&5 7192echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7193if test "${tcl_cv_sys_version+set}" = set; then 7194 echo $ECHO_N "(cached) $ECHO_C" >&6 7195else 7196 7197 # TEA specific: 7198 if test "${TEA_PLATFORM}" = "windows" ; then 7199 tcl_cv_sys_version=windows 7200 else 7201 tcl_cv_sys_version=`uname -s`-`uname -r` 7202 if test "$?" -ne 0 ; then 7203 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7204echo "$as_me: WARNING: can't find uname command" >&2;} 7205 tcl_cv_sys_version=unknown 7206 else 7207 if test "`uname -s`" = "AIX" ; then 7208 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7209 fi 7210 fi 7211 fi 7212 7213fi 7214{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7215echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7216 system=$tcl_cv_sys_version 7217 7218 7219 # Require ranlib early so we can override it in special cases below. 7220 7221 7222 7223 # Set configuration options based on system name and version. 7224 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7225 # "windows" case and removed some core-only vars. 7226 7227 do64bit_ok=no 7228 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7229 SHLIB_LD_LIBS='${LIBS}' 7230 # When ld needs options to work in 64-bit mode, put them in 7231 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7232 # is disabled by the user. [Bug 1016796] 7233 LDFLAGS_ARCH="" 7234 UNSHARED_LIB_SUFFIX="" 7235 # TEA specific: use PACKAGE_VERSION instead of VERSION 7236 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7237 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7238 TCL_LIB_VERSIONS_OK=ok 7239 CFLAGS_DEBUG=-g 7240 CFLAGS_OPTIMIZE=-O 7241 if test "$GCC" = yes; then 7242 7243 # TEA specific: 7244 CFLAGS_OPTIMIZE=-O2 7245 CFLAGS_WARNING="-Wall" 7246 7247else 7248 CFLAGS_WARNING="" 7249fi 7250 7251 # Extract the first word of "ar", so it can be a program name with args. 7252set dummy ar; ac_word=$2 7253{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7255if test "${ac_cv_prog_AR+set}" = set; then 7256 echo $ECHO_N "(cached) $ECHO_C" >&6 7257else 7258 if test -n "$AR"; then 7259 ac_cv_prog_AR="$AR" # Let the user override the test. 7260else 7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7262for as_dir in $PATH 7263do 7264 IFS=$as_save_IFS 7265 test -z "$as_dir" && as_dir=. 7266 for ac_exec_ext in '' $ac_executable_extensions; do 7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7268 ac_cv_prog_AR="ar" 7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7270 break 2 7271 fi 7272done 7273done 7274IFS=$as_save_IFS 7275 7276fi 7277fi 7278AR=$ac_cv_prog_AR 7279if test -n "$AR"; then 7280 { echo "$as_me:$LINENO: result: $AR" >&5 7281echo "${ECHO_T}$AR" >&6; } 7282else 7283 { echo "$as_me:$LINENO: result: no" >&5 7284echo "${ECHO_T}no" >&6; } 7285fi 7286 7287 7288 STLIB_LD='${AR} cr' 7289 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7290 if test "x$SHLIB_VERSION" = x; then 7291 SHLIB_VERSION="1.0" 7292fi 7293 7294 case $system in 7295 # TEA specific: 7296 windows) 7297 # This is a 2-stage check to make sure we have the 64-bit SDK 7298 # We have to know where the SDK is installed. 7299 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7300 # MACHINE is IX86 for LINK, but this is used by the manifest, 7301 # which requires x86|amd64|ia64. 7302 MACHINE="X86" 7303 if test "$do64bit" != "no" ; then 7304 if test "x${MSSDK}x" = "xx" ; then 7305 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7306 fi 7307 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7308 PATH64="" 7309 case "$do64bit" in 7310 amd64|x64|yes) 7311 MACHINE="AMD64" ; # default to AMD64 64-bit build 7312 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7313 ;; 7314 ia64) 7315 MACHINE="IA64" 7316 PATH64="${MSSDK}/Bin/Win64" 7317 ;; 7318 esac 7319 if test ! -d "${PATH64}" ; then 7320 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7321echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7322 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7323echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7324 do64bit="no" 7325 else 7326 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7327echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7328 do64bit_ok="yes" 7329 fi 7330 fi 7331 7332 if test "$doWince" != "no" ; then 7333 if test "$do64bit" != "no" ; then 7334 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7335echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7336 { (exit 1); exit 1; }; } 7337 fi 7338 if test "$GCC" = "yes" ; then 7339 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7340echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7341 { (exit 1); exit 1; }; } 7342 fi 7343 7344 # First, look for one uninstalled. 7345 # the alternative search directory is invoked by --with-celib 7346 7347 if test x"${no_celib}" = x ; then 7348 # we reset no_celib in case something fails here 7349 no_celib=true 7350 7351# Check whether --with-celib was given. 7352if test "${with_celib+set}" = set; then 7353 withval=$with_celib; with_celibconfig=${withval} 7354fi 7355 7356 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7357echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7358 if test "${ac_cv_c_celibconfig+set}" = set; then 7359 echo $ECHO_N "(cached) $ECHO_C" >&6 7360else 7361 7362 # First check to see if --with-celibconfig was specified. 7363 if test x"${with_celibconfig}" != x ; then 7364 if test -d "${with_celibconfig}/inc" ; then 7365 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7366 else 7367 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7368echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7369 { (exit 1); exit 1; }; } 7370 fi 7371 fi 7372 7373 # then check for a celib library 7374 if test x"${ac_cv_c_celibconfig}" = x ; then 7375 for i in \ 7376 ../celib-palm-3.0 \ 7377 ../celib \ 7378 ../../celib-palm-3.0 \ 7379 ../../celib \ 7380 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7381 ${srcdir}/../celib-palm-3.0 \ 7382 ${srcdir}/../celib \ 7383 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7384 ; do 7385 if test -d "$i/inc" ; then 7386 ac_cv_c_celibconfig=`(cd $i; pwd)` 7387 break 7388 fi 7389 done 7390 fi 7391 7392fi 7393 7394 if test x"${ac_cv_c_celibconfig}" = x ; then 7395 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7396echo "$as_me: error: Cannot find celib support library directory" >&2;} 7397 { (exit 1); exit 1; }; } 7398 else 7399 no_celib= 7400 CELIB_DIR=${ac_cv_c_celibconfig} 7401 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7402 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7403echo "${ECHO_T}found $CELIB_DIR" >&6; } 7404 fi 7405 fi 7406 7407 # Set defaults for common evc4/PPC2003 setup 7408 # Currently Tcl requires 300+, possibly 420+ for sockets 7409 CEVERSION=420; # could be 211 300 301 400 420 ... 7410 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7411 ARCH=ARM; # could be ARM MIPS X86EM ... 7412 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7413 if test "$doWince" != "yes"; then 7414 # If !yes then the user specified something 7415 # Reset ARCH to allow user to skip specifying it 7416 ARCH= 7417 eval `echo $doWince | awk -F, '{ \ 7418 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7419 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7420 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7421 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7422 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7423 }'` 7424 if test "x${ARCH}" = "x" ; then 7425 ARCH=$TARGETCPU; 7426 fi 7427 fi 7428 OSVERSION=WCE$CEVERSION; 7429 if test "x${WCEROOT}" = "x" ; then 7430 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7431 if test ! -d "${WCEROOT}" ; then 7432 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7433 fi 7434 fi 7435 if test "x${SDKROOT}" = "x" ; then 7436 SDKROOT="C:/Program Files/Windows CE Tools" 7437 if test ! -d "${SDKROOT}" ; then 7438 SDKROOT="C:/Windows CE Tools" 7439 fi 7440 fi 7441 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7442 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7443 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7444 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7445 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7446echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7447 { (exit 1); exit 1; }; } 7448 doWince="no" 7449 else 7450 # We could PATH_NOSPACE these, but that's not important, 7451 # as long as we quote them when used. 7452 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7453 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7454 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7455 fi 7456 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7457 fi 7458 fi 7459 7460 if test "$GCC" != "yes" ; then 7461 if test "${SHARED_BUILD}" = "0" ; then 7462 runtime=-MT 7463 else 7464 runtime=-MD 7465 fi 7466 7467 if test "$do64bit" != "no" ; then 7468 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7469 CC="\"${PATH64}/cl.exe\"" 7470 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7471 RC="\"${MSSDK}/bin/rc.exe\"" 7472 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7473 LINKBIN="\"${PATH64}/link.exe\"" 7474 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7475 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7476 # Avoid 'unresolved external symbol __security_cookie' 7477 # errors, c.f. http://support.microsoft.com/?id=894573 7478 7479 vars="bufferoverflowU.lib" 7480 for i in $vars; do 7481 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7482 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7483 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7484 fi 7485 PKG_LIBS="$PKG_LIBS $i" 7486 done 7487 7488 7489 elif test "$doWince" != "no" ; then 7490 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7491 if test "${TARGETCPU}" = "X86"; then 7492 CC="\"${CEBINROOT}/cl.exe\"" 7493 else 7494 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7495 fi 7496 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7497 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7498 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7499 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7500 if test "${SHARED_BUILD}" = "1" ; then 7501 # Static CE builds require static celib as well 7502 defs="${defs} _DLL" 7503 fi 7504 for i in $defs ; do 7505 7506cat >>confdefs.h <<_ACEOF 7507#define $i 1 7508_ACEOF 7509 7510 done 7511 7512cat >>confdefs.h <<_ACEOF 7513#define _WIN32_WCE $CEVERSION 7514_ACEOF 7515 7516 7517cat >>confdefs.h <<_ACEOF 7518#define UNDER_CE $CEVERSION 7519_ACEOF 7520 7521 CFLAGS_DEBUG="-nologo -Zi -Od" 7522 CFLAGS_OPTIMIZE="-nologo -Ox" 7523 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7524 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7525 LINKBIN="\"${CEBINROOT}/link.exe\"" 7526 7527 else 7528 RC="rc" 7529 lflags="-nologo" 7530 LINKBIN="link" 7531 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7532 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7533 fi 7534 fi 7535 7536 if test "$GCC" = "yes"; then 7537 # mingw gcc mode 7538 RC="windres" 7539 CFLAGS_DEBUG="-g" 7540 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7541 SHLIB_LD="$CC -shared" 7542 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7543 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7544 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7545 else 7546 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7547 # link -lib only works when -lib is the first arg 7548 STLIB_LD="${LINKBIN} -lib ${lflags}" 7549 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7550 PATHTYPE=-w 7551 # For information on what debugtype is most useful, see: 7552 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7553 # and also 7554 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7555 # This essentially turns it all on. 7556 LDFLAGS_DEBUG="-debug -debugtype:cv" 7557 LDFLAGS_OPTIMIZE="-release" 7558 if test "$doWince" != "no" ; then 7559 LDFLAGS_CONSOLE="-link ${lflags}" 7560 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7561 else 7562 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7563 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7564 fi 7565 fi 7566 7567 SHLIB_SUFFIX=".dll" 7568 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7569 7570 TCL_LIB_VERSIONS_OK=nodots 7571 ;; 7572 AIX-*) 7573 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7574 7575 # AIX requires the _r compiler when gcc isn't being used 7576 case "${CC}" in 7577 *_r|*_r\ *) 7578 # ok ... 7579 ;; 7580 *) 7581 # Make sure only first arg gets _r 7582 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7583 ;; 7584 esac 7585 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7586echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7587 7588fi 7589 7590 LIBS="$LIBS -lc" 7591 SHLIB_CFLAGS="" 7592 SHLIB_SUFFIX=".so" 7593 7594 LD_LIBRARY_PATH_VAR="LIBPATH" 7595 7596 # Check to enable 64-bit flags for compiler/linker 7597 if test "$do64bit" = yes; then 7598 7599 if test "$GCC" = yes; then 7600 7601 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7602echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7603 7604else 7605 7606 do64bit_ok=yes 7607 CFLAGS="$CFLAGS -q64" 7608 LDFLAGS_ARCH="-q64" 7609 RANLIB="${RANLIB} -X64" 7610 AR="${AR} -X64" 7611 SHLIB_LD_FLAGS="-b64" 7612 7613fi 7614 7615 7616fi 7617 7618 7619 if test "`uname -m`" = ia64; then 7620 7621 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7622 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7623 if test "$GCC" = yes; then 7624 7625 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7626 7627else 7628 7629 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7630 7631fi 7632 7633 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7634 7635else 7636 7637 if test "$GCC" = yes; then 7638 7639 SHLIB_LD='${CC} -shared -Wl,-bexpall' 7640 7641else 7642 7643 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 7644 LDFLAGS="$LDFLAGS -brtl" 7645 7646fi 7647 7648 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7649 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7650 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7651 7652fi 7653 7654 ;; 7655 BeOS*) 7656 SHLIB_CFLAGS="-fPIC" 7657 SHLIB_LD='${CC} -nostart' 7658 SHLIB_SUFFIX=".so" 7659 7660 #----------------------------------------------------------- 7661 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7662 # -lsocket, even if the network functions are in -lnet which 7663 # is always linked to, for compatibility. 7664 #----------------------------------------------------------- 7665 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 7666echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 7667if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 7668 echo $ECHO_N "(cached) $ECHO_C" >&6 7669else 7670 ac_check_lib_save_LIBS=$LIBS 7671LIBS="-lbind $LIBS" 7672cat >conftest.$ac_ext <<_ACEOF 7673/* confdefs.h. */ 7674_ACEOF 7675cat confdefs.h >>conftest.$ac_ext 7676cat >>conftest.$ac_ext <<_ACEOF 7677/* end confdefs.h. */ 7678 7679/* Override any GCC internal prototype to avoid an error. 7680 Use char because int might match the return type of a GCC 7681 builtin and then its argument prototype would still apply. */ 7682#ifdef __cplusplus 7683extern "C" 7684#endif 7685char inet_ntoa (); 7686int 7687main () 7688{ 7689return inet_ntoa (); 7690 ; 7691 return 0; 7692} 7693_ACEOF 7694rm -f conftest.$ac_objext conftest$ac_exeext 7695if { (ac_try="$ac_link" 7696case "(($ac_try" in 7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7698 *) ac_try_echo=$ac_try;; 7699esac 7700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7701 (eval "$ac_link") 2>conftest.er1 7702 ac_status=$? 7703 grep -v '^ *+' conftest.er1 >conftest.err 7704 rm -f conftest.er1 7705 cat conftest.err >&5 7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7707 (exit $ac_status); } && { 7708 test -z "$ac_c_werror_flag" || 7709 test ! -s conftest.err 7710 } && test -s conftest$ac_exeext && 7711 $as_test_x conftest$ac_exeext; then 7712 ac_cv_lib_bind_inet_ntoa=yes 7713else 7714 echo "$as_me: failed program was:" >&5 7715sed 's/^/| /' conftest.$ac_ext >&5 7716 7717 ac_cv_lib_bind_inet_ntoa=no 7718fi 7719 7720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7721 conftest$ac_exeext conftest.$ac_ext 7722LIBS=$ac_check_lib_save_LIBS 7723fi 7724{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 7725echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 7726if test $ac_cv_lib_bind_inet_ntoa = yes; then 7727 LIBS="$LIBS -lbind -lsocket" 7728fi 7729 7730 ;; 7731 BSD/OS-4.*) 7732 SHLIB_CFLAGS="-export-dynamic -fPIC" 7733 SHLIB_LD='${CC} -shared' 7734 SHLIB_SUFFIX=".so" 7735 LDFLAGS="$LDFLAGS -export-dynamic" 7736 CC_SEARCH_FLAGS="" 7737 LD_SEARCH_FLAGS="" 7738 ;; 7739 CYGWIN_*) 7740 SHLIB_CFLAGS="" 7741 SHLIB_LD='${CC} -shared' 7742 SHLIB_SUFFIX=".dll" 7743 EXE_SUFFIX=".exe" 7744 CC_SEARCH_FLAGS="" 7745 LD_SEARCH_FLAGS="" 7746 ;; 7747 Haiku*) 7748 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7749 SHLIB_CFLAGS="-fPIC" 7750 SHLIB_SUFFIX=".so" 7751 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 7752 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 7753echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 7754if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 7755 echo $ECHO_N "(cached) $ECHO_C" >&6 7756else 7757 ac_check_lib_save_LIBS=$LIBS 7758LIBS="-lnetwork $LIBS" 7759cat >conftest.$ac_ext <<_ACEOF 7760/* confdefs.h. */ 7761_ACEOF 7762cat confdefs.h >>conftest.$ac_ext 7763cat >>conftest.$ac_ext <<_ACEOF 7764/* end confdefs.h. */ 7765 7766/* Override any GCC internal prototype to avoid an error. 7767 Use char because int might match the return type of a GCC 7768 builtin and then its argument prototype would still apply. */ 7769#ifdef __cplusplus 7770extern "C" 7771#endif 7772char inet_ntoa (); 7773int 7774main () 7775{ 7776return inet_ntoa (); 7777 ; 7778 return 0; 7779} 7780_ACEOF 7781rm -f conftest.$ac_objext conftest$ac_exeext 7782if { (ac_try="$ac_link" 7783case "(($ac_try" in 7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7785 *) ac_try_echo=$ac_try;; 7786esac 7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7788 (eval "$ac_link") 2>conftest.er1 7789 ac_status=$? 7790 grep -v '^ *+' conftest.er1 >conftest.err 7791 rm -f conftest.er1 7792 cat conftest.err >&5 7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7794 (exit $ac_status); } && { 7795 test -z "$ac_c_werror_flag" || 7796 test ! -s conftest.err 7797 } && test -s conftest$ac_exeext && 7798 $as_test_x conftest$ac_exeext; then 7799 ac_cv_lib_network_inet_ntoa=yes 7800else 7801 echo "$as_me: failed program was:" >&5 7802sed 's/^/| /' conftest.$ac_ext >&5 7803 7804 ac_cv_lib_network_inet_ntoa=no 7805fi 7806 7807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7808 conftest$ac_exeext conftest.$ac_ext 7809LIBS=$ac_check_lib_save_LIBS 7810fi 7811{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 7812echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 7813if test $ac_cv_lib_network_inet_ntoa = yes; then 7814 LIBS="$LIBS -lnetwork" 7815fi 7816 7817 ;; 7818 HP-UX-*.11.*) 7819 # Use updated header definitions where possible 7820 7821cat >>confdefs.h <<\_ACEOF 7822#define _XOPEN_SOURCE_EXTENDED 1 7823_ACEOF 7824 7825 # TEA specific: Needed by Tcl, but not most extensions 7826 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 7827 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 7828 7829 if test "`uname -m`" = ia64; then 7830 7831 SHLIB_SUFFIX=".so" 7832 # Use newer C++ library for C++ extensions 7833 #if test "$GCC" != "yes" ; then 7834 # CPPFLAGS="-AA" 7835 #fi 7836 7837else 7838 7839 SHLIB_SUFFIX=".sl" 7840 7841fi 7842 7843 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7844echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 7845if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7846 echo $ECHO_N "(cached) $ECHO_C" >&6 7847else 7848 ac_check_lib_save_LIBS=$LIBS 7849LIBS="-ldld $LIBS" 7850cat >conftest.$ac_ext <<_ACEOF 7851/* confdefs.h. */ 7852_ACEOF 7853cat confdefs.h >>conftest.$ac_ext 7854cat >>conftest.$ac_ext <<_ACEOF 7855/* end confdefs.h. */ 7856 7857/* Override any GCC internal prototype to avoid an error. 7858 Use char because int might match the return type of a GCC 7859 builtin and then its argument prototype would still apply. */ 7860#ifdef __cplusplus 7861extern "C" 7862#endif 7863char shl_load (); 7864int 7865main () 7866{ 7867return shl_load (); 7868 ; 7869 return 0; 7870} 7871_ACEOF 7872rm -f conftest.$ac_objext conftest$ac_exeext 7873if { (ac_try="$ac_link" 7874case "(($ac_try" in 7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7876 *) ac_try_echo=$ac_try;; 7877esac 7878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7879 (eval "$ac_link") 2>conftest.er1 7880 ac_status=$? 7881 grep -v '^ *+' conftest.er1 >conftest.err 7882 rm -f conftest.er1 7883 cat conftest.err >&5 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); } && { 7886 test -z "$ac_c_werror_flag" || 7887 test ! -s conftest.err 7888 } && test -s conftest$ac_exeext && 7889 $as_test_x conftest$ac_exeext; then 7890 ac_cv_lib_dld_shl_load=yes 7891else 7892 echo "$as_me: failed program was:" >&5 7893sed 's/^/| /' conftest.$ac_ext >&5 7894 7895 ac_cv_lib_dld_shl_load=no 7896fi 7897 7898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7899 conftest$ac_exeext conftest.$ac_ext 7900LIBS=$ac_check_lib_save_LIBS 7901fi 7902{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7903echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 7904if test $ac_cv_lib_dld_shl_load = yes; then 7905 tcl_ok=yes 7906else 7907 tcl_ok=no 7908fi 7909 7910 if test "$tcl_ok" = yes; then 7911 7912 LDFLAGS="$LDFLAGS -E" 7913 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 7914 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 7915 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 7916 7917fi 7918 7919 if test "$GCC" = yes; then 7920 7921 SHLIB_LD='${CC} -shared' 7922 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7923 7924else 7925 7926 CFLAGS="$CFLAGS -z" 7927 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 7928 #CFLAGS="$CFLAGS +DAportable" 7929 SHLIB_CFLAGS="+z" 7930 SHLIB_LD="ld -b" 7931 7932fi 7933 7934 7935 # Check to enable 64-bit flags for compiler/linker 7936 if test "$do64bit" = "yes"; then 7937 7938 if test "$GCC" = yes; then 7939 7940 case `${CC} -dumpmachine` in 7941 hppa64*) 7942 # 64-bit gcc in use. Fix flags for GNU ld. 7943 do64bit_ok=yes 7944 SHLIB_LD='${CC} -shared' 7945 if test $doRpath = yes; then 7946 7947 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7948fi 7949 7950 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7951 ;; 7952 *) 7953 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7954echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7955 ;; 7956 esac 7957 7958else 7959 7960 do64bit_ok=yes 7961 CFLAGS="$CFLAGS +DD64" 7962 LDFLAGS_ARCH="+DD64" 7963 7964fi 7965 7966 7967fi 7968 ;; 7969 IRIX-6.*) 7970 SHLIB_CFLAGS="" 7971 SHLIB_LD="ld -n32 -shared -rdata_shared" 7972 SHLIB_SUFFIX=".so" 7973 if test $doRpath = yes; then 7974 7975 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7976 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7977fi 7978 7979 if test "$GCC" = yes; then 7980 7981 CFLAGS="$CFLAGS -mabi=n32" 7982 LDFLAGS="$LDFLAGS -mabi=n32" 7983 7984else 7985 7986 case $system in 7987 IRIX-6.3) 7988 # Use to build 6.2 compatible binaries on 6.3. 7989 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 7990 ;; 7991 *) 7992 CFLAGS="$CFLAGS -n32" 7993 ;; 7994 esac 7995 LDFLAGS="$LDFLAGS -n32" 7996 7997fi 7998 7999 ;; 8000 IRIX64-6.*) 8001 SHLIB_CFLAGS="" 8002 SHLIB_LD="ld -n32 -shared -rdata_shared" 8003 SHLIB_SUFFIX=".so" 8004 if test $doRpath = yes; then 8005 8006 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8007 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8008fi 8009 8010 8011 # Check to enable 64-bit flags for compiler/linker 8012 8013 if test "$do64bit" = yes; then 8014 8015 if test "$GCC" = yes; then 8016 8017 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8018echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8019 8020else 8021 8022 do64bit_ok=yes 8023 SHLIB_LD="ld -64 -shared -rdata_shared" 8024 CFLAGS="$CFLAGS -64" 8025 LDFLAGS_ARCH="-64" 8026 8027fi 8028 8029 8030fi 8031 8032 ;; 8033 Linux*) 8034 SHLIB_CFLAGS="-fPIC" 8035 SHLIB_SUFFIX=".so" 8036 8037 # TEA specific: 8038 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8039 8040 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8041 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8042 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8043 if test $doRpath = yes; then 8044 8045 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8046fi 8047 8048 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8049 if test "`uname -m`" = "alpha"; then 8050 CFLAGS="$CFLAGS -mieee" 8051fi 8052 8053 if test $do64bit = yes; then 8054 8055 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8056echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8057if test "${tcl_cv_cc_m64+set}" = set; then 8058 echo $ECHO_N "(cached) $ECHO_C" >&6 8059else 8060 8061 hold_cflags=$CFLAGS 8062 CFLAGS="$CFLAGS -m64" 8063 cat >conftest.$ac_ext <<_ACEOF 8064/* confdefs.h. */ 8065_ACEOF 8066cat confdefs.h >>conftest.$ac_ext 8067cat >>conftest.$ac_ext <<_ACEOF 8068/* end confdefs.h. */ 8069 8070int 8071main () 8072{ 8073 8074 ; 8075 return 0; 8076} 8077_ACEOF 8078rm -f conftest.$ac_objext conftest$ac_exeext 8079if { (ac_try="$ac_link" 8080case "(($ac_try" in 8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8082 *) ac_try_echo=$ac_try;; 8083esac 8084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8085 (eval "$ac_link") 2>conftest.er1 8086 ac_status=$? 8087 grep -v '^ *+' conftest.er1 >conftest.err 8088 rm -f conftest.er1 8089 cat conftest.err >&5 8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8091 (exit $ac_status); } && { 8092 test -z "$ac_c_werror_flag" || 8093 test ! -s conftest.err 8094 } && test -s conftest$ac_exeext && 8095 $as_test_x conftest$ac_exeext; then 8096 tcl_cv_cc_m64=yes 8097else 8098 echo "$as_me: failed program was:" >&5 8099sed 's/^/| /' conftest.$ac_ext >&5 8100 8101 tcl_cv_cc_m64=no 8102fi 8103 8104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8105 conftest$ac_exeext conftest.$ac_ext 8106 CFLAGS=$hold_cflags 8107fi 8108{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8109echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8110 if test $tcl_cv_cc_m64 = yes; then 8111 8112 CFLAGS="$CFLAGS -m64" 8113 do64bit_ok=yes 8114 8115fi 8116 8117 8118fi 8119 8120 8121 # The combo of gcc + glibc has a bug related to inlining of 8122 # functions like strtod(). The -fno-builtin flag should address 8123 # this problem but it does not work. The -fno-inline flag is kind 8124 # of overkill but it works. Disable inlining only when one of the 8125 # files in compat/*.c is being linked in. 8126 8127 if test x"${USE_COMPAT}" != x; then 8128 CFLAGS="$CFLAGS -fno-inline" 8129fi 8130 8131 8132 ;; 8133 GNU*) 8134 SHLIB_CFLAGS="-fPIC" 8135 SHLIB_SUFFIX=".so" 8136 8137 SHLIB_LD='${CC} -shared' 8138 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8139 CC_SEARCH_FLAGS="" 8140 LD_SEARCH_FLAGS="" 8141 if test "`uname -m`" = "alpha"; then 8142 CFLAGS="$CFLAGS -mieee" 8143fi 8144 8145 ;; 8146 Lynx*) 8147 SHLIB_CFLAGS="-fPIC" 8148 SHLIB_SUFFIX=".so" 8149 CFLAGS_OPTIMIZE=-02 8150 SHLIB_LD='${CC} -shared' 8151 LD_FLAGS="-Wl,--export-dynamic" 8152 if test $doRpath = yes; then 8153 8154 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8155 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8156fi 8157 8158 ;; 8159 OpenBSD-*) 8160 SHLIB_CFLAGS="-fPIC" 8161 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8162 SHLIB_SUFFIX=".so" 8163 if test $doRpath = yes; then 8164 8165 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8166fi 8167 8168 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8169 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8170 { echo "$as_me:$LINENO: checking for ELF" >&5 8171echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8172if test "${tcl_cv_ld_elf+set}" = set; then 8173 echo $ECHO_N "(cached) $ECHO_C" >&6 8174else 8175 8176 cat >conftest.$ac_ext <<_ACEOF 8177/* confdefs.h. */ 8178_ACEOF 8179cat confdefs.h >>conftest.$ac_ext 8180cat >>conftest.$ac_ext <<_ACEOF 8181/* end confdefs.h. */ 8182 8183#ifdef __ELF__ 8184 yes 8185#endif 8186 8187_ACEOF 8188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8189 $EGREP "yes" >/dev/null 2>&1; then 8190 tcl_cv_ld_elf=yes 8191else 8192 tcl_cv_ld_elf=no 8193fi 8194rm -f -r conftest* 8195 8196fi 8197{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8198echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8199 if test $tcl_cv_ld_elf = yes; then 8200 8201 LDFLAGS=-Wl,-export-dynamic 8202 8203else 8204 LDFLAGS="" 8205fi 8206 8207 if test "${TCL_THREADS}" = "1"; then 8208 8209 # OpenBSD builds and links with -pthread, never -lpthread. 8210 LIBS=`echo $LIBS | sed s/-lpthread//` 8211 CFLAGS="$CFLAGS -pthread" 8212 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8213 8214fi 8215 8216 # OpenBSD doesn't do version numbers with dots. 8217 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8218 TCL_LIB_VERSIONS_OK=nodots 8219 ;; 8220 NetBSD-*|FreeBSD-[3-4].*) 8221 # FreeBSD 3.* and greater have ELF. 8222 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8223 SHLIB_CFLAGS="-fPIC" 8224 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8225 SHLIB_SUFFIX=".so" 8226 LDFLAGS="$LDFLAGS -export-dynamic" 8227 if test $doRpath = yes; then 8228 8229 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8230fi 8231 8232 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8233 if test "${TCL_THREADS}" = "1"; then 8234 8235 # The -pthread needs to go in the CFLAGS, not LIBS 8236 LIBS=`echo $LIBS | sed s/-pthread//` 8237 CFLAGS="$CFLAGS -pthread" 8238 LDFLAGS="$LDFLAGS -pthread" 8239 8240fi 8241 8242 case $system in 8243 FreeBSD-3.*) 8244 # FreeBSD-3 doesn't handle version numbers with dots. 8245 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8246 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8247 TCL_LIB_VERSIONS_OK=nodots 8248 ;; 8249 esac 8250 ;; 8251 FreeBSD-*) 8252 # This configuration from FreeBSD Ports. 8253 SHLIB_CFLAGS="-fPIC" 8254 SHLIB_LD="${CC} -shared" 8255 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8256 SHLIB_SUFFIX=".so" 8257 LDFLAGS="" 8258 if test $doRpath = yes; then 8259 8260 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8261 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8262fi 8263 8264 if test "${TCL_THREADS}" = "1"; then 8265 8266 # The -pthread needs to go in the LDFLAGS, not LIBS 8267 LIBS=`echo $LIBS | sed s/-pthread//` 8268 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8269 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8270fi 8271 8272 # Version numbers are dot-stripped by system policy. 8273 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8274 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8275 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8276 TCL_LIB_VERSIONS_OK=nodots 8277 ;; 8278 Darwin-*) 8279 CFLAGS_OPTIMIZE="-Os" 8280 SHLIB_CFLAGS="-fno-common" 8281 # To avoid discrepancies between what headers configure sees during 8282 # preprocessing tests and compiling tests, move any -isysroot and 8283 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8284 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8285 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8286 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8287 CFLAGS="`echo " ${CFLAGS}" | \ 8288 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8289 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8290 if test $do64bit = yes; then 8291 8292 case `arch` in 8293 ppc) 8294 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8295echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8296if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8297 echo $ECHO_N "(cached) $ECHO_C" >&6 8298else 8299 8300 hold_cflags=$CFLAGS 8301 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8302 cat >conftest.$ac_ext <<_ACEOF 8303/* confdefs.h. */ 8304_ACEOF 8305cat confdefs.h >>conftest.$ac_ext 8306cat >>conftest.$ac_ext <<_ACEOF 8307/* end confdefs.h. */ 8308 8309int 8310main () 8311{ 8312 8313 ; 8314 return 0; 8315} 8316_ACEOF 8317rm -f conftest.$ac_objext conftest$ac_exeext 8318if { (ac_try="$ac_link" 8319case "(($ac_try" in 8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8321 *) ac_try_echo=$ac_try;; 8322esac 8323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8324 (eval "$ac_link") 2>conftest.er1 8325 ac_status=$? 8326 grep -v '^ *+' conftest.er1 >conftest.err 8327 rm -f conftest.er1 8328 cat conftest.err >&5 8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8330 (exit $ac_status); } && { 8331 test -z "$ac_c_werror_flag" || 8332 test ! -s conftest.err 8333 } && test -s conftest$ac_exeext && 8334 $as_test_x conftest$ac_exeext; then 8335 tcl_cv_cc_arch_ppc64=yes 8336else 8337 echo "$as_me: failed program was:" >&5 8338sed 's/^/| /' conftest.$ac_ext >&5 8339 8340 tcl_cv_cc_arch_ppc64=no 8341fi 8342 8343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8344 conftest$ac_exeext conftest.$ac_ext 8345 CFLAGS=$hold_cflags 8346fi 8347{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8348echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8349 if test $tcl_cv_cc_arch_ppc64 = yes; then 8350 8351 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8352 do64bit_ok=yes 8353 8354fi 8355;; 8356 i386) 8357 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8358echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8359if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8360 echo $ECHO_N "(cached) $ECHO_C" >&6 8361else 8362 8363 hold_cflags=$CFLAGS 8364 CFLAGS="$CFLAGS -arch x86_64" 8365 cat >conftest.$ac_ext <<_ACEOF 8366/* confdefs.h. */ 8367_ACEOF 8368cat confdefs.h >>conftest.$ac_ext 8369cat >>conftest.$ac_ext <<_ACEOF 8370/* end confdefs.h. */ 8371 8372int 8373main () 8374{ 8375 8376 ; 8377 return 0; 8378} 8379_ACEOF 8380rm -f conftest.$ac_objext conftest$ac_exeext 8381if { (ac_try="$ac_link" 8382case "(($ac_try" in 8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8384 *) ac_try_echo=$ac_try;; 8385esac 8386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8387 (eval "$ac_link") 2>conftest.er1 8388 ac_status=$? 8389 grep -v '^ *+' conftest.er1 >conftest.err 8390 rm -f conftest.er1 8391 cat conftest.err >&5 8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8393 (exit $ac_status); } && { 8394 test -z "$ac_c_werror_flag" || 8395 test ! -s conftest.err 8396 } && test -s conftest$ac_exeext && 8397 $as_test_x conftest$ac_exeext; then 8398 tcl_cv_cc_arch_x86_64=yes 8399else 8400 echo "$as_me: failed program was:" >&5 8401sed 's/^/| /' conftest.$ac_ext >&5 8402 8403 tcl_cv_cc_arch_x86_64=no 8404fi 8405 8406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8407 conftest$ac_exeext conftest.$ac_ext 8408 CFLAGS=$hold_cflags 8409fi 8410{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8411echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8412 if test $tcl_cv_cc_arch_x86_64 = yes; then 8413 8414 CFLAGS="$CFLAGS -arch x86_64" 8415 do64bit_ok=yes 8416 8417fi 8418;; 8419 *) 8420 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8421echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8422 esac 8423 8424else 8425 8426 # Check for combined 32-bit and 64-bit fat build 8427 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8428 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8429 8430 fat_32_64=yes 8431fi 8432 8433 8434fi 8435 8436 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8437 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8438 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8439echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8440if test "${tcl_cv_ld_single_module+set}" = set; then 8441 echo $ECHO_N "(cached) $ECHO_C" >&6 8442else 8443 8444 hold_ldflags=$LDFLAGS 8445 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8446 cat >conftest.$ac_ext <<_ACEOF 8447/* confdefs.h. */ 8448_ACEOF 8449cat confdefs.h >>conftest.$ac_ext 8450cat >>conftest.$ac_ext <<_ACEOF 8451/* end confdefs.h. */ 8452 8453int 8454main () 8455{ 8456int i; 8457 ; 8458 return 0; 8459} 8460_ACEOF 8461rm -f conftest.$ac_objext conftest$ac_exeext 8462if { (ac_try="$ac_link" 8463case "(($ac_try" in 8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8465 *) ac_try_echo=$ac_try;; 8466esac 8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8468 (eval "$ac_link") 2>conftest.er1 8469 ac_status=$? 8470 grep -v '^ *+' conftest.er1 >conftest.err 8471 rm -f conftest.er1 8472 cat conftest.err >&5 8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8474 (exit $ac_status); } && { 8475 test -z "$ac_c_werror_flag" || 8476 test ! -s conftest.err 8477 } && test -s conftest$ac_exeext && 8478 $as_test_x conftest$ac_exeext; then 8479 tcl_cv_ld_single_module=yes 8480else 8481 echo "$as_me: failed program was:" >&5 8482sed 's/^/| /' conftest.$ac_ext >&5 8483 8484 tcl_cv_ld_single_module=no 8485fi 8486 8487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8488 conftest$ac_exeext conftest.$ac_ext 8489 LDFLAGS=$hold_ldflags 8490fi 8491{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8492echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8493 if test $tcl_cv_ld_single_module = yes; then 8494 8495 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8496 8497fi 8498 8499 # TEA specific: link shlib with current and compatiblity version flags 8500 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8501 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8502 SHLIB_SUFFIX=".dylib" 8503 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8504 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8505 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8506 8507 LDFLAGS="$LDFLAGS -prebind" 8508fi 8509 8510 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8511 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8512echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8513if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8514 echo $ECHO_N "(cached) $ECHO_C" >&6 8515else 8516 8517 hold_ldflags=$LDFLAGS 8518 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8519 cat >conftest.$ac_ext <<_ACEOF 8520/* confdefs.h. */ 8521_ACEOF 8522cat confdefs.h >>conftest.$ac_ext 8523cat >>conftest.$ac_ext <<_ACEOF 8524/* end confdefs.h. */ 8525 8526int 8527main () 8528{ 8529int i; 8530 ; 8531 return 0; 8532} 8533_ACEOF 8534rm -f conftest.$ac_objext conftest$ac_exeext 8535if { (ac_try="$ac_link" 8536case "(($ac_try" in 8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8538 *) ac_try_echo=$ac_try;; 8539esac 8540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8541 (eval "$ac_link") 2>conftest.er1 8542 ac_status=$? 8543 grep -v '^ *+' conftest.er1 >conftest.err 8544 rm -f conftest.er1 8545 cat conftest.err >&5 8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); } && { 8548 test -z "$ac_c_werror_flag" || 8549 test ! -s conftest.err 8550 } && test -s conftest$ac_exeext && 8551 $as_test_x conftest$ac_exeext; then 8552 tcl_cv_ld_search_paths_first=yes 8553else 8554 echo "$as_me: failed program was:" >&5 8555sed 's/^/| /' conftest.$ac_ext >&5 8556 8557 tcl_cv_ld_search_paths_first=no 8558fi 8559 8560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8561 conftest$ac_exeext conftest.$ac_ext 8562 LDFLAGS=$hold_ldflags 8563fi 8564{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8565echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8566 if test $tcl_cv_ld_search_paths_first = yes; then 8567 8568 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8569 8570fi 8571 8572 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8573 8574 8575cat >>confdefs.h <<\_ACEOF 8576#define MODULE_SCOPE __private_extern__ 8577_ACEOF 8578 8579 tcl_cv_cc_visibility_hidden=yes 8580 8581fi 8582 8583 CC_SEARCH_FLAGS="" 8584 LD_SEARCH_FLAGS="" 8585 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8586 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8587 # extensions, verify that 64-bit build is possible. 8588 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8589 8590 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8591 8592 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8593echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8594if test "${tcl_cv_lib_x11_64+set}" = set; then 8595 echo $ECHO_N "(cached) $ECHO_C" >&6 8596else 8597 8598 for v in CFLAGS CPPFLAGS LDFLAGS; do 8599 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8600 done 8601 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8602 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8603 cat >conftest.$ac_ext <<_ACEOF 8604/* confdefs.h. */ 8605_ACEOF 8606cat confdefs.h >>conftest.$ac_ext 8607cat >>conftest.$ac_ext <<_ACEOF 8608/* end confdefs.h. */ 8609#include <X11/Xlib.h> 8610int 8611main () 8612{ 8613XrmInitialize(); 8614 ; 8615 return 0; 8616} 8617_ACEOF 8618rm -f conftest.$ac_objext conftest$ac_exeext 8619if { (ac_try="$ac_link" 8620case "(($ac_try" in 8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8622 *) ac_try_echo=$ac_try;; 8623esac 8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8625 (eval "$ac_link") 2>conftest.er1 8626 ac_status=$? 8627 grep -v '^ *+' conftest.er1 >conftest.err 8628 rm -f conftest.er1 8629 cat conftest.err >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8631 (exit $ac_status); } && { 8632 test -z "$ac_c_werror_flag" || 8633 test ! -s conftest.err 8634 } && test -s conftest$ac_exeext && 8635 $as_test_x conftest$ac_exeext; then 8636 tcl_cv_lib_x11_64=yes 8637else 8638 echo "$as_me: failed program was:" >&5 8639sed 's/^/| /' conftest.$ac_ext >&5 8640 8641 tcl_cv_lib_x11_64=no 8642fi 8643 8644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8645 conftest$ac_exeext conftest.$ac_ext 8646 for v in CFLAGS CPPFLAGS LDFLAGS; do 8647 eval $v'="$hold_'$v'"' 8648 done 8649fi 8650{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 8651echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 8652 8653fi 8654 8655 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 8656 8657 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 8658echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 8659if test "${tcl_cv_lib_tk_64+set}" = set; then 8660 echo $ECHO_N "(cached) $ECHO_C" >&6 8661else 8662 8663 for v in CFLAGS CPPFLAGS LDFLAGS; do 8664 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8665 done 8666 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 8667 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 8668 cat >conftest.$ac_ext <<_ACEOF 8669/* confdefs.h. */ 8670_ACEOF 8671cat confdefs.h >>conftest.$ac_ext 8672cat >>conftest.$ac_ext <<_ACEOF 8673/* end confdefs.h. */ 8674#include <tk.h> 8675int 8676main () 8677{ 8678Tk_InitStubs(NULL, "", 0); 8679 ; 8680 return 0; 8681} 8682_ACEOF 8683rm -f conftest.$ac_objext conftest$ac_exeext 8684if { (ac_try="$ac_link" 8685case "(($ac_try" in 8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8687 *) ac_try_echo=$ac_try;; 8688esac 8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8690 (eval "$ac_link") 2>conftest.er1 8691 ac_status=$? 8692 grep -v '^ *+' conftest.er1 >conftest.err 8693 rm -f conftest.er1 8694 cat conftest.err >&5 8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8696 (exit $ac_status); } && { 8697 test -z "$ac_c_werror_flag" || 8698 test ! -s conftest.err 8699 } && test -s conftest$ac_exeext && 8700 $as_test_x conftest$ac_exeext; then 8701 tcl_cv_lib_tk_64=yes 8702else 8703 echo "$as_me: failed program was:" >&5 8704sed 's/^/| /' conftest.$ac_ext >&5 8705 8706 tcl_cv_lib_tk_64=no 8707fi 8708 8709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8710 conftest$ac_exeext conftest.$ac_ext 8711 for v in CFLAGS CPPFLAGS LDFLAGS; do 8712 eval $v'="$hold_'$v'"' 8713 done 8714fi 8715{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 8716echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 8717 8718fi 8719 8720 # remove 64-bit arch flags from CFLAGS et al. if configuration 8721 # does not support 64-bit. 8722 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 8723 8724 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 8725echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 8726 for v in CFLAGS CPPFLAGS LDFLAGS; do 8727 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 8728 done 8729fi 8730 8731 8732fi 8733 8734 ;; 8735 OS/390-*) 8736 CFLAGS_OPTIMIZE="" # Optimizer is buggy 8737 8738cat >>confdefs.h <<\_ACEOF 8739#define _OE_SOCKETS 1 8740_ACEOF 8741 8742 ;; 8743 OSF1-V*) 8744 # Digital OSF/1 8745 SHLIB_CFLAGS="" 8746 if test "$SHARED_BUILD" = 1; then 8747 8748 SHLIB_LD='ld -shared -expect_unresolved "*"' 8749 8750else 8751 8752 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 8753 8754fi 8755 8756 SHLIB_SUFFIX=".so" 8757 if test $doRpath = yes; then 8758 8759 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8760 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8761fi 8762 8763 if test "$GCC" = yes; then 8764 CFLAGS="$CFLAGS -mieee" 8765else 8766 8767 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 8768fi 8769 8770 # see pthread_intro(3) for pthread support on osf1, k.furukawa 8771 if test "${TCL_THREADS}" = 1; then 8772 8773 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 8774 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 8775 LIBS=`echo $LIBS | sed s/-lpthreads//` 8776 if test "$GCC" = yes; then 8777 8778 LIBS="$LIBS -lpthread -lmach -lexc" 8779 8780else 8781 8782 CFLAGS="$CFLAGS -pthread" 8783 LDFLAGS="$LDFLAGS -pthread" 8784 8785fi 8786 8787 8788fi 8789 8790 ;; 8791 QNX-6*) 8792 # QNX RTP 8793 # This may work for all QNX, but it was only reported for v6. 8794 SHLIB_CFLAGS="-fPIC" 8795 SHLIB_LD="ld -Bshareable -x" 8796 SHLIB_LD_LIBS="" 8797 SHLIB_SUFFIX=".so" 8798 CC_SEARCH_FLAGS="" 8799 LD_SEARCH_FLAGS="" 8800 ;; 8801 SCO_SV-3.2*) 8802 if test "$GCC" = yes; then 8803 8804 SHLIB_CFLAGS="-fPIC -melf" 8805 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 8806 8807else 8808 8809 SHLIB_CFLAGS="-Kpic -belf" 8810 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 8811 8812fi 8813 8814 SHLIB_LD="ld -G" 8815 SHLIB_LD_LIBS="" 8816 SHLIB_SUFFIX=".so" 8817 CC_SEARCH_FLAGS="" 8818 LD_SEARCH_FLAGS="" 8819 ;; 8820 SunOS-5.[0-6]) 8821 # Careful to not let 5.10+ fall into this case 8822 8823 # Note: If _REENTRANT isn't defined, then Solaris 8824 # won't define thread-safe library routines. 8825 8826 8827cat >>confdefs.h <<\_ACEOF 8828#define _REENTRANT 1 8829_ACEOF 8830 8831 8832cat >>confdefs.h <<\_ACEOF 8833#define _POSIX_PTHREAD_SEMANTICS 1 8834_ACEOF 8835 8836 8837 SHLIB_CFLAGS="-KPIC" 8838 SHLIB_SUFFIX=".so" 8839 if test "$GCC" = yes; then 8840 8841 SHLIB_LD='${CC} -shared' 8842 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8843 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8844 8845else 8846 8847 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8848 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8849 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8850 8851fi 8852 8853 ;; 8854 SunOS-5*) 8855 # Note: If _REENTRANT isn't defined, then Solaris 8856 # won't define thread-safe library routines. 8857 8858 8859cat >>confdefs.h <<\_ACEOF 8860#define _REENTRANT 1 8861_ACEOF 8862 8863 8864cat >>confdefs.h <<\_ACEOF 8865#define _POSIX_PTHREAD_SEMANTICS 1 8866_ACEOF 8867 8868 8869 SHLIB_CFLAGS="-KPIC" 8870 8871 # Check to enable 64-bit flags for compiler/linker 8872 if test "$do64bit" = yes; then 8873 8874 arch=`isainfo` 8875 if test "$arch" = "sparcv9 sparc"; then 8876 8877 if test "$GCC" = yes; then 8878 8879 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 8880 8881 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 8882echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 8883 8884else 8885 8886 do64bit_ok=yes 8887 CFLAGS="$CFLAGS -m64 -mcpu=v9" 8888 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 8889 SHLIB_CFLAGS="-fPIC" 8890 8891fi 8892 8893 8894else 8895 8896 do64bit_ok=yes 8897 if test "$do64bitVIS" = yes; then 8898 8899 CFLAGS="$CFLAGS -xarch=v9a" 8900 LDFLAGS_ARCH="-xarch=v9a" 8901 8902else 8903 8904 CFLAGS="$CFLAGS -xarch=v9" 8905 LDFLAGS_ARCH="-xarch=v9" 8906 8907fi 8908 8909 # Solaris 64 uses this as well 8910 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 8911 8912fi 8913 8914 8915else 8916 if test "$arch" = "amd64 i386"; then 8917 8918 if test "$GCC" = yes; then 8919 8920 case $system in 8921 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 8922 do64bit_ok=yes 8923 CFLAGS="$CFLAGS -m64" 8924 LDFLAGS="$LDFLAGS -m64";; 8925 *) 8926 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8927echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 8928 esac 8929 8930else 8931 8932 do64bit_ok=yes 8933 case $system in 8934 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 8935 CFLAGS="$CFLAGS -m64" 8936 LDFLAGS="$LDFLAGS -m64";; 8937 *) 8938 CFLAGS="$CFLAGS -xarch=amd64" 8939 LDFLAGS="$LDFLAGS -xarch=amd64";; 8940 esac 8941 8942fi 8943 8944 8945else 8946 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 8947echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 8948fi 8949 8950fi 8951 8952 8953fi 8954 8955 8956 SHLIB_SUFFIX=".so" 8957 if test "$GCC" = yes; then 8958 8959 SHLIB_LD='${CC} -shared' 8960 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8961 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8962 if test "$do64bit_ok" = yes; then 8963 8964 if test "$arch" = "sparcv9 sparc"; then 8965 8966 # We need to specify -static-libgcc or we need to 8967 # add the path to the sparv9 libgcc. 8968 # JH: static-libgcc is necessary for core Tcl, but may 8969 # not be necessary for extensions. 8970 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 8971 # for finding sparcv9 libgcc, get the regular libgcc 8972 # path, remove so name and append 'sparcv9' 8973 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 8974 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 8975 8976else 8977 if test "$arch" = "amd64 i386"; then 8978 8979 # JH: static-libgcc is necessary for core Tcl, but may 8980 # not be necessary for extensions. 8981 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 8982 8983fi 8984 8985fi 8986 8987 8988fi 8989 8990 8991else 8992 8993 case $system in 8994 SunOS-5.[1-9][0-9]*) 8995 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8996 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 8997 *) 8998 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 8999 esac 9000 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9001 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9002 9003fi 9004 9005 ;; 9006 esac 9007 9008 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9009 9010 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9011echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9012 9013fi 9014 9015 9016 9017 9018 # Add in the arch flags late to ensure it wasn't removed. 9019 # Not necessary in TEA, but this is aligned with core 9020 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9021 9022 # If we're running gcc, then change the C flags for compiling shared 9023 # libraries to the right flags for gcc, instead of those for the 9024 # standard manufacturer compiler. 9025 9026 if test "$GCC" = yes; then 9027 9028 case $system in 9029 AIX-*) ;; 9030 BSD/OS*) ;; 9031 CYGWIN_*) ;; 9032 IRIX*) ;; 9033 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9034 Darwin-*) ;; 9035 SCO_SV-3.2*) ;; 9036 windows) ;; 9037 *) SHLIB_CFLAGS="-fPIC" ;; 9038 esac 9039fi 9040 9041 9042 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9043 9044 9045cat >>confdefs.h <<\_ACEOF 9046#define MODULE_SCOPE extern 9047_ACEOF 9048 9049 9050cat >>confdefs.h <<\_ACEOF 9051#define NO_VIZ 9052_ACEOF 9053 9054 9055fi 9056 9057 9058 if test "$SHARED_LIB_SUFFIX" = ""; then 9059 9060 # TEA specific: use PACKAGE_VERSION instead of VERSION 9061 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9062fi 9063 9064 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9065 9066 # TEA specific: use PACKAGE_VERSION instead of VERSION 9067 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9068fi 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 # These must be called after we do the basic CFLAGS checks and 9084 # verify any possible 64-bit or similar switches are necessary 9085 9086 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9087echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9088 tcl_flags="" 9089 9090 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9091 echo $ECHO_N "(cached) $ECHO_C" >&6 9092else 9093 cat >conftest.$ac_ext <<_ACEOF 9094/* confdefs.h. */ 9095_ACEOF 9096cat confdefs.h >>conftest.$ac_ext 9097cat >>conftest.$ac_ext <<_ACEOF 9098/* end confdefs.h. */ 9099#include <stdlib.h> 9100int 9101main () 9102{ 9103char *p = (char *)strtoll; char *q = (char *)strtoull; 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108rm -f conftest.$ac_objext 9109if { (ac_try="$ac_compile" 9110case "(($ac_try" in 9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9112 *) ac_try_echo=$ac_try;; 9113esac 9114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9115 (eval "$ac_compile") 2>conftest.er1 9116 ac_status=$? 9117 grep -v '^ *+' conftest.er1 >conftest.err 9118 rm -f conftest.er1 9119 cat conftest.err >&5 9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9121 (exit $ac_status); } && { 9122 test -z "$ac_c_werror_flag" || 9123 test ! -s conftest.err 9124 } && test -s conftest.$ac_objext; then 9125 tcl_cv_flag__isoc99_source=no 9126else 9127 echo "$as_me: failed program was:" >&5 9128sed 's/^/| /' conftest.$ac_ext >&5 9129 9130 cat >conftest.$ac_ext <<_ACEOF 9131/* confdefs.h. */ 9132_ACEOF 9133cat confdefs.h >>conftest.$ac_ext 9134cat >>conftest.$ac_ext <<_ACEOF 9135/* end confdefs.h. */ 9136#define _ISOC99_SOURCE 1 9137#include <stdlib.h> 9138int 9139main () 9140{ 9141char *p = (char *)strtoll; char *q = (char *)strtoull; 9142 ; 9143 return 0; 9144} 9145_ACEOF 9146rm -f conftest.$ac_objext 9147if { (ac_try="$ac_compile" 9148case "(($ac_try" in 9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9150 *) ac_try_echo=$ac_try;; 9151esac 9152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9153 (eval "$ac_compile") 2>conftest.er1 9154 ac_status=$? 9155 grep -v '^ *+' conftest.er1 >conftest.err 9156 rm -f conftest.er1 9157 cat conftest.err >&5 9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9159 (exit $ac_status); } && { 9160 test -z "$ac_c_werror_flag" || 9161 test ! -s conftest.err 9162 } && test -s conftest.$ac_objext; then 9163 tcl_cv_flag__isoc99_source=yes 9164else 9165 echo "$as_me: failed program was:" >&5 9166sed 's/^/| /' conftest.$ac_ext >&5 9167 9168 tcl_cv_flag__isoc99_source=no 9169fi 9170 9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9172fi 9173 9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9175fi 9176 9177 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9178 9179cat >>confdefs.h <<\_ACEOF 9180#define _ISOC99_SOURCE 1 9181_ACEOF 9182 9183 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9184 fi 9185 9186 9187 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9188 echo $ECHO_N "(cached) $ECHO_C" >&6 9189else 9190 cat >conftest.$ac_ext <<_ACEOF 9191/* confdefs.h. */ 9192_ACEOF 9193cat confdefs.h >>conftest.$ac_ext 9194cat >>conftest.$ac_ext <<_ACEOF 9195/* end confdefs.h. */ 9196#include <sys/stat.h> 9197int 9198main () 9199{ 9200struct stat64 buf; int i = stat64("/", &buf); 9201 ; 9202 return 0; 9203} 9204_ACEOF 9205rm -f conftest.$ac_objext 9206if { (ac_try="$ac_compile" 9207case "(($ac_try" in 9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9209 *) ac_try_echo=$ac_try;; 9210esac 9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9212 (eval "$ac_compile") 2>conftest.er1 9213 ac_status=$? 9214 grep -v '^ *+' conftest.er1 >conftest.err 9215 rm -f conftest.er1 9216 cat conftest.err >&5 9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 (exit $ac_status); } && { 9219 test -z "$ac_c_werror_flag" || 9220 test ! -s conftest.err 9221 } && test -s conftest.$ac_objext; then 9222 tcl_cv_flag__largefile64_source=no 9223else 9224 echo "$as_me: failed program was:" >&5 9225sed 's/^/| /' conftest.$ac_ext >&5 9226 9227 cat >conftest.$ac_ext <<_ACEOF 9228/* confdefs.h. */ 9229_ACEOF 9230cat confdefs.h >>conftest.$ac_ext 9231cat >>conftest.$ac_ext <<_ACEOF 9232/* end confdefs.h. */ 9233#define _LARGEFILE64_SOURCE 1 9234#include <sys/stat.h> 9235int 9236main () 9237{ 9238struct stat64 buf; int i = stat64("/", &buf); 9239 ; 9240 return 0; 9241} 9242_ACEOF 9243rm -f conftest.$ac_objext 9244if { (ac_try="$ac_compile" 9245case "(($ac_try" in 9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9247 *) ac_try_echo=$ac_try;; 9248esac 9249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9250 (eval "$ac_compile") 2>conftest.er1 9251 ac_status=$? 9252 grep -v '^ *+' conftest.er1 >conftest.err 9253 rm -f conftest.er1 9254 cat conftest.err >&5 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); } && { 9257 test -z "$ac_c_werror_flag" || 9258 test ! -s conftest.err 9259 } && test -s conftest.$ac_objext; then 9260 tcl_cv_flag__largefile64_source=yes 9261else 9262 echo "$as_me: failed program was:" >&5 9263sed 's/^/| /' conftest.$ac_ext >&5 9264 9265 tcl_cv_flag__largefile64_source=no 9266fi 9267 9268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9269fi 9270 9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9272fi 9273 9274 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9275 9276cat >>confdefs.h <<\_ACEOF 9277#define _LARGEFILE64_SOURCE 1 9278_ACEOF 9279 9280 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9281 fi 9282 9283 9284 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9285 echo $ECHO_N "(cached) $ECHO_C" >&6 9286else 9287 cat >conftest.$ac_ext <<_ACEOF 9288/* confdefs.h. */ 9289_ACEOF 9290cat confdefs.h >>conftest.$ac_ext 9291cat >>conftest.$ac_ext <<_ACEOF 9292/* end confdefs.h. */ 9293#include <sys/stat.h> 9294int 9295main () 9296{ 9297char *p = (char *)open64; 9298 ; 9299 return 0; 9300} 9301_ACEOF 9302rm -f conftest.$ac_objext 9303if { (ac_try="$ac_compile" 9304case "(($ac_try" in 9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9306 *) ac_try_echo=$ac_try;; 9307esac 9308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9309 (eval "$ac_compile") 2>conftest.er1 9310 ac_status=$? 9311 grep -v '^ *+' conftest.er1 >conftest.err 9312 rm -f conftest.er1 9313 cat conftest.err >&5 9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9315 (exit $ac_status); } && { 9316 test -z "$ac_c_werror_flag" || 9317 test ! -s conftest.err 9318 } && test -s conftest.$ac_objext; then 9319 tcl_cv_flag__largefile_source64=no 9320else 9321 echo "$as_me: failed program was:" >&5 9322sed 's/^/| /' conftest.$ac_ext >&5 9323 9324 cat >conftest.$ac_ext <<_ACEOF 9325/* confdefs.h. */ 9326_ACEOF 9327cat confdefs.h >>conftest.$ac_ext 9328cat >>conftest.$ac_ext <<_ACEOF 9329/* end confdefs.h. */ 9330#define _LARGEFILE_SOURCE64 1 9331#include <sys/stat.h> 9332int 9333main () 9334{ 9335char *p = (char *)open64; 9336 ; 9337 return 0; 9338} 9339_ACEOF 9340rm -f conftest.$ac_objext 9341if { (ac_try="$ac_compile" 9342case "(($ac_try" in 9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9344 *) ac_try_echo=$ac_try;; 9345esac 9346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9347 (eval "$ac_compile") 2>conftest.er1 9348 ac_status=$? 9349 grep -v '^ *+' conftest.er1 >conftest.err 9350 rm -f conftest.er1 9351 cat conftest.err >&5 9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 (exit $ac_status); } && { 9354 test -z "$ac_c_werror_flag" || 9355 test ! -s conftest.err 9356 } && test -s conftest.$ac_objext; then 9357 tcl_cv_flag__largefile_source64=yes 9358else 9359 echo "$as_me: failed program was:" >&5 9360sed 's/^/| /' conftest.$ac_ext >&5 9361 9362 tcl_cv_flag__largefile_source64=no 9363fi 9364 9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9366fi 9367 9368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9369fi 9370 9371 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9372 9373cat >>confdefs.h <<\_ACEOF 9374#define _LARGEFILE_SOURCE64 1 9375_ACEOF 9376 9377 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9378 fi 9379 9380 if test "x${tcl_flags}" = "x" ; then 9381 { echo "$as_me:$LINENO: result: none" >&5 9382echo "${ECHO_T}none" >&6; } 9383 else 9384 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9385echo "${ECHO_T}${tcl_flags}" >&6; } 9386 fi 9387 9388 9389 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9390echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9391 if test "${tcl_cv_type_64bit+set}" = set; then 9392 echo $ECHO_N "(cached) $ECHO_C" >&6 9393else 9394 9395 tcl_cv_type_64bit=none 9396 # See if the compiler knows natively about __int64 9397 cat >conftest.$ac_ext <<_ACEOF 9398/* confdefs.h. */ 9399_ACEOF 9400cat confdefs.h >>conftest.$ac_ext 9401cat >>conftest.$ac_ext <<_ACEOF 9402/* end confdefs.h. */ 9403 9404int 9405main () 9406{ 9407__int64 value = (__int64) 0; 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412rm -f conftest.$ac_objext 9413if { (ac_try="$ac_compile" 9414case "(($ac_try" in 9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9416 *) ac_try_echo=$ac_try;; 9417esac 9418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9419 (eval "$ac_compile") 2>conftest.er1 9420 ac_status=$? 9421 grep -v '^ *+' conftest.er1 >conftest.err 9422 rm -f conftest.er1 9423 cat conftest.err >&5 9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9425 (exit $ac_status); } && { 9426 test -z "$ac_c_werror_flag" || 9427 test ! -s conftest.err 9428 } && test -s conftest.$ac_objext; then 9429 tcl_type_64bit=__int64 9430else 9431 echo "$as_me: failed program was:" >&5 9432sed 's/^/| /' conftest.$ac_ext >&5 9433 9434 tcl_type_64bit="long long" 9435fi 9436 9437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9438 # See if we should use long anyway Note that we substitute in the 9439 # type that is our current guess for a 64-bit type inside this check 9440 # program, so it should be modified only carefully... 9441 cat >conftest.$ac_ext <<_ACEOF 9442/* confdefs.h. */ 9443_ACEOF 9444cat confdefs.h >>conftest.$ac_ext 9445cat >>conftest.$ac_ext <<_ACEOF 9446/* end confdefs.h. */ 9447 9448int 9449main () 9450{ 9451switch (0) { 9452 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9453 } 9454 ; 9455 return 0; 9456} 9457_ACEOF 9458rm -f conftest.$ac_objext 9459if { (ac_try="$ac_compile" 9460case "(($ac_try" in 9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9462 *) ac_try_echo=$ac_try;; 9463esac 9464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9465 (eval "$ac_compile") 2>conftest.er1 9466 ac_status=$? 9467 grep -v '^ *+' conftest.er1 >conftest.err 9468 rm -f conftest.er1 9469 cat conftest.err >&5 9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9471 (exit $ac_status); } && { 9472 test -z "$ac_c_werror_flag" || 9473 test ! -s conftest.err 9474 } && test -s conftest.$ac_objext; then 9475 tcl_cv_type_64bit=${tcl_type_64bit} 9476else 9477 echo "$as_me: failed program was:" >&5 9478sed 's/^/| /' conftest.$ac_ext >&5 9479 9480 9481fi 9482 9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9484fi 9485 9486 if test "${tcl_cv_type_64bit}" = none ; then 9487 9488cat >>confdefs.h <<\_ACEOF 9489#define TCL_WIDE_INT_IS_LONG 1 9490_ACEOF 9491 9492 { echo "$as_me:$LINENO: result: using long" >&5 9493echo "${ECHO_T}using long" >&6; } 9494 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9495 -a "${TEA_PLATFORM}" = "windows" ; then 9496 # TEA specific: We actually want to use the default tcl.h checks in 9497 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9498 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9499echo "${ECHO_T}using Tcl header defaults" >&6; } 9500 else 9501 9502cat >>confdefs.h <<_ACEOF 9503#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9504_ACEOF 9505 9506 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9507echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9508 9509 # Now check for auxiliary declarations 9510 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9511echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9512if test "${tcl_cv_struct_dirent64+set}" = set; then 9513 echo $ECHO_N "(cached) $ECHO_C" >&6 9514else 9515 9516 cat >conftest.$ac_ext <<_ACEOF 9517/* confdefs.h. */ 9518_ACEOF 9519cat confdefs.h >>conftest.$ac_ext 9520cat >>conftest.$ac_ext <<_ACEOF 9521/* end confdefs.h. */ 9522#include <sys/types.h> 9523#include <sys/dirent.h> 9524int 9525main () 9526{ 9527struct dirent64 p; 9528 ; 9529 return 0; 9530} 9531_ACEOF 9532rm -f conftest.$ac_objext 9533if { (ac_try="$ac_compile" 9534case "(($ac_try" in 9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9536 *) ac_try_echo=$ac_try;; 9537esac 9538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9539 (eval "$ac_compile") 2>conftest.er1 9540 ac_status=$? 9541 grep -v '^ *+' conftest.er1 >conftest.err 9542 rm -f conftest.er1 9543 cat conftest.err >&5 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 (exit $ac_status); } && { 9546 test -z "$ac_c_werror_flag" || 9547 test ! -s conftest.err 9548 } && test -s conftest.$ac_objext; then 9549 tcl_cv_struct_dirent64=yes 9550else 9551 echo "$as_me: failed program was:" >&5 9552sed 's/^/| /' conftest.$ac_ext >&5 9553 9554 tcl_cv_struct_dirent64=no 9555fi 9556 9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9558fi 9559{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9560echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9561 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9562 9563cat >>confdefs.h <<\_ACEOF 9564#define HAVE_STRUCT_DIRENT64 1 9565_ACEOF 9566 9567 fi 9568 9569 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9570echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9571if test "${tcl_cv_struct_stat64+set}" = set; then 9572 echo $ECHO_N "(cached) $ECHO_C" >&6 9573else 9574 9575 cat >conftest.$ac_ext <<_ACEOF 9576/* confdefs.h. */ 9577_ACEOF 9578cat confdefs.h >>conftest.$ac_ext 9579cat >>conftest.$ac_ext <<_ACEOF 9580/* end confdefs.h. */ 9581#include <sys/stat.h> 9582int 9583main () 9584{ 9585struct stat64 p; 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591rm -f conftest.$ac_objext 9592if { (ac_try="$ac_compile" 9593case "(($ac_try" in 9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9595 *) ac_try_echo=$ac_try;; 9596esac 9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9598 (eval "$ac_compile") 2>conftest.er1 9599 ac_status=$? 9600 grep -v '^ *+' conftest.er1 >conftest.err 9601 rm -f conftest.er1 9602 cat conftest.err >&5 9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9604 (exit $ac_status); } && { 9605 test -z "$ac_c_werror_flag" || 9606 test ! -s conftest.err 9607 } && test -s conftest.$ac_objext; then 9608 tcl_cv_struct_stat64=yes 9609else 9610 echo "$as_me: failed program was:" >&5 9611sed 's/^/| /' conftest.$ac_ext >&5 9612 9613 tcl_cv_struct_stat64=no 9614fi 9615 9616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9617fi 9618{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9619echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 9620 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9621 9622cat >>confdefs.h <<\_ACEOF 9623#define HAVE_STRUCT_STAT64 1 9624_ACEOF 9625 9626 fi 9627 9628 9629 9630for ac_func in open64 lseek64 9631do 9632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9633{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9635if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9636 echo $ECHO_N "(cached) $ECHO_C" >&6 9637else 9638 cat >conftest.$ac_ext <<_ACEOF 9639/* confdefs.h. */ 9640_ACEOF 9641cat confdefs.h >>conftest.$ac_ext 9642cat >>conftest.$ac_ext <<_ACEOF 9643/* end confdefs.h. */ 9644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9645 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9646#define $ac_func innocuous_$ac_func 9647 9648/* System header to define __stub macros and hopefully few prototypes, 9649 which can conflict with char $ac_func (); below. 9650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9651 <limits.h> exists even on freestanding compilers. */ 9652 9653#ifdef __STDC__ 9654# include <limits.h> 9655#else 9656# include <assert.h> 9657#endif 9658 9659#undef $ac_func 9660 9661/* Override any GCC internal prototype to avoid an error. 9662 Use char because int might match the return type of a GCC 9663 builtin and then its argument prototype would still apply. */ 9664#ifdef __cplusplus 9665extern "C" 9666#endif 9667char $ac_func (); 9668/* The GNU C library defines this for functions which it implements 9669 to always fail with ENOSYS. Some functions are actually named 9670 something starting with __ and the normal name is an alias. */ 9671#if defined __stub_$ac_func || defined __stub___$ac_func 9672choke me 9673#endif 9674 9675int 9676main () 9677{ 9678return $ac_func (); 9679 ; 9680 return 0; 9681} 9682_ACEOF 9683rm -f conftest.$ac_objext conftest$ac_exeext 9684if { (ac_try="$ac_link" 9685case "(($ac_try" in 9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9687 *) ac_try_echo=$ac_try;; 9688esac 9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9690 (eval "$ac_link") 2>conftest.er1 9691 ac_status=$? 9692 grep -v '^ *+' conftest.er1 >conftest.err 9693 rm -f conftest.er1 9694 cat conftest.err >&5 9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9696 (exit $ac_status); } && { 9697 test -z "$ac_c_werror_flag" || 9698 test ! -s conftest.err 9699 } && test -s conftest$ac_exeext && 9700 $as_test_x conftest$ac_exeext; then 9701 eval "$as_ac_var=yes" 9702else 9703 echo "$as_me: failed program was:" >&5 9704sed 's/^/| /' conftest.$ac_ext >&5 9705 9706 eval "$as_ac_var=no" 9707fi 9708 9709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9710 conftest$ac_exeext conftest.$ac_ext 9711fi 9712ac_res=`eval echo '${'$as_ac_var'}'` 9713 { echo "$as_me:$LINENO: result: $ac_res" >&5 9714echo "${ECHO_T}$ac_res" >&6; } 9715if test `eval echo '${'$as_ac_var'}'` = yes; then 9716 cat >>confdefs.h <<_ACEOF 9717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9718_ACEOF 9719 9720fi 9721done 9722 9723 { echo "$as_me:$LINENO: checking for off64_t" >&5 9724echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 9725 if test "${tcl_cv_type_off64_t+set}" = set; then 9726 echo $ECHO_N "(cached) $ECHO_C" >&6 9727else 9728 9729 cat >conftest.$ac_ext <<_ACEOF 9730/* confdefs.h. */ 9731_ACEOF 9732cat confdefs.h >>conftest.$ac_ext 9733cat >>conftest.$ac_ext <<_ACEOF 9734/* end confdefs.h. */ 9735#include <sys/types.h> 9736int 9737main () 9738{ 9739off64_t offset; 9740 9741 ; 9742 return 0; 9743} 9744_ACEOF 9745rm -f conftest.$ac_objext 9746if { (ac_try="$ac_compile" 9747case "(($ac_try" in 9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9749 *) ac_try_echo=$ac_try;; 9750esac 9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9752 (eval "$ac_compile") 2>conftest.er1 9753 ac_status=$? 9754 grep -v '^ *+' conftest.er1 >conftest.err 9755 rm -f conftest.er1 9756 cat conftest.err >&5 9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758 (exit $ac_status); } && { 9759 test -z "$ac_c_werror_flag" || 9760 test ! -s conftest.err 9761 } && test -s conftest.$ac_objext; then 9762 tcl_cv_type_off64_t=yes 9763else 9764 echo "$as_me: failed program was:" >&5 9765sed 's/^/| /' conftest.$ac_ext >&5 9766 9767 tcl_cv_type_off64_t=no 9768fi 9769 9770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9771fi 9772 9773 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 9774 test "x${ac_cv_func_lseek64}" = "xyes" && \ 9775 test "x${ac_cv_func_open64}" = "xyes" ; then 9776 9777cat >>confdefs.h <<\_ACEOF 9778#define HAVE_TYPE_OFF64_T 1 9779_ACEOF 9780 9781 { echo "$as_me:$LINENO: result: yes" >&5 9782echo "${ECHO_T}yes" >&6; } 9783 else 9784 { echo "$as_me:$LINENO: result: no" >&5 9785echo "${ECHO_T}no" >&6; } 9786 fi 9787 fi 9788 9789 9790 9791#-------------------------------------------------------------------- 9792# Set the default compiler switches based on the --enable-symbols 9793# option. 9794#-------------------------------------------------------------------- 9795 9796 9797 9798 { echo "$as_me:$LINENO: checking for build with symbols" >&5 9799echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 9800 # Check whether --enable-symbols was given. 9801if test "${enable_symbols+set}" = set; then 9802 enableval=$enable_symbols; tcl_ok=$enableval 9803else 9804 tcl_ok=no 9805fi 9806 9807 DBGX="" 9808 if test "$tcl_ok" = "no"; then 9809 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 9810 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 9811 { echo "$as_me:$LINENO: result: no" >&5 9812echo "${ECHO_T}no" >&6; } 9813 else 9814 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 9815 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 9816 if test "$tcl_ok" = "yes"; then 9817 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 9818echo "${ECHO_T}yes (standard debugging)" >&6; } 9819 fi 9820 fi 9821 # TEA specific: 9822 if test "${TEA_PLATFORM}" != "windows" ; then 9823 LDFLAGS_DEFAULT="${LDFLAGS}" 9824 fi 9825 9826 9827 9828 9829 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 9830 9831cat >>confdefs.h <<\_ACEOF 9832#define TCL_MEM_DEBUG 1 9833_ACEOF 9834 9835 fi 9836 9837 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 9838 if test "$tcl_ok" = "all"; then 9839 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 9840echo "${ECHO_T}enabled symbols mem debugging" >&6; } 9841 else 9842 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 9843echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 9844 fi 9845 fi 9846 9847 9848#-------------------------------------------------------------------- 9849# Everyone should be linking against the Tcl stub library. If you 9850# can't for some reason, remove this definition. If you aren't using 9851# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 9852# link against the non-stubbed Tcl library. 9853#-------------------------------------------------------------------- 9854 9855if test "${SHARED_BUILD}" = "1" ; then 9856 cat >>confdefs.h <<\_ACEOF 9857#define USE_TCL_STUBS 1 9858_ACEOF 9859 9860fi 9861 9862#-------------------------------------------------------------------- 9863# This macro generates a line to use when building a library. It 9864# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 9865# and TEA_LOAD_TCLCONFIG macros above. 9866#-------------------------------------------------------------------- 9867 9868 9869 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 9870 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 9871 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 9872 cat >conftest.$ac_ext <<_ACEOF 9873/* confdefs.h. */ 9874_ACEOF 9875cat confdefs.h >>conftest.$ac_ext 9876cat >>conftest.$ac_ext <<_ACEOF 9877/* end confdefs.h. */ 9878 9879#if defined(_MSC_VER) && _MSC_VER >= 1400 9880print("manifest needed") 9881#endif 9882 9883_ACEOF 9884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9885 $EGREP "manifest needed" >/dev/null 2>&1; then 9886 9887 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 9888 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 9889 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 9890 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 9891 9892 CLEANFILES="$CLEANFILES *.manifest" 9893 9894 9895fi 9896rm -f -r conftest* 9897 9898 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 9899 else 9900 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 9901 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 9902 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 9903 fi 9904 9905 if test "${SHARED_BUILD}" = "1" ; then 9906 MAKE_LIB="${MAKE_SHARED_LIB} " 9907 else 9908 MAKE_LIB="${MAKE_STATIC_LIB} " 9909 fi 9910 9911 #-------------------------------------------------------------------- 9912 # Shared libraries and static libraries have different names. 9913 # Use the double eval to make sure any variables in the suffix is 9914 # substituted. (@@@ Might not be necessary anymore) 9915 #-------------------------------------------------------------------- 9916 9917 if test "${TEA_PLATFORM}" = "windows" ; then 9918 if test "${SHARED_BUILD}" = "1" ; then 9919 # We force the unresolved linking of symbols that are really in 9920 # the private libraries of Tcl and Tk. 9921 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 9922 if test x"${TK_BIN_DIR}" != x ; then 9923 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 9924 fi 9925 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 9926 else 9927 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 9928 fi 9929 # Some packages build their own stubs libraries 9930 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 9931 if test "$GCC" = "yes"; then 9932 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 9933 fi 9934 # These aren't needed on Windows (either MSVC or gcc) 9935 RANLIB=: 9936 RANLIB_STUB=: 9937 else 9938 RANLIB_STUB="${RANLIB}" 9939 if test "${SHARED_BUILD}" = "1" ; then 9940 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 9941 if test x"${TK_BIN_DIR}" != x ; then 9942 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 9943 fi 9944 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 9945 RANLIB=: 9946 else 9947 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 9948 fi 9949 # Some packages build their own stubs libraries 9950 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 9951 fi 9952 9953 # These are escaped so that only CFLAGS is picked up at configure time. 9954 # The other values will be substituted at make time. 9955 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 9956 if test "${SHARED_BUILD}" = "1" ; then 9957 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 9958 fi 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969#-------------------------------------------------------------------- 9970# __CHANGE__ 9971# Change the name from exampeA_LIB_FILE to match your package name. 9972# Use the stub_LIB_FILE substitution if your package creates a stub 9973# library. 9974#-------------------------------------------------------------------- 9975 9976itcl_STUB_LIB_FILE=${PKG_STUB_LIB_FILE} 9977itcl_LIB_FILE=${PKG_LIB_FILE} 9978 9979 9980 9981#-------------------------------------------------------------------- 9982# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 9983# file during the install process. Don't run the TCLSH_PROG through 9984# ${CYGPATH} because it's being used directly by make. 9985# Require that we use a tclsh shell version 8.2 or later since earlier 9986# versions have bugs in the pkg_mkIndex routine. 9987#-------------------------------------------------------------------- 9988 9989 9990 { echo "$as_me:$LINENO: checking for tclsh" >&5 9991echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 9992 if test -f "${TCL_BIN_DIR}/Makefile" ; then 9993 # tclConfig.sh is in Tcl build directory 9994 if test "${TEA_PLATFORM}" = "windows"; then 9995 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 9996 else 9997 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 9998 fi 9999 else 10000 # tclConfig.sh is in install location 10001 if test "${TEA_PLATFORM}" = "windows"; then 10002 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10003 else 10004 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10005 fi 10006 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10007 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10008 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10009 for i in $list ; do 10010 if test -f "$i/${TCLSH_PROG}" ; then 10011 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10012 break 10013 fi 10014 done 10015 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10016 fi 10017 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10018echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10019 10020 10021 10022#-------------------------------------------------------------------- 10023# These are for itclConfig.sh 10024#-------------------------------------------------------------------- 10025 10026 10027 #-------------------------------------------------------------------- 10028 # These are for itclConfig.sh 10029 #-------------------------------------------------------------------- 10030 10031 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib) 10032 eval pkglibdir="${libdir}/itcl${PACKAGE_VERSION}" 10033 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 10034 eval itcl_LIB_FLAG="-litcl${PACKAGE_VERSION}${DBGX}" 10035 eval itcl_STUB_LIB_FLAG="-litclstub${PACKAGE_VERSION}${DBGX}" 10036 else 10037 eval itcl_LIB_FLAG="-litcl`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" 10038 eval itcl_STUB_LIB_FLAG="-litclstub`echo ${PACKAGE_VERSION} | tr -d .`${DBGX}" 10039 fi 10040 itcl_BUILD_LIB_SPEC="-L`pwd` ${itcl_LIB_FLAG}" 10041 itcl_LIB_SPEC="-L${pkglibdir} ${itcl_LIB_FLAG}" 10042 itcl_BUILD_STUB_LIB_SPEC="-L`pwd` ${itcl_STUB_LIB_FLAG}" 10043 itcl_STUB_LIB_SPEC="-L${pkglibdir} ${itcl_STUB_LIB_FLAG}" 10044 itcl_BUILD_STUB_LIB_PATH="`pwd`/${PKG_STUB_LIB_FILE}" 10045 itcl_STUB_LIB_PATH="${pkglibdir}/${PKG_STUB_LIB_FILE}" 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059# itcl_SRC_DIR must be a fully qualified path 10060eval itcl_SRC_DIR="$srcdir" 10061itcl_SRC_DIR=`cd "${itcl_SRC_DIR}"; pwd` 10062 10063 10064#-------------------------------------------------------------------- 10065# Finally, substitute all of the various values into the Makefile. 10066#-------------------------------------------------------------------- 10067 10068ac_config_files="$ac_config_files Makefile pkgIndex.tcl itclConfig.sh" 10069 10070cat >confcache <<\_ACEOF 10071# This file is a shell script that caches the results of configure 10072# tests run on this system so they can be shared between configure 10073# scripts and configure runs, see configure's option --config-cache. 10074# It is not useful on other systems. If it contains results you don't 10075# want to keep, you may remove or edit it. 10076# 10077# config.status only pays attention to the cache file if you give it 10078# the --recheck option to rerun configure. 10079# 10080# `ac_cv_env_foo' variables (set or unset) will be overridden when 10081# loading this file, other *unset* `ac_cv_foo' will be assigned the 10082# following values. 10083 10084_ACEOF 10085 10086# The following way of writing the cache mishandles newlines in values, 10087# but we know of no workaround that is simple, portable, and efficient. 10088# So, we kill variables containing newlines. 10089# Ultrix sh set writes to stderr and can't be redirected directly, 10090# and sets the high bit in the cache file unless we assign to the vars. 10091( 10092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10093 eval ac_val=\$$ac_var 10094 case $ac_val in #( 10095 *${as_nl}*) 10096 case $ac_var in #( 10097 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10098echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10099 esac 10100 case $ac_var in #( 10101 _ | IFS | as_nl) ;; #( 10102 *) $as_unset $ac_var ;; 10103 esac ;; 10104 esac 10105 done 10106 10107 (set) 2>&1 | 10108 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10109 *${as_nl}ac_space=\ *) 10110 # `set' does not quote correctly, so add quotes (double-quote 10111 # substitution turns \\\\ into \\, and sed turns \\ into \). 10112 sed -n \ 10113 "s/'/'\\\\''/g; 10114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10115 ;; #( 10116 *) 10117 # `set' quotes correctly as required by POSIX, so do not add quotes. 10118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10119 ;; 10120 esac | 10121 sort 10122) | 10123 sed ' 10124 /^ac_cv_env_/b end 10125 t clear 10126 :clear 10127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10128 t end 10129 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10130 :end' >>confcache 10131if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10132 if test -w "$cache_file"; then 10133 test "x$cache_file" != "x/dev/null" && 10134 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10135echo "$as_me: updating cache $cache_file" >&6;} 10136 cat confcache >$cache_file 10137 else 10138 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10139echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10140 fi 10141fi 10142rm -f confcache 10143 10144test "x$prefix" = xNONE && prefix=$ac_default_prefix 10145# Let make expand exec_prefix. 10146test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10147 10148# Transform confdefs.h into DEFS. 10149# Protect against shell expansion while executing Makefile rules. 10150# Protect against Makefile macro expansion. 10151# 10152# If the first sed substitution is executed (which looks for macros that 10153# take arguments), then branch to the quote section. Otherwise, 10154# look for a macro that doesn't take arguments. 10155ac_script=' 10156t clear 10157:clear 10158s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10159t quote 10160s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10161t quote 10162b any 10163:quote 10164s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10165s/\[/\\&/g 10166s/\]/\\&/g 10167s/\$/$$/g 10168H 10169:any 10170${ 10171 g 10172 s/^\n// 10173 s/\n/ /g 10174 p 10175} 10176' 10177DEFS=`sed -n "$ac_script" confdefs.h` 10178 10179 10180ac_libobjs= 10181ac_ltlibobjs= 10182for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10183 # 1. Remove the extension, and $U if already installed. 10184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10185 ac_i=`echo "$ac_i" | sed "$ac_script"` 10186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10187 # will be set to the directory where LIBOBJS objects are built. 10188 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10189 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10190done 10191LIBOBJS=$ac_libobjs 10192 10193LTLIBOBJS=$ac_ltlibobjs 10194 10195 10196CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10197 10198: ${CONFIG_STATUS=./config.status} 10199ac_clean_files_save=$ac_clean_files 10200ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10201{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10202echo "$as_me: creating $CONFIG_STATUS" >&6;} 10203cat >$CONFIG_STATUS <<_ACEOF 10204#! $SHELL 10205# Generated by $as_me. 10206# Run this file to recreate the current configuration. 10207# Compiler output produced by configure, useful for debugging 10208# configure, is in config.log if it exists. 10209 10210debug=false 10211ac_cs_recheck=false 10212ac_cs_silent=false 10213SHELL=\${CONFIG_SHELL-$SHELL} 10214_ACEOF 10215 10216cat >>$CONFIG_STATUS <<\_ACEOF 10217## --------------------- ## 10218## M4sh Initialization. ## 10219## --------------------- ## 10220 10221# Be more Bourne compatible 10222DUALCASE=1; export DUALCASE # for MKS sh 10223if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10224 emulate sh 10225 NULLCMD=: 10226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10227 # is contrary to our usage. Disable this feature. 10228 alias -g '${1+"$@"}'='"$@"' 10229 setopt NO_GLOB_SUBST 10230else 10231 case `(set -o) 2>/dev/null` in 10232 *posix*) set -o posix ;; 10233esac 10234 10235fi 10236 10237 10238 10239 10240# PATH needs CR 10241# Avoid depending upon Character Ranges. 10242as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10243as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10244as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10245as_cr_digits='0123456789' 10246as_cr_alnum=$as_cr_Letters$as_cr_digits 10247 10248# The user is always right. 10249if test "${PATH_SEPARATOR+set}" != set; then 10250 echo "#! /bin/sh" >conf$$.sh 10251 echo "exit 0" >>conf$$.sh 10252 chmod +x conf$$.sh 10253 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10254 PATH_SEPARATOR=';' 10255 else 10256 PATH_SEPARATOR=: 10257 fi 10258 rm -f conf$$.sh 10259fi 10260 10261# Support unset when possible. 10262if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10263 as_unset=unset 10264else 10265 as_unset=false 10266fi 10267 10268 10269# IFS 10270# We need space, tab and new line, in precisely that order. Quoting is 10271# there to prevent editors from complaining about space-tab. 10272# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10273# splitting by setting IFS to empty value.) 10274as_nl=' 10275' 10276IFS=" "" $as_nl" 10277 10278# Find who we are. Look in the path if we contain no directory separator. 10279case $0 in 10280 *[\\/]* ) as_myself=$0 ;; 10281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10282for as_dir in $PATH 10283do 10284 IFS=$as_save_IFS 10285 test -z "$as_dir" && as_dir=. 10286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10287done 10288IFS=$as_save_IFS 10289 10290 ;; 10291esac 10292# We did not find ourselves, most probably we were run as `sh COMMAND' 10293# in which case we are not to be found in the path. 10294if test "x$as_myself" = x; then 10295 as_myself=$0 10296fi 10297if test ! -f "$as_myself"; then 10298 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10299 { (exit 1); exit 1; } 10300fi 10301 10302# Work around bugs in pre-3.0 UWIN ksh. 10303for as_var in ENV MAIL MAILPATH 10304do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10305done 10306PS1='$ ' 10307PS2='> ' 10308PS4='+ ' 10309 10310# NLS nuisances. 10311for as_var in \ 10312 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10313 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10314 LC_TELEPHONE LC_TIME 10315do 10316 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10317 eval $as_var=C; export $as_var 10318 else 10319 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10320 fi 10321done 10322 10323# Required to use basename. 10324if expr a : '\(a\)' >/dev/null 2>&1 && 10325 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10326 as_expr=expr 10327else 10328 as_expr=false 10329fi 10330 10331if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10332 as_basename=basename 10333else 10334 as_basename=false 10335fi 10336 10337 10338# Name of the executable. 10339as_me=`$as_basename -- "$0" || 10340$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10341 X"$0" : 'X\(//\)$' \| \ 10342 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10343echo X/"$0" | 10344 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10345 s//\1/ 10346 q 10347 } 10348 /^X\/\(\/\/\)$/{ 10349 s//\1/ 10350 q 10351 } 10352 /^X\/\(\/\).*/{ 10353 s//\1/ 10354 q 10355 } 10356 s/.*/./; q'` 10357 10358# CDPATH. 10359$as_unset CDPATH 10360 10361 10362 10363 as_lineno_1=$LINENO 10364 as_lineno_2=$LINENO 10365 test "x$as_lineno_1" != "x$as_lineno_2" && 10366 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10367 10368 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10369 # uniformly replaced by the line number. The first 'sed' inserts a 10370 # line-number line after each line using $LINENO; the second 'sed' 10371 # does the real work. The second script uses 'N' to pair each 10372 # line-number line with the line containing $LINENO, and appends 10373 # trailing '-' during substitution so that $LINENO is not a special 10374 # case at line end. 10375 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10376 # scripts with optimization help from Paolo Bonzini. Blame Lee 10377 # E. McMahon (1931-1989) for sed's syntax. :-) 10378 sed -n ' 10379 p 10380 /[$]LINENO/= 10381 ' <$as_myself | 10382 sed ' 10383 s/[$]LINENO.*/&-/ 10384 t lineno 10385 b 10386 :lineno 10387 N 10388 :loop 10389 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10390 t loop 10391 s/-\n.*// 10392 ' >$as_me.lineno && 10393 chmod +x "$as_me.lineno" || 10394 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10395 { (exit 1); exit 1; }; } 10396 10397 # Don't try to exec as it changes $[0], causing all sort of problems 10398 # (the dirname of $[0] is not the place where we might find the 10399 # original and so on. Autoconf is especially sensitive to this). 10400 . "./$as_me.lineno" 10401 # Exit status is that of the last command. 10402 exit 10403} 10404 10405 10406if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10407 as_dirname=dirname 10408else 10409 as_dirname=false 10410fi 10411 10412ECHO_C= ECHO_N= ECHO_T= 10413case `echo -n x` in 10414-n*) 10415 case `echo 'x\c'` in 10416 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10417 *) ECHO_C='\c';; 10418 esac;; 10419*) 10420 ECHO_N='-n';; 10421esac 10422 10423if expr a : '\(a\)' >/dev/null 2>&1 && 10424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10425 as_expr=expr 10426else 10427 as_expr=false 10428fi 10429 10430rm -f conf$$ conf$$.exe conf$$.file 10431if test -d conf$$.dir; then 10432 rm -f conf$$.dir/conf$$.file 10433else 10434 rm -f conf$$.dir 10435 mkdir conf$$.dir 10436fi 10437echo >conf$$.file 10438if ln -s conf$$.file conf$$ 2>/dev/null; then 10439 as_ln_s='ln -s' 10440 # ... but there are two gotchas: 10441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10443 # In both cases, we have to default to `cp -p'. 10444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10445 as_ln_s='cp -p' 10446elif ln conf$$.file conf$$ 2>/dev/null; then 10447 as_ln_s=ln 10448else 10449 as_ln_s='cp -p' 10450fi 10451rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10452rmdir conf$$.dir 2>/dev/null 10453 10454if mkdir -p . 2>/dev/null; then 10455 as_mkdir_p=: 10456else 10457 test -d ./-p && rmdir ./-p 10458 as_mkdir_p=false 10459fi 10460 10461if test -x / >/dev/null 2>&1; then 10462 as_test_x='test -x' 10463else 10464 if ls -dL / >/dev/null 2>&1; then 10465 as_ls_L_option=L 10466 else 10467 as_ls_L_option= 10468 fi 10469 as_test_x=' 10470 eval sh -c '\'' 10471 if test -d "$1"; then 10472 test -d "$1/."; 10473 else 10474 case $1 in 10475 -*)set "./$1";; 10476 esac; 10477 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10478 ???[sx]*):;;*)false;;esac;fi 10479 '\'' sh 10480 ' 10481fi 10482as_executable_p=$as_test_x 10483 10484# Sed expression to map a string onto a valid CPP name. 10485as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10486 10487# Sed expression to map a string onto a valid variable name. 10488as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10489 10490 10491exec 6>&1 10492 10493# Save the log message, to keep $[0] and so on meaningful, and to 10494# report actual input values of CONFIG_FILES etc. instead of their 10495# values after options handling. 10496ac_log=" 10497This file was extended by itcl $as_me 3.4, which was 10498generated by GNU Autoconf 2.61. Invocation command line was 10499 10500 CONFIG_FILES = $CONFIG_FILES 10501 CONFIG_HEADERS = $CONFIG_HEADERS 10502 CONFIG_LINKS = $CONFIG_LINKS 10503 CONFIG_COMMANDS = $CONFIG_COMMANDS 10504 $ $0 $@ 10505 10506on `(hostname || uname -n) 2>/dev/null | sed 1q` 10507" 10508 10509_ACEOF 10510 10511cat >>$CONFIG_STATUS <<_ACEOF 10512# Files that config.status was made for. 10513config_files="$ac_config_files" 10514 10515_ACEOF 10516 10517cat >>$CONFIG_STATUS <<\_ACEOF 10518ac_cs_usage="\ 10519\`$as_me' instantiates files from templates according to the 10520current configuration. 10521 10522Usage: $0 [OPTIONS] [FILE]... 10523 10524 -h, --help print this help, then exit 10525 -V, --version print version number and configuration settings, then exit 10526 -q, --quiet do not print progress messages 10527 -d, --debug don't remove temporary files 10528 --recheck update $as_me by reconfiguring in the same conditions 10529 --file=FILE[:TEMPLATE] 10530 instantiate the configuration file FILE 10531 10532Configuration files: 10533$config_files 10534 10535Report bugs to <bug-autoconf@gnu.org>." 10536 10537_ACEOF 10538cat >>$CONFIG_STATUS <<_ACEOF 10539ac_cs_version="\\ 10540itcl config.status 3.4 10541configured by $0, generated by GNU Autoconf 2.61, 10542 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10543 10544Copyright (C) 2006 Free Software Foundation, Inc. 10545This config.status script is free software; the Free Software Foundation 10546gives unlimited permission to copy, distribute and modify it." 10547 10548ac_pwd='$ac_pwd' 10549srcdir='$srcdir' 10550INSTALL='$INSTALL' 10551_ACEOF 10552 10553cat >>$CONFIG_STATUS <<\_ACEOF 10554# If no file are specified by the user, then we need to provide default 10555# value. By we need to know if files were specified by the user. 10556ac_need_defaults=: 10557while test $# != 0 10558do 10559 case $1 in 10560 --*=*) 10561 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10563 ac_shift=: 10564 ;; 10565 *) 10566 ac_option=$1 10567 ac_optarg=$2 10568 ac_shift=shift 10569 ;; 10570 esac 10571 10572 case $ac_option in 10573 # Handling of the options. 10574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10575 ac_cs_recheck=: ;; 10576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10577 echo "$ac_cs_version"; exit ;; 10578 --debug | --debu | --deb | --de | --d | -d ) 10579 debug=: ;; 10580 --file | --fil | --fi | --f ) 10581 $ac_shift 10582 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10583 ac_need_defaults=false;; 10584 --he | --h | --help | --hel | -h ) 10585 echo "$ac_cs_usage"; exit ;; 10586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10587 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10588 ac_cs_silent=: ;; 10589 10590 # This is an error. 10591 -*) { echo "$as_me: error: unrecognized option: $1 10592Try \`$0 --help' for more information." >&2 10593 { (exit 1); exit 1; }; } ;; 10594 10595 *) ac_config_targets="$ac_config_targets $1" 10596 ac_need_defaults=false ;; 10597 10598 esac 10599 shift 10600done 10601 10602ac_configure_extra_args= 10603 10604if $ac_cs_silent; then 10605 exec 6>/dev/null 10606 ac_configure_extra_args="$ac_configure_extra_args --silent" 10607fi 10608 10609_ACEOF 10610cat >>$CONFIG_STATUS <<_ACEOF 10611if \$ac_cs_recheck; then 10612 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10613 CONFIG_SHELL=$SHELL 10614 export CONFIG_SHELL 10615 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10616fi 10617 10618_ACEOF 10619cat >>$CONFIG_STATUS <<\_ACEOF 10620exec 5>>config.log 10621{ 10622 echo 10623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10624## Running $as_me. ## 10625_ASBOX 10626 echo "$ac_log" 10627} >&5 10628 10629_ACEOF 10630cat >>$CONFIG_STATUS <<_ACEOF 10631_ACEOF 10632 10633cat >>$CONFIG_STATUS <<\_ACEOF 10634 10635# Handling of arguments. 10636for ac_config_target in $ac_config_targets 10637do 10638 case $ac_config_target in 10639 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10640 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 10641 "itclConfig.sh") CONFIG_FILES="$CONFIG_FILES itclConfig.sh" ;; 10642 10643 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10644echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10645 { (exit 1); exit 1; }; };; 10646 esac 10647done 10648 10649 10650# If the user did not use the arguments to specify the items to instantiate, 10651# then the envvar interface is used. Set only those that are not. 10652# We use the long form for the default assignment because of an extremely 10653# bizarre bug on SunOS 4.1.3. 10654if $ac_need_defaults; then 10655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10656fi 10657 10658# Have a temporary directory for convenience. Make it in the build tree 10659# simply because there is no reason against having it here, and in addition, 10660# creating and moving files from /tmp can sometimes cause problems. 10661# Hook for its removal unless debugging. 10662# Note that there is a small window in which the directory will not be cleaned: 10663# after its creation but before its name has been assigned to `$tmp'. 10664$debug || 10665{ 10666 tmp= 10667 trap 'exit_status=$? 10668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10669' 0 10670 trap '{ (exit 1); exit 1; }' 1 2 13 15 10671} 10672# Create a (secure) tmp directory for tmp files. 10673 10674{ 10675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10676 test -n "$tmp" && test -d "$tmp" 10677} || 10678{ 10679 tmp=./conf$$-$RANDOM 10680 (umask 077 && mkdir "$tmp") 10681} || 10682{ 10683 echo "$me: cannot create a temporary directory in ." >&2 10684 { (exit 1); exit 1; } 10685} 10686 10687# 10688# Set up the sed scripts for CONFIG_FILES section. 10689# 10690 10691# No need to generate the scripts if there are no CONFIG_FILES. 10692# This happens for instance when ./config.status config.h 10693if test -n "$CONFIG_FILES"; then 10694 10695_ACEOF 10696 10697 10698 10699ac_delim='%!_!# ' 10700for ac_last_try in false false false false false :; do 10701 cat >conf$$subs.sed <<_ACEOF 10702SHELL!$SHELL$ac_delim 10703PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 10704PACKAGE_NAME!$PACKAGE_NAME$ac_delim 10705PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 10706PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 10707PACKAGE_STRING!$PACKAGE_STRING$ac_delim 10708PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 10709exec_prefix!$exec_prefix$ac_delim 10710prefix!$prefix$ac_delim 10711program_transform_name!$program_transform_name$ac_delim 10712bindir!$bindir$ac_delim 10713sbindir!$sbindir$ac_delim 10714libexecdir!$libexecdir$ac_delim 10715datarootdir!$datarootdir$ac_delim 10716datadir!$datadir$ac_delim 10717sysconfdir!$sysconfdir$ac_delim 10718sharedstatedir!$sharedstatedir$ac_delim 10719localstatedir!$localstatedir$ac_delim 10720includedir!$includedir$ac_delim 10721oldincludedir!$oldincludedir$ac_delim 10722docdir!$docdir$ac_delim 10723infodir!$infodir$ac_delim 10724htmldir!$htmldir$ac_delim 10725dvidir!$dvidir$ac_delim 10726pdfdir!$pdfdir$ac_delim 10727psdir!$psdir$ac_delim 10728libdir!$libdir$ac_delim 10729localedir!$localedir$ac_delim 10730mandir!$mandir$ac_delim 10731DEFS!$DEFS$ac_delim 10732ECHO_C!$ECHO_C$ac_delim 10733ECHO_N!$ECHO_N$ac_delim 10734ECHO_T!$ECHO_T$ac_delim 10735LIBS!$LIBS$ac_delim 10736build_alias!$build_alias$ac_delim 10737host_alias!$host_alias$ac_delim 10738target_alias!$target_alias$ac_delim 10739CYGPATH!$CYGPATH$ac_delim 10740EXEEXT!$EXEEXT$ac_delim 10741PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 10742PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 10743PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 10744PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 10745PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 10746PKG_HEADERS!$PKG_HEADERS$ac_delim 10747PKG_INCLUDES!$PKG_INCLUDES$ac_delim 10748PKG_LIBS!$PKG_LIBS$ac_delim 10749PKG_CFLAGS!$PKG_CFLAGS$ac_delim 10750LN_S!$LN_S$ac_delim 10751CONFIG_CLEAN_FILES!$CONFIG_CLEAN_FILES$ac_delim 10752TCL_VERSION!$TCL_VERSION$ac_delim 10753TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 10754TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 10755TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 10756TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 10757TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 10758TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 10759TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 10760TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 10761TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 10762CLEANFILES!$CLEANFILES$ac_delim 10763TCL_LIBS!$TCL_LIBS$ac_delim 10764TCL_DEFS!$TCL_DEFS$ac_delim 10765TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 10766TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 10767TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 10768CC!$CC$ac_delim 10769CFLAGS!$CFLAGS$ac_delim 10770LDFLAGS!$LDFLAGS$ac_delim 10771CPPFLAGS!$CPPFLAGS$ac_delim 10772ac_ct_CC!$ac_ct_CC$ac_delim 10773OBJEXT!$OBJEXT$ac_delim 10774CPP!$CPP$ac_delim 10775INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 10776INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 10777INSTALL_DATA!$INSTALL_DATA$ac_delim 10778SET_MAKE!$SET_MAKE$ac_delim 10779RANLIB!$RANLIB$ac_delim 10780GREP!$GREP$ac_delim 10781EGREP!$EGREP$ac_delim 10782MATH_LIBS!$MATH_LIBS$ac_delim 10783PKG_SOURCES!$PKG_SOURCES$ac_delim 10784PKG_OBJECTS!$PKG_OBJECTS$ac_delim 10785TCL_INCLUDES!$TCL_INCLUDES$ac_delim 10786TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 10787SHARED_BUILD!$SHARED_BUILD$ac_delim 10788AR!$AR$ac_delim 10789CELIB_DIR!$CELIB_DIR$ac_delim 10790CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 10791CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 10792CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 10793STLIB_LD!$STLIB_LD$ac_delim 10794SHLIB_LD!$SHLIB_LD$ac_delim 10795SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 10796SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 10797LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 10798CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 10799_ACEOF 10800 10801 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 10802 break 10803 elif $ac_last_try; then 10804 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10805echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10806 { (exit 1); exit 1; }; } 10807 else 10808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10809 fi 10810done 10811 10812ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 10813if test -n "$ac_eof"; then 10814 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 10815 ac_eof=`expr $ac_eof + 1` 10816fi 10817 10818cat >>$CONFIG_STATUS <<_ACEOF 10819cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 10820/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10821_ACEOF 10822sed ' 10823s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 10824s/^/s,@/; s/!/@,|#_!!_#|/ 10825:n 10826t n 10827s/'"$ac_delim"'$/,g/; t 10828s/$/\\/; p 10829N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 10830' >>$CONFIG_STATUS <conf$$subs.sed 10831rm -f conf$$subs.sed 10832cat >>$CONFIG_STATUS <<_ACEOF 10833CEOF$ac_eof 10834_ACEOF 10835 10836 10837ac_delim='%!_!# ' 10838for ac_last_try in false false false false false :; do 10839 cat >conf$$subs.sed <<_ACEOF 10840LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 10841TCL_DBGX!$TCL_DBGX$ac_delim 10842MAKE_LIB!$MAKE_LIB$ac_delim 10843MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 10844MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 10845MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 10846RANLIB_STUB!$RANLIB_STUB$ac_delim 10847VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 10848VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 10849itcl_STUB_LIB_FILE!$itcl_STUB_LIB_FILE$ac_delim 10850itcl_LIB_FILE!$itcl_LIB_FILE$ac_delim 10851TCLSH_PROG!$TCLSH_PROG$ac_delim 10852itcl_BUILD_LIB_SPEC!$itcl_BUILD_LIB_SPEC$ac_delim 10853itcl_LIB_SPEC!$itcl_LIB_SPEC$ac_delim 10854itcl_BUILD_STUB_LIB_SPEC!$itcl_BUILD_STUB_LIB_SPEC$ac_delim 10855itcl_STUB_LIB_SPEC!$itcl_STUB_LIB_SPEC$ac_delim 10856itcl_BUILD_STUB_LIB_PATH!$itcl_BUILD_STUB_LIB_PATH$ac_delim 10857itcl_STUB_LIB_PATH!$itcl_STUB_LIB_PATH$ac_delim 10858MAJOR_VERSION!$MAJOR_VERSION$ac_delim 10859MINOR_VERSION!$MINOR_VERSION$ac_delim 10860PATCHLEVEL!$PATCHLEVEL$ac_delim 10861itcl_SRC_DIR!$itcl_SRC_DIR$ac_delim 10862LIBOBJS!$LIBOBJS$ac_delim 10863LTLIBOBJS!$LTLIBOBJS$ac_delim 10864_ACEOF 10865 10866 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then 10867 break 10868 elif $ac_last_try; then 10869 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 10870echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 10871 { (exit 1); exit 1; }; } 10872 else 10873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10874 fi 10875done 10876 10877ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 10878if test -n "$ac_eof"; then 10879 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 10880 ac_eof=`expr $ac_eof + 1` 10881fi 10882 10883cat >>$CONFIG_STATUS <<_ACEOF 10884cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 10885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 10886_ACEOF 10887sed ' 10888s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 10889s/^/s,@/; s/!/@,|#_!!_#|/ 10890:n 10891t n 10892s/'"$ac_delim"'$/,g/; t 10893s/$/\\/; p 10894N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 10895' >>$CONFIG_STATUS <conf$$subs.sed 10896rm -f conf$$subs.sed 10897cat >>$CONFIG_STATUS <<_ACEOF 10898:end 10899s/|#_!!_#|//g 10900CEOF$ac_eof 10901_ACEOF 10902 10903 10904# VPATH may cause trouble with some makes, so we remove $(srcdir), 10905# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10906# trailing colons and then remove the whole line if VPATH becomes empty 10907# (actually we leave an empty line to preserve line numbers). 10908if test "x$srcdir" = x.; then 10909 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10910s/:*\$(srcdir):*/:/ 10911s/:*\${srcdir}:*/:/ 10912s/:*@srcdir@:*/:/ 10913s/^\([^=]*=[ ]*\):*/\1/ 10914s/:*$// 10915s/^[^=]*=[ ]*$// 10916}' 10917fi 10918 10919cat >>$CONFIG_STATUS <<\_ACEOF 10920fi # test -n "$CONFIG_FILES" 10921 10922 10923for ac_tag in :F $CONFIG_FILES 10924do 10925 case $ac_tag in 10926 :[FHLC]) ac_mode=$ac_tag; continue;; 10927 esac 10928 case $ac_mode$ac_tag in 10929 :[FHL]*:*);; 10930 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 10931echo "$as_me: error: Invalid tag $ac_tag." >&2;} 10932 { (exit 1); exit 1; }; };; 10933 :[FH]-) ac_tag=-:-;; 10934 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10935 esac 10936 ac_save_IFS=$IFS 10937 IFS=: 10938 set x $ac_tag 10939 IFS=$ac_save_IFS 10940 shift 10941 ac_file=$1 10942 shift 10943 10944 case $ac_mode in 10945 :L) ac_source=$1;; 10946 :[FH]) 10947 ac_file_inputs= 10948 for ac_f 10949 do 10950 case $ac_f in 10951 -) ac_f="$tmp/stdin";; 10952 *) # Look for the file first in the build tree, then in the source tree 10953 # (if the path is not absolute). The absolute path cannot be DOS-style, 10954 # because $ac_f cannot contain `:'. 10955 test -f "$ac_f" || 10956 case $ac_f in 10957 [\\/$]*) false;; 10958 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10959 esac || 10960 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 10961echo "$as_me: error: cannot find input file: $ac_f" >&2;} 10962 { (exit 1); exit 1; }; };; 10963 esac 10964 ac_file_inputs="$ac_file_inputs $ac_f" 10965 done 10966 10967 # Let's still pretend it is `configure' which instantiates (i.e., don't 10968 # use $as_me), people would be surprised to read: 10969 # /* config.h. Generated by config.status. */ 10970 configure_input="Generated from "`IFS=: 10971 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 10972 if test x"$ac_file" != x-; then 10973 configure_input="$ac_file. $configure_input" 10974 { echo "$as_me:$LINENO: creating $ac_file" >&5 10975echo "$as_me: creating $ac_file" >&6;} 10976 fi 10977 10978 case $ac_tag in 10979 *:-:* | *:-) cat >"$tmp/stdin";; 10980 esac 10981 ;; 10982 esac 10983 10984 ac_dir=`$as_dirname -- "$ac_file" || 10985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10986 X"$ac_file" : 'X\(//\)[^/]' \| \ 10987 X"$ac_file" : 'X\(//\)$' \| \ 10988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10989echo X"$ac_file" | 10990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10991 s//\1/ 10992 q 10993 } 10994 /^X\(\/\/\)[^/].*/{ 10995 s//\1/ 10996 q 10997 } 10998 /^X\(\/\/\)$/{ 10999 s//\1/ 11000 q 11001 } 11002 /^X\(\/\).*/{ 11003 s//\1/ 11004 q 11005 } 11006 s/.*/./; q'` 11007 { as_dir="$ac_dir" 11008 case $as_dir in #( 11009 -*) as_dir=./$as_dir;; 11010 esac 11011 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11012 as_dirs= 11013 while :; do 11014 case $as_dir in #( 11015 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11016 *) as_qdir=$as_dir;; 11017 esac 11018 as_dirs="'$as_qdir' $as_dirs" 11019 as_dir=`$as_dirname -- "$as_dir" || 11020$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11021 X"$as_dir" : 'X\(//\)[^/]' \| \ 11022 X"$as_dir" : 'X\(//\)$' \| \ 11023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11024echo X"$as_dir" | 11025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11026 s//\1/ 11027 q 11028 } 11029 /^X\(\/\/\)[^/].*/{ 11030 s//\1/ 11031 q 11032 } 11033 /^X\(\/\/\)$/{ 11034 s//\1/ 11035 q 11036 } 11037 /^X\(\/\).*/{ 11038 s//\1/ 11039 q 11040 } 11041 s/.*/./; q'` 11042 test -d "$as_dir" && break 11043 done 11044 test -z "$as_dirs" || eval "mkdir $as_dirs" 11045 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11046echo "$as_me: error: cannot create directory $as_dir" >&2;} 11047 { (exit 1); exit 1; }; }; } 11048 ac_builddir=. 11049 11050case "$ac_dir" in 11051.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11052*) 11053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11054 # A ".." for each directory in $ac_dir_suffix. 11055 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11056 case $ac_top_builddir_sub in 11057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11059 esac ;; 11060esac 11061ac_abs_top_builddir=$ac_pwd 11062ac_abs_builddir=$ac_pwd$ac_dir_suffix 11063# for backward compatibility: 11064ac_top_builddir=$ac_top_build_prefix 11065 11066case $srcdir in 11067 .) # We are building in place. 11068 ac_srcdir=. 11069 ac_top_srcdir=$ac_top_builddir_sub 11070 ac_abs_top_srcdir=$ac_pwd ;; 11071 [\\/]* | ?:[\\/]* ) # Absolute name. 11072 ac_srcdir=$srcdir$ac_dir_suffix; 11073 ac_top_srcdir=$srcdir 11074 ac_abs_top_srcdir=$srcdir ;; 11075 *) # Relative name. 11076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11077 ac_top_srcdir=$ac_top_build_prefix$srcdir 11078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11079esac 11080ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11081 11082 11083 case $ac_mode in 11084 :F) 11085 # 11086 # CONFIG_FILE 11087 # 11088 11089 case $INSTALL in 11090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11092 esac 11093_ACEOF 11094 11095cat >>$CONFIG_STATUS <<\_ACEOF 11096# If the template does not know about datarootdir, expand it. 11097# FIXME: This hack should be removed a few years after 2.60. 11098ac_datarootdir_hack=; ac_datarootdir_seen= 11099 11100case `sed -n '/datarootdir/ { 11101 p 11102 q 11103} 11104/@datadir@/p 11105/@docdir@/p 11106/@infodir@/p 11107/@localedir@/p 11108/@mandir@/p 11109' $ac_file_inputs` in 11110*datarootdir*) ac_datarootdir_seen=yes;; 11111*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11112 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11113echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11114_ACEOF 11115cat >>$CONFIG_STATUS <<_ACEOF 11116 ac_datarootdir_hack=' 11117 s&@datadir@&$datadir&g 11118 s&@docdir@&$docdir&g 11119 s&@infodir@&$infodir&g 11120 s&@localedir@&$localedir&g 11121 s&@mandir@&$mandir&g 11122 s&\\\${datarootdir}&$datarootdir&g' ;; 11123esac 11124_ACEOF 11125 11126# Neutralize VPATH when `$srcdir' = `.'. 11127# Shell code in configure.ac might set extrasub. 11128# FIXME: do we really want to maintain this feature? 11129cat >>$CONFIG_STATUS <<_ACEOF 11130 sed "$ac_vpsub 11131$extrasub 11132_ACEOF 11133cat >>$CONFIG_STATUS <<\_ACEOF 11134:t 11135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11136s&@configure_input@&$configure_input&;t t 11137s&@top_builddir@&$ac_top_builddir_sub&;t t 11138s&@srcdir@&$ac_srcdir&;t t 11139s&@abs_srcdir@&$ac_abs_srcdir&;t t 11140s&@top_srcdir@&$ac_top_srcdir&;t t 11141s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11142s&@builddir@&$ac_builddir&;t t 11143s&@abs_builddir@&$ac_abs_builddir&;t t 11144s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11145s&@INSTALL@&$ac_INSTALL&;t t 11146$ac_datarootdir_hack 11147" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11148 11149test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11150 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11151 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11152 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11153which seems to be undefined. Please make sure it is defined." >&5 11154echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11155which seems to be undefined. Please make sure it is defined." >&2;} 11156 11157 rm -f "$tmp/stdin" 11158 case $ac_file in 11159 -) cat "$tmp/out"; rm -f "$tmp/out";; 11160 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11161 esac 11162 ;; 11163 11164 11165 11166 esac 11167 11168done # for ac_tag 11169 11170 11171{ (exit 0); exit 0; } 11172_ACEOF 11173chmod +x $CONFIG_STATUS 11174ac_clean_files=$ac_clean_files_save 11175 11176 11177# configure is writing to config.log, and then calls config.status. 11178# config.status does its own redirection, appending to config.log. 11179# Unfortunately, on DOS this fails, as config.log is still kept open 11180# by configure, so config.status won't be able to write to it; its 11181# output is simply discarded. So we exec the FD to /dev/null, 11182# effectively closing config.log, so it can be properly (re)opened and 11183# appended to by config.status. When coming back to configure, we 11184# need to make the FD available again. 11185if test "$no_create" != yes; then 11186 ac_cs_success=: 11187 ac_config_status_args= 11188 test "$silent" = yes && 11189 ac_config_status_args="$ac_config_status_args --quiet" 11190 exec 5>/dev/null 11191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11192 exec 5>>config.log 11193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11194 # would make configure fail if this is the last instruction. 11195 $ac_cs_success || { (exit 1); exit 1; } 11196fi 11197 11198