1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tnc 0.3.0. 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='tnc' 574PACKAGE_TARNAME='tnc' 575PACKAGE_VERSION='0.3.0' 576PACKAGE_STRING='tnc 0.3.0' 577PACKAGE_BUGREPORT='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='SHELL 616PATH_SEPARATOR 617PACKAGE_NAME 618PACKAGE_TARNAME 619PACKAGE_VERSION 620PACKAGE_STRING 621PACKAGE_BUGREPORT 622exec_prefix 623prefix 624program_transform_name 625bindir 626sbindir 627libexecdir 628datarootdir 629datadir 630sysconfdir 631sharedstatedir 632localstatedir 633includedir 634oldincludedir 635docdir 636infodir 637htmldir 638dvidir 639pdfdir 640psdir 641libdir 642localedir 643mandir 644DEFS 645ECHO_C 646ECHO_N 647ECHO_T 648LIBS 649build_alias 650host_alias 651target_alias 652CYGPATH 653EXEEXT 654PKG_LIB_FILE 655PKG_STUB_LIB_FILE 656PKG_STUB_SOURCES 657PKG_STUB_OBJECTS 658PKG_TCL_SOURCES 659PKG_HEADERS 660PKG_INCLUDES 661PKG_LIBS 662PKG_CFLAGS 663TCL_VERSION 664TCL_PATCH_LEVEL 665TCL_BIN_DIR 666TCL_SRC_DIR 667TCL_LIB_FILE 668TCL_LIB_FLAG 669TCL_LIB_SPEC 670TCL_STUB_LIB_FILE 671TCL_STUB_LIB_FLAG 672TCL_STUB_LIB_SPEC 673CLEANFILES 674TCL_LIBS 675TCL_DEFS 676TCL_EXTRA_CFLAGS 677TCL_LD_FLAGS 678TCL_SHLIB_LD_LIBS 679CC 680CFLAGS 681LDFLAGS 682CPPFLAGS 683ac_ct_CC 684OBJEXT 685CPP 686INSTALL_PROGRAM 687INSTALL_SCRIPT 688INSTALL_DATA 689SET_MAKE 690RANLIB 691GREP 692EGREP 693MATH_LIBS 694TDOM_VERSION 695TDOM_STUB_LIB_SPEC 696TDOM_SRC_DIR 697PKG_SOURCES 698PKG_OBJECTS 699TCL_INCLUDES 700TCL_THREADS 701SHARED_BUILD 702AR 703CELIB_DIR 704CFLAGS_DEBUG 705CFLAGS_OPTIMIZE 706CFLAGS_WARNING 707STLIB_LD 708SHLIB_LD 709SHLIB_LD_LIBS 710SHLIB_CFLAGS 711LD_LIBRARY_PATH_VAR 712CFLAGS_DEFAULT 713LDFLAGS_DEFAULT 714TCL_DBGX 715MAKE_LIB 716MAKE_SHARED_LIB 717MAKE_STATIC_LIB 718MAKE_STUB_LIB 719RANLIB_STUB 720VC_MANIFEST_EMBED_DLL 721VC_MANIFEST_EMBED_EXE 722TCLSH_PROG 723LIBOBJS 724LTLIBOBJS' 725ac_subst_files='' 726 ac_precious_vars='build_alias 727host_alias 728target_alias 729CC 730CFLAGS 731LDFLAGS 732LIBS 733CPPFLAGS 734CPP' 735 736 737# Initialize some variables set by options. 738ac_init_help= 739ac_init_version=false 740# The variables have the same names as the options, with 741# dashes changed to underlines. 742cache_file=/dev/null 743exec_prefix=NONE 744no_create= 745no_recursion= 746prefix=NONE 747program_prefix=NONE 748program_suffix=NONE 749program_transform_name=s,x,x, 750silent= 751site= 752srcdir= 753verbose= 754x_includes=NONE 755x_libraries=NONE 756 757# Installation directory options. 758# These are left unexpanded so users can "make install exec_prefix=/foo" 759# and all the variables that are supposed to be based on exec_prefix 760# by default will actually change. 761# Use braces instead of parens because sh, perl, etc. also accept them. 762# (The list follows the same order as the GNU Coding Standards.) 763bindir='${exec_prefix}/bin' 764sbindir='${exec_prefix}/sbin' 765libexecdir='${exec_prefix}/libexec' 766datarootdir='${prefix}/share' 767datadir='${datarootdir}' 768sysconfdir='${prefix}/etc' 769sharedstatedir='${prefix}/com' 770localstatedir='${prefix}/var' 771includedir='${prefix}/include' 772oldincludedir='/usr/include' 773docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 774infodir='${datarootdir}/info' 775htmldir='${docdir}' 776dvidir='${docdir}' 777pdfdir='${docdir}' 778psdir='${docdir}' 779libdir='${exec_prefix}/lib' 780localedir='${datarootdir}/locale' 781mandir='${datarootdir}/man' 782 783ac_prev= 784ac_dashdash= 785for ac_option 786do 787 # If the previous option needs an argument, assign it. 788 if test -n "$ac_prev"; then 789 eval $ac_prev=\$ac_option 790 ac_prev= 791 continue 792 fi 793 794 case $ac_option in 795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 796 *) ac_optarg=yes ;; 797 esac 798 799 # Accept the important Cygnus configure options, so we can diagnose typos. 800 801 case $ac_dashdash$ac_option in 802 --) 803 ac_dashdash=yes ;; 804 805 -bindir | --bindir | --bindi | --bind | --bin | --bi) 806 ac_prev=bindir ;; 807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 808 bindir=$ac_optarg ;; 809 810 -build | --build | --buil | --bui | --bu) 811 ac_prev=build_alias ;; 812 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 813 build_alias=$ac_optarg ;; 814 815 -cache-file | --cache-file | --cache-fil | --cache-fi \ 816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 817 ac_prev=cache_file ;; 818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 820 cache_file=$ac_optarg ;; 821 822 --config-cache | -C) 823 cache_file=config.cache ;; 824 825 -datadir | --datadir | --datadi | --datad) 826 ac_prev=datadir ;; 827 -datadir=* | --datadir=* | --datadi=* | --datad=*) 828 datadir=$ac_optarg ;; 829 830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 831 | --dataroo | --dataro | --datar) 832 ac_prev=datarootdir ;; 833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 835 datarootdir=$ac_optarg ;; 836 837 -disable-* | --disable-*) 838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 839 # Reject names that are not valid shell variable names. 840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 842 { (exit 1); exit 1; }; } 843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 844 eval enable_$ac_feature=no ;; 845 846 -docdir | --docdir | --docdi | --doc | --do) 847 ac_prev=docdir ;; 848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 849 docdir=$ac_optarg ;; 850 851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 852 ac_prev=dvidir ;; 853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 854 dvidir=$ac_optarg ;; 855 856 -enable-* | --enable-*) 857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 861 { (exit 1); exit 1; }; } 862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 863 eval enable_$ac_feature=\$ac_optarg ;; 864 865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 867 | --exec | --exe | --ex) 868 ac_prev=exec_prefix ;; 869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 871 | --exec=* | --exe=* | --ex=*) 872 exec_prefix=$ac_optarg ;; 873 874 -gas | --gas | --ga | --g) 875 # Obsolete; use --with-gas. 876 with_gas=yes ;; 877 878 -help | --help | --hel | --he | -h) 879 ac_init_help=long ;; 880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 881 ac_init_help=recursive ;; 882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 883 ac_init_help=short ;; 884 885 -host | --host | --hos | --ho) 886 ac_prev=host_alias ;; 887 -host=* | --host=* | --hos=* | --ho=*) 888 host_alias=$ac_optarg ;; 889 890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 891 ac_prev=htmldir ;; 892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 893 | --ht=*) 894 htmldir=$ac_optarg ;; 895 896 -includedir | --includedir | --includedi | --included | --include \ 897 | --includ | --inclu | --incl | --inc) 898 ac_prev=includedir ;; 899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 900 | --includ=* | --inclu=* | --incl=* | --inc=*) 901 includedir=$ac_optarg ;; 902 903 -infodir | --infodir | --infodi | --infod | --info | --inf) 904 ac_prev=infodir ;; 905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 906 infodir=$ac_optarg ;; 907 908 -libdir | --libdir | --libdi | --libd) 909 ac_prev=libdir ;; 910 -libdir=* | --libdir=* | --libdi=* | --libd=*) 911 libdir=$ac_optarg ;; 912 913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 914 | --libexe | --libex | --libe) 915 ac_prev=libexecdir ;; 916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 917 | --libexe=* | --libex=* | --libe=*) 918 libexecdir=$ac_optarg ;; 919 920 -localedir | --localedir | --localedi | --localed | --locale) 921 ac_prev=localedir ;; 922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 923 localedir=$ac_optarg ;; 924 925 -localstatedir | --localstatedir | --localstatedi | --localstated \ 926 | --localstate | --localstat | --localsta | --localst | --locals) 927 ac_prev=localstatedir ;; 928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 930 localstatedir=$ac_optarg ;; 931 932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 933 ac_prev=mandir ;; 934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 935 mandir=$ac_optarg ;; 936 937 -nfp | --nfp | --nf) 938 # Obsolete; use --without-fp. 939 with_fp=no ;; 940 941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 942 | --no-cr | --no-c | -n) 943 no_create=yes ;; 944 945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 947 no_recursion=yes ;; 948 949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 951 | --oldin | --oldi | --old | --ol | --o) 952 ac_prev=oldincludedir ;; 953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 956 oldincludedir=$ac_optarg ;; 957 958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 959 ac_prev=prefix ;; 960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 961 prefix=$ac_optarg ;; 962 963 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 964 | --program-pre | --program-pr | --program-p) 965 ac_prev=program_prefix ;; 966 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 968 program_prefix=$ac_optarg ;; 969 970 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 971 | --program-suf | --program-su | --program-s) 972 ac_prev=program_suffix ;; 973 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 975 program_suffix=$ac_optarg ;; 976 977 -program-transform-name | --program-transform-name \ 978 | --program-transform-nam | --program-transform-na \ 979 | --program-transform-n | --program-transform- \ 980 | --program-transform | --program-transfor \ 981 | --program-transfo | --program-transf \ 982 | --program-trans | --program-tran \ 983 | --progr-tra | --program-tr | --program-t) 984 ac_prev=program_transform_name ;; 985 -program-transform-name=* | --program-transform-name=* \ 986 | --program-transform-nam=* | --program-transform-na=* \ 987 | --program-transform-n=* | --program-transform-=* \ 988 | --program-transform=* | --program-transfor=* \ 989 | --program-transfo=* | --program-transf=* \ 990 | --program-trans=* | --program-tran=* \ 991 | --progr-tra=* | --program-tr=* | --program-t=*) 992 program_transform_name=$ac_optarg ;; 993 994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 995 ac_prev=pdfdir ;; 996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 997 pdfdir=$ac_optarg ;; 998 999 -psdir | --psdir | --psdi | --psd | --ps) 1000 ac_prev=psdir ;; 1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1002 psdir=$ac_optarg ;; 1003 1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1005 | -silent | --silent | --silen | --sile | --sil) 1006 silent=yes ;; 1007 1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1009 ac_prev=sbindir ;; 1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1011 | --sbi=* | --sb=*) 1012 sbindir=$ac_optarg ;; 1013 1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1016 | --sharedst | --shareds | --shared | --share | --shar \ 1017 | --sha | --sh) 1018 ac_prev=sharedstatedir ;; 1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1022 | --sha=* | --sh=*) 1023 sharedstatedir=$ac_optarg ;; 1024 1025 -site | --site | --sit) 1026 ac_prev=site ;; 1027 -site=* | --site=* | --sit=*) 1028 site=$ac_optarg ;; 1029 1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1031 ac_prev=srcdir ;; 1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1033 srcdir=$ac_optarg ;; 1034 1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1036 | --syscon | --sysco | --sysc | --sys | --sy) 1037 ac_prev=sysconfdir ;; 1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1040 sysconfdir=$ac_optarg ;; 1041 1042 -target | --target | --targe | --targ | --tar | --ta | --t) 1043 ac_prev=target_alias ;; 1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1045 target_alias=$ac_optarg ;; 1046 1047 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1048 verbose=yes ;; 1049 1050 -version | --version | --versio | --versi | --vers | -V) 1051 ac_init_version=: ;; 1052 1053 -with-* | --with-*) 1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid package name: $ac_package" >&2 1058 { (exit 1); exit 1; }; } 1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1060 eval with_$ac_package=\$ac_optarg ;; 1061 1062 -without-* | --without-*) 1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1066 { echo "$as_me: error: invalid package name: $ac_package" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1069 eval with_$ac_package=no ;; 1070 1071 --x) 1072 # Obsolete; use --with-x. 1073 with_x=yes ;; 1074 1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1076 | --x-incl | --x-inc | --x-in | --x-i) 1077 ac_prev=x_includes ;; 1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1080 x_includes=$ac_optarg ;; 1081 1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1084 ac_prev=x_libraries ;; 1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1087 x_libraries=$ac_optarg ;; 1088 1089 -*) { echo "$as_me: error: unrecognized option: $ac_option 1090Try \`$0 --help' for more information." >&2 1091 { (exit 1); exit 1; }; } 1092 ;; 1093 1094 *=*) 1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1099 { (exit 1); exit 1; }; } 1100 eval $ac_envvar=\$ac_optarg 1101 export $ac_envvar ;; 1102 1103 *) 1104 # FIXME: should be removed in autoconf 3.0. 1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1109 ;; 1110 1111 esac 1112done 1113 1114if test -n "$ac_prev"; then 1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1116 { echo "$as_me: error: missing argument to $ac_option" >&2 1117 { (exit 1); exit 1; }; } 1118fi 1119 1120# Be sure to have absolute directory names. 1121for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1122 datadir sysconfdir sharedstatedir localstatedir includedir \ 1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1124 libdir localedir mandir 1125do 1126 eval ac_val=\$$ac_var 1127 case $ac_val in 1128 [\\/$]* | ?:[\\/]* ) continue;; 1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1130 esac 1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1132 { (exit 1); exit 1; }; } 1133done 1134 1135# There might be people who depend on the old broken behavior: `$host' 1136# used to hold the argument of --host etc. 1137# FIXME: To remove some day. 1138build=$build_alias 1139host=$host_alias 1140target=$target_alias 1141 1142# FIXME: To remove some day. 1143if test "x$host_alias" != x; then 1144 if test "x$build_alias" = x; then 1145 cross_compiling=maybe 1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1147 If a cross compiler is detected then cross compile mode will be used." >&2 1148 elif test "x$build_alias" != "x$host_alias"; then 1149 cross_compiling=yes 1150 fi 1151fi 1152 1153ac_tool_prefix= 1154test -n "$host_alias" && ac_tool_prefix=$host_alias- 1155 1156test "$silent" = yes && exec 6>/dev/null 1157 1158 1159ac_pwd=`pwd` && test -n "$ac_pwd" && 1160ac_ls_di=`ls -di .` && 1161ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1162 { echo "$as_me: error: Working directory cannot be determined" >&2 1163 { (exit 1); exit 1; }; } 1164test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1165 { echo "$as_me: error: pwd does not report name of working directory" >&2 1166 { (exit 1); exit 1; }; } 1167 1168 1169# Find the source files, if location was not specified. 1170if test -z "$srcdir"; then 1171 ac_srcdir_defaulted=yes 1172 # Try the directory containing this script, then the parent directory. 1173 ac_confdir=`$as_dirname -- "$0" || 1174$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1175 X"$0" : 'X\(//\)[^/]' \| \ 1176 X"$0" : 'X\(//\)$' \| \ 1177 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1178echo X"$0" | 1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1180 s//\1/ 1181 q 1182 } 1183 /^X\(\/\/\)[^/].*/{ 1184 s//\1/ 1185 q 1186 } 1187 /^X\(\/\/\)$/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\).*/{ 1192 s//\1/ 1193 q 1194 } 1195 s/.*/./; q'` 1196 srcdir=$ac_confdir 1197 if test ! -r "$srcdir/$ac_unique_file"; then 1198 srcdir=.. 1199 fi 1200else 1201 ac_srcdir_defaulted=no 1202fi 1203if test ! -r "$srcdir/$ac_unique_file"; then 1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1206 { (exit 1); exit 1; }; } 1207fi 1208ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1209ac_abs_confdir=`( 1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1211 { (exit 1); exit 1; }; } 1212 pwd)` 1213# When building in place, set srcdir=. 1214if test "$ac_abs_confdir" = "$ac_pwd"; then 1215 srcdir=. 1216fi 1217# Remove unnecessary trailing slashes from srcdir. 1218# Double slashes in file names in object file debugging info 1219# mess up M-x gdb in Emacs. 1220case $srcdir in 1221*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1222esac 1223for ac_var in $ac_precious_vars; do 1224 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1225 eval ac_env_${ac_var}_value=\$${ac_var} 1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1227 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1228done 1229 1230# 1231# Report the --help message. 1232# 1233if test "$ac_init_help" = "long"; then 1234 # Omit some internal or obsolete options to make the list less imposing. 1235 # This message is too long to be a string in the A/UX 3.1 sh. 1236 cat <<_ACEOF 1237\`configure' configures tnc 0.3.0 to adapt to many kinds of systems. 1238 1239Usage: $0 [OPTION]... [VAR=VALUE]... 1240 1241To assign environment variables (e.g., CC, CFLAGS...), specify them as 1242VAR=VALUE. See below for descriptions of some of the useful variables. 1243 1244Defaults for the options are specified in brackets. 1245 1246Configuration: 1247 -h, --help display this help and exit 1248 --help=short display options specific to this package 1249 --help=recursive display the short help of all the included packages 1250 -V, --version display version information and exit 1251 -q, --quiet, --silent do not print \`checking...' messages 1252 --cache-file=FILE cache test results in FILE [disabled] 1253 -C, --config-cache alias for \`--cache-file=config.cache' 1254 -n, --no-create do not create output files 1255 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1256 1257Installation directories: 1258 --prefix=PREFIX install architecture-independent files in PREFIX 1259 [$ac_default_prefix] 1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1261 [PREFIX] 1262 1263By default, \`make install' will install all the files in 1264\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1265an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1266for instance \`--prefix=\$HOME'. 1267 1268For better control, use the options below. 1269 1270Fine tuning of the installation directories: 1271 --bindir=DIR user executables [EPREFIX/bin] 1272 --sbindir=DIR system admin executables [EPREFIX/sbin] 1273 --libexecdir=DIR program executables [EPREFIX/libexec] 1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1277 --libdir=DIR object code libraries [EPREFIX/lib] 1278 --includedir=DIR C header files [PREFIX/include] 1279 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1282 --infodir=DIR info documentation [DATAROOTDIR/info] 1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1284 --mandir=DIR man documentation [DATAROOTDIR/man] 1285 --docdir=DIR documentation root [DATAROOTDIR/doc/tnc] 1286 --htmldir=DIR html documentation [DOCDIR] 1287 --dvidir=DIR dvi documentation [DOCDIR] 1288 --pdfdir=DIR pdf documentation [DOCDIR] 1289 --psdir=DIR ps documentation [DOCDIR] 1290_ACEOF 1291 1292 cat <<\_ACEOF 1293_ACEOF 1294fi 1295 1296if test -n "$ac_init_help"; then 1297 case $ac_init_help in 1298 short | recursive ) echo "Configuration of tnc 0.3.0:";; 1299 esac 1300 cat <<\_ACEOF 1301 1302Optional Features: 1303 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1304 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1305 --enable-threads build with threads 1306 --enable-shared build and link with shared libraries (default: on) 1307 --enable-64bit enable 64bit support (default: off) 1308 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1309 --disable-rpath disable rpath support (default: on) 1310 --enable-wince enable Win/CE support (where applicable) 1311 --enable-symbols build with debugging symbols (default: off) 1312 1313Optional Packages: 1314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1316 --with-tcl directory containing tcl configuration 1317 (tclConfig.sh) 1318 --with-tdom directory containig tDOM configuration 1319 (tdomConfig.sh) 1320 --with-tclinclude directory containing the public Tcl header files 1321 --with-celib=DIR use Windows/CE support library from DIR 1322 1323Some influential environment variables: 1324 CC C compiler command 1325 CFLAGS C compiler flags 1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1327 nonstandard directory <lib dir> 1328 LIBS libraries to pass to the linker, e.g. -l<library> 1329 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1330 you have headers in a nonstandard directory <include dir> 1331 CPP C preprocessor 1332 1333Use these variables to override the choices made by `configure' or to help 1334it to find libraries and programs with nonstandard names/locations. 1335 1336_ACEOF 1337ac_status=$? 1338fi 1339 1340if test "$ac_init_help" = "recursive"; then 1341 # If there are subdirs, report their specific --help. 1342 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1343 test -d "$ac_dir" || continue 1344 ac_builddir=. 1345 1346case "$ac_dir" in 1347.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1348*) 1349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1350 # A ".." for each directory in $ac_dir_suffix. 1351 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1352 case $ac_top_builddir_sub in 1353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1355 esac ;; 1356esac 1357ac_abs_top_builddir=$ac_pwd 1358ac_abs_builddir=$ac_pwd$ac_dir_suffix 1359# for backward compatibility: 1360ac_top_builddir=$ac_top_build_prefix 1361 1362case $srcdir in 1363 .) # We are building in place. 1364 ac_srcdir=. 1365 ac_top_srcdir=$ac_top_builddir_sub 1366 ac_abs_top_srcdir=$ac_pwd ;; 1367 [\\/]* | ?:[\\/]* ) # Absolute name. 1368 ac_srcdir=$srcdir$ac_dir_suffix; 1369 ac_top_srcdir=$srcdir 1370 ac_abs_top_srcdir=$srcdir ;; 1371 *) # Relative name. 1372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1373 ac_top_srcdir=$ac_top_build_prefix$srcdir 1374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1375esac 1376ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1377 1378 cd "$ac_dir" || { ac_status=$?; continue; } 1379 # Check for guested configure. 1380 if test -f "$ac_srcdir/configure.gnu"; then 1381 echo && 1382 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1383 elif test -f "$ac_srcdir/configure"; then 1384 echo && 1385 $SHELL "$ac_srcdir/configure" --help=recursive 1386 else 1387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1388 fi || ac_status=$? 1389 cd "$ac_pwd" || { ac_status=$?; break; } 1390 done 1391fi 1392 1393test -n "$ac_init_help" && exit $ac_status 1394if $ac_init_version; then 1395 cat <<\_ACEOF 1396tnc configure 0.3.0 1397generated by GNU Autoconf 2.61 1398 1399Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14002002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1401This configure script is free software; the Free Software Foundation 1402gives unlimited permission to copy, distribute and modify it. 1403_ACEOF 1404 exit 1405fi 1406cat >config.log <<_ACEOF 1407This file contains any messages produced by compilers while 1408running configure, to aid debugging if configure makes a mistake. 1409 1410It was created by tnc $as_me 0.3.0, which was 1411generated by GNU Autoconf 2.61. Invocation command line was 1412 1413 $ $0 $@ 1414 1415_ACEOF 1416exec 5>>config.log 1417{ 1418cat <<_ASUNAME 1419## --------- ## 1420## Platform. ## 1421## --------- ## 1422 1423hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1424uname -m = `(uname -m) 2>/dev/null || echo unknown` 1425uname -r = `(uname -r) 2>/dev/null || echo unknown` 1426uname -s = `(uname -s) 2>/dev/null || echo unknown` 1427uname -v = `(uname -v) 2>/dev/null || echo unknown` 1428 1429/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1430/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1431 1432/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1433/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1434/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1435/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1436/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1437/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1438/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1439 1440_ASUNAME 1441 1442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1443for as_dir in $PATH 1444do 1445 IFS=$as_save_IFS 1446 test -z "$as_dir" && as_dir=. 1447 echo "PATH: $as_dir" 1448done 1449IFS=$as_save_IFS 1450 1451} >&5 1452 1453cat >&5 <<_ACEOF 1454 1455 1456## ----------- ## 1457## Core tests. ## 1458## ----------- ## 1459 1460_ACEOF 1461 1462 1463# Keep a trace of the command line. 1464# Strip out --no-create and --no-recursion so they do not pile up. 1465# Strip out --silent because we don't want to record it for future runs. 1466# Also quote any args containing shell meta-characters. 1467# Make two passes to allow for proper duplicate-argument suppression. 1468ac_configure_args= 1469ac_configure_args0= 1470ac_configure_args1= 1471ac_must_keep_next=false 1472for ac_pass in 1 2 1473do 1474 for ac_arg 1475 do 1476 case $ac_arg in 1477 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1479 | -silent | --silent | --silen | --sile | --sil) 1480 continue ;; 1481 *\'*) 1482 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1483 esac 1484 case $ac_pass in 1485 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1486 2) 1487 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1488 if test $ac_must_keep_next = true; then 1489 ac_must_keep_next=false # Got value, back to normal. 1490 else 1491 case $ac_arg in 1492 *=* | --config-cache | -C | -disable-* | --disable-* \ 1493 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1494 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1495 | -with-* | --with-* | -without-* | --without-* | --x) 1496 case "$ac_configure_args0 " in 1497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1498 esac 1499 ;; 1500 -* ) ac_must_keep_next=true ;; 1501 esac 1502 fi 1503 ac_configure_args="$ac_configure_args '$ac_arg'" 1504 ;; 1505 esac 1506 done 1507done 1508$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1509$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1510 1511# When interrupted or exit'd, cleanup temporary files, and complete 1512# config.log. We remove comments because anyway the quotes in there 1513# would cause problems or look ugly. 1514# WARNING: Use '\'' to represent an apostrophe within the trap. 1515# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1516trap 'exit_status=$? 1517 # Save into config.log some information that might help in debugging. 1518 { 1519 echo 1520 1521 cat <<\_ASBOX 1522## ---------------- ## 1523## Cache variables. ## 1524## ---------------- ## 1525_ASBOX 1526 echo 1527 # The following way of writing the cache mishandles newlines in values, 1528( 1529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1530 eval ac_val=\$$ac_var 1531 case $ac_val in #( 1532 *${as_nl}*) 1533 case $ac_var in #( 1534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1535echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1536 esac 1537 case $ac_var in #( 1538 _ | IFS | as_nl) ;; #( 1539 *) $as_unset $ac_var ;; 1540 esac ;; 1541 esac 1542 done 1543 (set) 2>&1 | 1544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1545 *${as_nl}ac_space=\ *) 1546 sed -n \ 1547 "s/'\''/'\''\\\\'\'''\''/g; 1548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1549 ;; #( 1550 *) 1551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1552 ;; 1553 esac | 1554 sort 1555) 1556 echo 1557 1558 cat <<\_ASBOX 1559## ----------------- ## 1560## Output variables. ## 1561## ----------------- ## 1562_ASBOX 1563 echo 1564 for ac_var in $ac_subst_vars 1565 do 1566 eval ac_val=\$$ac_var 1567 case $ac_val in 1568 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1569 esac 1570 echo "$ac_var='\''$ac_val'\''" 1571 done | sort 1572 echo 1573 1574 if test -n "$ac_subst_files"; then 1575 cat <<\_ASBOX 1576## ------------------- ## 1577## File substitutions. ## 1578## ------------------- ## 1579_ASBOX 1580 echo 1581 for ac_var in $ac_subst_files 1582 do 1583 eval ac_val=\$$ac_var 1584 case $ac_val in 1585 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1586 esac 1587 echo "$ac_var='\''$ac_val'\''" 1588 done | sort 1589 echo 1590 fi 1591 1592 if test -s confdefs.h; then 1593 cat <<\_ASBOX 1594## ----------- ## 1595## confdefs.h. ## 1596## ----------- ## 1597_ASBOX 1598 echo 1599 cat confdefs.h 1600 echo 1601 fi 1602 test "$ac_signal" != 0 && 1603 echo "$as_me: caught signal $ac_signal" 1604 echo "$as_me: exit $exit_status" 1605 } >&5 1606 rm -f core *.core core.conftest.* && 1607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1608 exit $exit_status 1609' 0 1610for ac_signal in 1 2 13 15; do 1611 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1612done 1613ac_signal=0 1614 1615# confdefs.h avoids OS command line length limits that DEFS can exceed. 1616rm -f -r conftest* confdefs.h 1617 1618# Predefined preprocessor variables. 1619 1620cat >>confdefs.h <<_ACEOF 1621#define PACKAGE_NAME "$PACKAGE_NAME" 1622_ACEOF 1623 1624 1625cat >>confdefs.h <<_ACEOF 1626#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1627_ACEOF 1628 1629 1630cat >>confdefs.h <<_ACEOF 1631#define PACKAGE_VERSION "$PACKAGE_VERSION" 1632_ACEOF 1633 1634 1635cat >>confdefs.h <<_ACEOF 1636#define PACKAGE_STRING "$PACKAGE_STRING" 1637_ACEOF 1638 1639 1640cat >>confdefs.h <<_ACEOF 1641#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1642_ACEOF 1643 1644 1645# Let the site file select an alternate cache file if it wants to. 1646# Prefer explicitly selected file to automatically selected ones. 1647if test -n "$CONFIG_SITE"; then 1648 set x "$CONFIG_SITE" 1649elif test "x$prefix" != xNONE; then 1650 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1651else 1652 set x "$ac_default_prefix/share/config.site" \ 1653 "$ac_default_prefix/etc/config.site" 1654fi 1655shift 1656for ac_site_file 1657do 1658 if test -r "$ac_site_file"; then 1659 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1660echo "$as_me: loading site script $ac_site_file" >&6;} 1661 sed 's/^/| /' "$ac_site_file" >&5 1662 . "$ac_site_file" 1663 fi 1664done 1665 1666if test -r "$cache_file"; then 1667 # Some versions of bash will fail to source /dev/null (special 1668 # files actually), so we avoid doing that. 1669 if test -f "$cache_file"; then 1670 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1671echo "$as_me: loading cache $cache_file" >&6;} 1672 case $cache_file in 1673 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1674 *) . "./$cache_file";; 1675 esac 1676 fi 1677else 1678 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1679echo "$as_me: creating cache $cache_file" >&6;} 1680 >$cache_file 1681fi 1682 1683# Check that the precious variables saved in the cache have kept the same 1684# value. 1685ac_cache_corrupted=false 1686for ac_var in $ac_precious_vars; do 1687 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1688 eval ac_new_set=\$ac_env_${ac_var}_set 1689 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1690 eval ac_new_val=\$ac_env_${ac_var}_value 1691 case $ac_old_set,$ac_new_set in 1692 set,) 1693 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1694echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1695 ac_cache_corrupted=: ;; 1696 ,set) 1697 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1698echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1699 ac_cache_corrupted=: ;; 1700 ,);; 1701 *) 1702 if test "x$ac_old_val" != "x$ac_new_val"; then 1703 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1704echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1705 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1706echo "$as_me: former value: $ac_old_val" >&2;} 1707 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1708echo "$as_me: current value: $ac_new_val" >&2;} 1709 ac_cache_corrupted=: 1710 fi;; 1711 esac 1712 # Pass precious variables to config.status. 1713 if test "$ac_new_set" = set; then 1714 case $ac_new_val in 1715 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1716 *) ac_arg=$ac_var=$ac_new_val ;; 1717 esac 1718 case " $ac_configure_args " in 1719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1720 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1721 esac 1722 fi 1723done 1724if $ac_cache_corrupted; then 1725 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1726echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1727 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1728echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1729 { (exit 1); exit 1; }; } 1730fi 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756ac_ext=c 1757ac_cpp='$CPP $CPPFLAGS' 1758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1760ac_compiler_gnu=$ac_cv_c_compiler_gnu 1761 1762 1763 1764#-------------------------------------------------------------------- 1765# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1766# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1767# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1768#-------------------------------------------------------------------- 1769 1770 1771 # TEA extensions pass this us the version of TEA they think they 1772 # are compatible with. 1773 TEA_VERSION="3.9" 1774 1775 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1776echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1777 if test x"${PACKAGE_NAME}" = x ; then 1778 { { echo "$as_me:$LINENO: error: 1779The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1780echo "$as_me: error: 1781The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1782 { (exit 1); exit 1; }; } 1783 fi 1784 if test x"3.9" = x ; then 1785 { { echo "$as_me:$LINENO: error: 1786TEA version not specified." >&5 1787echo "$as_me: error: 1788TEA version not specified." >&2;} 1789 { (exit 1); exit 1; }; } 1790 elif test "3.9" != "${TEA_VERSION}" ; then 1791 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1792echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1793 else 1794 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1795echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1796 fi 1797 case "`uname -s`" in 1798 *win32*|*WIN32*|*MINGW32_*) 1799 # Extract the first word of "cygpath", so it can be a program name with args. 1800set dummy cygpath; ac_word=$2 1801{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1803if test "${ac_cv_prog_CYGPATH+set}" = set; then 1804 echo $ECHO_N "(cached) $ECHO_C" >&6 1805else 1806 if test -n "$CYGPATH"; then 1807 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1808else 1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1810for as_dir in $PATH 1811do 1812 IFS=$as_save_IFS 1813 test -z "$as_dir" && as_dir=. 1814 for ac_exec_ext in '' $ac_executable_extensions; do 1815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1816 ac_cv_prog_CYGPATH="cygpath -w" 1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1818 break 2 1819 fi 1820done 1821done 1822IFS=$as_save_IFS 1823 1824 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1825fi 1826fi 1827CYGPATH=$ac_cv_prog_CYGPATH 1828if test -n "$CYGPATH"; then 1829 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1830echo "${ECHO_T}$CYGPATH" >&6; } 1831else 1832 { echo "$as_me:$LINENO: result: no" >&5 1833echo "${ECHO_T}no" >&6; } 1834fi 1835 1836 1837 EXEEXT=".exe" 1838 TEA_PLATFORM="windows" 1839 ;; 1840 *CYGWIN_*) 1841 CYGPATH=echo 1842 EXEEXT=".exe" 1843 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1844 ;; 1845 *) 1846 CYGPATH=echo 1847 EXEEXT="" 1848 TEA_PLATFORM="unix" 1849 ;; 1850 esac 1851 1852 # Check if exec_prefix is set. If not use fall back to prefix. 1853 # Note when adjusted, so that TEA_PREFIX can correct for this. 1854 # This is needed for recursive configures, since autoconf propagates 1855 # $prefix, but not $exec_prefix (doh!). 1856 if test x$exec_prefix = xNONE ; then 1857 exec_prefix_default=yes 1858 exec_prefix=$prefix 1859 fi 1860 1861 1862 1863 1864 # This package name must be replaced statically for AC_SUBST to work 1865 1866 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1867 1868 1869 # We AC_SUBST these here to ensure they are subst'ed, 1870 # in case the user doesn't call TEA_ADD_... 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880ac_aux_dir= 1881for ac_dir in ../../tclconfig "$srcdir"/../../tclconfig; do 1882 if test -f "$ac_dir/install-sh"; then 1883 ac_aux_dir=$ac_dir 1884 ac_install_sh="$ac_aux_dir/install-sh -c" 1885 break 1886 elif test -f "$ac_dir/install.sh"; then 1887 ac_aux_dir=$ac_dir 1888 ac_install_sh="$ac_aux_dir/install.sh -c" 1889 break 1890 elif test -f "$ac_dir/shtool"; then 1891 ac_aux_dir=$ac_dir 1892 ac_install_sh="$ac_aux_dir/shtool install -c" 1893 break 1894 fi 1895done 1896if test -z "$ac_aux_dir"; then 1897 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../tclconfig \"$srcdir\"/../../tclconfig" >&5 1898echo "$as_me: error: cannot find install-sh or install.sh in ../../tclconfig \"$srcdir\"/../../tclconfig" >&2;} 1899 { (exit 1); exit 1; }; } 1900fi 1901 1902# These three variables are undocumented and unsupported, 1903# and are intended to be withdrawn in a future Autoconf release. 1904# They can cause serious problems if a builder's source tree is in a directory 1905# whose full name contains unusual characters. 1906ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1907ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1908ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1909 1910 1911 1912#-------------------------------------------------------------------- 1913# Load the tclConfig.sh file 1914#-------------------------------------------------------------------- 1915 1916 1917 1918 # 1919 # Ok, lets find the tcl configuration 1920 # First, look for one uninstalled. 1921 # the alternative search directory is invoked by --with-tcl 1922 # 1923 1924 if test x"${no_tcl}" = x ; then 1925 # we reset no_tcl in case something fails here 1926 no_tcl=true 1927 1928# Check whether --with-tcl was given. 1929if test "${with_tcl+set}" = set; then 1930 withval=$with_tcl; with_tclconfig="${withval}" 1931fi 1932 1933 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1934echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1935 if test "${ac_cv_c_tclconfig+set}" = set; then 1936 echo $ECHO_N "(cached) $ECHO_C" >&6 1937else 1938 1939 1940 # First check to see if --with-tcl was specified. 1941 if test x"${with_tclconfig}" != x ; then 1942 case "${with_tclconfig}" in 1943 */tclConfig.sh ) 1944 if test -f "${with_tclconfig}"; then 1945 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1946echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1947 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1948 fi ;; 1949 esac 1950 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1951 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1952 else 1953 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1954echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1955 { (exit 1); exit 1; }; } 1956 fi 1957 fi 1958 1959 # then check for a private Tcl installation 1960 if test x"${ac_cv_c_tclconfig}" = x ; then 1961 for i in \ 1962 ../tcl \ 1963 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1964 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1965 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1966 ../../tcl \ 1967 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1968 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1969 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1970 ../../../tcl \ 1971 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1972 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1973 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1974 if test "${TEA_PLATFORM}" = "windows" \ 1975 -a -f "$i/win/tclConfig.sh" ; then 1976 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1977 break 1978 fi 1979 if test -f "$i/unix/tclConfig.sh" ; then 1980 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1981 break 1982 fi 1983 done 1984 fi 1985 1986 # on Darwin, check in Framework installation locations 1987 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1988 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1989 `ls -d /Library/Frameworks 2>/dev/null` \ 1990 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1991 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1992 ; do 1993 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1994 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1995 break 1996 fi 1997 done 1998 fi 1999 2000 # TEA specific: on Windows, check in common installation locations 2001 if test "${TEA_PLATFORM}" = "windows" \ 2002 -a x"${ac_cv_c_tclconfig}" = x ; then 2003 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2004 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2005 ; do 2006 if test -f "$i/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2008 break 2009 fi 2010 done 2011 fi 2012 2013 # check in a few common install locations 2014 if test x"${ac_cv_c_tclconfig}" = x ; then 2015 for i in `ls -d ${libdir} 2>/dev/null` \ 2016 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2017 `ls -d ${prefix}/lib 2>/dev/null` \ 2018 `ls -d /usr/local/lib 2>/dev/null` \ 2019 `ls -d /usr/contrib/lib 2>/dev/null` \ 2020 `ls -d /usr/lib 2>/dev/null` \ 2021 `ls -d /usr/lib64 2>/dev/null` \ 2022 ; do 2023 if test -f "$i/tclConfig.sh" ; then 2024 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2025 break 2026 fi 2027 done 2028 fi 2029 2030 # check in a few other private locations 2031 if test x"${ac_cv_c_tclconfig}" = x ; then 2032 for i in \ 2033 ${srcdir}/../tcl \ 2034 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2035 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2036 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2037 if test "${TEA_PLATFORM}" = "windows" \ 2038 -a -f "$i/win/tclConfig.sh" ; then 2039 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2040 break 2041 fi 2042 if test -f "$i/unix/tclConfig.sh" ; then 2043 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2044 break 2045 fi 2046 done 2047 fi 2048 2049fi 2050 2051 2052 if test x"${ac_cv_c_tclconfig}" = x ; then 2053 TCL_BIN_DIR="# no Tcl configs found" 2054 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2055echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2056 { (exit 1); exit 1; }; } 2057 else 2058 no_tcl= 2059 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2060 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2061echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2062 fi 2063 fi 2064 2065 2066 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2067echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2068 2069 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2070 { echo "$as_me:$LINENO: result: loading" >&5 2071echo "${ECHO_T}loading" >&6; } 2072 . "${TCL_BIN_DIR}/tclConfig.sh" 2073 else 2074 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2075echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2076 fi 2077 2078 # eval is required to do the TCL_DBGX substitution 2079 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2080 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2081 2082 # If the TCL_BIN_DIR is the build directory (not the install directory), 2083 # then set the common variable name to the value of the build variables. 2084 # For example, the variable TCL_LIB_SPEC will be set to the value 2085 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2086 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2087 # installed and uninstalled version of Tcl. 2088 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2089 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2090 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2091 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2092 elif test "`uname -s`" = "Darwin"; then 2093 # If Tcl was built as a framework, attempt to use the libraries 2094 # from the framework at the given location so that linking works 2095 # against Tcl.framework installed in an arbitrary location. 2096 case ${TCL_DEFS} in 2097 *TCL_FRAMEWORK*) 2098 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2099 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2100 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2101 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2102 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2103 break 2104 fi 2105 done 2106 fi 2107 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2108 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2109 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2110 fi 2111 ;; 2112 esac 2113 fi 2114 2115 # eval is required to do the TCL_DBGX substitution 2116 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2117 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2118 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2119 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 case "`uname -s`" in 2135 *CYGWIN_*) 2136 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2137echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2138 case ${TCL_EXTRA_CFLAGS} in 2139 *-mwin32*|*-mno-cygwin*) 2140 TEA_PLATFORM="windows" 2141 CFLAGS="$CFLAGS -mwin32" 2142 { echo "$as_me:$LINENO: result: win32" >&5 2143echo "${ECHO_T}win32" >&6; } 2144 ;; 2145 *) 2146 TEA_PLATFORM="unix" 2147 { echo "$as_me:$LINENO: result: unix" >&5 2148echo "${ECHO_T}unix" >&6; } 2149 ;; 2150 esac 2151 EXEEXT=".exe" 2152 ;; 2153 *) 2154 ;; 2155 esac 2156 2157 # Do this here as we have fully defined TEA_PLATFORM now 2158 if test "${TEA_PLATFORM}" = "windows" ; then 2159 # The BUILD_$pkg is to define the correct extern storage class 2160 # handling when making this package 2161 2162cat >>confdefs.h <<_ACEOF 2163#define BUILD_${PACKAGE_NAME} 2164_ACEOF 2165 2166 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2167 fi 2168 2169 # TEA specific: 2170 2171 2172 2173 2174 2175 2176 2177 2178#-------------------------------------------------------------------- 2179# Load the tkConfig.sh file if necessary (Tk extension) 2180#-------------------------------------------------------------------- 2181 2182#TEA_PATH_TKCONFIG 2183#TEA_LOAD_TKCONFIG 2184 2185#----------------------------------------------------------------------- 2186# Handle the --prefix=... option by defaulting to what Tcl gave. 2187# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2188#----------------------------------------------------------------------- 2189 2190 2191 if test "${prefix}" = "NONE"; then 2192 prefix_default=yes 2193 if test x"${TCL_PREFIX}" != x; then 2194 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2195echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2196 prefix=${TCL_PREFIX} 2197 else 2198 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2199echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2200 prefix=/usr/local 2201 fi 2202 fi 2203 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2204 -o x"${exec_prefix_default}" = x"yes" ; then 2205 if test x"${TCL_EXEC_PREFIX}" != x; then 2206 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2207echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2208 exec_prefix=${TCL_EXEC_PREFIX} 2209 else 2210 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2211echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2212 exec_prefix=$prefix 2213 fi 2214 fi 2215 2216 2217#----------------------------------------------------------------------- 2218# Standard compiler checks. 2219# This sets up CC by using the CC env var, or looks for gcc otherwise. 2220# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2221# the basic setup necessary to compile executables. 2222#----------------------------------------------------------------------- 2223 2224 2225 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2226 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2227 2228 # If the user did not set CFLAGS, set it now to keep 2229 # the AC_PROG_CC macro from adding "-g -O2". 2230 if test "${CFLAGS+set}" != "set" ; then 2231 CFLAGS="" 2232 fi 2233 2234 ac_ext=c 2235ac_cpp='$CPP $CPPFLAGS' 2236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2238ac_compiler_gnu=$ac_cv_c_compiler_gnu 2239if test -n "$ac_tool_prefix"; then 2240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2241set dummy ${ac_tool_prefix}gcc; ac_word=$2 2242{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2244if test "${ac_cv_prog_CC+set}" = set; then 2245 echo $ECHO_N "(cached) $ECHO_C" >&6 2246else 2247 if test -n "$CC"; then 2248 ac_cv_prog_CC="$CC" # Let the user override the test. 2249else 2250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2251for as_dir in $PATH 2252do 2253 IFS=$as_save_IFS 2254 test -z "$as_dir" && as_dir=. 2255 for ac_exec_ext in '' $ac_executable_extensions; do 2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2257 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2259 break 2 2260 fi 2261done 2262done 2263IFS=$as_save_IFS 2264 2265fi 2266fi 2267CC=$ac_cv_prog_CC 2268if test -n "$CC"; then 2269 { echo "$as_me:$LINENO: result: $CC" >&5 2270echo "${ECHO_T}$CC" >&6; } 2271else 2272 { echo "$as_me:$LINENO: result: no" >&5 2273echo "${ECHO_T}no" >&6; } 2274fi 2275 2276 2277fi 2278if test -z "$ac_cv_prog_CC"; then 2279 ac_ct_CC=$CC 2280 # Extract the first word of "gcc", so it can be a program name with args. 2281set dummy gcc; ac_word=$2 2282{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2285 echo $ECHO_N "(cached) $ECHO_C" >&6 2286else 2287 if test -n "$ac_ct_CC"; then 2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2289else 2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2291for as_dir in $PATH 2292do 2293 IFS=$as_save_IFS 2294 test -z "$as_dir" && as_dir=. 2295 for ac_exec_ext in '' $ac_executable_extensions; do 2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2297 ac_cv_prog_ac_ct_CC="gcc" 2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2299 break 2 2300 fi 2301done 2302done 2303IFS=$as_save_IFS 2304 2305fi 2306fi 2307ac_ct_CC=$ac_cv_prog_ac_ct_CC 2308if test -n "$ac_ct_CC"; then 2309 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2310echo "${ECHO_T}$ac_ct_CC" >&6; } 2311else 2312 { echo "$as_me:$LINENO: result: no" >&5 2313echo "${ECHO_T}no" >&6; } 2314fi 2315 2316 if test "x$ac_ct_CC" = x; then 2317 CC="" 2318 else 2319 case $cross_compiling:$ac_tool_warned in 2320yes:) 2321{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2322whose name does not start with the host triplet. If you think this 2323configuration is useful to you, please write to autoconf@gnu.org." >&5 2324echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2325whose name does not start with the host triplet. If you think this 2326configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2327ac_tool_warned=yes ;; 2328esac 2329 CC=$ac_ct_CC 2330 fi 2331else 2332 CC="$ac_cv_prog_CC" 2333fi 2334 2335if test -z "$CC"; then 2336 if test -n "$ac_tool_prefix"; then 2337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2338set dummy ${ac_tool_prefix}cc; ac_word=$2 2339{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2341if test "${ac_cv_prog_CC+set}" = set; then 2342 echo $ECHO_N "(cached) $ECHO_C" >&6 2343else 2344 if test -n "$CC"; then 2345 ac_cv_prog_CC="$CC" # Let the user override the test. 2346else 2347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2348for as_dir in $PATH 2349do 2350 IFS=$as_save_IFS 2351 test -z "$as_dir" && as_dir=. 2352 for ac_exec_ext in '' $ac_executable_extensions; do 2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2354 ac_cv_prog_CC="${ac_tool_prefix}cc" 2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2356 break 2 2357 fi 2358done 2359done 2360IFS=$as_save_IFS 2361 2362fi 2363fi 2364CC=$ac_cv_prog_CC 2365if test -n "$CC"; then 2366 { echo "$as_me:$LINENO: result: $CC" >&5 2367echo "${ECHO_T}$CC" >&6; } 2368else 2369 { echo "$as_me:$LINENO: result: no" >&5 2370echo "${ECHO_T}no" >&6; } 2371fi 2372 2373 2374 fi 2375fi 2376if test -z "$CC"; then 2377 # Extract the first word of "cc", so it can be a program name with args. 2378set dummy cc; ac_word=$2 2379{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2381if test "${ac_cv_prog_CC+set}" = set; then 2382 echo $ECHO_N "(cached) $ECHO_C" >&6 2383else 2384 if test -n "$CC"; then 2385 ac_cv_prog_CC="$CC" # Let the user override the test. 2386else 2387 ac_prog_rejected=no 2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2389for as_dir in $PATH 2390do 2391 IFS=$as_save_IFS 2392 test -z "$as_dir" && as_dir=. 2393 for ac_exec_ext in '' $ac_executable_extensions; do 2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2395 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2396 ac_prog_rejected=yes 2397 continue 2398 fi 2399 ac_cv_prog_CC="cc" 2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404done 2405IFS=$as_save_IFS 2406 2407if test $ac_prog_rejected = yes; then 2408 # We found a bogon in the path, so make sure we never use it. 2409 set dummy $ac_cv_prog_CC 2410 shift 2411 if test $# != 0; then 2412 # We chose a different compiler from the bogus one. 2413 # However, it has the same basename, so the bogon will be chosen 2414 # first if we set CC to just the basename; use the full file name. 2415 shift 2416 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2417 fi 2418fi 2419fi 2420fi 2421CC=$ac_cv_prog_CC 2422if test -n "$CC"; then 2423 { echo "$as_me:$LINENO: result: $CC" >&5 2424echo "${ECHO_T}$CC" >&6; } 2425else 2426 { echo "$as_me:$LINENO: result: no" >&5 2427echo "${ECHO_T}no" >&6; } 2428fi 2429 2430 2431fi 2432if test -z "$CC"; then 2433 if test -n "$ac_tool_prefix"; then 2434 for ac_prog in cl.exe 2435 do 2436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2437set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2438{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2440if test "${ac_cv_prog_CC+set}" = set; then 2441 echo $ECHO_N "(cached) $ECHO_C" >&6 2442else 2443 if test -n "$CC"; then 2444 ac_cv_prog_CC="$CC" # Let the user override the test. 2445else 2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2447for as_dir in $PATH 2448do 2449 IFS=$as_save_IFS 2450 test -z "$as_dir" && as_dir=. 2451 for ac_exec_ext in '' $ac_executable_extensions; do 2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2455 break 2 2456 fi 2457done 2458done 2459IFS=$as_save_IFS 2460 2461fi 2462fi 2463CC=$ac_cv_prog_CC 2464if test -n "$CC"; then 2465 { echo "$as_me:$LINENO: result: $CC" >&5 2466echo "${ECHO_T}$CC" >&6; } 2467else 2468 { echo "$as_me:$LINENO: result: no" >&5 2469echo "${ECHO_T}no" >&6; } 2470fi 2471 2472 2473 test -n "$CC" && break 2474 done 2475fi 2476if test -z "$CC"; then 2477 ac_ct_CC=$CC 2478 for ac_prog in cl.exe 2479do 2480 # Extract the first word of "$ac_prog", so it can be a program name with args. 2481set dummy $ac_prog; ac_word=$2 2482{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2486else 2487 if test -n "$ac_ct_CC"; then 2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2489else 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2497 ac_cv_prog_ac_ct_CC="$ac_prog" 2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502done 2503IFS=$as_save_IFS 2504 2505fi 2506fi 2507ac_ct_CC=$ac_cv_prog_ac_ct_CC 2508if test -n "$ac_ct_CC"; then 2509 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2510echo "${ECHO_T}$ac_ct_CC" >&6; } 2511else 2512 { echo "$as_me:$LINENO: result: no" >&5 2513echo "${ECHO_T}no" >&6; } 2514fi 2515 2516 2517 test -n "$ac_ct_CC" && break 2518done 2519 2520 if test "x$ac_ct_CC" = x; then 2521 CC="" 2522 else 2523 case $cross_compiling:$ac_tool_warned in 2524yes:) 2525{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2526whose name does not start with the host triplet. If you think this 2527configuration is useful to you, please write to autoconf@gnu.org." >&5 2528echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2529whose name does not start with the host triplet. If you think this 2530configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2531ac_tool_warned=yes ;; 2532esac 2533 CC=$ac_ct_CC 2534 fi 2535fi 2536 2537fi 2538 2539 2540test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2541See \`config.log' for more details." >&5 2542echo "$as_me: error: no acceptable C compiler found in \$PATH 2543See \`config.log' for more details." >&2;} 2544 { (exit 1); exit 1; }; } 2545 2546# Provide some information about the compiler. 2547echo "$as_me:$LINENO: checking for C compiler version" >&5 2548ac_compiler=`set X $ac_compile; echo $2` 2549{ (ac_try="$ac_compiler --version >&5" 2550case "(($ac_try" in 2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2552 *) ac_try_echo=$ac_try;; 2553esac 2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2555 (eval "$ac_compiler --version >&5") 2>&5 2556 ac_status=$? 2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2558 (exit $ac_status); } 2559{ (ac_try="$ac_compiler -v >&5" 2560case "(($ac_try" in 2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2562 *) ac_try_echo=$ac_try;; 2563esac 2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2565 (eval "$ac_compiler -v >&5") 2>&5 2566 ac_status=$? 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); } 2569{ (ac_try="$ac_compiler -V >&5" 2570case "(($ac_try" in 2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2572 *) ac_try_echo=$ac_try;; 2573esac 2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2575 (eval "$ac_compiler -V >&5") 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); } 2579 2580cat >conftest.$ac_ext <<_ACEOF 2581/* confdefs.h. */ 2582_ACEOF 2583cat confdefs.h >>conftest.$ac_ext 2584cat >>conftest.$ac_ext <<_ACEOF 2585/* end confdefs.h. */ 2586 2587int 2588main () 2589{ 2590 2591 ; 2592 return 0; 2593} 2594_ACEOF 2595ac_clean_files_save=$ac_clean_files 2596ac_clean_files="$ac_clean_files a.out a.exe b.out" 2597# Try to create an executable without -o first, disregard a.out. 2598# It will help us diagnose broken compilers, and finding out an intuition 2599# of exeext. 2600{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2601echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2602ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2603# 2604# List of possible output files, starting from the most likely. 2605# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2606# only as a last resort. b.out is created by i960 compilers. 2607ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2608# 2609# The IRIX 6 linker writes into existing files which may not be 2610# executable, retaining their permissions. Remove them first so a 2611# subsequent execution test works. 2612ac_rmfiles= 2613for ac_file in $ac_files 2614do 2615 case $ac_file in 2616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2617 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2618 esac 2619done 2620rm -f $ac_rmfiles 2621 2622if { (ac_try="$ac_link_default" 2623case "(($ac_try" in 2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2625 *) ac_try_echo=$ac_try;; 2626esac 2627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2628 (eval "$ac_link_default") 2>&5 2629 ac_status=$? 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); }; then 2632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2633# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2634# in a Makefile. We should not override ac_cv_exeext if it was cached, 2635# so that the user can short-circuit this test for compilers unknown to 2636# Autoconf. 2637for ac_file in $ac_files '' 2638do 2639 test -f "$ac_file" || continue 2640 case $ac_file in 2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2642 ;; 2643 [ab].out ) 2644 # We found the default executable, but exeext='' is most 2645 # certainly right. 2646 break;; 2647 *.* ) 2648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2649 then :; else 2650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2651 fi 2652 # We set ac_cv_exeext here because the later test for it is not 2653 # safe: cross compilers may not add the suffix if given an `-o' 2654 # argument, so we may need to know it at that point already. 2655 # Even if this section looks crufty: it has the advantage of 2656 # actually working. 2657 break;; 2658 * ) 2659 break;; 2660 esac 2661done 2662test "$ac_cv_exeext" = no && ac_cv_exeext= 2663 2664else 2665 ac_file='' 2666fi 2667 2668{ echo "$as_me:$LINENO: result: $ac_file" >&5 2669echo "${ECHO_T}$ac_file" >&6; } 2670if test -z "$ac_file"; then 2671 echo "$as_me: failed program was:" >&5 2672sed 's/^/| /' conftest.$ac_ext >&5 2673 2674{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2675See \`config.log' for more details." >&5 2676echo "$as_me: error: C compiler cannot create executables 2677See \`config.log' for more details." >&2;} 2678 { (exit 77); exit 77; }; } 2679fi 2680 2681ac_exeext=$ac_cv_exeext 2682 2683# Check that the compiler produces executables we can run. If not, either 2684# the compiler is broken, or we cross compile. 2685{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2686echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2687# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2688# If not cross compiling, check that we can run a simple program. 2689if test "$cross_compiling" != yes; then 2690 if { ac_try='./$ac_file' 2691 { (case "(($ac_try" in 2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2693 *) ac_try_echo=$ac_try;; 2694esac 2695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2696 (eval "$ac_try") 2>&5 2697 ac_status=$? 2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2699 (exit $ac_status); }; }; then 2700 cross_compiling=no 2701 else 2702 if test "$cross_compiling" = maybe; then 2703 cross_compiling=yes 2704 else 2705 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2706If you meant to cross compile, use \`--host'. 2707See \`config.log' for more details." >&5 2708echo "$as_me: error: cannot run C compiled programs. 2709If you meant to cross compile, use \`--host'. 2710See \`config.log' for more details." >&2;} 2711 { (exit 1); exit 1; }; } 2712 fi 2713 fi 2714fi 2715{ echo "$as_me:$LINENO: result: yes" >&5 2716echo "${ECHO_T}yes" >&6; } 2717 2718rm -f a.out a.exe conftest$ac_cv_exeext b.out 2719ac_clean_files=$ac_clean_files_save 2720# Check that the compiler produces executables we can run. If not, either 2721# the compiler is broken, or we cross compile. 2722{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2723echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2724{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2725echo "${ECHO_T}$cross_compiling" >&6; } 2726 2727{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2728echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2729if { (ac_try="$ac_link" 2730case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2735 (eval "$ac_link") 2>&5 2736 ac_status=$? 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); }; then 2739 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2740# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2741# work properly (i.e., refer to `conftest.exe'), while it won't with 2742# `rm'. 2743for ac_file in conftest.exe conftest conftest.*; do 2744 test -f "$ac_file" || continue 2745 case $ac_file in 2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2748 break;; 2749 * ) break;; 2750 esac 2751done 2752else 2753 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2754See \`config.log' for more details." >&5 2755echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2756See \`config.log' for more details." >&2;} 2757 { (exit 1); exit 1; }; } 2758fi 2759 2760rm -f conftest$ac_cv_exeext 2761{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2762echo "${ECHO_T}$ac_cv_exeext" >&6; } 2763 2764rm -f conftest.$ac_ext 2765EXEEXT=$ac_cv_exeext 2766ac_exeext=$EXEEXT 2767{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2768echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2769if test "${ac_cv_objext+set}" = set; then 2770 echo $ECHO_N "(cached) $ECHO_C" >&6 2771else 2772 cat >conftest.$ac_ext <<_ACEOF 2773/* confdefs.h. */ 2774_ACEOF 2775cat confdefs.h >>conftest.$ac_ext 2776cat >>conftest.$ac_ext <<_ACEOF 2777/* end confdefs.h. */ 2778 2779int 2780main () 2781{ 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787rm -f conftest.o conftest.obj 2788if { (ac_try="$ac_compile" 2789case "(($ac_try" in 2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2791 *) ac_try_echo=$ac_try;; 2792esac 2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2794 (eval "$ac_compile") 2>&5 2795 ac_status=$? 2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2797 (exit $ac_status); }; then 2798 for ac_file in conftest.o conftest.obj conftest.*; do 2799 test -f "$ac_file" || continue; 2800 case $ac_file in 2801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2802 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2803 break;; 2804 esac 2805done 2806else 2807 echo "$as_me: failed program was:" >&5 2808sed 's/^/| /' conftest.$ac_ext >&5 2809 2810{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2811See \`config.log' for more details." >&5 2812echo "$as_me: error: cannot compute suffix of object files: cannot compile 2813See \`config.log' for more details." >&2;} 2814 { (exit 1); exit 1; }; } 2815fi 2816 2817rm -f conftest.$ac_cv_objext conftest.$ac_ext 2818fi 2819{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2820echo "${ECHO_T}$ac_cv_objext" >&6; } 2821OBJEXT=$ac_cv_objext 2822ac_objext=$OBJEXT 2823{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2824echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2825if test "${ac_cv_c_compiler_gnu+set}" = set; then 2826 echo $ECHO_N "(cached) $ECHO_C" >&6 2827else 2828 cat >conftest.$ac_ext <<_ACEOF 2829/* confdefs.h. */ 2830_ACEOF 2831cat confdefs.h >>conftest.$ac_ext 2832cat >>conftest.$ac_ext <<_ACEOF 2833/* end confdefs.h. */ 2834 2835int 2836main () 2837{ 2838#ifndef __GNUC__ 2839 choke me 2840#endif 2841 2842 ; 2843 return 0; 2844} 2845_ACEOF 2846rm -f conftest.$ac_objext 2847if { (ac_try="$ac_compile" 2848case "(($ac_try" in 2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2850 *) ac_try_echo=$ac_try;; 2851esac 2852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2853 (eval "$ac_compile") 2>conftest.er1 2854 ac_status=$? 2855 grep -v '^ *+' conftest.er1 >conftest.err 2856 rm -f conftest.er1 2857 cat conftest.err >&5 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); } && { 2860 test -z "$ac_c_werror_flag" || 2861 test ! -s conftest.err 2862 } && test -s conftest.$ac_objext; then 2863 ac_compiler_gnu=yes 2864else 2865 echo "$as_me: failed program was:" >&5 2866sed 's/^/| /' conftest.$ac_ext >&5 2867 2868 ac_compiler_gnu=no 2869fi 2870 2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2872ac_cv_c_compiler_gnu=$ac_compiler_gnu 2873 2874fi 2875{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2876echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2877GCC=`test $ac_compiler_gnu = yes && echo yes` 2878ac_test_CFLAGS=${CFLAGS+set} 2879ac_save_CFLAGS=$CFLAGS 2880{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2881echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2882if test "${ac_cv_prog_cc_g+set}" = set; then 2883 echo $ECHO_N "(cached) $ECHO_C" >&6 2884else 2885 ac_save_c_werror_flag=$ac_c_werror_flag 2886 ac_c_werror_flag=yes 2887 ac_cv_prog_cc_g=no 2888 CFLAGS="-g" 2889 cat >conftest.$ac_ext <<_ACEOF 2890/* confdefs.h. */ 2891_ACEOF 2892cat confdefs.h >>conftest.$ac_ext 2893cat >>conftest.$ac_ext <<_ACEOF 2894/* end confdefs.h. */ 2895 2896int 2897main () 2898{ 2899 2900 ; 2901 return 0; 2902} 2903_ACEOF 2904rm -f conftest.$ac_objext 2905if { (ac_try="$ac_compile" 2906case "(($ac_try" in 2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2908 *) ac_try_echo=$ac_try;; 2909esac 2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2911 (eval "$ac_compile") 2>conftest.er1 2912 ac_status=$? 2913 grep -v '^ *+' conftest.er1 >conftest.err 2914 rm -f conftest.er1 2915 cat conftest.err >&5 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } && { 2918 test -z "$ac_c_werror_flag" || 2919 test ! -s conftest.err 2920 } && test -s conftest.$ac_objext; then 2921 ac_cv_prog_cc_g=yes 2922else 2923 echo "$as_me: failed program was:" >&5 2924sed 's/^/| /' conftest.$ac_ext >&5 2925 2926 CFLAGS="" 2927 cat >conftest.$ac_ext <<_ACEOF 2928/* confdefs.h. */ 2929_ACEOF 2930cat confdefs.h >>conftest.$ac_ext 2931cat >>conftest.$ac_ext <<_ACEOF 2932/* end confdefs.h. */ 2933 2934int 2935main () 2936{ 2937 2938 ; 2939 return 0; 2940} 2941_ACEOF 2942rm -f conftest.$ac_objext 2943if { (ac_try="$ac_compile" 2944case "(($ac_try" in 2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2946 *) ac_try_echo=$ac_try;; 2947esac 2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2949 (eval "$ac_compile") 2>conftest.er1 2950 ac_status=$? 2951 grep -v '^ *+' conftest.er1 >conftest.err 2952 rm -f conftest.er1 2953 cat conftest.err >&5 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); } && { 2956 test -z "$ac_c_werror_flag" || 2957 test ! -s conftest.err 2958 } && test -s conftest.$ac_objext; then 2959 : 2960else 2961 echo "$as_me: failed program was:" >&5 2962sed 's/^/| /' conftest.$ac_ext >&5 2963 2964 ac_c_werror_flag=$ac_save_c_werror_flag 2965 CFLAGS="-g" 2966 cat >conftest.$ac_ext <<_ACEOF 2967/* confdefs.h. */ 2968_ACEOF 2969cat confdefs.h >>conftest.$ac_ext 2970cat >>conftest.$ac_ext <<_ACEOF 2971/* end confdefs.h. */ 2972 2973int 2974main () 2975{ 2976 2977 ; 2978 return 0; 2979} 2980_ACEOF 2981rm -f conftest.$ac_objext 2982if { (ac_try="$ac_compile" 2983case "(($ac_try" in 2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2985 *) ac_try_echo=$ac_try;; 2986esac 2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2988 (eval "$ac_compile") 2>conftest.er1 2989 ac_status=$? 2990 grep -v '^ *+' conftest.er1 >conftest.err 2991 rm -f conftest.er1 2992 cat conftest.err >&5 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); } && { 2995 test -z "$ac_c_werror_flag" || 2996 test ! -s conftest.err 2997 } && test -s conftest.$ac_objext; then 2998 ac_cv_prog_cc_g=yes 2999else 3000 echo "$as_me: failed program was:" >&5 3001sed 's/^/| /' conftest.$ac_ext >&5 3002 3003 3004fi 3005 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007fi 3008 3009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3010fi 3011 3012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3013 ac_c_werror_flag=$ac_save_c_werror_flag 3014fi 3015{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3017if test "$ac_test_CFLAGS" = set; then 3018 CFLAGS=$ac_save_CFLAGS 3019elif test $ac_cv_prog_cc_g = yes; then 3020 if test "$GCC" = yes; then 3021 CFLAGS="-g -O2" 3022 else 3023 CFLAGS="-g" 3024 fi 3025else 3026 if test "$GCC" = yes; then 3027 CFLAGS="-O2" 3028 else 3029 CFLAGS= 3030 fi 3031fi 3032{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3033echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3034if test "${ac_cv_prog_cc_c89+set}" = set; then 3035 echo $ECHO_N "(cached) $ECHO_C" >&6 3036else 3037 ac_cv_prog_cc_c89=no 3038ac_save_CC=$CC 3039cat >conftest.$ac_ext <<_ACEOF 3040/* confdefs.h. */ 3041_ACEOF 3042cat confdefs.h >>conftest.$ac_ext 3043cat >>conftest.$ac_ext <<_ACEOF 3044/* end confdefs.h. */ 3045#include <stdarg.h> 3046#include <stdio.h> 3047#include <sys/types.h> 3048#include <sys/stat.h> 3049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3050struct buf { int x; }; 3051FILE * (*rcsopen) (struct buf *, struct stat *, int); 3052static char *e (p, i) 3053 char **p; 3054 int i; 3055{ 3056 return p[i]; 3057} 3058static char *f (char * (*g) (char **, int), char **p, ...) 3059{ 3060 char *s; 3061 va_list v; 3062 va_start (v,p); 3063 s = g (p, va_arg (v,int)); 3064 va_end (v); 3065 return s; 3066} 3067 3068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3069 function prototypes and stuff, but not '\xHH' hex character constants. 3070 These don't provoke an error unfortunately, instead are silently treated 3071 as 'x'. The following induces an error, until -std is added to get 3072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3073 array size at least. It's necessary to write '\x00'==0 to get something 3074 that's true only with -std. */ 3075int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3076 3077/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3078 inside strings and character constants. */ 3079#define FOO(x) 'x' 3080int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3081 3082int test (int i, double x); 3083struct s1 {int (*f) (int a);}; 3084struct s2 {int (*f) (double a);}; 3085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3086int argc; 3087char **argv; 3088int 3089main () 3090{ 3091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3098do 3099 CC="$ac_save_CC $ac_arg" 3100 rm -f conftest.$ac_objext 3101if { (ac_try="$ac_compile" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3107 (eval "$ac_compile") 2>conftest.er1 3108 ac_status=$? 3109 grep -v '^ *+' conftest.er1 >conftest.err 3110 rm -f conftest.er1 3111 cat conftest.err >&5 3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 (exit $ac_status); } && { 3114 test -z "$ac_c_werror_flag" || 3115 test ! -s conftest.err 3116 } && test -s conftest.$ac_objext; then 3117 ac_cv_prog_cc_c89=$ac_arg 3118else 3119 echo "$as_me: failed program was:" >&5 3120sed 's/^/| /' conftest.$ac_ext >&5 3121 3122 3123fi 3124 3125rm -f core conftest.err conftest.$ac_objext 3126 test "x$ac_cv_prog_cc_c89" != "xno" && break 3127done 3128rm -f conftest.$ac_ext 3129CC=$ac_save_CC 3130 3131fi 3132# AC_CACHE_VAL 3133case "x$ac_cv_prog_cc_c89" in 3134 x) 3135 { echo "$as_me:$LINENO: result: none needed" >&5 3136echo "${ECHO_T}none needed" >&6; } ;; 3137 xno) 3138 { echo "$as_me:$LINENO: result: unsupported" >&5 3139echo "${ECHO_T}unsupported" >&6; } ;; 3140 *) 3141 CC="$CC $ac_cv_prog_cc_c89" 3142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3143echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3144esac 3145 3146 3147ac_ext=c 3148ac_cpp='$CPP $CPPFLAGS' 3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3151ac_compiler_gnu=$ac_cv_c_compiler_gnu 3152 3153 ac_ext=c 3154ac_cpp='$CPP $CPPFLAGS' 3155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3157ac_compiler_gnu=$ac_cv_c_compiler_gnu 3158{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3159echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3160# On Suns, sometimes $CPP names a directory. 3161if test -n "$CPP" && test -d "$CPP"; then 3162 CPP= 3163fi 3164if test -z "$CPP"; then 3165 if test "${ac_cv_prog_CPP+set}" = set; then 3166 echo $ECHO_N "(cached) $ECHO_C" >&6 3167else 3168 # Double quotes because CPP needs to be expanded 3169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3170 do 3171 ac_preproc_ok=false 3172for ac_c_preproc_warn_flag in '' yes 3173do 3174 # Use a header file that comes with gcc, so configuring glibc 3175 # with a fresh cross-compiler works. 3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3177 # <limits.h> exists even on freestanding compilers. 3178 # On the NeXT, cc -E runs the code through the compiler's parser, 3179 # not just through cpp. "Syntax error" is here to catch this case. 3180 cat >conftest.$ac_ext <<_ACEOF 3181/* confdefs.h. */ 3182_ACEOF 3183cat confdefs.h >>conftest.$ac_ext 3184cat >>conftest.$ac_ext <<_ACEOF 3185/* end confdefs.h. */ 3186#ifdef __STDC__ 3187# include <limits.h> 3188#else 3189# include <assert.h> 3190#endif 3191 Syntax error 3192_ACEOF 3193if { (ac_try="$ac_cpp conftest.$ac_ext" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3200 ac_status=$? 3201 grep -v '^ *+' conftest.er1 >conftest.err 3202 rm -f conftest.er1 3203 cat conftest.err >&5 3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); } >/dev/null && { 3206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3207 test ! -s conftest.err 3208 }; then 3209 : 3210else 3211 echo "$as_me: failed program was:" >&5 3212sed 's/^/| /' conftest.$ac_ext >&5 3213 3214 # Broken: fails on valid input. 3215continue 3216fi 3217 3218rm -f conftest.err conftest.$ac_ext 3219 3220 # OK, works on sane cases. Now check whether nonexistent headers 3221 # can be detected and how. 3222 cat >conftest.$ac_ext <<_ACEOF 3223/* confdefs.h. */ 3224_ACEOF 3225cat confdefs.h >>conftest.$ac_ext 3226cat >>conftest.$ac_ext <<_ACEOF 3227/* end confdefs.h. */ 3228#include <ac_nonexistent.h> 3229_ACEOF 3230if { (ac_try="$ac_cpp conftest.$ac_ext" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3237 ac_status=$? 3238 grep -v '^ *+' conftest.er1 >conftest.err 3239 rm -f conftest.er1 3240 cat conftest.err >&5 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3242 (exit $ac_status); } >/dev/null && { 3243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3244 test ! -s conftest.err 3245 }; then 3246 # Broken: success on invalid input. 3247continue 3248else 3249 echo "$as_me: failed program was:" >&5 3250sed 's/^/| /' conftest.$ac_ext >&5 3251 3252 # Passes both tests. 3253ac_preproc_ok=: 3254break 3255fi 3256 3257rm -f conftest.err conftest.$ac_ext 3258 3259done 3260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3261rm -f conftest.err conftest.$ac_ext 3262if $ac_preproc_ok; then 3263 break 3264fi 3265 3266 done 3267 ac_cv_prog_CPP=$CPP 3268 3269fi 3270 CPP=$ac_cv_prog_CPP 3271else 3272 ac_cv_prog_CPP=$CPP 3273fi 3274{ echo "$as_me:$LINENO: result: $CPP" >&5 3275echo "${ECHO_T}$CPP" >&6; } 3276ac_preproc_ok=false 3277for ac_c_preproc_warn_flag in '' yes 3278do 3279 # Use a header file that comes with gcc, so configuring glibc 3280 # with a fresh cross-compiler works. 3281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3282 # <limits.h> exists even on freestanding compilers. 3283 # On the NeXT, cc -E runs the code through the compiler's parser, 3284 # not just through cpp. "Syntax error" is here to catch this case. 3285 cat >conftest.$ac_ext <<_ACEOF 3286/* confdefs.h. */ 3287_ACEOF 3288cat confdefs.h >>conftest.$ac_ext 3289cat >>conftest.$ac_ext <<_ACEOF 3290/* end confdefs.h. */ 3291#ifdef __STDC__ 3292# include <limits.h> 3293#else 3294# include <assert.h> 3295#endif 3296 Syntax error 3297_ACEOF 3298if { (ac_try="$ac_cpp conftest.$ac_ext" 3299case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302esac 3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3305 ac_status=$? 3306 grep -v '^ *+' conftest.er1 >conftest.err 3307 rm -f conftest.er1 3308 cat conftest.err >&5 3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3310 (exit $ac_status); } >/dev/null && { 3311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3312 test ! -s conftest.err 3313 }; then 3314 : 3315else 3316 echo "$as_me: failed program was:" >&5 3317sed 's/^/| /' conftest.$ac_ext >&5 3318 3319 # Broken: fails on valid input. 3320continue 3321fi 3322 3323rm -f conftest.err conftest.$ac_ext 3324 3325 # OK, works on sane cases. Now check whether nonexistent headers 3326 # can be detected and how. 3327 cat >conftest.$ac_ext <<_ACEOF 3328/* confdefs.h. */ 3329_ACEOF 3330cat confdefs.h >>conftest.$ac_ext 3331cat >>conftest.$ac_ext <<_ACEOF 3332/* end confdefs.h. */ 3333#include <ac_nonexistent.h> 3334_ACEOF 3335if { (ac_try="$ac_cpp conftest.$ac_ext" 3336case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339esac 3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3342 ac_status=$? 3343 grep -v '^ *+' conftest.er1 >conftest.err 3344 rm -f conftest.er1 3345 cat conftest.err >&5 3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } >/dev/null && { 3348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3349 test ! -s conftest.err 3350 }; then 3351 # Broken: success on invalid input. 3352continue 3353else 3354 echo "$as_me: failed program was:" >&5 3355sed 's/^/| /' conftest.$ac_ext >&5 3356 3357 # Passes both tests. 3358ac_preproc_ok=: 3359break 3360fi 3361 3362rm -f conftest.err conftest.$ac_ext 3363 3364done 3365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3366rm -f conftest.err conftest.$ac_ext 3367if $ac_preproc_ok; then 3368 : 3369else 3370 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3371See \`config.log' for more details." >&5 3372echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3373See \`config.log' for more details." >&2;} 3374 { (exit 1); exit 1; }; } 3375fi 3376 3377ac_ext=c 3378ac_cpp='$CPP $CPPFLAGS' 3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3381ac_compiler_gnu=$ac_cv_c_compiler_gnu 3382 3383 3384 # Find a good install program. We prefer a C program (faster), 3385# so one script is as good as another. But avoid the broken or 3386# incompatible versions: 3387# SysV /etc/install, /usr/sbin/install 3388# SunOS /usr/etc/install 3389# IRIX /sbin/install 3390# AIX /bin/install 3391# AmigaOS /C/install, which installs bootblocks on floppy discs 3392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3393# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3395# OS/2's system install, which has a completely different semantic 3396# ./install, which can be erroneously created by make from ./install.sh. 3397{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3398echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3399if test -z "$INSTALL"; then 3400if test "${ac_cv_path_install+set}" = set; then 3401 echo $ECHO_N "(cached) $ECHO_C" >&6 3402else 3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3404for as_dir in $PATH 3405do 3406 IFS=$as_save_IFS 3407 test -z "$as_dir" && as_dir=. 3408 # Account for people who put trailing slashes in PATH elements. 3409case $as_dir/ in 3410 ./ | .// | /cC/* | \ 3411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3412 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3413 /usr/ucb/* ) ;; 3414 *) 3415 # OSF1 and SCO ODT 3.0 have their own names for install. 3416 # Don't use installbsd from OSF since it installs stuff as root 3417 # by default. 3418 for ac_prog in ginstall scoinst install; do 3419 for ac_exec_ext in '' $ac_executable_extensions; do 3420 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3421 if test $ac_prog = install && 3422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3423 # AIX install. It has an incompatible calling convention. 3424 : 3425 elif test $ac_prog = install && 3426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3427 # program-specific install script used by HP pwplus--don't use. 3428 : 3429 else 3430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3431 break 3 3432 fi 3433 fi 3434 done 3435 done 3436 ;; 3437esac 3438done 3439IFS=$as_save_IFS 3440 3441 3442fi 3443 if test "${ac_cv_path_install+set}" = set; then 3444 INSTALL=$ac_cv_path_install 3445 else 3446 # As a last resort, use the slow shell script. Don't cache a 3447 # value for INSTALL within a source directory, because that will 3448 # break other packages using the cache if that directory is 3449 # removed, or if the value is a relative name. 3450 INSTALL=$ac_install_sh 3451 fi 3452fi 3453{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3454echo "${ECHO_T}$INSTALL" >&6; } 3455 3456# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3457# It thinks the first close brace ends the variable substitution. 3458test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3459 3460test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3461 3462test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3463 3464 3465 #-------------------------------------------------------------------- 3466 # Checks to see if the make program sets the $MAKE variable. 3467 #-------------------------------------------------------------------- 3468 3469 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3470echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3471set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3472if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3474else 3475 cat >conftest.make <<\_ACEOF 3476SHELL = /bin/sh 3477all: 3478 @echo '@@@%%%=$(MAKE)=@@@%%%' 3479_ACEOF 3480# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3481case `${MAKE-make} -f conftest.make 2>/dev/null` in 3482 *@@@%%%=?*=@@@%%%*) 3483 eval ac_cv_prog_make_${ac_make}_set=yes;; 3484 *) 3485 eval ac_cv_prog_make_${ac_make}_set=no;; 3486esac 3487rm -f conftest.make 3488fi 3489if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3490 { echo "$as_me:$LINENO: result: yes" >&5 3491echo "${ECHO_T}yes" >&6; } 3492 SET_MAKE= 3493else 3494 { echo "$as_me:$LINENO: result: no" >&5 3495echo "${ECHO_T}no" >&6; } 3496 SET_MAKE="MAKE=${MAKE-make}" 3497fi 3498 3499 3500 #-------------------------------------------------------------------- 3501 # Find ranlib 3502 #-------------------------------------------------------------------- 3503 3504 if test -n "$ac_tool_prefix"; then 3505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3506set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3507{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3509if test "${ac_cv_prog_RANLIB+set}" = set; then 3510 echo $ECHO_N "(cached) $ECHO_C" >&6 3511else 3512 if test -n "$RANLIB"; then 3513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3514else 3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516for as_dir in $PATH 3517do 3518 IFS=$as_save_IFS 3519 test -z "$as_dir" && as_dir=. 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3524 break 2 3525 fi 3526done 3527done 3528IFS=$as_save_IFS 3529 3530fi 3531fi 3532RANLIB=$ac_cv_prog_RANLIB 3533if test -n "$RANLIB"; then 3534 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3535echo "${ECHO_T}$RANLIB" >&6; } 3536else 3537 { echo "$as_me:$LINENO: result: no" >&5 3538echo "${ECHO_T}no" >&6; } 3539fi 3540 3541 3542fi 3543if test -z "$ac_cv_prog_RANLIB"; then 3544 ac_ct_RANLIB=$RANLIB 3545 # Extract the first word of "ranlib", so it can be a program name with args. 3546set dummy ranlib; ac_word=$2 3547{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3549if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3550 echo $ECHO_N "(cached) $ECHO_C" >&6 3551else 3552 if test -n "$ac_ct_RANLIB"; then 3553 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3554else 3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556for as_dir in $PATH 3557do 3558 IFS=$as_save_IFS 3559 test -z "$as_dir" && as_dir=. 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3562 ac_cv_prog_ac_ct_RANLIB="ranlib" 3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566done 3567done 3568IFS=$as_save_IFS 3569 3570fi 3571fi 3572ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3573if test -n "$ac_ct_RANLIB"; then 3574 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3575echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3576else 3577 { echo "$as_me:$LINENO: result: no" >&5 3578echo "${ECHO_T}no" >&6; } 3579fi 3580 3581 if test "x$ac_ct_RANLIB" = x; then 3582 RANLIB=":" 3583 else 3584 case $cross_compiling:$ac_tool_warned in 3585yes:) 3586{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3587whose name does not start with the host triplet. If you think this 3588configuration is useful to you, please write to autoconf@gnu.org." >&5 3589echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3590whose name does not start with the host triplet. If you think this 3591configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3592ac_tool_warned=yes ;; 3593esac 3594 RANLIB=$ac_ct_RANLIB 3595 fi 3596else 3597 RANLIB="$ac_cv_prog_RANLIB" 3598fi 3599 3600 3601 #-------------------------------------------------------------------- 3602 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3603 #-------------------------------------------------------------------- 3604 3605 3606 3607 3608 3609 3610{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3611echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3612if test "${ac_cv_path_GREP+set}" = set; then 3613 echo $ECHO_N "(cached) $ECHO_C" >&6 3614else 3615 # Extract the first word of "grep ggrep" to use in msg output 3616if test -z "$GREP"; then 3617set dummy grep ggrep; ac_prog_name=$2 3618if test "${ac_cv_path_GREP+set}" = set; then 3619 echo $ECHO_N "(cached) $ECHO_C" >&6 3620else 3621 ac_path_GREP_found=false 3622# Loop through the user's path and test for each of PROGNAME-LIST 3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3625do 3626 IFS=$as_save_IFS 3627 test -z "$as_dir" && as_dir=. 3628 for ac_prog in grep ggrep; do 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3631 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3632 # Check for GNU ac_path_GREP and select it if it is found. 3633 # Check for GNU $ac_path_GREP 3634case `"$ac_path_GREP" --version 2>&1` in 3635*GNU*) 3636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3637*) 3638 ac_count=0 3639 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3640 while : 3641 do 3642 cat "conftest.in" "conftest.in" >"conftest.tmp" 3643 mv "conftest.tmp" "conftest.in" 3644 cp "conftest.in" "conftest.nl" 3645 echo 'GREP' >> "conftest.nl" 3646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3648 ac_count=`expr $ac_count + 1` 3649 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3650 # Best one so far, save it but keep looking for a better one 3651 ac_cv_path_GREP="$ac_path_GREP" 3652 ac_path_GREP_max=$ac_count 3653 fi 3654 # 10*(2^10) chars as input seems more than enough 3655 test $ac_count -gt 10 && break 3656 done 3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3658esac 3659 3660 3661 $ac_path_GREP_found && break 3 3662 done 3663done 3664 3665done 3666IFS=$as_save_IFS 3667 3668 3669fi 3670 3671GREP="$ac_cv_path_GREP" 3672if test -z "$GREP"; then 3673 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3674echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3675 { (exit 1); exit 1; }; } 3676fi 3677 3678else 3679 ac_cv_path_GREP=$GREP 3680fi 3681 3682 3683fi 3684{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3685echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3686 GREP="$ac_cv_path_GREP" 3687 3688 3689{ echo "$as_me:$LINENO: checking for egrep" >&5 3690echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3691if test "${ac_cv_path_EGREP+set}" = set; then 3692 echo $ECHO_N "(cached) $ECHO_C" >&6 3693else 3694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3695 then ac_cv_path_EGREP="$GREP -E" 3696 else 3697 # Extract the first word of "egrep" to use in msg output 3698if test -z "$EGREP"; then 3699set dummy egrep; ac_prog_name=$2 3700if test "${ac_cv_path_EGREP+set}" = set; then 3701 echo $ECHO_N "(cached) $ECHO_C" >&6 3702else 3703 ac_path_EGREP_found=false 3704# Loop through the user's path and test for each of PROGNAME-LIST 3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3707do 3708 IFS=$as_save_IFS 3709 test -z "$as_dir" && as_dir=. 3710 for ac_prog in egrep; do 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3713 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3714 # Check for GNU ac_path_EGREP and select it if it is found. 3715 # Check for GNU $ac_path_EGREP 3716case `"$ac_path_EGREP" --version 2>&1` in 3717*GNU*) 3718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3719*) 3720 ac_count=0 3721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3722 while : 3723 do 3724 cat "conftest.in" "conftest.in" >"conftest.tmp" 3725 mv "conftest.tmp" "conftest.in" 3726 cp "conftest.in" "conftest.nl" 3727 echo 'EGREP' >> "conftest.nl" 3728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3730 ac_count=`expr $ac_count + 1` 3731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3732 # Best one so far, save it but keep looking for a better one 3733 ac_cv_path_EGREP="$ac_path_EGREP" 3734 ac_path_EGREP_max=$ac_count 3735 fi 3736 # 10*(2^10) chars as input seems more than enough 3737 test $ac_count -gt 10 && break 3738 done 3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3740esac 3741 3742 3743 $ac_path_EGREP_found && break 3 3744 done 3745done 3746 3747done 3748IFS=$as_save_IFS 3749 3750 3751fi 3752 3753EGREP="$ac_cv_path_EGREP" 3754if test -z "$EGREP"; then 3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3756echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3757 { (exit 1); exit 1; }; } 3758fi 3759 3760else 3761 ac_cv_path_EGREP=$EGREP 3762fi 3763 3764 3765 fi 3766fi 3767{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3768echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3769 EGREP="$ac_cv_path_EGREP" 3770 3771 3772{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3773echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3774if test "${ac_cv_header_stdc+set}" = set; then 3775 echo $ECHO_N "(cached) $ECHO_C" >&6 3776else 3777 cat >conftest.$ac_ext <<_ACEOF 3778/* confdefs.h. */ 3779_ACEOF 3780cat confdefs.h >>conftest.$ac_ext 3781cat >>conftest.$ac_ext <<_ACEOF 3782/* end confdefs.h. */ 3783#include <stdlib.h> 3784#include <stdarg.h> 3785#include <string.h> 3786#include <float.h> 3787 3788int 3789main () 3790{ 3791 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796rm -f conftest.$ac_objext 3797if { (ac_try="$ac_compile" 3798case "(($ac_try" in 3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3800 *) ac_try_echo=$ac_try;; 3801esac 3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3803 (eval "$ac_compile") 2>conftest.er1 3804 ac_status=$? 3805 grep -v '^ *+' conftest.er1 >conftest.err 3806 rm -f conftest.er1 3807 cat conftest.err >&5 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); } && { 3810 test -z "$ac_c_werror_flag" || 3811 test ! -s conftest.err 3812 } && test -s conftest.$ac_objext; then 3813 ac_cv_header_stdc=yes 3814else 3815 echo "$as_me: failed program was:" >&5 3816sed 's/^/| /' conftest.$ac_ext >&5 3817 3818 ac_cv_header_stdc=no 3819fi 3820 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822 3823if test $ac_cv_header_stdc = yes; then 3824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3825 cat >conftest.$ac_ext <<_ACEOF 3826/* confdefs.h. */ 3827_ACEOF 3828cat confdefs.h >>conftest.$ac_ext 3829cat >>conftest.$ac_ext <<_ACEOF 3830/* end confdefs.h. */ 3831#include <string.h> 3832 3833_ACEOF 3834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3835 $EGREP "memchr" >/dev/null 2>&1; then 3836 : 3837else 3838 ac_cv_header_stdc=no 3839fi 3840rm -f -r conftest* 3841 3842fi 3843 3844if test $ac_cv_header_stdc = yes; then 3845 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h> 3853 3854_ACEOF 3855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3856 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3867 if test "$cross_compiling" = yes; then 3868 : 3869else 3870 cat >conftest.$ac_ext <<_ACEOF 3871/* confdefs.h. */ 3872_ACEOF 3873cat confdefs.h >>conftest.$ac_ext 3874cat >>conftest.$ac_ext <<_ACEOF 3875/* end confdefs.h. */ 3876#include <ctype.h> 3877#include <stdlib.h> 3878#if ((' ' & 0x0FF) == 0x020) 3879# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3880# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3881#else 3882# define ISLOWER(c) \ 3883 (('a' <= (c) && (c) <= 'i') \ 3884 || ('j' <= (c) && (c) <= 'r') \ 3885 || ('s' <= (c) && (c) <= 'z')) 3886# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3887#endif 3888 3889#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3890int 3891main () 3892{ 3893 int i; 3894 for (i = 0; i < 256; i++) 3895 if (XOR (islower (i), ISLOWER (i)) 3896 || toupper (i) != TOUPPER (i)) 3897 return 2; 3898 return 0; 3899} 3900_ACEOF 3901rm -f conftest$ac_exeext 3902if { (ac_try="$ac_link" 3903case "(($ac_try" in 3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3905 *) ac_try_echo=$ac_try;; 3906esac 3907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3908 (eval "$ac_link") 2>&5 3909 ac_status=$? 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3912 { (case "(($ac_try" in 3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3914 *) ac_try_echo=$ac_try;; 3915esac 3916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3917 (eval "$ac_try") 2>&5 3918 ac_status=$? 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); }; }; then 3921 : 3922else 3923 echo "$as_me: program exited with status $ac_status" >&5 3924echo "$as_me: failed program was:" >&5 3925sed 's/^/| /' conftest.$ac_ext >&5 3926 3927( exit $ac_status ) 3928ac_cv_header_stdc=no 3929fi 3930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3931fi 3932 3933 3934fi 3935fi 3936{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3937echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3938if test $ac_cv_header_stdc = yes; then 3939 3940cat >>confdefs.h <<\_ACEOF 3941#define STDC_HEADERS 1 3942_ACEOF 3943 3944fi 3945 3946# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3957 inttypes.h stdint.h unistd.h 3958do 3959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3960{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3963 echo $ECHO_N "(cached) $ECHO_C" >&6 3964else 3965 cat >conftest.$ac_ext <<_ACEOF 3966/* confdefs.h. */ 3967_ACEOF 3968cat confdefs.h >>conftest.$ac_ext 3969cat >>conftest.$ac_ext <<_ACEOF 3970/* end confdefs.h. */ 3971$ac_includes_default 3972 3973#include <$ac_header> 3974_ACEOF 3975rm -f conftest.$ac_objext 3976if { (ac_try="$ac_compile" 3977case "(($ac_try" in 3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3979 *) ac_try_echo=$ac_try;; 3980esac 3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3982 (eval "$ac_compile") 2>conftest.er1 3983 ac_status=$? 3984 grep -v '^ *+' conftest.er1 >conftest.err 3985 rm -f conftest.er1 3986 cat conftest.err >&5 3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3988 (exit $ac_status); } && { 3989 test -z "$ac_c_werror_flag" || 3990 test ! -s conftest.err 3991 } && test -s conftest.$ac_objext; then 3992 eval "$as_ac_Header=yes" 3993else 3994 echo "$as_me: failed program was:" >&5 3995sed 's/^/| /' conftest.$ac_ext >&5 3996 3997 eval "$as_ac_Header=no" 3998fi 3999 4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4001fi 4002ac_res=`eval echo '${'$as_ac_Header'}'` 4003 { echo "$as_me:$LINENO: result: $ac_res" >&5 4004echo "${ECHO_T}$ac_res" >&6; } 4005if test `eval echo '${'$as_ac_Header'}'` = yes; then 4006 cat >>confdefs.h <<_ACEOF 4007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4008_ACEOF 4009 4010fi 4011 4012done 4013 4014 4015 4016 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4017 4018 4019 #------------------------------------------------------------------------ 4020 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4021 # It makes compiling go faster. (This is only a performance feature.) 4022 #------------------------------------------------------------------------ 4023 4024 if test -z "$no_pipe" -a -n "$GCC"; then 4025 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4026echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4027if test "${tcl_cv_cc_pipe+set}" = set; then 4028 echo $ECHO_N "(cached) $ECHO_C" >&6 4029else 4030 4031 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4032 cat >conftest.$ac_ext <<_ACEOF 4033/* confdefs.h. */ 4034_ACEOF 4035cat confdefs.h >>conftest.$ac_ext 4036cat >>conftest.$ac_ext <<_ACEOF 4037/* end confdefs.h. */ 4038 4039int 4040main () 4041{ 4042 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047rm -f conftest.$ac_objext 4048if { (ac_try="$ac_compile" 4049case "(($ac_try" in 4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4051 *) ac_try_echo=$ac_try;; 4052esac 4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4054 (eval "$ac_compile") 2>conftest.er1 4055 ac_status=$? 4056 grep -v '^ *+' conftest.er1 >conftest.err 4057 rm -f conftest.er1 4058 cat conftest.err >&5 4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4060 (exit $ac_status); } && { 4061 test -z "$ac_c_werror_flag" || 4062 test ! -s conftest.err 4063 } && test -s conftest.$ac_objext; then 4064 tcl_cv_cc_pipe=yes 4065else 4066 echo "$as_me: failed program was:" >&5 4067sed 's/^/| /' conftest.$ac_ext >&5 4068 4069 tcl_cv_cc_pipe=no 4070fi 4071 4072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4073 CFLAGS=$hold_cflags 4074fi 4075{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4076echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4077 if test $tcl_cv_cc_pipe = yes; then 4078 CFLAGS="$CFLAGS -pipe" 4079 fi 4080 fi 4081 4082 #-------------------------------------------------------------------- 4083 # Common compiler flag setup 4084 #-------------------------------------------------------------------- 4085 4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4088if test "${ac_cv_c_bigendian+set}" = set; then 4089 echo $ECHO_N "(cached) $ECHO_C" >&6 4090else 4091 # See if sys/param.h defines the BYTE_ORDER macro. 4092cat >conftest.$ac_ext <<_ACEOF 4093/* confdefs.h. */ 4094_ACEOF 4095cat confdefs.h >>conftest.$ac_ext 4096cat >>conftest.$ac_ext <<_ACEOF 4097/* end confdefs.h. */ 4098#include <sys/types.h> 4099#include <sys/param.h> 4100 4101int 4102main () 4103{ 4104#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4105 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4106 bogus endian macros 4107#endif 4108 4109 ; 4110 return 0; 4111} 4112_ACEOF 4113rm -f conftest.$ac_objext 4114if { (ac_try="$ac_compile" 4115case "(($ac_try" in 4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4117 *) ac_try_echo=$ac_try;; 4118esac 4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4120 (eval "$ac_compile") 2>conftest.er1 4121 ac_status=$? 4122 grep -v '^ *+' conftest.er1 >conftest.err 4123 rm -f conftest.er1 4124 cat conftest.err >&5 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); } && { 4127 test -z "$ac_c_werror_flag" || 4128 test ! -s conftest.err 4129 } && test -s conftest.$ac_objext; then 4130 # It does; now see whether it defined to BIG_ENDIAN or not. 4131cat >conftest.$ac_ext <<_ACEOF 4132/* confdefs.h. */ 4133_ACEOF 4134cat confdefs.h >>conftest.$ac_ext 4135cat >>conftest.$ac_ext <<_ACEOF 4136/* end confdefs.h. */ 4137#include <sys/types.h> 4138#include <sys/param.h> 4139 4140int 4141main () 4142{ 4143#if BYTE_ORDER != BIG_ENDIAN 4144 not big endian 4145#endif 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151rm -f conftest.$ac_objext 4152if { (ac_try="$ac_compile" 4153case "(($ac_try" in 4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4155 *) ac_try_echo=$ac_try;; 4156esac 4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4158 (eval "$ac_compile") 2>conftest.er1 4159 ac_status=$? 4160 grep -v '^ *+' conftest.er1 >conftest.err 4161 rm -f conftest.er1 4162 cat conftest.err >&5 4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4164 (exit $ac_status); } && { 4165 test -z "$ac_c_werror_flag" || 4166 test ! -s conftest.err 4167 } && test -s conftest.$ac_objext; then 4168 ac_cv_c_bigendian=yes 4169else 4170 echo "$as_me: failed program was:" >&5 4171sed 's/^/| /' conftest.$ac_ext >&5 4172 4173 ac_cv_c_bigendian=no 4174fi 4175 4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4177else 4178 echo "$as_me: failed program was:" >&5 4179sed 's/^/| /' conftest.$ac_ext >&5 4180 4181 # It does not; compile a test program. 4182if test "$cross_compiling" = yes; then 4183 # try to guess the endianness by grepping values into an object file 4184 ac_cv_c_bigendian=unknown 4185 cat >conftest.$ac_ext <<_ACEOF 4186/* confdefs.h. */ 4187_ACEOF 4188cat confdefs.h >>conftest.$ac_ext 4189cat >>conftest.$ac_ext <<_ACEOF 4190/* end confdefs.h. */ 4191short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4192short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4193void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4194short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4195short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4196void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4197int 4198main () 4199{ 4200 _ascii (); _ebcdic (); 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205rm -f conftest.$ac_objext 4206if { (ac_try="$ac_compile" 4207case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210esac 4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4212 (eval "$ac_compile") 2>conftest.er1 4213 ac_status=$? 4214 grep -v '^ *+' conftest.er1 >conftest.err 4215 rm -f conftest.er1 4216 cat conftest.err >&5 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4218 (exit $ac_status); } && { 4219 test -z "$ac_c_werror_flag" || 4220 test ! -s conftest.err 4221 } && test -s conftest.$ac_objext; then 4222 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4223 ac_cv_c_bigendian=yes 4224fi 4225if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4226 if test "$ac_cv_c_bigendian" = unknown; then 4227 ac_cv_c_bigendian=no 4228 else 4229 # finding both strings is unlikely to happen, but who knows? 4230 ac_cv_c_bigendian=unknown 4231 fi 4232fi 4233else 4234 echo "$as_me: failed program was:" >&5 4235sed 's/^/| /' conftest.$ac_ext >&5 4236 4237 4238fi 4239 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241else 4242 cat >conftest.$ac_ext <<_ACEOF 4243/* confdefs.h. */ 4244_ACEOF 4245cat confdefs.h >>conftest.$ac_ext 4246cat >>conftest.$ac_ext <<_ACEOF 4247/* end confdefs.h. */ 4248$ac_includes_default 4249int 4250main () 4251{ 4252 4253 /* Are we little or big endian? From Harbison&Steele. */ 4254 union 4255 { 4256 long int l; 4257 char c[sizeof (long int)]; 4258 } u; 4259 u.l = 1; 4260 return u.c[sizeof (long int) - 1] == 1; 4261 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266rm -f conftest$ac_exeext 4267if { (ac_try="$ac_link" 4268case "(($ac_try" in 4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4270 *) ac_try_echo=$ac_try;; 4271esac 4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4273 (eval "$ac_link") 2>&5 4274 ac_status=$? 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4277 { (case "(($ac_try" in 4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4279 *) ac_try_echo=$ac_try;; 4280esac 4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4282 (eval "$ac_try") 2>&5 4283 ac_status=$? 4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4285 (exit $ac_status); }; }; then 4286 ac_cv_c_bigendian=no 4287else 4288 echo "$as_me: program exited with status $ac_status" >&5 4289echo "$as_me: failed program was:" >&5 4290sed 's/^/| /' conftest.$ac_ext >&5 4291 4292( exit $ac_status ) 4293ac_cv_c_bigendian=yes 4294fi 4295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4296fi 4297 4298 4299fi 4300 4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4302fi 4303{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4304echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4305case $ac_cv_c_bigendian in 4306 yes) 4307 4308cat >>confdefs.h <<\_ACEOF 4309#define WORDS_BIGENDIAN 1 4310_ACEOF 4311 ;; 4312 no) 4313 ;; 4314 *) 4315 { { echo "$as_me:$LINENO: error: unknown endianness 4316presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4317echo "$as_me: error: unknown endianness 4318presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4319 { (exit 1); exit 1; }; } ;; 4320esac 4321 4322 if test "${TEA_PLATFORM}" = "unix" ; then 4323 4324 #-------------------------------------------------------------------- 4325 # On a few very rare systems, all of the libm.a stuff is 4326 # already in libc.a. Set compiler flags accordingly. 4327 # Also, Linux requires the "ieee" library for math to work 4328 # right (and it must appear before "-lm"). 4329 #-------------------------------------------------------------------- 4330 4331 { echo "$as_me:$LINENO: checking for sin" >&5 4332echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4333if test "${ac_cv_func_sin+set}" = set; then 4334 echo $ECHO_N "(cached) $ECHO_C" >&6 4335else 4336 cat >conftest.$ac_ext <<_ACEOF 4337/* confdefs.h. */ 4338_ACEOF 4339cat confdefs.h >>conftest.$ac_ext 4340cat >>conftest.$ac_ext <<_ACEOF 4341/* end confdefs.h. */ 4342/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4343 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4344#define sin innocuous_sin 4345 4346/* System header to define __stub macros and hopefully few prototypes, 4347 which can conflict with char sin (); below. 4348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4349 <limits.h> exists even on freestanding compilers. */ 4350 4351#ifdef __STDC__ 4352# include <limits.h> 4353#else 4354# include <assert.h> 4355#endif 4356 4357#undef sin 4358 4359/* Override any GCC internal prototype to avoid an error. 4360 Use char because int might match the return type of a GCC 4361 builtin and then its argument prototype would still apply. */ 4362#ifdef __cplusplus 4363extern "C" 4364#endif 4365char sin (); 4366/* The GNU C library defines this for functions which it implements 4367 to always fail with ENOSYS. Some functions are actually named 4368 something starting with __ and the normal name is an alias. */ 4369#if defined __stub_sin || defined __stub___sin 4370choke me 4371#endif 4372 4373int 4374main () 4375{ 4376return sin (); 4377 ; 4378 return 0; 4379} 4380_ACEOF 4381rm -f conftest.$ac_objext conftest$ac_exeext 4382if { (ac_try="$ac_link" 4383case "(($ac_try" in 4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4385 *) ac_try_echo=$ac_try;; 4386esac 4387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4388 (eval "$ac_link") 2>conftest.er1 4389 ac_status=$? 4390 grep -v '^ *+' conftest.er1 >conftest.err 4391 rm -f conftest.er1 4392 cat conftest.err >&5 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); } && { 4395 test -z "$ac_c_werror_flag" || 4396 test ! -s conftest.err 4397 } && test -s conftest$ac_exeext && 4398 $as_test_x conftest$ac_exeext; then 4399 ac_cv_func_sin=yes 4400else 4401 echo "$as_me: failed program was:" >&5 4402sed 's/^/| /' conftest.$ac_ext >&5 4403 4404 ac_cv_func_sin=no 4405fi 4406 4407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4408 conftest$ac_exeext conftest.$ac_ext 4409fi 4410{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4411echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4412if test $ac_cv_func_sin = yes; then 4413 MATH_LIBS="" 4414else 4415 MATH_LIBS="-lm" 4416fi 4417 4418 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4419echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4420if test "${ac_cv_lib_ieee_main+set}" = set; then 4421 echo $ECHO_N "(cached) $ECHO_C" >&6 4422else 4423 ac_check_lib_save_LIBS=$LIBS 4424LIBS="-lieee $LIBS" 4425cat >conftest.$ac_ext <<_ACEOF 4426/* confdefs.h. */ 4427_ACEOF 4428cat confdefs.h >>conftest.$ac_ext 4429cat >>conftest.$ac_ext <<_ACEOF 4430/* end confdefs.h. */ 4431 4432 4433int 4434main () 4435{ 4436return main (); 4437 ; 4438 return 0; 4439} 4440_ACEOF 4441rm -f conftest.$ac_objext conftest$ac_exeext 4442if { (ac_try="$ac_link" 4443case "(($ac_try" in 4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4445 *) ac_try_echo=$ac_try;; 4446esac 4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4448 (eval "$ac_link") 2>conftest.er1 4449 ac_status=$? 4450 grep -v '^ *+' conftest.er1 >conftest.err 4451 rm -f conftest.er1 4452 cat conftest.err >&5 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4454 (exit $ac_status); } && { 4455 test -z "$ac_c_werror_flag" || 4456 test ! -s conftest.err 4457 } && test -s conftest$ac_exeext && 4458 $as_test_x conftest$ac_exeext; then 4459 ac_cv_lib_ieee_main=yes 4460else 4461 echo "$as_me: failed program was:" >&5 4462sed 's/^/| /' conftest.$ac_ext >&5 4463 4464 ac_cv_lib_ieee_main=no 4465fi 4466 4467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4468 conftest$ac_exeext conftest.$ac_ext 4469LIBS=$ac_check_lib_save_LIBS 4470fi 4471{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4472echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4473if test $ac_cv_lib_ieee_main = yes; then 4474 MATH_LIBS="-lieee $MATH_LIBS" 4475fi 4476 4477 4478 #-------------------------------------------------------------------- 4479 # Interactive UNIX requires -linet instead of -lsocket, plus it 4480 # needs net/errno.h to define the socket-related error codes. 4481 #-------------------------------------------------------------------- 4482 4483 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4484echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4485if test "${ac_cv_lib_inet_main+set}" = set; then 4486 echo $ECHO_N "(cached) $ECHO_C" >&6 4487else 4488 ac_check_lib_save_LIBS=$LIBS 4489LIBS="-linet $LIBS" 4490cat >conftest.$ac_ext <<_ACEOF 4491/* confdefs.h. */ 4492_ACEOF 4493cat confdefs.h >>conftest.$ac_ext 4494cat >>conftest.$ac_ext <<_ACEOF 4495/* end confdefs.h. */ 4496 4497 4498int 4499main () 4500{ 4501return main (); 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506rm -f conftest.$ac_objext conftest$ac_exeext 4507if { (ac_try="$ac_link" 4508case "(($ac_try" in 4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4510 *) ac_try_echo=$ac_try;; 4511esac 4512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4513 (eval "$ac_link") 2>conftest.er1 4514 ac_status=$? 4515 grep -v '^ *+' conftest.er1 >conftest.err 4516 rm -f conftest.er1 4517 cat conftest.err >&5 4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); } && { 4520 test -z "$ac_c_werror_flag" || 4521 test ! -s conftest.err 4522 } && test -s conftest$ac_exeext && 4523 $as_test_x conftest$ac_exeext; then 4524 ac_cv_lib_inet_main=yes 4525else 4526 echo "$as_me: failed program was:" >&5 4527sed 's/^/| /' conftest.$ac_ext >&5 4528 4529 ac_cv_lib_inet_main=no 4530fi 4531 4532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4533 conftest$ac_exeext conftest.$ac_ext 4534LIBS=$ac_check_lib_save_LIBS 4535fi 4536{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4537echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4538if test $ac_cv_lib_inet_main = yes; then 4539 LIBS="$LIBS -linet" 4540fi 4541 4542 if test "${ac_cv_header_net_errno_h+set}" = set; then 4543 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4544echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4545if test "${ac_cv_header_net_errno_h+set}" = set; then 4546 echo $ECHO_N "(cached) $ECHO_C" >&6 4547fi 4548{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4549echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4550else 4551 # Is the header compilable? 4552{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4553echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4554cat >conftest.$ac_ext <<_ACEOF 4555/* confdefs.h. */ 4556_ACEOF 4557cat confdefs.h >>conftest.$ac_ext 4558cat >>conftest.$ac_ext <<_ACEOF 4559/* end confdefs.h. */ 4560$ac_includes_default 4561#include <net/errno.h> 4562_ACEOF 4563rm -f conftest.$ac_objext 4564if { (ac_try="$ac_compile" 4565case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4570 (eval "$ac_compile") 2>conftest.er1 4571 ac_status=$? 4572 grep -v '^ *+' conftest.er1 >conftest.err 4573 rm -f conftest.er1 4574 cat conftest.err >&5 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); } && { 4577 test -z "$ac_c_werror_flag" || 4578 test ! -s conftest.err 4579 } && test -s conftest.$ac_objext; then 4580 ac_header_compiler=yes 4581else 4582 echo "$as_me: failed program was:" >&5 4583sed 's/^/| /' conftest.$ac_ext >&5 4584 4585 ac_header_compiler=no 4586fi 4587 4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4590echo "${ECHO_T}$ac_header_compiler" >&6; } 4591 4592# Is the header present? 4593{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4594echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4595cat >conftest.$ac_ext <<_ACEOF 4596/* confdefs.h. */ 4597_ACEOF 4598cat confdefs.h >>conftest.$ac_ext 4599cat >>conftest.$ac_ext <<_ACEOF 4600/* end confdefs.h. */ 4601#include <net/errno.h> 4602_ACEOF 4603if { (ac_try="$ac_cpp conftest.$ac_ext" 4604case "(($ac_try" in 4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4606 *) ac_try_echo=$ac_try;; 4607esac 4608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4610 ac_status=$? 4611 grep -v '^ *+' conftest.er1 >conftest.err 4612 rm -f conftest.er1 4613 cat conftest.err >&5 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); } >/dev/null && { 4616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4617 test ! -s conftest.err 4618 }; then 4619 ac_header_preproc=yes 4620else 4621 echo "$as_me: failed program was:" >&5 4622sed 's/^/| /' conftest.$ac_ext >&5 4623 4624 ac_header_preproc=no 4625fi 4626 4627rm -f conftest.err conftest.$ac_ext 4628{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4629echo "${ECHO_T}$ac_header_preproc" >&6; } 4630 4631# So? What about this header? 4632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4633 yes:no: ) 4634 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4635echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4636 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4637echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4638 ac_header_preproc=yes 4639 ;; 4640 no:yes:* ) 4641 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4642echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4644echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4645 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4646echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4647 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4648echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4649 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4650echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4651 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4652echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4653 4654 ;; 4655esac 4656{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4657echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4658if test "${ac_cv_header_net_errno_h+set}" = set; then 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4660else 4661 ac_cv_header_net_errno_h=$ac_header_preproc 4662fi 4663{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4664echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4665 4666fi 4667if test $ac_cv_header_net_errno_h = yes; then 4668 4669 4670cat >>confdefs.h <<\_ACEOF 4671#define HAVE_NET_ERRNO_H 1 4672_ACEOF 4673 4674fi 4675 4676 4677 4678 #-------------------------------------------------------------------- 4679 # Check for the existence of the -lsocket and -lnsl libraries. 4680 # The order here is important, so that they end up in the right 4681 # order in the command line generated by make. Here are some 4682 # special considerations: 4683 # 1. Use "connect" and "accept" to check for -lsocket, and 4684 # "gethostbyname" to check for -lnsl. 4685 # 2. Use each function name only once: can't redo a check because 4686 # autoconf caches the results of the last check and won't redo it. 4687 # 3. Use -lnsl and -lsocket only if they supply procedures that 4688 # aren't already present in the normal libraries. This is because 4689 # IRIX 5.2 has libraries, but they aren't needed and they're 4690 # bogus: they goof up name resolution if used. 4691 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4692 # To get around this problem, check for both libraries together 4693 # if -lsocket doesn't work by itself. 4694 #-------------------------------------------------------------------- 4695 4696 tcl_checkBoth=0 4697 { echo "$as_me:$LINENO: checking for connect" >&5 4698echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4699if test "${ac_cv_func_connect+set}" = set; then 4700 echo $ECHO_N "(cached) $ECHO_C" >&6 4701else 4702 cat >conftest.$ac_ext <<_ACEOF 4703/* confdefs.h. */ 4704_ACEOF 4705cat confdefs.h >>conftest.$ac_ext 4706cat >>conftest.$ac_ext <<_ACEOF 4707/* end confdefs.h. */ 4708/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4709 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4710#define connect innocuous_connect 4711 4712/* System header to define __stub macros and hopefully few prototypes, 4713 which can conflict with char connect (); below. 4714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4715 <limits.h> exists even on freestanding compilers. */ 4716 4717#ifdef __STDC__ 4718# include <limits.h> 4719#else 4720# include <assert.h> 4721#endif 4722 4723#undef connect 4724 4725/* Override any GCC internal prototype to avoid an error. 4726 Use char because int might match the return type of a GCC 4727 builtin and then its argument prototype would still apply. */ 4728#ifdef __cplusplus 4729extern "C" 4730#endif 4731char connect (); 4732/* The GNU C library defines this for functions which it implements 4733 to always fail with ENOSYS. Some functions are actually named 4734 something starting with __ and the normal name is an alias. */ 4735#if defined __stub_connect || defined __stub___connect 4736choke me 4737#endif 4738 4739int 4740main () 4741{ 4742return connect (); 4743 ; 4744 return 0; 4745} 4746_ACEOF 4747rm -f conftest.$ac_objext conftest$ac_exeext 4748if { (ac_try="$ac_link" 4749case "(($ac_try" in 4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4751 *) ac_try_echo=$ac_try;; 4752esac 4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4754 (eval "$ac_link") 2>conftest.er1 4755 ac_status=$? 4756 grep -v '^ *+' conftest.er1 >conftest.err 4757 rm -f conftest.er1 4758 cat conftest.err >&5 4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4760 (exit $ac_status); } && { 4761 test -z "$ac_c_werror_flag" || 4762 test ! -s conftest.err 4763 } && test -s conftest$ac_exeext && 4764 $as_test_x conftest$ac_exeext; then 4765 ac_cv_func_connect=yes 4766else 4767 echo "$as_me: failed program was:" >&5 4768sed 's/^/| /' conftest.$ac_ext >&5 4769 4770 ac_cv_func_connect=no 4771fi 4772 4773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4774 conftest$ac_exeext conftest.$ac_ext 4775fi 4776{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4777echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4778if test $ac_cv_func_connect = yes; then 4779 tcl_checkSocket=0 4780else 4781 tcl_checkSocket=1 4782fi 4783 4784 if test "$tcl_checkSocket" = 1; then 4785 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4786echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4787if test "${ac_cv_func_setsockopt+set}" = set; then 4788 echo $ECHO_N "(cached) $ECHO_C" >&6 4789else 4790 cat >conftest.$ac_ext <<_ACEOF 4791/* confdefs.h. */ 4792_ACEOF 4793cat confdefs.h >>conftest.$ac_ext 4794cat >>conftest.$ac_ext <<_ACEOF 4795/* end confdefs.h. */ 4796/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4797 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4798#define setsockopt innocuous_setsockopt 4799 4800/* System header to define __stub macros and hopefully few prototypes, 4801 which can conflict with char setsockopt (); below. 4802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4803 <limits.h> exists even on freestanding compilers. */ 4804 4805#ifdef __STDC__ 4806# include <limits.h> 4807#else 4808# include <assert.h> 4809#endif 4810 4811#undef setsockopt 4812 4813/* Override any GCC internal prototype to avoid an error. 4814 Use char because int might match the return type of a GCC 4815 builtin and then its argument prototype would still apply. */ 4816#ifdef __cplusplus 4817extern "C" 4818#endif 4819char setsockopt (); 4820/* The GNU C library defines this for functions which it implements 4821 to always fail with ENOSYS. Some functions are actually named 4822 something starting with __ and the normal name is an alias. */ 4823#if defined __stub_setsockopt || defined __stub___setsockopt 4824choke me 4825#endif 4826 4827int 4828main () 4829{ 4830return setsockopt (); 4831 ; 4832 return 0; 4833} 4834_ACEOF 4835rm -f conftest.$ac_objext conftest$ac_exeext 4836if { (ac_try="$ac_link" 4837case "(($ac_try" in 4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4839 *) ac_try_echo=$ac_try;; 4840esac 4841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4842 (eval "$ac_link") 2>conftest.er1 4843 ac_status=$? 4844 grep -v '^ *+' conftest.er1 >conftest.err 4845 rm -f conftest.er1 4846 cat conftest.err >&5 4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4848 (exit $ac_status); } && { 4849 test -z "$ac_c_werror_flag" || 4850 test ! -s conftest.err 4851 } && test -s conftest$ac_exeext && 4852 $as_test_x conftest$ac_exeext; then 4853 ac_cv_func_setsockopt=yes 4854else 4855 echo "$as_me: failed program was:" >&5 4856sed 's/^/| /' conftest.$ac_ext >&5 4857 4858 ac_cv_func_setsockopt=no 4859fi 4860 4861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4862 conftest$ac_exeext conftest.$ac_ext 4863fi 4864{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4865echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4866if test $ac_cv_func_setsockopt = yes; then 4867 : 4868else 4869 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4870echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4871if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4872 echo $ECHO_N "(cached) $ECHO_C" >&6 4873else 4874 ac_check_lib_save_LIBS=$LIBS 4875LIBS="-lsocket $LIBS" 4876cat >conftest.$ac_ext <<_ACEOF 4877/* confdefs.h. */ 4878_ACEOF 4879cat confdefs.h >>conftest.$ac_ext 4880cat >>conftest.$ac_ext <<_ACEOF 4881/* end confdefs.h. */ 4882 4883/* Override any GCC internal prototype to avoid an error. 4884 Use char because int might match the return type of a GCC 4885 builtin and then its argument prototype would still apply. */ 4886#ifdef __cplusplus 4887extern "C" 4888#endif 4889char setsockopt (); 4890int 4891main () 4892{ 4893return setsockopt (); 4894 ; 4895 return 0; 4896} 4897_ACEOF 4898rm -f conftest.$ac_objext conftest$ac_exeext 4899if { (ac_try="$ac_link" 4900case "(($ac_try" in 4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4902 *) ac_try_echo=$ac_try;; 4903esac 4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4905 (eval "$ac_link") 2>conftest.er1 4906 ac_status=$? 4907 grep -v '^ *+' conftest.er1 >conftest.err 4908 rm -f conftest.er1 4909 cat conftest.err >&5 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); } && { 4912 test -z "$ac_c_werror_flag" || 4913 test ! -s conftest.err 4914 } && test -s conftest$ac_exeext && 4915 $as_test_x conftest$ac_exeext; then 4916 ac_cv_lib_socket_setsockopt=yes 4917else 4918 echo "$as_me: failed program was:" >&5 4919sed 's/^/| /' conftest.$ac_ext >&5 4920 4921 ac_cv_lib_socket_setsockopt=no 4922fi 4923 4924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4925 conftest$ac_exeext conftest.$ac_ext 4926LIBS=$ac_check_lib_save_LIBS 4927fi 4928{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4929echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4930if test $ac_cv_lib_socket_setsockopt = yes; then 4931 LIBS="$LIBS -lsocket" 4932else 4933 tcl_checkBoth=1 4934fi 4935 4936fi 4937 4938 fi 4939 if test "$tcl_checkBoth" = 1; then 4940 tk_oldLibs=$LIBS 4941 LIBS="$LIBS -lsocket -lnsl" 4942 { echo "$as_me:$LINENO: checking for accept" >&5 4943echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4944if test "${ac_cv_func_accept+set}" = set; then 4945 echo $ECHO_N "(cached) $ECHO_C" >&6 4946else 4947 cat >conftest.$ac_ext <<_ACEOF 4948/* confdefs.h. */ 4949_ACEOF 4950cat confdefs.h >>conftest.$ac_ext 4951cat >>conftest.$ac_ext <<_ACEOF 4952/* end confdefs.h. */ 4953/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4954 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4955#define accept innocuous_accept 4956 4957/* System header to define __stub macros and hopefully few prototypes, 4958 which can conflict with char accept (); below. 4959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4960 <limits.h> exists even on freestanding compilers. */ 4961 4962#ifdef __STDC__ 4963# include <limits.h> 4964#else 4965# include <assert.h> 4966#endif 4967 4968#undef accept 4969 4970/* Override any GCC internal prototype to avoid an error. 4971 Use char because int might match the return type of a GCC 4972 builtin and then its argument prototype would still apply. */ 4973#ifdef __cplusplus 4974extern "C" 4975#endif 4976char accept (); 4977/* The GNU C library defines this for functions which it implements 4978 to always fail with ENOSYS. Some functions are actually named 4979 something starting with __ and the normal name is an alias. */ 4980#if defined __stub_accept || defined __stub___accept 4981choke me 4982#endif 4983 4984int 4985main () 4986{ 4987return accept (); 4988 ; 4989 return 0; 4990} 4991_ACEOF 4992rm -f conftest.$ac_objext conftest$ac_exeext 4993if { (ac_try="$ac_link" 4994case "(($ac_try" in 4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4996 *) ac_try_echo=$ac_try;; 4997esac 4998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4999 (eval "$ac_link") 2>conftest.er1 5000 ac_status=$? 5001 grep -v '^ *+' conftest.er1 >conftest.err 5002 rm -f conftest.er1 5003 cat conftest.err >&5 5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5005 (exit $ac_status); } && { 5006 test -z "$ac_c_werror_flag" || 5007 test ! -s conftest.err 5008 } && test -s conftest$ac_exeext && 5009 $as_test_x conftest$ac_exeext; then 5010 ac_cv_func_accept=yes 5011else 5012 echo "$as_me: failed program was:" >&5 5013sed 's/^/| /' conftest.$ac_ext >&5 5014 5015 ac_cv_func_accept=no 5016fi 5017 5018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5019 conftest$ac_exeext conftest.$ac_ext 5020fi 5021{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5022echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5023if test $ac_cv_func_accept = yes; then 5024 tcl_checkNsl=0 5025else 5026 LIBS=$tk_oldLibs 5027fi 5028 5029 fi 5030 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5031echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5032if test "${ac_cv_func_gethostbyname+set}" = set; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034else 5035 cat >conftest.$ac_ext <<_ACEOF 5036/* confdefs.h. */ 5037_ACEOF 5038cat confdefs.h >>conftest.$ac_ext 5039cat >>conftest.$ac_ext <<_ACEOF 5040/* end confdefs.h. */ 5041/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5042 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5043#define gethostbyname innocuous_gethostbyname 5044 5045/* System header to define __stub macros and hopefully few prototypes, 5046 which can conflict with char gethostbyname (); below. 5047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5048 <limits.h> exists even on freestanding compilers. */ 5049 5050#ifdef __STDC__ 5051# include <limits.h> 5052#else 5053# include <assert.h> 5054#endif 5055 5056#undef gethostbyname 5057 5058/* Override any GCC internal prototype to avoid an error. 5059 Use char because int might match the return type of a GCC 5060 builtin and then its argument prototype would still apply. */ 5061#ifdef __cplusplus 5062extern "C" 5063#endif 5064char gethostbyname (); 5065/* The GNU C library defines this for functions which it implements 5066 to always fail with ENOSYS. Some functions are actually named 5067 something starting with __ and the normal name is an alias. */ 5068#if defined __stub_gethostbyname || defined __stub___gethostbyname 5069choke me 5070#endif 5071 5072int 5073main () 5074{ 5075return gethostbyname (); 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080rm -f conftest.$ac_objext conftest$ac_exeext 5081if { (ac_try="$ac_link" 5082case "(($ac_try" in 5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5084 *) ac_try_echo=$ac_try;; 5085esac 5086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5087 (eval "$ac_link") 2>conftest.er1 5088 ac_status=$? 5089 grep -v '^ *+' conftest.er1 >conftest.err 5090 rm -f conftest.er1 5091 cat conftest.err >&5 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); } && { 5094 test -z "$ac_c_werror_flag" || 5095 test ! -s conftest.err 5096 } && test -s conftest$ac_exeext && 5097 $as_test_x conftest$ac_exeext; then 5098 ac_cv_func_gethostbyname=yes 5099else 5100 echo "$as_me: failed program was:" >&5 5101sed 's/^/| /' conftest.$ac_ext >&5 5102 5103 ac_cv_func_gethostbyname=no 5104fi 5105 5106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5107 conftest$ac_exeext conftest.$ac_ext 5108fi 5109{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5110echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5111if test $ac_cv_func_gethostbyname = yes; then 5112 : 5113else 5114 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5115echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5116if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5118else 5119 ac_check_lib_save_LIBS=$LIBS 5120LIBS="-lnsl $LIBS" 5121cat >conftest.$ac_ext <<_ACEOF 5122/* confdefs.h. */ 5123_ACEOF 5124cat confdefs.h >>conftest.$ac_ext 5125cat >>conftest.$ac_ext <<_ACEOF 5126/* end confdefs.h. */ 5127 5128/* Override any GCC internal prototype to avoid an error. 5129 Use char because int might match the return type of a GCC 5130 builtin and then its argument prototype would still apply. */ 5131#ifdef __cplusplus 5132extern "C" 5133#endif 5134char gethostbyname (); 5135int 5136main () 5137{ 5138return gethostbyname (); 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143rm -f conftest.$ac_objext conftest$ac_exeext 5144if { (ac_try="$ac_link" 5145case "(($ac_try" in 5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5147 *) ac_try_echo=$ac_try;; 5148esac 5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5150 (eval "$ac_link") 2>conftest.er1 5151 ac_status=$? 5152 grep -v '^ *+' conftest.er1 >conftest.err 5153 rm -f conftest.er1 5154 cat conftest.err >&5 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); } && { 5157 test -z "$ac_c_werror_flag" || 5158 test ! -s conftest.err 5159 } && test -s conftest$ac_exeext && 5160 $as_test_x conftest$ac_exeext; then 5161 ac_cv_lib_nsl_gethostbyname=yes 5162else 5163 echo "$as_me: failed program was:" >&5 5164sed 's/^/| /' conftest.$ac_ext >&5 5165 5166 ac_cv_lib_nsl_gethostbyname=no 5167fi 5168 5169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5170 conftest$ac_exeext conftest.$ac_ext 5171LIBS=$ac_check_lib_save_LIBS 5172fi 5173{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5174echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5175if test $ac_cv_lib_nsl_gethostbyname = yes; then 5176 LIBS="$LIBS -lnsl" 5177fi 5178 5179fi 5180 5181 5182 # TEA specific: Don't perform the eval of the libraries here because 5183 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5184 5185 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5186 5187 5188 5189 5190 { echo "$as_me:$LINENO: checking dirent.h" >&5 5191echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5192if test "${tcl_cv_dirent_h+set}" = set; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 5196 cat >conftest.$ac_ext <<_ACEOF 5197/* confdefs.h. */ 5198_ACEOF 5199cat confdefs.h >>conftest.$ac_ext 5200cat >>conftest.$ac_ext <<_ACEOF 5201/* end confdefs.h. */ 5202#include <sys/types.h> 5203#include <dirent.h> 5204int 5205main () 5206{ 5207 5208#ifndef _POSIX_SOURCE 5209# ifdef __Lynx__ 5210 /* 5211 * Generate compilation error to make the test fail: Lynx headers 5212 * are only valid if really in the POSIX environment. 5213 */ 5214 5215 missing_procedure(); 5216# endif 5217#endif 5218DIR *d; 5219struct dirent *entryPtr; 5220char *p; 5221d = opendir("foobar"); 5222entryPtr = readdir(d); 5223p = entryPtr->d_name; 5224closedir(d); 5225 5226 ; 5227 return 0; 5228} 5229_ACEOF 5230rm -f conftest.$ac_objext conftest$ac_exeext 5231if { (ac_try="$ac_link" 5232case "(($ac_try" in 5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5234 *) ac_try_echo=$ac_try;; 5235esac 5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5237 (eval "$ac_link") 2>conftest.er1 5238 ac_status=$? 5239 grep -v '^ *+' conftest.er1 >conftest.err 5240 rm -f conftest.er1 5241 cat conftest.err >&5 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); } && { 5244 test -z "$ac_c_werror_flag" || 5245 test ! -s conftest.err 5246 } && test -s conftest$ac_exeext && 5247 $as_test_x conftest$ac_exeext; then 5248 tcl_cv_dirent_h=yes 5249else 5250 echo "$as_me: failed program was:" >&5 5251sed 's/^/| /' conftest.$ac_ext >&5 5252 5253 tcl_cv_dirent_h=no 5254fi 5255 5256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5257 conftest$ac_exeext conftest.$ac_ext 5258fi 5259{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5260echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5261 5262 if test $tcl_cv_dirent_h = no; then 5263 5264cat >>confdefs.h <<\_ACEOF 5265#define NO_DIRENT_H 1 5266_ACEOF 5267 5268 fi 5269 5270 # TEA specific: 5271 if test "${ac_cv_header_errno_h+set}" = set; then 5272 { echo "$as_me:$LINENO: checking for errno.h" >&5 5273echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5274if test "${ac_cv_header_errno_h+set}" = set; then 5275 echo $ECHO_N "(cached) $ECHO_C" >&6 5276fi 5277{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5278echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5279else 5280 # Is the header compilable? 5281{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5282echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5283cat >conftest.$ac_ext <<_ACEOF 5284/* confdefs.h. */ 5285_ACEOF 5286cat confdefs.h >>conftest.$ac_ext 5287cat >>conftest.$ac_ext <<_ACEOF 5288/* end confdefs.h. */ 5289$ac_includes_default 5290#include <errno.h> 5291_ACEOF 5292rm -f conftest.$ac_objext 5293if { (ac_try="$ac_compile" 5294case "(($ac_try" in 5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5296 *) ac_try_echo=$ac_try;; 5297esac 5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5299 (eval "$ac_compile") 2>conftest.er1 5300 ac_status=$? 5301 grep -v '^ *+' conftest.er1 >conftest.err 5302 rm -f conftest.er1 5303 cat conftest.err >&5 5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5305 (exit $ac_status); } && { 5306 test -z "$ac_c_werror_flag" || 5307 test ! -s conftest.err 5308 } && test -s conftest.$ac_objext; then 5309 ac_header_compiler=yes 5310else 5311 echo "$as_me: failed program was:" >&5 5312sed 's/^/| /' conftest.$ac_ext >&5 5313 5314 ac_header_compiler=no 5315fi 5316 5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5319echo "${ECHO_T}$ac_header_compiler" >&6; } 5320 5321# Is the header present? 5322{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5323echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5324cat >conftest.$ac_ext <<_ACEOF 5325/* confdefs.h. */ 5326_ACEOF 5327cat confdefs.h >>conftest.$ac_ext 5328cat >>conftest.$ac_ext <<_ACEOF 5329/* end confdefs.h. */ 5330#include <errno.h> 5331_ACEOF 5332if { (ac_try="$ac_cpp conftest.$ac_ext" 5333case "(($ac_try" in 5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5335 *) ac_try_echo=$ac_try;; 5336esac 5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5339 ac_status=$? 5340 grep -v '^ *+' conftest.er1 >conftest.err 5341 rm -f conftest.er1 5342 cat conftest.err >&5 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } >/dev/null && { 5345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5346 test ! -s conftest.err 5347 }; then 5348 ac_header_preproc=yes 5349else 5350 echo "$as_me: failed program was:" >&5 5351sed 's/^/| /' conftest.$ac_ext >&5 5352 5353 ac_header_preproc=no 5354fi 5355 5356rm -f conftest.err conftest.$ac_ext 5357{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5358echo "${ECHO_T}$ac_header_preproc" >&6; } 5359 5360# So? What about this header? 5361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5362 yes:no: ) 5363 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5364echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5365 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5366echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5367 ac_header_preproc=yes 5368 ;; 5369 no:yes:* ) 5370 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5371echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5372 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5373echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5374 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5375echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5376 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5377echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5378 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5379echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5380 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5381echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5382 5383 ;; 5384esac 5385{ echo "$as_me:$LINENO: checking for errno.h" >&5 5386echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5387if test "${ac_cv_header_errno_h+set}" = set; then 5388 echo $ECHO_N "(cached) $ECHO_C" >&6 5389else 5390 ac_cv_header_errno_h=$ac_header_preproc 5391fi 5392{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5393echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5394 5395fi 5396if test $ac_cv_header_errno_h = yes; then 5397 : 5398else 5399 5400cat >>confdefs.h <<\_ACEOF 5401#define NO_ERRNO_H 1 5402_ACEOF 5403 5404fi 5405 5406 5407 if test "${ac_cv_header_float_h+set}" = set; then 5408 { echo "$as_me:$LINENO: checking for float.h" >&5 5409echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5410if test "${ac_cv_header_float_h+set}" = set; then 5411 echo $ECHO_N "(cached) $ECHO_C" >&6 5412fi 5413{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5414echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5415else 5416 # Is the header compilable? 5417{ echo "$as_me:$LINENO: checking float.h usability" >&5 5418echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5419cat >conftest.$ac_ext <<_ACEOF 5420/* confdefs.h. */ 5421_ACEOF 5422cat confdefs.h >>conftest.$ac_ext 5423cat >>conftest.$ac_ext <<_ACEOF 5424/* end confdefs.h. */ 5425$ac_includes_default 5426#include <float.h> 5427_ACEOF 5428rm -f conftest.$ac_objext 5429if { (ac_try="$ac_compile" 5430case "(($ac_try" in 5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5432 *) ac_try_echo=$ac_try;; 5433esac 5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5435 (eval "$ac_compile") 2>conftest.er1 5436 ac_status=$? 5437 grep -v '^ *+' conftest.er1 >conftest.err 5438 rm -f conftest.er1 5439 cat conftest.err >&5 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); } && { 5442 test -z "$ac_c_werror_flag" || 5443 test ! -s conftest.err 5444 } && test -s conftest.$ac_objext; then 5445 ac_header_compiler=yes 5446else 5447 echo "$as_me: failed program was:" >&5 5448sed 's/^/| /' conftest.$ac_ext >&5 5449 5450 ac_header_compiler=no 5451fi 5452 5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5455echo "${ECHO_T}$ac_header_compiler" >&6; } 5456 5457# Is the header present? 5458{ echo "$as_me:$LINENO: checking float.h presence" >&5 5459echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5460cat >conftest.$ac_ext <<_ACEOF 5461/* confdefs.h. */ 5462_ACEOF 5463cat confdefs.h >>conftest.$ac_ext 5464cat >>conftest.$ac_ext <<_ACEOF 5465/* end confdefs.h. */ 5466#include <float.h> 5467_ACEOF 5468if { (ac_try="$ac_cpp conftest.$ac_ext" 5469case "(($ac_try" in 5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5471 *) ac_try_echo=$ac_try;; 5472esac 5473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5475 ac_status=$? 5476 grep -v '^ *+' conftest.er1 >conftest.err 5477 rm -f conftest.er1 5478 cat conftest.err >&5 5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5480 (exit $ac_status); } >/dev/null && { 5481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5482 test ! -s conftest.err 5483 }; then 5484 ac_header_preproc=yes 5485else 5486 echo "$as_me: failed program was:" >&5 5487sed 's/^/| /' conftest.$ac_ext >&5 5488 5489 ac_header_preproc=no 5490fi 5491 5492rm -f conftest.err conftest.$ac_ext 5493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5494echo "${ECHO_T}$ac_header_preproc" >&6; } 5495 5496# So? What about this header? 5497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5498 yes:no: ) 5499 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5500echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5501 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5502echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5503 ac_header_preproc=yes 5504 ;; 5505 no:yes:* ) 5506 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5507echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5508 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5509echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5510 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5511echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5512 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5513echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5514 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5515echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5516 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5517echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5518 5519 ;; 5520esac 5521{ echo "$as_me:$LINENO: checking for float.h" >&5 5522echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5523if test "${ac_cv_header_float_h+set}" = set; then 5524 echo $ECHO_N "(cached) $ECHO_C" >&6 5525else 5526 ac_cv_header_float_h=$ac_header_preproc 5527fi 5528{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5529echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5530 5531fi 5532if test $ac_cv_header_float_h = yes; then 5533 : 5534else 5535 5536cat >>confdefs.h <<\_ACEOF 5537#define NO_FLOAT_H 1 5538_ACEOF 5539 5540fi 5541 5542 5543 if test "${ac_cv_header_values_h+set}" = set; then 5544 { echo "$as_me:$LINENO: checking for values.h" >&5 5545echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5546if test "${ac_cv_header_values_h+set}" = set; then 5547 echo $ECHO_N "(cached) $ECHO_C" >&6 5548fi 5549{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5550echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5551else 5552 # Is the header compilable? 5553{ echo "$as_me:$LINENO: checking values.h usability" >&5 5554echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5555cat >conftest.$ac_ext <<_ACEOF 5556/* confdefs.h. */ 5557_ACEOF 5558cat confdefs.h >>conftest.$ac_ext 5559cat >>conftest.$ac_ext <<_ACEOF 5560/* end confdefs.h. */ 5561$ac_includes_default 5562#include <values.h> 5563_ACEOF 5564rm -f conftest.$ac_objext 5565if { (ac_try="$ac_compile" 5566case "(($ac_try" in 5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5568 *) ac_try_echo=$ac_try;; 5569esac 5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5571 (eval "$ac_compile") 2>conftest.er1 5572 ac_status=$? 5573 grep -v '^ *+' conftest.er1 >conftest.err 5574 rm -f conftest.er1 5575 cat conftest.err >&5 5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 (exit $ac_status); } && { 5578 test -z "$ac_c_werror_flag" || 5579 test ! -s conftest.err 5580 } && test -s conftest.$ac_objext; then 5581 ac_header_compiler=yes 5582else 5583 echo "$as_me: failed program was:" >&5 5584sed 's/^/| /' conftest.$ac_ext >&5 5585 5586 ac_header_compiler=no 5587fi 5588 5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5591echo "${ECHO_T}$ac_header_compiler" >&6; } 5592 5593# Is the header present? 5594{ echo "$as_me:$LINENO: checking values.h presence" >&5 5595echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5596cat >conftest.$ac_ext <<_ACEOF 5597/* confdefs.h. */ 5598_ACEOF 5599cat confdefs.h >>conftest.$ac_ext 5600cat >>conftest.$ac_ext <<_ACEOF 5601/* end confdefs.h. */ 5602#include <values.h> 5603_ACEOF 5604if { (ac_try="$ac_cpp conftest.$ac_ext" 5605case "(($ac_try" in 5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5607 *) ac_try_echo=$ac_try;; 5608esac 5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5611 ac_status=$? 5612 grep -v '^ *+' conftest.er1 >conftest.err 5613 rm -f conftest.er1 5614 cat conftest.err >&5 5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5616 (exit $ac_status); } >/dev/null && { 5617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5618 test ! -s conftest.err 5619 }; then 5620 ac_header_preproc=yes 5621else 5622 echo "$as_me: failed program was:" >&5 5623sed 's/^/| /' conftest.$ac_ext >&5 5624 5625 ac_header_preproc=no 5626fi 5627 5628rm -f conftest.err conftest.$ac_ext 5629{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5630echo "${ECHO_T}$ac_header_preproc" >&6; } 5631 5632# So? What about this header? 5633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5634 yes:no: ) 5635 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5636echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5637 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5638echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5639 ac_header_preproc=yes 5640 ;; 5641 no:yes:* ) 5642 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5643echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5644 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5645echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5646 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5647echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5648 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5649echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5650 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5651echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5652 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5653echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5654 5655 ;; 5656esac 5657{ echo "$as_me:$LINENO: checking for values.h" >&5 5658echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5659if test "${ac_cv_header_values_h+set}" = set; then 5660 echo $ECHO_N "(cached) $ECHO_C" >&6 5661else 5662 ac_cv_header_values_h=$ac_header_preproc 5663fi 5664{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5665echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5666 5667fi 5668if test $ac_cv_header_values_h = yes; then 5669 : 5670else 5671 5672cat >>confdefs.h <<\_ACEOF 5673#define NO_VALUES_H 1 5674_ACEOF 5675 5676fi 5677 5678 5679 if test "${ac_cv_header_limits_h+set}" = set; then 5680 { echo "$as_me:$LINENO: checking for limits.h" >&5 5681echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5682if test "${ac_cv_header_limits_h+set}" = set; then 5683 echo $ECHO_N "(cached) $ECHO_C" >&6 5684fi 5685{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5686echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5687else 5688 # Is the header compilable? 5689{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5690echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5691cat >conftest.$ac_ext <<_ACEOF 5692/* confdefs.h. */ 5693_ACEOF 5694cat confdefs.h >>conftest.$ac_ext 5695cat >>conftest.$ac_ext <<_ACEOF 5696/* end confdefs.h. */ 5697$ac_includes_default 5698#include <limits.h> 5699_ACEOF 5700rm -f conftest.$ac_objext 5701if { (ac_try="$ac_compile" 5702case "(($ac_try" in 5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5704 *) ac_try_echo=$ac_try;; 5705esac 5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5707 (eval "$ac_compile") 2>conftest.er1 5708 ac_status=$? 5709 grep -v '^ *+' conftest.er1 >conftest.err 5710 rm -f conftest.er1 5711 cat conftest.err >&5 5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5713 (exit $ac_status); } && { 5714 test -z "$ac_c_werror_flag" || 5715 test ! -s conftest.err 5716 } && test -s conftest.$ac_objext; then 5717 ac_header_compiler=yes 5718else 5719 echo "$as_me: failed program was:" >&5 5720sed 's/^/| /' conftest.$ac_ext >&5 5721 5722 ac_header_compiler=no 5723fi 5724 5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5727echo "${ECHO_T}$ac_header_compiler" >&6; } 5728 5729# Is the header present? 5730{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5731echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5732cat >conftest.$ac_ext <<_ACEOF 5733/* confdefs.h. */ 5734_ACEOF 5735cat confdefs.h >>conftest.$ac_ext 5736cat >>conftest.$ac_ext <<_ACEOF 5737/* end confdefs.h. */ 5738#include <limits.h> 5739_ACEOF 5740if { (ac_try="$ac_cpp conftest.$ac_ext" 5741case "(($ac_try" in 5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5743 *) ac_try_echo=$ac_try;; 5744esac 5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5747 ac_status=$? 5748 grep -v '^ *+' conftest.er1 >conftest.err 5749 rm -f conftest.er1 5750 cat conftest.err >&5 5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5752 (exit $ac_status); } >/dev/null && { 5753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5754 test ! -s conftest.err 5755 }; then 5756 ac_header_preproc=yes 5757else 5758 echo "$as_me: failed program was:" >&5 5759sed 's/^/| /' conftest.$ac_ext >&5 5760 5761 ac_header_preproc=no 5762fi 5763 5764rm -f conftest.err conftest.$ac_ext 5765{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5766echo "${ECHO_T}$ac_header_preproc" >&6; } 5767 5768# So? What about this header? 5769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5770 yes:no: ) 5771 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5772echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5773 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5774echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5775 ac_header_preproc=yes 5776 ;; 5777 no:yes:* ) 5778 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5779echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5780 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5781echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5782 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5783echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5784 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5785echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5786 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5787echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5788 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5789echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5790 5791 ;; 5792esac 5793{ echo "$as_me:$LINENO: checking for limits.h" >&5 5794echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5795if test "${ac_cv_header_limits_h+set}" = set; then 5796 echo $ECHO_N "(cached) $ECHO_C" >&6 5797else 5798 ac_cv_header_limits_h=$ac_header_preproc 5799fi 5800{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5801echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5802 5803fi 5804if test $ac_cv_header_limits_h = yes; then 5805 5806cat >>confdefs.h <<\_ACEOF 5807#define HAVE_LIMITS_H 1 5808_ACEOF 5809 5810else 5811 5812cat >>confdefs.h <<\_ACEOF 5813#define NO_LIMITS_H 1 5814_ACEOF 5815 5816fi 5817 5818 5819 if test "${ac_cv_header_stdlib_h+set}" = set; then 5820 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5821echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5822if test "${ac_cv_header_stdlib_h+set}" = set; then 5823 echo $ECHO_N "(cached) $ECHO_C" >&6 5824fi 5825{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5826echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5827else 5828 # Is the header compilable? 5829{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5830echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5831cat >conftest.$ac_ext <<_ACEOF 5832/* confdefs.h. */ 5833_ACEOF 5834cat confdefs.h >>conftest.$ac_ext 5835cat >>conftest.$ac_ext <<_ACEOF 5836/* end confdefs.h. */ 5837$ac_includes_default 5838#include <stdlib.h> 5839_ACEOF 5840rm -f conftest.$ac_objext 5841if { (ac_try="$ac_compile" 5842case "(($ac_try" in 5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5844 *) ac_try_echo=$ac_try;; 5845esac 5846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5847 (eval "$ac_compile") 2>conftest.er1 5848 ac_status=$? 5849 grep -v '^ *+' conftest.er1 >conftest.err 5850 rm -f conftest.er1 5851 cat conftest.err >&5 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); } && { 5854 test -z "$ac_c_werror_flag" || 5855 test ! -s conftest.err 5856 } && test -s conftest.$ac_objext; then 5857 ac_header_compiler=yes 5858else 5859 echo "$as_me: failed program was:" >&5 5860sed 's/^/| /' conftest.$ac_ext >&5 5861 5862 ac_header_compiler=no 5863fi 5864 5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5867echo "${ECHO_T}$ac_header_compiler" >&6; } 5868 5869# Is the header present? 5870{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5871echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5872cat >conftest.$ac_ext <<_ACEOF 5873/* confdefs.h. */ 5874_ACEOF 5875cat confdefs.h >>conftest.$ac_ext 5876cat >>conftest.$ac_ext <<_ACEOF 5877/* end confdefs.h. */ 5878#include <stdlib.h> 5879_ACEOF 5880if { (ac_try="$ac_cpp conftest.$ac_ext" 5881case "(($ac_try" in 5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5883 *) ac_try_echo=$ac_try;; 5884esac 5885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5887 ac_status=$? 5888 grep -v '^ *+' conftest.er1 >conftest.err 5889 rm -f conftest.er1 5890 cat conftest.err >&5 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); } >/dev/null && { 5893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5894 test ! -s conftest.err 5895 }; then 5896 ac_header_preproc=yes 5897else 5898 echo "$as_me: failed program was:" >&5 5899sed 's/^/| /' conftest.$ac_ext >&5 5900 5901 ac_header_preproc=no 5902fi 5903 5904rm -f conftest.err conftest.$ac_ext 5905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5906echo "${ECHO_T}$ac_header_preproc" >&6; } 5907 5908# So? What about this header? 5909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5910 yes:no: ) 5911 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5912echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5913 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5914echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5915 ac_header_preproc=yes 5916 ;; 5917 no:yes:* ) 5918 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5919echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5920 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5921echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5922 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5923echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5924 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5925echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5926 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5927echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5928 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5929echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5930 5931 ;; 5932esac 5933{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5934echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5935if test "${ac_cv_header_stdlib_h+set}" = set; then 5936 echo $ECHO_N "(cached) $ECHO_C" >&6 5937else 5938 ac_cv_header_stdlib_h=$ac_header_preproc 5939fi 5940{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5941echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5942 5943fi 5944if test $ac_cv_header_stdlib_h = yes; then 5945 tcl_ok=1 5946else 5947 tcl_ok=0 5948fi 5949 5950 5951 cat >conftest.$ac_ext <<_ACEOF 5952/* confdefs.h. */ 5953_ACEOF 5954cat confdefs.h >>conftest.$ac_ext 5955cat >>conftest.$ac_ext <<_ACEOF 5956/* end confdefs.h. */ 5957#include <stdlib.h> 5958 5959_ACEOF 5960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5961 $EGREP "strtol" >/dev/null 2>&1; then 5962 : 5963else 5964 tcl_ok=0 5965fi 5966rm -f -r conftest* 5967 5968 cat >conftest.$ac_ext <<_ACEOF 5969/* confdefs.h. */ 5970_ACEOF 5971cat confdefs.h >>conftest.$ac_ext 5972cat >>conftest.$ac_ext <<_ACEOF 5973/* end confdefs.h. */ 5974#include <stdlib.h> 5975 5976_ACEOF 5977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5978 $EGREP "strtoul" >/dev/null 2>&1; then 5979 : 5980else 5981 tcl_ok=0 5982fi 5983rm -f -r conftest* 5984 5985 cat >conftest.$ac_ext <<_ACEOF 5986/* confdefs.h. */ 5987_ACEOF 5988cat confdefs.h >>conftest.$ac_ext 5989cat >>conftest.$ac_ext <<_ACEOF 5990/* end confdefs.h. */ 5991#include <stdlib.h> 5992 5993_ACEOF 5994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5995 $EGREP "strtod" >/dev/null 2>&1; then 5996 : 5997else 5998 tcl_ok=0 5999fi 6000rm -f -r conftest* 6001 6002 if test $tcl_ok = 0; then 6003 6004cat >>confdefs.h <<\_ACEOF 6005#define NO_STDLIB_H 1 6006_ACEOF 6007 6008 fi 6009 if test "${ac_cv_header_string_h+set}" = set; then 6010 { echo "$as_me:$LINENO: checking for string.h" >&5 6011echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6012if test "${ac_cv_header_string_h+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014fi 6015{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6016echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6017else 6018 # Is the header compilable? 6019{ echo "$as_me:$LINENO: checking string.h usability" >&5 6020echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6021cat >conftest.$ac_ext <<_ACEOF 6022/* confdefs.h. */ 6023_ACEOF 6024cat confdefs.h >>conftest.$ac_ext 6025cat >>conftest.$ac_ext <<_ACEOF 6026/* end confdefs.h. */ 6027$ac_includes_default 6028#include <string.h> 6029_ACEOF 6030rm -f conftest.$ac_objext 6031if { (ac_try="$ac_compile" 6032case "(($ac_try" in 6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6034 *) ac_try_echo=$ac_try;; 6035esac 6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6037 (eval "$ac_compile") 2>conftest.er1 6038 ac_status=$? 6039 grep -v '^ *+' conftest.er1 >conftest.err 6040 rm -f conftest.er1 6041 cat conftest.err >&5 6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6043 (exit $ac_status); } && { 6044 test -z "$ac_c_werror_flag" || 6045 test ! -s conftest.err 6046 } && test -s conftest.$ac_objext; then 6047 ac_header_compiler=yes 6048else 6049 echo "$as_me: failed program was:" >&5 6050sed 's/^/| /' conftest.$ac_ext >&5 6051 6052 ac_header_compiler=no 6053fi 6054 6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6057echo "${ECHO_T}$ac_header_compiler" >&6; } 6058 6059# Is the header present? 6060{ echo "$as_me:$LINENO: checking string.h presence" >&5 6061echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6062cat >conftest.$ac_ext <<_ACEOF 6063/* confdefs.h. */ 6064_ACEOF 6065cat confdefs.h >>conftest.$ac_ext 6066cat >>conftest.$ac_ext <<_ACEOF 6067/* end confdefs.h. */ 6068#include <string.h> 6069_ACEOF 6070if { (ac_try="$ac_cpp conftest.$ac_ext" 6071case "(($ac_try" in 6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6073 *) ac_try_echo=$ac_try;; 6074esac 6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6077 ac_status=$? 6078 grep -v '^ *+' conftest.er1 >conftest.err 6079 rm -f conftest.er1 6080 cat conftest.err >&5 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); } >/dev/null && { 6083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6084 test ! -s conftest.err 6085 }; then 6086 ac_header_preproc=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089sed 's/^/| /' conftest.$ac_ext >&5 6090 6091 ac_header_preproc=no 6092fi 6093 6094rm -f conftest.err conftest.$ac_ext 6095{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6096echo "${ECHO_T}$ac_header_preproc" >&6; } 6097 6098# So? What about this header? 6099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6100 yes:no: ) 6101 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6102echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6104echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6105 ac_header_preproc=yes 6106 ;; 6107 no:yes:* ) 6108 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6109echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6110 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6111echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6112 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6113echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6114 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6115echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6116 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6117echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6118 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6119echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6120 6121 ;; 6122esac 6123{ echo "$as_me:$LINENO: checking for string.h" >&5 6124echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6125if test "${ac_cv_header_string_h+set}" = set; then 6126 echo $ECHO_N "(cached) $ECHO_C" >&6 6127else 6128 ac_cv_header_string_h=$ac_header_preproc 6129fi 6130{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6131echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6132 6133fi 6134if test $ac_cv_header_string_h = yes; then 6135 tcl_ok=1 6136else 6137 tcl_ok=0 6138fi 6139 6140 6141 cat >conftest.$ac_ext <<_ACEOF 6142/* confdefs.h. */ 6143_ACEOF 6144cat confdefs.h >>conftest.$ac_ext 6145cat >>conftest.$ac_ext <<_ACEOF 6146/* end confdefs.h. */ 6147#include <string.h> 6148 6149_ACEOF 6150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6151 $EGREP "strstr" >/dev/null 2>&1; then 6152 : 6153else 6154 tcl_ok=0 6155fi 6156rm -f -r conftest* 6157 6158 cat >conftest.$ac_ext <<_ACEOF 6159/* confdefs.h. */ 6160_ACEOF 6161cat confdefs.h >>conftest.$ac_ext 6162cat >>conftest.$ac_ext <<_ACEOF 6163/* end confdefs.h. */ 6164#include <string.h> 6165 6166_ACEOF 6167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6168 $EGREP "strerror" >/dev/null 2>&1; then 6169 : 6170else 6171 tcl_ok=0 6172fi 6173rm -f -r conftest* 6174 6175 6176 # See also memmove check below for a place where NO_STRING_H can be 6177 # set and why. 6178 6179 if test $tcl_ok = 0; then 6180 6181cat >>confdefs.h <<\_ACEOF 6182#define NO_STRING_H 1 6183_ACEOF 6184 6185 fi 6186 6187 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6188 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6189echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6190if test "${ac_cv_header_sys_wait_h+set}" = set; then 6191 echo $ECHO_N "(cached) $ECHO_C" >&6 6192fi 6193{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6194echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6195else 6196 # Is the header compilable? 6197{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6198echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6199cat >conftest.$ac_ext <<_ACEOF 6200/* confdefs.h. */ 6201_ACEOF 6202cat confdefs.h >>conftest.$ac_ext 6203cat >>conftest.$ac_ext <<_ACEOF 6204/* end confdefs.h. */ 6205$ac_includes_default 6206#include <sys/wait.h> 6207_ACEOF 6208rm -f conftest.$ac_objext 6209if { (ac_try="$ac_compile" 6210case "(($ac_try" in 6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6212 *) ac_try_echo=$ac_try;; 6213esac 6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6215 (eval "$ac_compile") 2>conftest.er1 6216 ac_status=$? 6217 grep -v '^ *+' conftest.er1 >conftest.err 6218 rm -f conftest.er1 6219 cat conftest.err >&5 6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6221 (exit $ac_status); } && { 6222 test -z "$ac_c_werror_flag" || 6223 test ! -s conftest.err 6224 } && test -s conftest.$ac_objext; then 6225 ac_header_compiler=yes 6226else 6227 echo "$as_me: failed program was:" >&5 6228sed 's/^/| /' conftest.$ac_ext >&5 6229 6230 ac_header_compiler=no 6231fi 6232 6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6234{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6235echo "${ECHO_T}$ac_header_compiler" >&6; } 6236 6237# Is the header present? 6238{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6239echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6240cat >conftest.$ac_ext <<_ACEOF 6241/* confdefs.h. */ 6242_ACEOF 6243cat confdefs.h >>conftest.$ac_ext 6244cat >>conftest.$ac_ext <<_ACEOF 6245/* end confdefs.h. */ 6246#include <sys/wait.h> 6247_ACEOF 6248if { (ac_try="$ac_cpp conftest.$ac_ext" 6249case "(($ac_try" in 6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6251 *) ac_try_echo=$ac_try;; 6252esac 6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6255 ac_status=$? 6256 grep -v '^ *+' conftest.er1 >conftest.err 6257 rm -f conftest.er1 6258 cat conftest.err >&5 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); } >/dev/null && { 6261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6262 test ! -s conftest.err 6263 }; then 6264 ac_header_preproc=yes 6265else 6266 echo "$as_me: failed program was:" >&5 6267sed 's/^/| /' conftest.$ac_ext >&5 6268 6269 ac_header_preproc=no 6270fi 6271 6272rm -f conftest.err conftest.$ac_ext 6273{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6274echo "${ECHO_T}$ac_header_preproc" >&6; } 6275 6276# So? What about this header? 6277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6278 yes:no: ) 6279 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6280echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6281 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6282echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6283 ac_header_preproc=yes 6284 ;; 6285 no:yes:* ) 6286 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6287echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6288 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6289echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6290 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6291echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6292 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6293echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6294 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6295echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6296 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6297echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6298 6299 ;; 6300esac 6301{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6302echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6303if test "${ac_cv_header_sys_wait_h+set}" = set; then 6304 echo $ECHO_N "(cached) $ECHO_C" >&6 6305else 6306 ac_cv_header_sys_wait_h=$ac_header_preproc 6307fi 6308{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6309echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6310 6311fi 6312if test $ac_cv_header_sys_wait_h = yes; then 6313 : 6314else 6315 6316cat >>confdefs.h <<\_ACEOF 6317#define NO_SYS_WAIT_H 1 6318_ACEOF 6319 6320fi 6321 6322 6323 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6324 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6325echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6326if test "${ac_cv_header_dlfcn_h+set}" = set; then 6327 echo $ECHO_N "(cached) $ECHO_C" >&6 6328fi 6329{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6330echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6331else 6332 # Is the header compilable? 6333{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6334echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6335cat >conftest.$ac_ext <<_ACEOF 6336/* confdefs.h. */ 6337_ACEOF 6338cat confdefs.h >>conftest.$ac_ext 6339cat >>conftest.$ac_ext <<_ACEOF 6340/* end confdefs.h. */ 6341$ac_includes_default 6342#include <dlfcn.h> 6343_ACEOF 6344rm -f conftest.$ac_objext 6345if { (ac_try="$ac_compile" 6346case "(($ac_try" in 6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6348 *) ac_try_echo=$ac_try;; 6349esac 6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6351 (eval "$ac_compile") 2>conftest.er1 6352 ac_status=$? 6353 grep -v '^ *+' conftest.er1 >conftest.err 6354 rm -f conftest.er1 6355 cat conftest.err >&5 6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6357 (exit $ac_status); } && { 6358 test -z "$ac_c_werror_flag" || 6359 test ! -s conftest.err 6360 } && test -s conftest.$ac_objext; then 6361 ac_header_compiler=yes 6362else 6363 echo "$as_me: failed program was:" >&5 6364sed 's/^/| /' conftest.$ac_ext >&5 6365 6366 ac_header_compiler=no 6367fi 6368 6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6371echo "${ECHO_T}$ac_header_compiler" >&6; } 6372 6373# Is the header present? 6374{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6375echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6376cat >conftest.$ac_ext <<_ACEOF 6377/* confdefs.h. */ 6378_ACEOF 6379cat confdefs.h >>conftest.$ac_ext 6380cat >>conftest.$ac_ext <<_ACEOF 6381/* end confdefs.h. */ 6382#include <dlfcn.h> 6383_ACEOF 6384if { (ac_try="$ac_cpp conftest.$ac_ext" 6385case "(($ac_try" in 6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6387 *) ac_try_echo=$ac_try;; 6388esac 6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6391 ac_status=$? 6392 grep -v '^ *+' conftest.er1 >conftest.err 6393 rm -f conftest.er1 6394 cat conftest.err >&5 6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6396 (exit $ac_status); } >/dev/null && { 6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6398 test ! -s conftest.err 6399 }; then 6400 ac_header_preproc=yes 6401else 6402 echo "$as_me: failed program was:" >&5 6403sed 's/^/| /' conftest.$ac_ext >&5 6404 6405 ac_header_preproc=no 6406fi 6407 6408rm -f conftest.err conftest.$ac_ext 6409{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6410echo "${ECHO_T}$ac_header_preproc" >&6; } 6411 6412# So? What about this header? 6413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6414 yes:no: ) 6415 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6416echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6417 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6418echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6419 ac_header_preproc=yes 6420 ;; 6421 no:yes:* ) 6422 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6423echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6424 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6425echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6426 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6427echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6428 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6429echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6430 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6431echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6432 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6433echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6434 6435 ;; 6436esac 6437{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6438echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6439if test "${ac_cv_header_dlfcn_h+set}" = set; then 6440 echo $ECHO_N "(cached) $ECHO_C" >&6 6441else 6442 ac_cv_header_dlfcn_h=$ac_header_preproc 6443fi 6444{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6445echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6446 6447fi 6448if test $ac_cv_header_dlfcn_h = yes; then 6449 : 6450else 6451 6452cat >>confdefs.h <<\_ACEOF 6453#define NO_DLFCN_H 1 6454_ACEOF 6455 6456fi 6457 6458 6459 6460 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6461 6462for ac_header in sys/param.h 6463do 6464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6469 echo $ECHO_N "(cached) $ECHO_C" >&6 6470fi 6471ac_res=`eval echo '${'$as_ac_Header'}'` 6472 { echo "$as_me:$LINENO: result: $ac_res" >&5 6473echo "${ECHO_T}$ac_res" >&6; } 6474else 6475 # Is the header compilable? 6476{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6478cat >conftest.$ac_ext <<_ACEOF 6479/* confdefs.h. */ 6480_ACEOF 6481cat confdefs.h >>conftest.$ac_ext 6482cat >>conftest.$ac_ext <<_ACEOF 6483/* end confdefs.h. */ 6484$ac_includes_default 6485#include <$ac_header> 6486_ACEOF 6487rm -f conftest.$ac_objext 6488if { (ac_try="$ac_compile" 6489case "(($ac_try" in 6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6491 *) ac_try_echo=$ac_try;; 6492esac 6493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6494 (eval "$ac_compile") 2>conftest.er1 6495 ac_status=$? 6496 grep -v '^ *+' conftest.er1 >conftest.err 6497 rm -f conftest.er1 6498 cat conftest.err >&5 6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6500 (exit $ac_status); } && { 6501 test -z "$ac_c_werror_flag" || 6502 test ! -s conftest.err 6503 } && test -s conftest.$ac_objext; then 6504 ac_header_compiler=yes 6505else 6506 echo "$as_me: failed program was:" >&5 6507sed 's/^/| /' conftest.$ac_ext >&5 6508 6509 ac_header_compiler=no 6510fi 6511 6512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6513{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6514echo "${ECHO_T}$ac_header_compiler" >&6; } 6515 6516# Is the header present? 6517{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6519cat >conftest.$ac_ext <<_ACEOF 6520/* confdefs.h. */ 6521_ACEOF 6522cat confdefs.h >>conftest.$ac_ext 6523cat >>conftest.$ac_ext <<_ACEOF 6524/* end confdefs.h. */ 6525#include <$ac_header> 6526_ACEOF 6527if { (ac_try="$ac_cpp conftest.$ac_ext" 6528case "(($ac_try" in 6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6530 *) ac_try_echo=$ac_try;; 6531esac 6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } >/dev/null && { 6540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6541 test ! -s conftest.err 6542 }; then 6543 ac_header_preproc=yes 6544else 6545 echo "$as_me: failed program was:" >&5 6546sed 's/^/| /' conftest.$ac_ext >&5 6547 6548 ac_header_preproc=no 6549fi 6550 6551rm -f conftest.err conftest.$ac_ext 6552{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6553echo "${ECHO_T}$ac_header_preproc" >&6; } 6554 6555# So? What about this header? 6556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6557 yes:no: ) 6558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6562 ac_header_preproc=yes 6563 ;; 6564 no:yes:* ) 6565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6572echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6577 6578 ;; 6579esac 6580{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6583 echo $ECHO_N "(cached) $ECHO_C" >&6 6584else 6585 eval "$as_ac_Header=\$ac_header_preproc" 6586fi 6587ac_res=`eval echo '${'$as_ac_Header'}'` 6588 { echo "$as_me:$LINENO: result: $ac_res" >&5 6589echo "${ECHO_T}$ac_res" >&6; } 6590 6591fi 6592if test `eval echo '${'$as_ac_Header'}'` = yes; then 6593 cat >>confdefs.h <<_ACEOF 6594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6595_ACEOF 6596 6597fi 6598 6599done 6600 6601 6602 # Let the user call this, because if it triggers, they will 6603 # need a compat/strtod.c that is correct. Users can also 6604 # use Tcl_GetDouble(FromObj) instead. 6605 #TEA_BUGGY_STRTOD 6606 fi 6607 6608 6609#-------------------------------------------------------------------- 6610# Load the tdomConfig.sh file 6611#-------------------------------------------------------------------- 6612 6613 6614 if test x"${no_tdom}" = x ; then 6615 { echo "$as_me:$LINENO: checking for tDOM configuration" >&5 6616echo $ECHO_N "checking for tDOM configuration... $ECHO_C" >&6; } 6617 6618# Check whether --with-tdom was given. 6619if test "${with_tdom+set}" = set; then 6620 withval=$with_tdom; with_tdomconfig=${withval} 6621fi 6622 6623 6624 no_tdom=true 6625 if test "${TEA_PLATFORM}" = "windows" ; then 6626 tdom_bindir=win 6627 else 6628 tdom_bindir=unix 6629 fi 6630 6631 if test "${ac_cv_c_tdomconfig+set}" = set; then 6632 echo $ECHO_N "(cached) $ECHO_C" >&6 6633else 6634 6635 6636 # First check to see if --with-tdom was specified. 6637 if test x"${with_tdomconfig}" != x ; then 6638 if test -f "${with_tdomconfig}/tdomConfig.sh" ; then 6639 ac_cv_c_tdomconfig=`(cd ${with_tdomconfig}; pwd)` 6640 else 6641 { { echo "$as_me:$LINENO: error: ${with_tdomconfig} directory doesn't contain tdomConfig.sh" >&5 6642echo "$as_me: error: ${with_tdomconfig} directory doesn't contain tdomConfig.sh" >&2;} 6643 { (exit 1); exit 1; }; } 6644 fi 6645 fi 6646 # Then check for a sibling installation 6647 if test x"${ac_cv_c_tdomconfig}" = x ; then 6648 for i in \ 6649 ../tdom `ls -dr ../tdom-* 2>/dev/null` \ 6650 ../../tdom `ls -dr ../../tdom-* 2>/dev/null` \ 6651 ../../../tdom `ls -dr ../../../tdom-* 2>/dev/null` ; do 6652 if test -f "$i/$tdom_bindir/tdomConfig.sh" ; then 6653 ac_cv_c_tdomconfig=`(cd $i/$tdom_bindir; pwd)` 6654 fi 6655 done 6656 fi 6657 # Then check if tnc/tdom are compilied in the source tree 6658 if test x"${ac_cv_c_tdomconfig}" = x ; then 6659 if test -f "../../$tdom_bindir/tdomConfig.sh" ; then 6660 ac_cv_c_tdomconfig=`(cd ../../$tdom_bindir; pwd)` 6661 fi 6662 fi 6663 # Check in a few common install locations 6664 if test x"${ac_cv_c_tdomconfig}" = x ; then 6665 for i in \ 6666 `ls -d ${prefix}/lib 2>/dev/null` \ 6667 `ls -d /usr/local/lib 2>/dev/null` ; do 6668 if test -f "$i/tdomConfig.sh" ; then 6669 ac_cv_c_tdomconfig=`(cd $i; pwd)` 6670 fi 6671 done 6672 fi 6673 # Check in a few other private locations 6674 if test x"${ac_cv_c_tdomconfig}" = x ; then 6675 for i in \ 6676 ${srcdir}/../tdom \ 6677 `ls -dr ${srcdir}/../tdom[0-9].[0-9]* 2>/dev/null` ; do 6678 if test -f "$i/$tdom_bindir/tdomConfig.sh" ; then 6679 ac_cv_c_tdomconfig=`(cd $i/$tdom_bindir; pwd)` 6680 fi 6681 done 6682 fi 6683 6684fi 6685 6686 if test x"${ac_cv_c_tdomconfig}" = x ; then 6687 TDOM_BIN_DIR="# no tDOM configuration file found" 6688 { echo "$as_me:$LINENO: WARNING: Can't find tDOM configuration definitions" >&5 6689echo "$as_me: WARNING: Can't find tDOM configuration definitions" >&2;} 6690 exit 0 6691 else 6692 no_tdom= 6693 TDOM_BIN_DIR=${ac_cv_c_tdomconfig} 6694 { echo "$as_me:$LINENO: result: found $TDOM_BIN_DIR/tdomConfig.sh" >&5 6695echo "${ECHO_T}found $TDOM_BIN_DIR/tdomConfig.sh" >&6; } 6696 fi 6697 fi 6698 6699 6700 { echo "$as_me:$LINENO: checking for existence of $TDOM_BIN_DIR/tdomConfig.sh" >&5 6701echo $ECHO_N "checking for existence of $TDOM_BIN_DIR/tdomConfig.sh... $ECHO_C" >&6; } 6702 if test -f "$TDOM_BIN_DIR/tdomConfig.sh" ; then 6703 { echo "$as_me:$LINENO: result: loading" >&5 6704echo "${ECHO_T}loading" >&6; } 6705 . $TDOM_BIN_DIR/tdomConfig.sh 6706 else 6707 { echo "$as_me:$LINENO: result: file not found" >&5 6708echo "${ECHO_T}file not found" >&6; } 6709 fi 6710 if test -f "${TDOM_BIN_DIR}/Makefile" ; then 6711 TDOM_STUB_LIB_SPEC=${TDOM_BUILD_STUB_LIB_SPEC} 6712 fi 6713 6714 6715 6716 6717 6718#----------------------------------------------------------------------- 6719# __CHANGE__ 6720# Specify the C source files to compile in TEA_ADD_SOURCES, 6721# public headers that need to be installed in TEA_ADD_HEADERS, 6722# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6723# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6724# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6725# and PKG_TCL_SOURCES. 6726#----------------------------------------------------------------------- 6727 6728 6729 vars="tnc.c" 6730 for i in $vars; do 6731 case $i in 6732 \$*) 6733 # allow $-var names 6734 PKG_SOURCES="$PKG_SOURCES $i" 6735 PKG_OBJECTS="$PKG_OBJECTS $i" 6736 ;; 6737 *) 6738 # check for existence - allows for generic/win/unix VPATH 6739 # To add more dirs here (like 'src'), you have to update VPATH 6740 # in Makefile.in as well 6741 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6742 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6743 -a ! -f "${srcdir}/macosx/$i" \ 6744 ; then 6745 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6746echo "$as_me: error: could not find source file '$i'" >&2;} 6747 { (exit 1); exit 1; }; } 6748 fi 6749 PKG_SOURCES="$PKG_SOURCES $i" 6750 # this assumes it is in a VPATH dir 6751 i=`basename $i` 6752 # handle user calling this before or after TEA_SETUP_COMPILER 6753 if test x"${OBJEXT}" != x ; then 6754 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6755 else 6756 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6757 fi 6758 PKG_OBJECTS="$PKG_OBJECTS $j" 6759 ;; 6760 esac 6761 done 6762 6763 6764 6765 6766 vars="" 6767 for i in $vars; do 6768 # check for existence, be strict because it is installed 6769 if test ! -f "${srcdir}/$i" ; then 6770 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6771echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6772 { (exit 1); exit 1; }; } 6773 fi 6774 PKG_HEADERS="$PKG_HEADERS $i" 6775 done 6776 6777 6778 6779 vars="-I${srcdir}/../../generic -I${srcdir}/../../expat" 6780 for i in $vars; do 6781 PKG_INCLUDES="$PKG_INCLUDES $i" 6782 done 6783 6784 6785 6786 PKG_CFLAGS="$PKG_CFLAGS -DUSE_TDOM_STUBS=1" 6787 6788 6789 6790 vars="" 6791 for i in $vars; do 6792 # check for existence - allows for generic/win/unix VPATH 6793 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6794 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6795 -a ! -f "${srcdir}/macosx/$i" \ 6796 ; then 6797 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6798echo "$as_me: error: could not find stub source file '$i'" >&2;} 6799 { (exit 1); exit 1; }; } 6800 fi 6801 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6802 # this assumes it is in a VPATH dir 6803 i=`basename $i` 6804 # handle user calling this before or after TEA_SETUP_COMPILER 6805 if test x"${OBJEXT}" != x ; then 6806 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6807 else 6808 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6809 fi 6810 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6811 done 6812 6813 6814 6815 6816 vars="" 6817 for i in $vars; do 6818 # check for existence, be strict because it is installed 6819 if test ! -f "${srcdir}/$i" ; then 6820 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6821echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6822 { (exit 1); exit 1; }; } 6823 fi 6824 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6825 done 6826 6827 6828 6829# See https://sourceforge.net/tracker/index.php?func=detail&aid=1636345&group_id=10894&atid=110894 6830if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then 6831 6832 vars="\"`${CYGPATH} ${TDOM_STUB_LIB_PATH}`\"" 6833 for i in $vars; do 6834 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6835 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6836 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6837 fi 6838 PKG_LIBS="$PKG_LIBS $i" 6839 done 6840 6841 6842else 6843 6844 vars="${TDOM_STUB_LIB_SPEC}" 6845 for i in $vars; do 6846 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6847 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6848 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6849 fi 6850 PKG_LIBS="$PKG_LIBS $i" 6851 done 6852 6853 6854fi 6855 6856#-------------------------------------------------------------------- 6857# __CHANGE__ 6858# A few miscellaneous platform-specific items: 6859# 6860# Define a special symbol for Windows (BUILD_sample in this case) so 6861# that we create the export library with the dll. 6862# 6863# Windows creates a few extra files that need to be cleaned up. 6864# You can add more files to clean if your extension creates any extra 6865# files. 6866# 6867# TEA_ADD_* any platform specific compiler/build info here. 6868#-------------------------------------------------------------------- 6869 6870if test "${TEA_PLATFORM}" = "windows" ; then 6871 6872cat >>confdefs.h <<\_ACEOF 6873#define BUILD_tnc 1 6874_ACEOF 6875 6876 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6877 #TEA_ADD_SOURCES([win/winFile.c]) 6878 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) 6879else 6880 CLEANFILES="pkgIndex.tcl" 6881 #TEA_ADD_SOURCES([unix/unixFile.c]) 6882 #TEA_ADD_LIBS([-lsuperfly]) 6883fi 6884 6885 6886#-------------------------------------------------------------------- 6887# __CHANGE__ 6888# Choose which headers you need. Extension authors should try very 6889# hard to only rely on the Tcl public header files. Internal headers 6890# contain private data structures and are subject to change without 6891# notice. 6892# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6893#-------------------------------------------------------------------- 6894 6895 6896 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6897echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6898 6899 6900# Check whether --with-tclinclude was given. 6901if test "${with_tclinclude+set}" = set; then 6902 withval=$with_tclinclude; with_tclinclude=${withval} 6903fi 6904 6905 6906 if test "${ac_cv_c_tclh+set}" = set; then 6907 echo $ECHO_N "(cached) $ECHO_C" >&6 6908else 6909 6910 # Use the value from --with-tclinclude, if it was given 6911 6912 if test x"${with_tclinclude}" != x ; then 6913 if test -f "${with_tclinclude}/tcl.h" ; then 6914 ac_cv_c_tclh=${with_tclinclude} 6915 else 6916 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6917echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6918 { (exit 1); exit 1; }; } 6919 fi 6920 else 6921 list="" 6922 if test "`uname -s`" = "Darwin"; then 6923 # If Tcl was built as a framework, attempt to use 6924 # the framework's Headers directory 6925 case ${TCL_DEFS} in 6926 *TCL_FRAMEWORK*) 6927 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6928 ;; 6929 esac 6930 fi 6931 6932 # Look in the source dir only if Tcl is not installed, 6933 # and in that situation, look there before installed locations. 6934 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6935 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6936 fi 6937 6938 # Check order: pkg --prefix location, Tcl's --prefix location, 6939 # relative to directory of tclConfig.sh. 6940 6941 eval "temp_includedir=${includedir}" 6942 list="$list \ 6943 `ls -d ${temp_includedir} 2>/dev/null` \ 6944 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6945 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6946 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6947 list="$list /usr/local/include /usr/include" 6948 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6949 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6950 list="$list `ls -d ${d} 2>/dev/null`" 6951 fi 6952 fi 6953 for i in $list ; do 6954 if test -f "$i/tcl.h" ; then 6955 ac_cv_c_tclh=$i 6956 break 6957 fi 6958 done 6959 fi 6960 6961fi 6962 6963 6964 # Print a message based on how we determined the include path 6965 6966 if test x"${ac_cv_c_tclh}" = x ; then 6967 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6968echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6969 { (exit 1); exit 1; }; } 6970 else 6971 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6972echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6973 fi 6974 6975 # Convert to a native path and substitute into the output files. 6976 6977 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6978 6979 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6980 6981 6982 6983#TEA_PRIVATE_TCL_HEADERS 6984 6985#TEA_PUBLIC_TK_HEADERS 6986#TEA_PRIVATE_TK_HEADERS 6987#TEA_PATH_X 6988 6989#-------------------------------------------------------------------- 6990# Check whether --enable-threads or --disable-threads was given. 6991# This auto-enables if Tcl was compiled threaded. 6992#-------------------------------------------------------------------- 6993 6994 6995 # Check whether --enable-threads was given. 6996if test "${enable_threads+set}" = set; then 6997 enableval=$enable_threads; tcl_ok=$enableval 6998else 6999 tcl_ok=yes 7000fi 7001 7002 7003 if test "${enable_threads+set}" = set; then 7004 enableval="$enable_threads" 7005 tcl_ok=$enableval 7006 else 7007 tcl_ok=yes 7008 fi 7009 7010 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7011 TCL_THREADS=1 7012 7013 if test "${TEA_PLATFORM}" != "windows" ; then 7014 # We are always OK on Windows, so check what this platform wants: 7015 7016 # USE_THREAD_ALLOC tells us to try the special thread-based 7017 # allocator that significantly reduces lock contention 7018 7019cat >>confdefs.h <<\_ACEOF 7020#define USE_THREAD_ALLOC 1 7021_ACEOF 7022 7023 7024cat >>confdefs.h <<\_ACEOF 7025#define _REENTRANT 1 7026_ACEOF 7027 7028 if test "`uname -s`" = "SunOS" ; then 7029 7030cat >>confdefs.h <<\_ACEOF 7031#define _POSIX_PTHREAD_SEMANTICS 1 7032_ACEOF 7033 7034 fi 7035 7036cat >>confdefs.h <<\_ACEOF 7037#define _THREAD_SAFE 1 7038_ACEOF 7039 7040 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7041echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7042if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7043 echo $ECHO_N "(cached) $ECHO_C" >&6 7044else 7045 ac_check_lib_save_LIBS=$LIBS 7046LIBS="-lpthread $LIBS" 7047cat >conftest.$ac_ext <<_ACEOF 7048/* confdefs.h. */ 7049_ACEOF 7050cat confdefs.h >>conftest.$ac_ext 7051cat >>conftest.$ac_ext <<_ACEOF 7052/* end confdefs.h. */ 7053 7054/* Override any GCC internal prototype to avoid an error. 7055 Use char because int might match the return type of a GCC 7056 builtin and then its argument prototype would still apply. */ 7057#ifdef __cplusplus 7058extern "C" 7059#endif 7060char pthread_mutex_init (); 7061int 7062main () 7063{ 7064return pthread_mutex_init (); 7065 ; 7066 return 0; 7067} 7068_ACEOF 7069rm -f conftest.$ac_objext conftest$ac_exeext 7070if { (ac_try="$ac_link" 7071case "(($ac_try" in 7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7073 *) ac_try_echo=$ac_try;; 7074esac 7075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7076 (eval "$ac_link") 2>conftest.er1 7077 ac_status=$? 7078 grep -v '^ *+' conftest.er1 >conftest.err 7079 rm -f conftest.er1 7080 cat conftest.err >&5 7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7082 (exit $ac_status); } && { 7083 test -z "$ac_c_werror_flag" || 7084 test ! -s conftest.err 7085 } && test -s conftest$ac_exeext && 7086 $as_test_x conftest$ac_exeext; then 7087 ac_cv_lib_pthread_pthread_mutex_init=yes 7088else 7089 echo "$as_me: failed program was:" >&5 7090sed 's/^/| /' conftest.$ac_ext >&5 7091 7092 ac_cv_lib_pthread_pthread_mutex_init=no 7093fi 7094 7095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7096 conftest$ac_exeext conftest.$ac_ext 7097LIBS=$ac_check_lib_save_LIBS 7098fi 7099{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7100echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7101if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7102 tcl_ok=yes 7103else 7104 tcl_ok=no 7105fi 7106 7107 if test "$tcl_ok" = "no"; then 7108 # Check a little harder for __pthread_mutex_init in the same 7109 # library, as some systems hide it there until pthread.h is 7110 # defined. We could alternatively do an AC_TRY_COMPILE with 7111 # pthread.h, but that will work with libpthread really doesn't 7112 # exist, like AIX 4.2. [Bug: 4359] 7113 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7114echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7115if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7116 echo $ECHO_N "(cached) $ECHO_C" >&6 7117else 7118 ac_check_lib_save_LIBS=$LIBS 7119LIBS="-lpthread $LIBS" 7120cat >conftest.$ac_ext <<_ACEOF 7121/* confdefs.h. */ 7122_ACEOF 7123cat confdefs.h >>conftest.$ac_ext 7124cat >>conftest.$ac_ext <<_ACEOF 7125/* end confdefs.h. */ 7126 7127/* Override any GCC internal prototype to avoid an error. 7128 Use char because int might match the return type of a GCC 7129 builtin and then its argument prototype would still apply. */ 7130#ifdef __cplusplus 7131extern "C" 7132#endif 7133char __pthread_mutex_init (); 7134int 7135main () 7136{ 7137return __pthread_mutex_init (); 7138 ; 7139 return 0; 7140} 7141_ACEOF 7142rm -f conftest.$ac_objext conftest$ac_exeext 7143if { (ac_try="$ac_link" 7144case "(($ac_try" in 7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7146 *) ac_try_echo=$ac_try;; 7147esac 7148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7149 (eval "$ac_link") 2>conftest.er1 7150 ac_status=$? 7151 grep -v '^ *+' conftest.er1 >conftest.err 7152 rm -f conftest.er1 7153 cat conftest.err >&5 7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7155 (exit $ac_status); } && { 7156 test -z "$ac_c_werror_flag" || 7157 test ! -s conftest.err 7158 } && test -s conftest$ac_exeext && 7159 $as_test_x conftest$ac_exeext; then 7160 ac_cv_lib_pthread___pthread_mutex_init=yes 7161else 7162 echo "$as_me: failed program was:" >&5 7163sed 's/^/| /' conftest.$ac_ext >&5 7164 7165 ac_cv_lib_pthread___pthread_mutex_init=no 7166fi 7167 7168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7169 conftest$ac_exeext conftest.$ac_ext 7170LIBS=$ac_check_lib_save_LIBS 7171fi 7172{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7173echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7174if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7175 tcl_ok=yes 7176else 7177 tcl_ok=no 7178fi 7179 7180 fi 7181 7182 if test "$tcl_ok" = "yes"; then 7183 # The space is needed 7184 THREADS_LIBS=" -lpthread" 7185 else 7186 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7187echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7188if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7189 echo $ECHO_N "(cached) $ECHO_C" >&6 7190else 7191 ac_check_lib_save_LIBS=$LIBS 7192LIBS="-lpthreads $LIBS" 7193cat >conftest.$ac_ext <<_ACEOF 7194/* confdefs.h. */ 7195_ACEOF 7196cat confdefs.h >>conftest.$ac_ext 7197cat >>conftest.$ac_ext <<_ACEOF 7198/* end confdefs.h. */ 7199 7200/* Override any GCC internal prototype to avoid an error. 7201 Use char because int might match the return type of a GCC 7202 builtin and then its argument prototype would still apply. */ 7203#ifdef __cplusplus 7204extern "C" 7205#endif 7206char pthread_mutex_init (); 7207int 7208main () 7209{ 7210return pthread_mutex_init (); 7211 ; 7212 return 0; 7213} 7214_ACEOF 7215rm -f conftest.$ac_objext conftest$ac_exeext 7216if { (ac_try="$ac_link" 7217case "(($ac_try" in 7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7219 *) ac_try_echo=$ac_try;; 7220esac 7221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7222 (eval "$ac_link") 2>conftest.er1 7223 ac_status=$? 7224 grep -v '^ *+' conftest.er1 >conftest.err 7225 rm -f conftest.er1 7226 cat conftest.err >&5 7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7228 (exit $ac_status); } && { 7229 test -z "$ac_c_werror_flag" || 7230 test ! -s conftest.err 7231 } && test -s conftest$ac_exeext && 7232 $as_test_x conftest$ac_exeext; then 7233 ac_cv_lib_pthreads_pthread_mutex_init=yes 7234else 7235 echo "$as_me: failed program was:" >&5 7236sed 's/^/| /' conftest.$ac_ext >&5 7237 7238 ac_cv_lib_pthreads_pthread_mutex_init=no 7239fi 7240 7241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7242 conftest$ac_exeext conftest.$ac_ext 7243LIBS=$ac_check_lib_save_LIBS 7244fi 7245{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7246echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7247if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7248 tcl_ok=yes 7249else 7250 tcl_ok=no 7251fi 7252 7253 if test "$tcl_ok" = "yes"; then 7254 # The space is needed 7255 THREADS_LIBS=" -lpthreads" 7256 else 7257 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7258echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7259if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7260 echo $ECHO_N "(cached) $ECHO_C" >&6 7261else 7262 ac_check_lib_save_LIBS=$LIBS 7263LIBS="-lc $LIBS" 7264cat >conftest.$ac_ext <<_ACEOF 7265/* confdefs.h. */ 7266_ACEOF 7267cat confdefs.h >>conftest.$ac_ext 7268cat >>conftest.$ac_ext <<_ACEOF 7269/* end confdefs.h. */ 7270 7271/* Override any GCC internal prototype to avoid an error. 7272 Use char because int might match the return type of a GCC 7273 builtin and then its argument prototype would still apply. */ 7274#ifdef __cplusplus 7275extern "C" 7276#endif 7277char pthread_mutex_init (); 7278int 7279main () 7280{ 7281return pthread_mutex_init (); 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286rm -f conftest.$ac_objext conftest$ac_exeext 7287if { (ac_try="$ac_link" 7288case "(($ac_try" in 7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7290 *) ac_try_echo=$ac_try;; 7291esac 7292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7293 (eval "$ac_link") 2>conftest.er1 7294 ac_status=$? 7295 grep -v '^ *+' conftest.er1 >conftest.err 7296 rm -f conftest.er1 7297 cat conftest.err >&5 7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7299 (exit $ac_status); } && { 7300 test -z "$ac_c_werror_flag" || 7301 test ! -s conftest.err 7302 } && test -s conftest$ac_exeext && 7303 $as_test_x conftest$ac_exeext; then 7304 ac_cv_lib_c_pthread_mutex_init=yes 7305else 7306 echo "$as_me: failed program was:" >&5 7307sed 's/^/| /' conftest.$ac_ext >&5 7308 7309 ac_cv_lib_c_pthread_mutex_init=no 7310fi 7311 7312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7313 conftest$ac_exeext conftest.$ac_ext 7314LIBS=$ac_check_lib_save_LIBS 7315fi 7316{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7317echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7318if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7319 tcl_ok=yes 7320else 7321 tcl_ok=no 7322fi 7323 7324 if test "$tcl_ok" = "no"; then 7325 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7326echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7327if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7328 echo $ECHO_N "(cached) $ECHO_C" >&6 7329else 7330 ac_check_lib_save_LIBS=$LIBS 7331LIBS="-lc_r $LIBS" 7332cat >conftest.$ac_ext <<_ACEOF 7333/* confdefs.h. */ 7334_ACEOF 7335cat confdefs.h >>conftest.$ac_ext 7336cat >>conftest.$ac_ext <<_ACEOF 7337/* end confdefs.h. */ 7338 7339/* Override any GCC internal prototype to avoid an error. 7340 Use char because int might match the return type of a GCC 7341 builtin and then its argument prototype would still apply. */ 7342#ifdef __cplusplus 7343extern "C" 7344#endif 7345char pthread_mutex_init (); 7346int 7347main () 7348{ 7349return pthread_mutex_init (); 7350 ; 7351 return 0; 7352} 7353_ACEOF 7354rm -f conftest.$ac_objext conftest$ac_exeext 7355if { (ac_try="$ac_link" 7356case "(($ac_try" in 7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7358 *) ac_try_echo=$ac_try;; 7359esac 7360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7361 (eval "$ac_link") 2>conftest.er1 7362 ac_status=$? 7363 grep -v '^ *+' conftest.er1 >conftest.err 7364 rm -f conftest.er1 7365 cat conftest.err >&5 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 (exit $ac_status); } && { 7368 test -z "$ac_c_werror_flag" || 7369 test ! -s conftest.err 7370 } && test -s conftest$ac_exeext && 7371 $as_test_x conftest$ac_exeext; then 7372 ac_cv_lib_c_r_pthread_mutex_init=yes 7373else 7374 echo "$as_me: failed program was:" >&5 7375sed 's/^/| /' conftest.$ac_ext >&5 7376 7377 ac_cv_lib_c_r_pthread_mutex_init=no 7378fi 7379 7380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7381 conftest$ac_exeext conftest.$ac_ext 7382LIBS=$ac_check_lib_save_LIBS 7383fi 7384{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7385echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7386if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7387 tcl_ok=yes 7388else 7389 tcl_ok=no 7390fi 7391 7392 if test "$tcl_ok" = "yes"; then 7393 # The space is needed 7394 THREADS_LIBS=" -pthread" 7395 else 7396 TCL_THREADS=0 7397 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7398echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7399 fi 7400 fi 7401 fi 7402 fi 7403 fi 7404 else 7405 TCL_THREADS=0 7406 fi 7407 # Do checking message here to not mess up interleaved configure output 7408 { echo "$as_me:$LINENO: checking for building with threads" >&5 7409echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7410 if test "${TCL_THREADS}" = 1; then 7411 7412cat >>confdefs.h <<\_ACEOF 7413#define TCL_THREADS 1 7414_ACEOF 7415 7416 { echo "$as_me:$LINENO: result: yes (default)" >&5 7417echo "${ECHO_T}yes (default)" >&6; } 7418 else 7419 { echo "$as_me:$LINENO: result: no" >&5 7420echo "${ECHO_T}no" >&6; } 7421 fi 7422 # TCL_THREADS sanity checking. See if our request for building with 7423 # threads is the same as the way Tcl was built. If not, warn the user. 7424 case ${TCL_DEFS} in 7425 *THREADS=1*) 7426 if test "${TCL_THREADS}" = "0"; then 7427 { echo "$as_me:$LINENO: WARNING: 7428 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7429 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7430echo "$as_me: WARNING: 7431 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7432 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7433 fi 7434 ;; 7435 *) 7436 if test "${TCL_THREADS}" = "1"; then 7437 { echo "$as_me:$LINENO: WARNING: 7438 --enable-threads requested, but building against a Tcl that is NOT 7439 thread-enabled. This is an OK configuration that will also run in 7440 a thread-enabled core." >&5 7441echo "$as_me: WARNING: 7442 --enable-threads requested, but building against a Tcl that is NOT 7443 thread-enabled. This is an OK configuration that will also run in 7444 a thread-enabled core." >&2;} 7445 fi 7446 ;; 7447 esac 7448 7449 7450 7451#-------------------------------------------------------------------- 7452# The statement below defines a collection of symbols related to 7453# building as a shared library instead of a static library. 7454#-------------------------------------------------------------------- 7455 7456 7457 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7458echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7459 # Check whether --enable-shared was given. 7460if test "${enable_shared+set}" = set; then 7461 enableval=$enable_shared; tcl_ok=$enableval 7462else 7463 tcl_ok=yes 7464fi 7465 7466 7467 if test "${enable_shared+set}" = set; then 7468 enableval="$enable_shared" 7469 tcl_ok=$enableval 7470 else 7471 tcl_ok=yes 7472 fi 7473 7474 if test "$tcl_ok" = "yes" ; then 7475 { echo "$as_me:$LINENO: result: shared" >&5 7476echo "${ECHO_T}shared" >&6; } 7477 SHARED_BUILD=1 7478 else 7479 { echo "$as_me:$LINENO: result: static" >&5 7480echo "${ECHO_T}static" >&6; } 7481 SHARED_BUILD=0 7482 7483cat >>confdefs.h <<\_ACEOF 7484#define STATIC_BUILD 1 7485_ACEOF 7486 7487 fi 7488 7489 7490 7491#-------------------------------------------------------------------- 7492# This macro figures out what flags to use with the compiler/linker 7493# when building shared/static debug/optimized objects. This information 7494# can be taken from the tclConfig.sh file, but this figures it all out. 7495#-------------------------------------------------------------------- 7496 7497 7498 7499 7500 # Step 0.a: Enable 64 bit support? 7501 7502 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7503echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7504 # Check whether --enable-64bit was given. 7505if test "${enable_64bit+set}" = set; then 7506 enableval=$enable_64bit; do64bit=$enableval 7507else 7508 do64bit=no 7509fi 7510 7511 { echo "$as_me:$LINENO: result: $do64bit" >&5 7512echo "${ECHO_T}$do64bit" >&6; } 7513 7514 # Step 0.b: Enable Solaris 64 bit VIS support? 7515 7516 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7517echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7518 # Check whether --enable-64bit-vis was given. 7519if test "${enable_64bit_vis+set}" = set; then 7520 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7521else 7522 do64bitVIS=no 7523fi 7524 7525 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7526echo "${ECHO_T}$do64bitVIS" >&6; } 7527 # Force 64bit on with VIS 7528 if test "$do64bitVIS" = "yes"; then 7529 do64bit=yes 7530fi 7531 7532 7533 # Step 0.c: Check if visibility support is available. Do this here so 7534 # that platform specific alternatives can be used below if this fails. 7535 7536 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7537echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7538if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7539 echo $ECHO_N "(cached) $ECHO_C" >&6 7540else 7541 7542 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7543 cat >conftest.$ac_ext <<_ACEOF 7544/* confdefs.h. */ 7545_ACEOF 7546cat confdefs.h >>conftest.$ac_ext 7547cat >>conftest.$ac_ext <<_ACEOF 7548/* end confdefs.h. */ 7549 7550 extern __attribute__((__visibility__("hidden"))) void f(void); 7551 void f(void) {} 7552int 7553main () 7554{ 7555f(); 7556 ; 7557 return 0; 7558} 7559_ACEOF 7560rm -f conftest.$ac_objext conftest$ac_exeext 7561if { (ac_try="$ac_link" 7562case "(($ac_try" in 7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7564 *) ac_try_echo=$ac_try;; 7565esac 7566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7567 (eval "$ac_link") 2>conftest.er1 7568 ac_status=$? 7569 grep -v '^ *+' conftest.er1 >conftest.err 7570 rm -f conftest.er1 7571 cat conftest.err >&5 7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7573 (exit $ac_status); } && { 7574 test -z "$ac_c_werror_flag" || 7575 test ! -s conftest.err 7576 } && test -s conftest$ac_exeext && 7577 $as_test_x conftest$ac_exeext; then 7578 tcl_cv_cc_visibility_hidden=yes 7579else 7580 echo "$as_me: failed program was:" >&5 7581sed 's/^/| /' conftest.$ac_ext >&5 7582 7583 tcl_cv_cc_visibility_hidden=no 7584fi 7585 7586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7587 conftest$ac_exeext conftest.$ac_ext 7588 CFLAGS=$hold_cflags 7589fi 7590{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7591echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7592 if test $tcl_cv_cc_visibility_hidden = yes; then 7593 7594 7595cat >>confdefs.h <<\_ACEOF 7596#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7597_ACEOF 7598 7599 7600fi 7601 7602 7603 # Step 0.d: Disable -rpath support? 7604 7605 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7606echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7607 # Check whether --enable-rpath was given. 7608if test "${enable_rpath+set}" = set; then 7609 enableval=$enable_rpath; doRpath=$enableval 7610else 7611 doRpath=yes 7612fi 7613 7614 { echo "$as_me:$LINENO: result: $doRpath" >&5 7615echo "${ECHO_T}$doRpath" >&6; } 7616 7617 # TEA specific: Cross-compiling options for Windows/CE builds? 7618 7619 if test "${TEA_PLATFORM}" = windows; then 7620 7621 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7622echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7623 # Check whether --enable-wince was given. 7624if test "${enable_wince+set}" = set; then 7625 enableval=$enable_wince; doWince=$enableval 7626else 7627 doWince=no 7628fi 7629 7630 { echo "$as_me:$LINENO: result: $doWince" >&5 7631echo "${ECHO_T}$doWince" >&6; } 7632 7633fi 7634 7635 7636 # Set the variable "system" to hold the name and version number 7637 # for the system. 7638 7639 7640 { echo "$as_me:$LINENO: checking system version" >&5 7641echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7642if test "${tcl_cv_sys_version+set}" = set; then 7643 echo $ECHO_N "(cached) $ECHO_C" >&6 7644else 7645 7646 # TEA specific: 7647 if test "${TEA_PLATFORM}" = "windows" ; then 7648 tcl_cv_sys_version=windows 7649 else 7650 tcl_cv_sys_version=`uname -s`-`uname -r` 7651 if test "$?" -ne 0 ; then 7652 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7653echo "$as_me: WARNING: can't find uname command" >&2;} 7654 tcl_cv_sys_version=unknown 7655 else 7656 if test "`uname -s`" = "AIX" ; then 7657 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7658 fi 7659 fi 7660 fi 7661 7662fi 7663{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7664echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7665 system=$tcl_cv_sys_version 7666 7667 7668 # Require ranlib early so we can override it in special cases below. 7669 7670 7671 7672 # Set configuration options based on system name and version. 7673 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7674 # "windows" case and removed some core-only vars. 7675 7676 do64bit_ok=no 7677 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7678 SHLIB_LD_LIBS='${LIBS}' 7679 # When ld needs options to work in 64-bit mode, put them in 7680 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7681 # is disabled by the user. [Bug 1016796] 7682 LDFLAGS_ARCH="" 7683 UNSHARED_LIB_SUFFIX="" 7684 # TEA specific: use PACKAGE_VERSION instead of VERSION 7685 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7686 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7687 TCL_LIB_VERSIONS_OK=ok 7688 CFLAGS_DEBUG=-g 7689 CFLAGS_OPTIMIZE=-O 7690 if test "$GCC" = yes; then 7691 7692 # TEA specific: 7693 CFLAGS_OPTIMIZE=-O2 7694 CFLAGS_WARNING="-Wall" 7695 7696else 7697 CFLAGS_WARNING="" 7698fi 7699 7700 # Extract the first word of "ar", so it can be a program name with args. 7701set dummy ar; ac_word=$2 7702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7704if test "${ac_cv_prog_AR+set}" = set; then 7705 echo $ECHO_N "(cached) $ECHO_C" >&6 7706else 7707 if test -n "$AR"; then 7708 ac_cv_prog_AR="$AR" # Let the user override the test. 7709else 7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7711for as_dir in $PATH 7712do 7713 IFS=$as_save_IFS 7714 test -z "$as_dir" && as_dir=. 7715 for ac_exec_ext in '' $ac_executable_extensions; do 7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7717 ac_cv_prog_AR="ar" 7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7719 break 2 7720 fi 7721done 7722done 7723IFS=$as_save_IFS 7724 7725fi 7726fi 7727AR=$ac_cv_prog_AR 7728if test -n "$AR"; then 7729 { echo "$as_me:$LINENO: result: $AR" >&5 7730echo "${ECHO_T}$AR" >&6; } 7731else 7732 { echo "$as_me:$LINENO: result: no" >&5 7733echo "${ECHO_T}no" >&6; } 7734fi 7735 7736 7737 STLIB_LD='${AR} cr' 7738 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7739 if test "x$SHLIB_VERSION" = x; then 7740 SHLIB_VERSION="1.0" 7741fi 7742 7743 case $system in 7744 # TEA specific: 7745 windows) 7746 # This is a 2-stage check to make sure we have the 64-bit SDK 7747 # We have to know where the SDK is installed. 7748 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7749 # MACHINE is IX86 for LINK, but this is used by the manifest, 7750 # which requires x86|amd64|ia64. 7751 MACHINE="X86" 7752 if test "$do64bit" != "no" ; then 7753 if test "x${MSSDK}x" = "xx" ; then 7754 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7755 fi 7756 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7757 PATH64="" 7758 case "$do64bit" in 7759 amd64|x64|yes) 7760 MACHINE="AMD64" ; # default to AMD64 64-bit build 7761 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7762 ;; 7763 ia64) 7764 MACHINE="IA64" 7765 PATH64="${MSSDK}/Bin/Win64" 7766 ;; 7767 esac 7768 if test ! -d "${PATH64}" ; then 7769 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7770echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7771 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7772echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7773 do64bit="no" 7774 else 7775 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7776echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7777 do64bit_ok="yes" 7778 fi 7779 fi 7780 7781 if test "$doWince" != "no" ; then 7782 if test "$do64bit" != "no" ; then 7783 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7784echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7785 { (exit 1); exit 1; }; } 7786 fi 7787 if test "$GCC" = "yes" ; then 7788 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7789echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7790 { (exit 1); exit 1; }; } 7791 fi 7792 7793 # First, look for one uninstalled. 7794 # the alternative search directory is invoked by --with-celib 7795 7796 if test x"${no_celib}" = x ; then 7797 # we reset no_celib in case something fails here 7798 no_celib=true 7799 7800# Check whether --with-celib was given. 7801if test "${with_celib+set}" = set; then 7802 withval=$with_celib; with_celibconfig=${withval} 7803fi 7804 7805 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7806echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7807 if test "${ac_cv_c_celibconfig+set}" = set; then 7808 echo $ECHO_N "(cached) $ECHO_C" >&6 7809else 7810 7811 # First check to see if --with-celibconfig was specified. 7812 if test x"${with_celibconfig}" != x ; then 7813 if test -d "${with_celibconfig}/inc" ; then 7814 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7815 else 7816 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7817echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7818 { (exit 1); exit 1; }; } 7819 fi 7820 fi 7821 7822 # then check for a celib library 7823 if test x"${ac_cv_c_celibconfig}" = x ; then 7824 for i in \ 7825 ../celib-palm-3.0 \ 7826 ../celib \ 7827 ../../celib-palm-3.0 \ 7828 ../../celib \ 7829 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7830 ${srcdir}/../celib-palm-3.0 \ 7831 ${srcdir}/../celib \ 7832 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7833 ; do 7834 if test -d "$i/inc" ; then 7835 ac_cv_c_celibconfig=`(cd $i; pwd)` 7836 break 7837 fi 7838 done 7839 fi 7840 7841fi 7842 7843 if test x"${ac_cv_c_celibconfig}" = x ; then 7844 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7845echo "$as_me: error: Cannot find celib support library directory" >&2;} 7846 { (exit 1); exit 1; }; } 7847 else 7848 no_celib= 7849 CELIB_DIR=${ac_cv_c_celibconfig} 7850 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7851 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7852echo "${ECHO_T}found $CELIB_DIR" >&6; } 7853 fi 7854 fi 7855 7856 # Set defaults for common evc4/PPC2003 setup 7857 # Currently Tcl requires 300+, possibly 420+ for sockets 7858 CEVERSION=420; # could be 211 300 301 400 420 ... 7859 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7860 ARCH=ARM; # could be ARM MIPS X86EM ... 7861 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7862 if test "$doWince" != "yes"; then 7863 # If !yes then the user specified something 7864 # Reset ARCH to allow user to skip specifying it 7865 ARCH= 7866 eval `echo $doWince | awk -F, '{ \ 7867 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7868 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7869 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7870 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7871 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7872 }'` 7873 if test "x${ARCH}" = "x" ; then 7874 ARCH=$TARGETCPU; 7875 fi 7876 fi 7877 OSVERSION=WCE$CEVERSION; 7878 if test "x${WCEROOT}" = "x" ; then 7879 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7880 if test ! -d "${WCEROOT}" ; then 7881 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7882 fi 7883 fi 7884 if test "x${SDKROOT}" = "x" ; then 7885 SDKROOT="C:/Program Files/Windows CE Tools" 7886 if test ! -d "${SDKROOT}" ; then 7887 SDKROOT="C:/Windows CE Tools" 7888 fi 7889 fi 7890 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7891 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7892 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7893 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7894 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7895echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7896 { (exit 1); exit 1; }; } 7897 doWince="no" 7898 else 7899 # We could PATH_NOSPACE these, but that's not important, 7900 # as long as we quote them when used. 7901 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7902 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7903 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7904 fi 7905 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7906 fi 7907 fi 7908 7909 if test "$GCC" != "yes" ; then 7910 if test "${SHARED_BUILD}" = "0" ; then 7911 runtime=-MT 7912 else 7913 runtime=-MD 7914 fi 7915 7916 if test "$do64bit" != "no" ; then 7917 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7918 CC="\"${PATH64}/cl.exe\"" 7919 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7920 RC="\"${MSSDK}/bin/rc.exe\"" 7921 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7922 LINKBIN="\"${PATH64}/link.exe\"" 7923 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7924 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7925 # Avoid 'unresolved external symbol __security_cookie' 7926 # errors, c.f. http://support.microsoft.com/?id=894573 7927 7928 vars="bufferoverflowU.lib" 7929 for i in $vars; do 7930 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7931 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7932 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7933 fi 7934 PKG_LIBS="$PKG_LIBS $i" 7935 done 7936 7937 7938 elif test "$doWince" != "no" ; then 7939 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7940 if test "${TARGETCPU}" = "X86"; then 7941 CC="\"${CEBINROOT}/cl.exe\"" 7942 else 7943 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7944 fi 7945 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7946 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7947 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7948 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7949 if test "${SHARED_BUILD}" = "1" ; then 7950 # Static CE builds require static celib as well 7951 defs="${defs} _DLL" 7952 fi 7953 for i in $defs ; do 7954 7955cat >>confdefs.h <<_ACEOF 7956#define $i 1 7957_ACEOF 7958 7959 done 7960 7961cat >>confdefs.h <<_ACEOF 7962#define _WIN32_WCE $CEVERSION 7963_ACEOF 7964 7965 7966cat >>confdefs.h <<_ACEOF 7967#define UNDER_CE $CEVERSION 7968_ACEOF 7969 7970 CFLAGS_DEBUG="-nologo -Zi -Od" 7971 CFLAGS_OPTIMIZE="-nologo -Ox" 7972 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7973 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7974 LINKBIN="\"${CEBINROOT}/link.exe\"" 7975 7976 else 7977 RC="rc" 7978 lflags="-nologo" 7979 LINKBIN="link" 7980 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7981 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7982 fi 7983 fi 7984 7985 if test "$GCC" = "yes"; then 7986 # mingw gcc mode 7987 RC="windres" 7988 CFLAGS_DEBUG="-g" 7989 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7990 SHLIB_LD="$CC -shared" 7991 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7992 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7993 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7994 else 7995 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7996 # link -lib only works when -lib is the first arg 7997 STLIB_LD="${LINKBIN} -lib ${lflags}" 7998 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7999 PATHTYPE=-w 8000 # For information on what debugtype is most useful, see: 8001 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8002 # and also 8003 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8004 # This essentially turns it all on. 8005 LDFLAGS_DEBUG="-debug -debugtype:cv" 8006 LDFLAGS_OPTIMIZE="-release" 8007 if test "$doWince" != "no" ; then 8008 LDFLAGS_CONSOLE="-link ${lflags}" 8009 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8010 else 8011 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8012 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8013 fi 8014 fi 8015 8016 SHLIB_SUFFIX=".dll" 8017 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8018 8019 TCL_LIB_VERSIONS_OK=nodots 8020 ;; 8021 AIX-*) 8022 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8023 8024 # AIX requires the _r compiler when gcc isn't being used 8025 case "${CC}" in 8026 *_r|*_r\ *) 8027 # ok ... 8028 ;; 8029 *) 8030 # Make sure only first arg gets _r 8031 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8032 ;; 8033 esac 8034 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8035echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8036 8037fi 8038 8039 LIBS="$LIBS -lc" 8040 SHLIB_CFLAGS="" 8041 SHLIB_SUFFIX=".so" 8042 8043 LD_LIBRARY_PATH_VAR="LIBPATH" 8044 8045 # Check to enable 64-bit flags for compiler/linker 8046 if test "$do64bit" = yes; then 8047 8048 if test "$GCC" = yes; then 8049 8050 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8051echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8052 8053else 8054 8055 do64bit_ok=yes 8056 CFLAGS="$CFLAGS -q64" 8057 LDFLAGS_ARCH="-q64" 8058 RANLIB="${RANLIB} -X64" 8059 AR="${AR} -X64" 8060 SHLIB_LD_FLAGS="-b64" 8061 8062fi 8063 8064 8065fi 8066 8067 8068 if test "`uname -m`" = ia64; then 8069 8070 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8071 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8072 if test "$GCC" = yes; then 8073 8074 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8075 8076else 8077 8078 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8079 8080fi 8081 8082 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8083 8084else 8085 8086 if test "$GCC" = yes; then 8087 8088 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8089 8090else 8091 8092 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8093 LDFLAGS="$LDFLAGS -brtl" 8094 8095fi 8096 8097 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8098 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8099 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8100 8101fi 8102 8103 ;; 8104 BeOS*) 8105 SHLIB_CFLAGS="-fPIC" 8106 SHLIB_LD='${CC} -nostart' 8107 SHLIB_SUFFIX=".so" 8108 8109 #----------------------------------------------------------- 8110 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8111 # -lsocket, even if the network functions are in -lnet which 8112 # is always linked to, for compatibility. 8113 #----------------------------------------------------------- 8114 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8115echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8116if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8117 echo $ECHO_N "(cached) $ECHO_C" >&6 8118else 8119 ac_check_lib_save_LIBS=$LIBS 8120LIBS="-lbind $LIBS" 8121cat >conftest.$ac_ext <<_ACEOF 8122/* confdefs.h. */ 8123_ACEOF 8124cat confdefs.h >>conftest.$ac_ext 8125cat >>conftest.$ac_ext <<_ACEOF 8126/* end confdefs.h. */ 8127 8128/* Override any GCC internal prototype to avoid an error. 8129 Use char because int might match the return type of a GCC 8130 builtin and then its argument prototype would still apply. */ 8131#ifdef __cplusplus 8132extern "C" 8133#endif 8134char inet_ntoa (); 8135int 8136main () 8137{ 8138return inet_ntoa (); 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143rm -f conftest.$ac_objext conftest$ac_exeext 8144if { (ac_try="$ac_link" 8145case "(($ac_try" in 8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8147 *) ac_try_echo=$ac_try;; 8148esac 8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8150 (eval "$ac_link") 2>conftest.er1 8151 ac_status=$? 8152 grep -v '^ *+' conftest.er1 >conftest.err 8153 rm -f conftest.er1 8154 cat conftest.err >&5 8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8156 (exit $ac_status); } && { 8157 test -z "$ac_c_werror_flag" || 8158 test ! -s conftest.err 8159 } && test -s conftest$ac_exeext && 8160 $as_test_x conftest$ac_exeext; then 8161 ac_cv_lib_bind_inet_ntoa=yes 8162else 8163 echo "$as_me: failed program was:" >&5 8164sed 's/^/| /' conftest.$ac_ext >&5 8165 8166 ac_cv_lib_bind_inet_ntoa=no 8167fi 8168 8169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8170 conftest$ac_exeext conftest.$ac_ext 8171LIBS=$ac_check_lib_save_LIBS 8172fi 8173{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8174echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8175if test $ac_cv_lib_bind_inet_ntoa = yes; then 8176 LIBS="$LIBS -lbind -lsocket" 8177fi 8178 8179 ;; 8180 BSD/OS-4.*) 8181 SHLIB_CFLAGS="-export-dynamic -fPIC" 8182 SHLIB_LD='${CC} -shared' 8183 SHLIB_SUFFIX=".so" 8184 LDFLAGS="$LDFLAGS -export-dynamic" 8185 CC_SEARCH_FLAGS="" 8186 LD_SEARCH_FLAGS="" 8187 ;; 8188 CYGWIN_*) 8189 SHLIB_CFLAGS="" 8190 SHLIB_LD='${CC} -shared' 8191 SHLIB_SUFFIX=".dll" 8192 EXE_SUFFIX=".exe" 8193 CC_SEARCH_FLAGS="" 8194 LD_SEARCH_FLAGS="" 8195 ;; 8196 Haiku*) 8197 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8198 SHLIB_CFLAGS="-fPIC" 8199 SHLIB_SUFFIX=".so" 8200 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8201 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8202echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8203if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8204 echo $ECHO_N "(cached) $ECHO_C" >&6 8205else 8206 ac_check_lib_save_LIBS=$LIBS 8207LIBS="-lnetwork $LIBS" 8208cat >conftest.$ac_ext <<_ACEOF 8209/* confdefs.h. */ 8210_ACEOF 8211cat confdefs.h >>conftest.$ac_ext 8212cat >>conftest.$ac_ext <<_ACEOF 8213/* end confdefs.h. */ 8214 8215/* Override any GCC internal prototype to avoid an error. 8216 Use char because int might match the return type of a GCC 8217 builtin and then its argument prototype would still apply. */ 8218#ifdef __cplusplus 8219extern "C" 8220#endif 8221char inet_ntoa (); 8222int 8223main () 8224{ 8225return inet_ntoa (); 8226 ; 8227 return 0; 8228} 8229_ACEOF 8230rm -f conftest.$ac_objext conftest$ac_exeext 8231if { (ac_try="$ac_link" 8232case "(($ac_try" in 8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8234 *) ac_try_echo=$ac_try;; 8235esac 8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8237 (eval "$ac_link") 2>conftest.er1 8238 ac_status=$? 8239 grep -v '^ *+' conftest.er1 >conftest.err 8240 rm -f conftest.er1 8241 cat conftest.err >&5 8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8243 (exit $ac_status); } && { 8244 test -z "$ac_c_werror_flag" || 8245 test ! -s conftest.err 8246 } && test -s conftest$ac_exeext && 8247 $as_test_x conftest$ac_exeext; then 8248 ac_cv_lib_network_inet_ntoa=yes 8249else 8250 echo "$as_me: failed program was:" >&5 8251sed 's/^/| /' conftest.$ac_ext >&5 8252 8253 ac_cv_lib_network_inet_ntoa=no 8254fi 8255 8256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8257 conftest$ac_exeext conftest.$ac_ext 8258LIBS=$ac_check_lib_save_LIBS 8259fi 8260{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8261echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8262if test $ac_cv_lib_network_inet_ntoa = yes; then 8263 LIBS="$LIBS -lnetwork" 8264fi 8265 8266 ;; 8267 HP-UX-*.11.*) 8268 # Use updated header definitions where possible 8269 8270cat >>confdefs.h <<\_ACEOF 8271#define _XOPEN_SOURCE_EXTENDED 1 8272_ACEOF 8273 8274 # TEA specific: Needed by Tcl, but not most extensions 8275 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8276 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8277 8278 if test "`uname -m`" = ia64; then 8279 8280 SHLIB_SUFFIX=".so" 8281 # Use newer C++ library for C++ extensions 8282 #if test "$GCC" != "yes" ; then 8283 # CPPFLAGS="-AA" 8284 #fi 8285 8286else 8287 8288 SHLIB_SUFFIX=".sl" 8289 8290fi 8291 8292 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8293echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8294if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8295 echo $ECHO_N "(cached) $ECHO_C" >&6 8296else 8297 ac_check_lib_save_LIBS=$LIBS 8298LIBS="-ldld $LIBS" 8299cat >conftest.$ac_ext <<_ACEOF 8300/* confdefs.h. */ 8301_ACEOF 8302cat confdefs.h >>conftest.$ac_ext 8303cat >>conftest.$ac_ext <<_ACEOF 8304/* end confdefs.h. */ 8305 8306/* Override any GCC internal prototype to avoid an error. 8307 Use char because int might match the return type of a GCC 8308 builtin and then its argument prototype would still apply. */ 8309#ifdef __cplusplus 8310extern "C" 8311#endif 8312char shl_load (); 8313int 8314main () 8315{ 8316return shl_load (); 8317 ; 8318 return 0; 8319} 8320_ACEOF 8321rm -f conftest.$ac_objext conftest$ac_exeext 8322if { (ac_try="$ac_link" 8323case "(($ac_try" in 8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8325 *) ac_try_echo=$ac_try;; 8326esac 8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8328 (eval "$ac_link") 2>conftest.er1 8329 ac_status=$? 8330 grep -v '^ *+' conftest.er1 >conftest.err 8331 rm -f conftest.er1 8332 cat conftest.err >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8334 (exit $ac_status); } && { 8335 test -z "$ac_c_werror_flag" || 8336 test ! -s conftest.err 8337 } && test -s conftest$ac_exeext && 8338 $as_test_x conftest$ac_exeext; then 8339 ac_cv_lib_dld_shl_load=yes 8340else 8341 echo "$as_me: failed program was:" >&5 8342sed 's/^/| /' conftest.$ac_ext >&5 8343 8344 ac_cv_lib_dld_shl_load=no 8345fi 8346 8347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8348 conftest$ac_exeext conftest.$ac_ext 8349LIBS=$ac_check_lib_save_LIBS 8350fi 8351{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8352echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8353if test $ac_cv_lib_dld_shl_load = yes; then 8354 tcl_ok=yes 8355else 8356 tcl_ok=no 8357fi 8358 8359 if test "$tcl_ok" = yes; then 8360 8361 LDFLAGS="$LDFLAGS -E" 8362 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8363 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8364 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8365 8366fi 8367 8368 if test "$GCC" = yes; then 8369 8370 SHLIB_LD='${CC} -shared' 8371 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8372 8373else 8374 8375 CFLAGS="$CFLAGS -z" 8376 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8377 #CFLAGS="$CFLAGS +DAportable" 8378 SHLIB_CFLAGS="+z" 8379 SHLIB_LD="ld -b" 8380 8381fi 8382 8383 8384 # Check to enable 64-bit flags for compiler/linker 8385 if test "$do64bit" = "yes"; then 8386 8387 if test "$GCC" = yes; then 8388 8389 case `${CC} -dumpmachine` in 8390 hppa64*) 8391 # 64-bit gcc in use. Fix flags for GNU ld. 8392 do64bit_ok=yes 8393 SHLIB_LD='${CC} -shared' 8394 if test $doRpath = yes; then 8395 8396 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8397fi 8398 8399 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8400 ;; 8401 *) 8402 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8403echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8404 ;; 8405 esac 8406 8407else 8408 8409 do64bit_ok=yes 8410 CFLAGS="$CFLAGS +DD64" 8411 LDFLAGS_ARCH="+DD64" 8412 8413fi 8414 8415 8416fi 8417 ;; 8418 IRIX-6.*) 8419 SHLIB_CFLAGS="" 8420 SHLIB_LD="ld -n32 -shared -rdata_shared" 8421 SHLIB_SUFFIX=".so" 8422 if test $doRpath = yes; then 8423 8424 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8425 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8426fi 8427 8428 if test "$GCC" = yes; then 8429 8430 CFLAGS="$CFLAGS -mabi=n32" 8431 LDFLAGS="$LDFLAGS -mabi=n32" 8432 8433else 8434 8435 case $system in 8436 IRIX-6.3) 8437 # Use to build 6.2 compatible binaries on 6.3. 8438 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8439 ;; 8440 *) 8441 CFLAGS="$CFLAGS -n32" 8442 ;; 8443 esac 8444 LDFLAGS="$LDFLAGS -n32" 8445 8446fi 8447 8448 ;; 8449 IRIX64-6.*) 8450 SHLIB_CFLAGS="" 8451 SHLIB_LD="ld -n32 -shared -rdata_shared" 8452 SHLIB_SUFFIX=".so" 8453 if test $doRpath = yes; then 8454 8455 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8456 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8457fi 8458 8459 8460 # Check to enable 64-bit flags for compiler/linker 8461 8462 if test "$do64bit" = yes; then 8463 8464 if test "$GCC" = yes; then 8465 8466 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8467echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8468 8469else 8470 8471 do64bit_ok=yes 8472 SHLIB_LD="ld -64 -shared -rdata_shared" 8473 CFLAGS="$CFLAGS -64" 8474 LDFLAGS_ARCH="-64" 8475 8476fi 8477 8478 8479fi 8480 8481 ;; 8482 Linux*) 8483 SHLIB_CFLAGS="-fPIC" 8484 SHLIB_SUFFIX=".so" 8485 8486 # TEA specific: 8487 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8488 8489 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8490 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8491 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8492 if test $doRpath = yes; then 8493 8494 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8495fi 8496 8497 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8498 if test "`uname -m`" = "alpha"; then 8499 CFLAGS="$CFLAGS -mieee" 8500fi 8501 8502 if test $do64bit = yes; then 8503 8504 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8505echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8506if test "${tcl_cv_cc_m64+set}" = set; then 8507 echo $ECHO_N "(cached) $ECHO_C" >&6 8508else 8509 8510 hold_cflags=$CFLAGS 8511 CFLAGS="$CFLAGS -m64" 8512 cat >conftest.$ac_ext <<_ACEOF 8513/* confdefs.h. */ 8514_ACEOF 8515cat confdefs.h >>conftest.$ac_ext 8516cat >>conftest.$ac_ext <<_ACEOF 8517/* end confdefs.h. */ 8518 8519int 8520main () 8521{ 8522 8523 ; 8524 return 0; 8525} 8526_ACEOF 8527rm -f conftest.$ac_objext conftest$ac_exeext 8528if { (ac_try="$ac_link" 8529case "(($ac_try" in 8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8531 *) ac_try_echo=$ac_try;; 8532esac 8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8534 (eval "$ac_link") 2>conftest.er1 8535 ac_status=$? 8536 grep -v '^ *+' conftest.er1 >conftest.err 8537 rm -f conftest.er1 8538 cat conftest.err >&5 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); } && { 8541 test -z "$ac_c_werror_flag" || 8542 test ! -s conftest.err 8543 } && test -s conftest$ac_exeext && 8544 $as_test_x conftest$ac_exeext; then 8545 tcl_cv_cc_m64=yes 8546else 8547 echo "$as_me: failed program was:" >&5 8548sed 's/^/| /' conftest.$ac_ext >&5 8549 8550 tcl_cv_cc_m64=no 8551fi 8552 8553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8554 conftest$ac_exeext conftest.$ac_ext 8555 CFLAGS=$hold_cflags 8556fi 8557{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8558echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8559 if test $tcl_cv_cc_m64 = yes; then 8560 8561 CFLAGS="$CFLAGS -m64" 8562 do64bit_ok=yes 8563 8564fi 8565 8566 8567fi 8568 8569 8570 # The combo of gcc + glibc has a bug related to inlining of 8571 # functions like strtod(). The -fno-builtin flag should address 8572 # this problem but it does not work. The -fno-inline flag is kind 8573 # of overkill but it works. Disable inlining only when one of the 8574 # files in compat/*.c is being linked in. 8575 8576 if test x"${USE_COMPAT}" != x; then 8577 CFLAGS="$CFLAGS -fno-inline" 8578fi 8579 8580 8581 ;; 8582 GNU*) 8583 SHLIB_CFLAGS="-fPIC" 8584 SHLIB_SUFFIX=".so" 8585 8586 SHLIB_LD='${CC} -shared' 8587 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8588 CC_SEARCH_FLAGS="" 8589 LD_SEARCH_FLAGS="" 8590 if test "`uname -m`" = "alpha"; then 8591 CFLAGS="$CFLAGS -mieee" 8592fi 8593 8594 ;; 8595 Lynx*) 8596 SHLIB_CFLAGS="-fPIC" 8597 SHLIB_SUFFIX=".so" 8598 CFLAGS_OPTIMIZE=-02 8599 SHLIB_LD='${CC} -shared' 8600 LD_FLAGS="-Wl,--export-dynamic" 8601 if test $doRpath = yes; then 8602 8603 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8604 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8605fi 8606 8607 ;; 8608 OpenBSD-*) 8609 SHLIB_CFLAGS="-fPIC" 8610 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8611 SHLIB_SUFFIX=".so" 8612 if test $doRpath = yes; then 8613 8614 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8615fi 8616 8617 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8618 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8619 { echo "$as_me:$LINENO: checking for ELF" >&5 8620echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8621if test "${tcl_cv_ld_elf+set}" = set; then 8622 echo $ECHO_N "(cached) $ECHO_C" >&6 8623else 8624 8625 cat >conftest.$ac_ext <<_ACEOF 8626/* confdefs.h. */ 8627_ACEOF 8628cat confdefs.h >>conftest.$ac_ext 8629cat >>conftest.$ac_ext <<_ACEOF 8630/* end confdefs.h. */ 8631 8632#ifdef __ELF__ 8633 yes 8634#endif 8635 8636_ACEOF 8637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8638 $EGREP "yes" >/dev/null 2>&1; then 8639 tcl_cv_ld_elf=yes 8640else 8641 tcl_cv_ld_elf=no 8642fi 8643rm -f -r conftest* 8644 8645fi 8646{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8647echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8648 if test $tcl_cv_ld_elf = yes; then 8649 8650 LDFLAGS=-Wl,-export-dynamic 8651 8652else 8653 LDFLAGS="" 8654fi 8655 8656 if test "${TCL_THREADS}" = "1"; then 8657 8658 # OpenBSD builds and links with -pthread, never -lpthread. 8659 LIBS=`echo $LIBS | sed s/-lpthread//` 8660 CFLAGS="$CFLAGS -pthread" 8661 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8662 8663fi 8664 8665 # OpenBSD doesn't do version numbers with dots. 8666 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8667 TCL_LIB_VERSIONS_OK=nodots 8668 ;; 8669 NetBSD-*|FreeBSD-[3-4].*) 8670 # FreeBSD 3.* and greater have ELF. 8671 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8672 SHLIB_CFLAGS="-fPIC" 8673 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8674 SHLIB_SUFFIX=".so" 8675 LDFLAGS="$LDFLAGS -export-dynamic" 8676 if test $doRpath = yes; then 8677 8678 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8679fi 8680 8681 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8682 if test "${TCL_THREADS}" = "1"; then 8683 8684 # The -pthread needs to go in the CFLAGS, not LIBS 8685 LIBS=`echo $LIBS | sed s/-pthread//` 8686 CFLAGS="$CFLAGS -pthread" 8687 LDFLAGS="$LDFLAGS -pthread" 8688 8689fi 8690 8691 case $system in 8692 FreeBSD-3.*) 8693 # FreeBSD-3 doesn't handle version numbers with dots. 8694 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8695 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8696 TCL_LIB_VERSIONS_OK=nodots 8697 ;; 8698 esac 8699 ;; 8700 FreeBSD-*) 8701 # This configuration from FreeBSD Ports. 8702 SHLIB_CFLAGS="-fPIC" 8703 SHLIB_LD="${CC} -shared" 8704 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8705 SHLIB_SUFFIX=".so" 8706 LDFLAGS="" 8707 if test $doRpath = yes; then 8708 8709 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8710 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8711fi 8712 8713 if test "${TCL_THREADS}" = "1"; then 8714 8715 # The -pthread needs to go in the LDFLAGS, not LIBS 8716 LIBS=`echo $LIBS | sed s/-pthread//` 8717 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8718 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8719fi 8720 8721 # Version numbers are dot-stripped by system policy. 8722 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8723 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8724 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8725 TCL_LIB_VERSIONS_OK=nodots 8726 ;; 8727 Darwin-*) 8728 CFLAGS_OPTIMIZE="-Os" 8729 SHLIB_CFLAGS="-fno-common" 8730 # To avoid discrepancies between what headers configure sees during 8731 # preprocessing tests and compiling tests, move any -isysroot and 8732 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8733 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8734 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8735 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8736 CFLAGS="`echo " ${CFLAGS}" | \ 8737 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8738 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8739 if test $do64bit = yes; then 8740 8741 case `arch` in 8742 ppc) 8743 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8744echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8745if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8746 echo $ECHO_N "(cached) $ECHO_C" >&6 8747else 8748 8749 hold_cflags=$CFLAGS 8750 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8751 cat >conftest.$ac_ext <<_ACEOF 8752/* confdefs.h. */ 8753_ACEOF 8754cat confdefs.h >>conftest.$ac_ext 8755cat >>conftest.$ac_ext <<_ACEOF 8756/* end confdefs.h. */ 8757 8758int 8759main () 8760{ 8761 8762 ; 8763 return 0; 8764} 8765_ACEOF 8766rm -f conftest.$ac_objext conftest$ac_exeext 8767if { (ac_try="$ac_link" 8768case "(($ac_try" in 8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8770 *) ac_try_echo=$ac_try;; 8771esac 8772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8773 (eval "$ac_link") 2>conftest.er1 8774 ac_status=$? 8775 grep -v '^ *+' conftest.er1 >conftest.err 8776 rm -f conftest.er1 8777 cat conftest.err >&5 8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8779 (exit $ac_status); } && { 8780 test -z "$ac_c_werror_flag" || 8781 test ! -s conftest.err 8782 } && test -s conftest$ac_exeext && 8783 $as_test_x conftest$ac_exeext; then 8784 tcl_cv_cc_arch_ppc64=yes 8785else 8786 echo "$as_me: failed program was:" >&5 8787sed 's/^/| /' conftest.$ac_ext >&5 8788 8789 tcl_cv_cc_arch_ppc64=no 8790fi 8791 8792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8793 conftest$ac_exeext conftest.$ac_ext 8794 CFLAGS=$hold_cflags 8795fi 8796{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8797echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8798 if test $tcl_cv_cc_arch_ppc64 = yes; then 8799 8800 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8801 do64bit_ok=yes 8802 8803fi 8804;; 8805 i386) 8806 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8807echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8808if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8809 echo $ECHO_N "(cached) $ECHO_C" >&6 8810else 8811 8812 hold_cflags=$CFLAGS 8813 CFLAGS="$CFLAGS -arch x86_64" 8814 cat >conftest.$ac_ext <<_ACEOF 8815/* confdefs.h. */ 8816_ACEOF 8817cat confdefs.h >>conftest.$ac_ext 8818cat >>conftest.$ac_ext <<_ACEOF 8819/* end confdefs.h. */ 8820 8821int 8822main () 8823{ 8824 8825 ; 8826 return 0; 8827} 8828_ACEOF 8829rm -f conftest.$ac_objext conftest$ac_exeext 8830if { (ac_try="$ac_link" 8831case "(($ac_try" in 8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8833 *) ac_try_echo=$ac_try;; 8834esac 8835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8836 (eval "$ac_link") 2>conftest.er1 8837 ac_status=$? 8838 grep -v '^ *+' conftest.er1 >conftest.err 8839 rm -f conftest.er1 8840 cat conftest.err >&5 8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8842 (exit $ac_status); } && { 8843 test -z "$ac_c_werror_flag" || 8844 test ! -s conftest.err 8845 } && test -s conftest$ac_exeext && 8846 $as_test_x conftest$ac_exeext; then 8847 tcl_cv_cc_arch_x86_64=yes 8848else 8849 echo "$as_me: failed program was:" >&5 8850sed 's/^/| /' conftest.$ac_ext >&5 8851 8852 tcl_cv_cc_arch_x86_64=no 8853fi 8854 8855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8856 conftest$ac_exeext conftest.$ac_ext 8857 CFLAGS=$hold_cflags 8858fi 8859{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8860echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8861 if test $tcl_cv_cc_arch_x86_64 = yes; then 8862 8863 CFLAGS="$CFLAGS -arch x86_64" 8864 do64bit_ok=yes 8865 8866fi 8867;; 8868 *) 8869 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8870echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8871 esac 8872 8873else 8874 8875 # Check for combined 32-bit and 64-bit fat build 8876 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8877 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8878 8879 fat_32_64=yes 8880fi 8881 8882 8883fi 8884 8885 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8886 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8887 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8888echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8889if test "${tcl_cv_ld_single_module+set}" = set; then 8890 echo $ECHO_N "(cached) $ECHO_C" >&6 8891else 8892 8893 hold_ldflags=$LDFLAGS 8894 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8895 cat >conftest.$ac_ext <<_ACEOF 8896/* confdefs.h. */ 8897_ACEOF 8898cat confdefs.h >>conftest.$ac_ext 8899cat >>conftest.$ac_ext <<_ACEOF 8900/* end confdefs.h. */ 8901 8902int 8903main () 8904{ 8905int i; 8906 ; 8907 return 0; 8908} 8909_ACEOF 8910rm -f conftest.$ac_objext conftest$ac_exeext 8911if { (ac_try="$ac_link" 8912case "(($ac_try" in 8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8914 *) ac_try_echo=$ac_try;; 8915esac 8916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8917 (eval "$ac_link") 2>conftest.er1 8918 ac_status=$? 8919 grep -v '^ *+' conftest.er1 >conftest.err 8920 rm -f conftest.er1 8921 cat conftest.err >&5 8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8923 (exit $ac_status); } && { 8924 test -z "$ac_c_werror_flag" || 8925 test ! -s conftest.err 8926 } && test -s conftest$ac_exeext && 8927 $as_test_x conftest$ac_exeext; then 8928 tcl_cv_ld_single_module=yes 8929else 8930 echo "$as_me: failed program was:" >&5 8931sed 's/^/| /' conftest.$ac_ext >&5 8932 8933 tcl_cv_ld_single_module=no 8934fi 8935 8936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8937 conftest$ac_exeext conftest.$ac_ext 8938 LDFLAGS=$hold_ldflags 8939fi 8940{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8941echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8942 if test $tcl_cv_ld_single_module = yes; then 8943 8944 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8945 8946fi 8947 8948 # TEA specific: link shlib with current and compatiblity version flags 8949 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8950 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8951 SHLIB_SUFFIX=".dylib" 8952 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8953 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8954 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8955 8956 LDFLAGS="$LDFLAGS -prebind" 8957fi 8958 8959 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8960 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8961echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8962if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8963 echo $ECHO_N "(cached) $ECHO_C" >&6 8964else 8965 8966 hold_ldflags=$LDFLAGS 8967 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8968 cat >conftest.$ac_ext <<_ACEOF 8969/* confdefs.h. */ 8970_ACEOF 8971cat confdefs.h >>conftest.$ac_ext 8972cat >>conftest.$ac_ext <<_ACEOF 8973/* end confdefs.h. */ 8974 8975int 8976main () 8977{ 8978int i; 8979 ; 8980 return 0; 8981} 8982_ACEOF 8983rm -f conftest.$ac_objext conftest$ac_exeext 8984if { (ac_try="$ac_link" 8985case "(($ac_try" in 8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8987 *) ac_try_echo=$ac_try;; 8988esac 8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8990 (eval "$ac_link") 2>conftest.er1 8991 ac_status=$? 8992 grep -v '^ *+' conftest.er1 >conftest.err 8993 rm -f conftest.er1 8994 cat conftest.err >&5 8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 (exit $ac_status); } && { 8997 test -z "$ac_c_werror_flag" || 8998 test ! -s conftest.err 8999 } && test -s conftest$ac_exeext && 9000 $as_test_x conftest$ac_exeext; then 9001 tcl_cv_ld_search_paths_first=yes 9002else 9003 echo "$as_me: failed program was:" >&5 9004sed 's/^/| /' conftest.$ac_ext >&5 9005 9006 tcl_cv_ld_search_paths_first=no 9007fi 9008 9009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9010 conftest$ac_exeext conftest.$ac_ext 9011 LDFLAGS=$hold_ldflags 9012fi 9013{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9014echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9015 if test $tcl_cv_ld_search_paths_first = yes; then 9016 9017 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9018 9019fi 9020 9021 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9022 9023 9024cat >>confdefs.h <<\_ACEOF 9025#define MODULE_SCOPE __private_extern__ 9026_ACEOF 9027 9028 tcl_cv_cc_visibility_hidden=yes 9029 9030fi 9031 9032 CC_SEARCH_FLAGS="" 9033 LD_SEARCH_FLAGS="" 9034 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9035 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9036 # extensions, verify that 64-bit build is possible. 9037 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9038 9039 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9040 9041 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9042echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9043if test "${tcl_cv_lib_x11_64+set}" = set; then 9044 echo $ECHO_N "(cached) $ECHO_C" >&6 9045else 9046 9047 for v in CFLAGS CPPFLAGS LDFLAGS; do 9048 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9049 done 9050 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9051 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9052 cat >conftest.$ac_ext <<_ACEOF 9053/* confdefs.h. */ 9054_ACEOF 9055cat confdefs.h >>conftest.$ac_ext 9056cat >>conftest.$ac_ext <<_ACEOF 9057/* end confdefs.h. */ 9058#include <X11/Xlib.h> 9059int 9060main () 9061{ 9062XrmInitialize(); 9063 ; 9064 return 0; 9065} 9066_ACEOF 9067rm -f conftest.$ac_objext conftest$ac_exeext 9068if { (ac_try="$ac_link" 9069case "(($ac_try" in 9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9071 *) ac_try_echo=$ac_try;; 9072esac 9073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9074 (eval "$ac_link") 2>conftest.er1 9075 ac_status=$? 9076 grep -v '^ *+' conftest.er1 >conftest.err 9077 rm -f conftest.er1 9078 cat conftest.err >&5 9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9080 (exit $ac_status); } && { 9081 test -z "$ac_c_werror_flag" || 9082 test ! -s conftest.err 9083 } && test -s conftest$ac_exeext && 9084 $as_test_x conftest$ac_exeext; then 9085 tcl_cv_lib_x11_64=yes 9086else 9087 echo "$as_me: failed program was:" >&5 9088sed 's/^/| /' conftest.$ac_ext >&5 9089 9090 tcl_cv_lib_x11_64=no 9091fi 9092 9093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9094 conftest$ac_exeext conftest.$ac_ext 9095 for v in CFLAGS CPPFLAGS LDFLAGS; do 9096 eval $v'="$hold_'$v'"' 9097 done 9098fi 9099{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9100echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9101 9102fi 9103 9104 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9105 9106 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9107echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9108if test "${tcl_cv_lib_tk_64+set}" = set; then 9109 echo $ECHO_N "(cached) $ECHO_C" >&6 9110else 9111 9112 for v in CFLAGS CPPFLAGS LDFLAGS; do 9113 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9114 done 9115 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9116 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9117 cat >conftest.$ac_ext <<_ACEOF 9118/* confdefs.h. */ 9119_ACEOF 9120cat confdefs.h >>conftest.$ac_ext 9121cat >>conftest.$ac_ext <<_ACEOF 9122/* end confdefs.h. */ 9123#include <tk.h> 9124int 9125main () 9126{ 9127Tk_InitStubs(NULL, "", 0); 9128 ; 9129 return 0; 9130} 9131_ACEOF 9132rm -f conftest.$ac_objext conftest$ac_exeext 9133if { (ac_try="$ac_link" 9134case "(($ac_try" in 9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9136 *) ac_try_echo=$ac_try;; 9137esac 9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9139 (eval "$ac_link") 2>conftest.er1 9140 ac_status=$? 9141 grep -v '^ *+' conftest.er1 >conftest.err 9142 rm -f conftest.er1 9143 cat conftest.err >&5 9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9145 (exit $ac_status); } && { 9146 test -z "$ac_c_werror_flag" || 9147 test ! -s conftest.err 9148 } && test -s conftest$ac_exeext && 9149 $as_test_x conftest$ac_exeext; then 9150 tcl_cv_lib_tk_64=yes 9151else 9152 echo "$as_me: failed program was:" >&5 9153sed 's/^/| /' conftest.$ac_ext >&5 9154 9155 tcl_cv_lib_tk_64=no 9156fi 9157 9158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9159 conftest$ac_exeext conftest.$ac_ext 9160 for v in CFLAGS CPPFLAGS LDFLAGS; do 9161 eval $v'="$hold_'$v'"' 9162 done 9163fi 9164{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9165echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9166 9167fi 9168 9169 # remove 64-bit arch flags from CFLAGS et al. if configuration 9170 # does not support 64-bit. 9171 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9172 9173 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9174echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9175 for v in CFLAGS CPPFLAGS LDFLAGS; do 9176 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9177 done 9178fi 9179 9180 9181fi 9182 9183 ;; 9184 OS/390-*) 9185 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9186 9187cat >>confdefs.h <<\_ACEOF 9188#define _OE_SOCKETS 1 9189_ACEOF 9190 9191 ;; 9192 OSF1-V*) 9193 # Digital OSF/1 9194 SHLIB_CFLAGS="" 9195 if test "$SHARED_BUILD" = 1; then 9196 9197 SHLIB_LD='ld -shared -expect_unresolved "*"' 9198 9199else 9200 9201 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9202 9203fi 9204 9205 SHLIB_SUFFIX=".so" 9206 if test $doRpath = yes; then 9207 9208 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9209 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9210fi 9211 9212 if test "$GCC" = yes; then 9213 CFLAGS="$CFLAGS -mieee" 9214else 9215 9216 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9217fi 9218 9219 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9220 if test "${TCL_THREADS}" = 1; then 9221 9222 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9223 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9224 LIBS=`echo $LIBS | sed s/-lpthreads//` 9225 if test "$GCC" = yes; then 9226 9227 LIBS="$LIBS -lpthread -lmach -lexc" 9228 9229else 9230 9231 CFLAGS="$CFLAGS -pthread" 9232 LDFLAGS="$LDFLAGS -pthread" 9233 9234fi 9235 9236 9237fi 9238 9239 ;; 9240 QNX-6*) 9241 # QNX RTP 9242 # This may work for all QNX, but it was only reported for v6. 9243 SHLIB_CFLAGS="-fPIC" 9244 SHLIB_LD="ld -Bshareable -x" 9245 SHLIB_LD_LIBS="" 9246 SHLIB_SUFFIX=".so" 9247 CC_SEARCH_FLAGS="" 9248 LD_SEARCH_FLAGS="" 9249 ;; 9250 SCO_SV-3.2*) 9251 if test "$GCC" = yes; then 9252 9253 SHLIB_CFLAGS="-fPIC -melf" 9254 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9255 9256else 9257 9258 SHLIB_CFLAGS="-Kpic -belf" 9259 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9260 9261fi 9262 9263 SHLIB_LD="ld -G" 9264 SHLIB_LD_LIBS="" 9265 SHLIB_SUFFIX=".so" 9266 CC_SEARCH_FLAGS="" 9267 LD_SEARCH_FLAGS="" 9268 ;; 9269 SunOS-5.[0-6]) 9270 # Careful to not let 5.10+ fall into this case 9271 9272 # Note: If _REENTRANT isn't defined, then Solaris 9273 # won't define thread-safe library routines. 9274 9275 9276cat >>confdefs.h <<\_ACEOF 9277#define _REENTRANT 1 9278_ACEOF 9279 9280 9281cat >>confdefs.h <<\_ACEOF 9282#define _POSIX_PTHREAD_SEMANTICS 1 9283_ACEOF 9284 9285 9286 SHLIB_CFLAGS="-KPIC" 9287 SHLIB_SUFFIX=".so" 9288 if test "$GCC" = yes; then 9289 9290 SHLIB_LD='${CC} -shared' 9291 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9292 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9293 9294else 9295 9296 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9297 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9298 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9299 9300fi 9301 9302 ;; 9303 SunOS-5*) 9304 # Note: If _REENTRANT isn't defined, then Solaris 9305 # won't define thread-safe library routines. 9306 9307 9308cat >>confdefs.h <<\_ACEOF 9309#define _REENTRANT 1 9310_ACEOF 9311 9312 9313cat >>confdefs.h <<\_ACEOF 9314#define _POSIX_PTHREAD_SEMANTICS 1 9315_ACEOF 9316 9317 9318 SHLIB_CFLAGS="-KPIC" 9319 9320 # Check to enable 64-bit flags for compiler/linker 9321 if test "$do64bit" = yes; then 9322 9323 arch=`isainfo` 9324 if test "$arch" = "sparcv9 sparc"; then 9325 9326 if test "$GCC" = yes; then 9327 9328 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9329 9330 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9331echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9332 9333else 9334 9335 do64bit_ok=yes 9336 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9337 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9338 SHLIB_CFLAGS="-fPIC" 9339 9340fi 9341 9342 9343else 9344 9345 do64bit_ok=yes 9346 if test "$do64bitVIS" = yes; then 9347 9348 CFLAGS="$CFLAGS -xarch=v9a" 9349 LDFLAGS_ARCH="-xarch=v9a" 9350 9351else 9352 9353 CFLAGS="$CFLAGS -xarch=v9" 9354 LDFLAGS_ARCH="-xarch=v9" 9355 9356fi 9357 9358 # Solaris 64 uses this as well 9359 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9360 9361fi 9362 9363 9364else 9365 if test "$arch" = "amd64 i386"; then 9366 9367 if test "$GCC" = yes; then 9368 9369 case $system in 9370 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9371 do64bit_ok=yes 9372 CFLAGS="$CFLAGS -m64" 9373 LDFLAGS="$LDFLAGS -m64";; 9374 *) 9375 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9376echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9377 esac 9378 9379else 9380 9381 do64bit_ok=yes 9382 case $system in 9383 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9384 CFLAGS="$CFLAGS -m64" 9385 LDFLAGS="$LDFLAGS -m64";; 9386 *) 9387 CFLAGS="$CFLAGS -xarch=amd64" 9388 LDFLAGS="$LDFLAGS -xarch=amd64";; 9389 esac 9390 9391fi 9392 9393 9394else 9395 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9396echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9397fi 9398 9399fi 9400 9401 9402fi 9403 9404 9405 SHLIB_SUFFIX=".so" 9406 if test "$GCC" = yes; then 9407 9408 SHLIB_LD='${CC} -shared' 9409 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9410 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9411 if test "$do64bit_ok" = yes; then 9412 9413 if test "$arch" = "sparcv9 sparc"; then 9414 9415 # We need to specify -static-libgcc or we need to 9416 # add the path to the sparv9 libgcc. 9417 # JH: static-libgcc is necessary for core Tcl, but may 9418 # not be necessary for extensions. 9419 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9420 # for finding sparcv9 libgcc, get the regular libgcc 9421 # path, remove so name and append 'sparcv9' 9422 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9423 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9424 9425else 9426 if test "$arch" = "amd64 i386"; then 9427 9428 # JH: static-libgcc is necessary for core Tcl, but may 9429 # not be necessary for extensions. 9430 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9431 9432fi 9433 9434fi 9435 9436 9437fi 9438 9439 9440else 9441 9442 case $system in 9443 SunOS-5.[1-9][0-9]*) 9444 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9445 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9446 *) 9447 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9448 esac 9449 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9450 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9451 9452fi 9453 9454 ;; 9455 esac 9456 9457 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9458 9459 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9460echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9461 9462fi 9463 9464 9465 9466 9467 # Add in the arch flags late to ensure it wasn't removed. 9468 # Not necessary in TEA, but this is aligned with core 9469 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9470 9471 # If we're running gcc, then change the C flags for compiling shared 9472 # libraries to the right flags for gcc, instead of those for the 9473 # standard manufacturer compiler. 9474 9475 if test "$GCC" = yes; then 9476 9477 case $system in 9478 AIX-*) ;; 9479 BSD/OS*) ;; 9480 CYGWIN_*) ;; 9481 IRIX*) ;; 9482 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9483 Darwin-*) ;; 9484 SCO_SV-3.2*) ;; 9485 windows) ;; 9486 *) SHLIB_CFLAGS="-fPIC" ;; 9487 esac 9488fi 9489 9490 9491 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9492 9493 9494cat >>confdefs.h <<\_ACEOF 9495#define MODULE_SCOPE extern 9496_ACEOF 9497 9498 9499cat >>confdefs.h <<\_ACEOF 9500#define NO_VIZ 9501_ACEOF 9502 9503 9504fi 9505 9506 9507 if test "$SHARED_LIB_SUFFIX" = ""; then 9508 9509 # TEA specific: use PACKAGE_VERSION instead of VERSION 9510 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9511fi 9512 9513 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9514 9515 # TEA specific: use PACKAGE_VERSION instead of VERSION 9516 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9517fi 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 # These must be called after we do the basic CFLAGS checks and 9533 # verify any possible 64-bit or similar switches are necessary 9534 9535 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9536echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9537 tcl_flags="" 9538 9539 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9540 echo $ECHO_N "(cached) $ECHO_C" >&6 9541else 9542 cat >conftest.$ac_ext <<_ACEOF 9543/* confdefs.h. */ 9544_ACEOF 9545cat confdefs.h >>conftest.$ac_ext 9546cat >>conftest.$ac_ext <<_ACEOF 9547/* end confdefs.h. */ 9548#include <stdlib.h> 9549int 9550main () 9551{ 9552char *p = (char *)strtoll; char *q = (char *)strtoull; 9553 ; 9554 return 0; 9555} 9556_ACEOF 9557rm -f conftest.$ac_objext 9558if { (ac_try="$ac_compile" 9559case "(($ac_try" in 9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9561 *) ac_try_echo=$ac_try;; 9562esac 9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9564 (eval "$ac_compile") 2>conftest.er1 9565 ac_status=$? 9566 grep -v '^ *+' conftest.er1 >conftest.err 9567 rm -f conftest.er1 9568 cat conftest.err >&5 9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9570 (exit $ac_status); } && { 9571 test -z "$ac_c_werror_flag" || 9572 test ! -s conftest.err 9573 } && test -s conftest.$ac_objext; then 9574 tcl_cv_flag__isoc99_source=no 9575else 9576 echo "$as_me: failed program was:" >&5 9577sed 's/^/| /' conftest.$ac_ext >&5 9578 9579 cat >conftest.$ac_ext <<_ACEOF 9580/* confdefs.h. */ 9581_ACEOF 9582cat confdefs.h >>conftest.$ac_ext 9583cat >>conftest.$ac_ext <<_ACEOF 9584/* end confdefs.h. */ 9585#define _ISOC99_SOURCE 1 9586#include <stdlib.h> 9587int 9588main () 9589{ 9590char *p = (char *)strtoll; char *q = (char *)strtoull; 9591 ; 9592 return 0; 9593} 9594_ACEOF 9595rm -f conftest.$ac_objext 9596if { (ac_try="$ac_compile" 9597case "(($ac_try" in 9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9599 *) ac_try_echo=$ac_try;; 9600esac 9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9602 (eval "$ac_compile") 2>conftest.er1 9603 ac_status=$? 9604 grep -v '^ *+' conftest.er1 >conftest.err 9605 rm -f conftest.er1 9606 cat conftest.err >&5 9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9608 (exit $ac_status); } && { 9609 test -z "$ac_c_werror_flag" || 9610 test ! -s conftest.err 9611 } && test -s conftest.$ac_objext; then 9612 tcl_cv_flag__isoc99_source=yes 9613else 9614 echo "$as_me: failed program was:" >&5 9615sed 's/^/| /' conftest.$ac_ext >&5 9616 9617 tcl_cv_flag__isoc99_source=no 9618fi 9619 9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9621fi 9622 9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9624fi 9625 9626 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9627 9628cat >>confdefs.h <<\_ACEOF 9629#define _ISOC99_SOURCE 1 9630_ACEOF 9631 9632 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9633 fi 9634 9635 9636 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9637 echo $ECHO_N "(cached) $ECHO_C" >&6 9638else 9639 cat >conftest.$ac_ext <<_ACEOF 9640/* confdefs.h. */ 9641_ACEOF 9642cat confdefs.h >>conftest.$ac_ext 9643cat >>conftest.$ac_ext <<_ACEOF 9644/* end confdefs.h. */ 9645#include <sys/stat.h> 9646int 9647main () 9648{ 9649struct stat64 buf; int i = stat64("/", &buf); 9650 ; 9651 return 0; 9652} 9653_ACEOF 9654rm -f conftest.$ac_objext 9655if { (ac_try="$ac_compile" 9656case "(($ac_try" in 9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9658 *) ac_try_echo=$ac_try;; 9659esac 9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9661 (eval "$ac_compile") 2>conftest.er1 9662 ac_status=$? 9663 grep -v '^ *+' conftest.er1 >conftest.err 9664 rm -f conftest.er1 9665 cat conftest.err >&5 9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9667 (exit $ac_status); } && { 9668 test -z "$ac_c_werror_flag" || 9669 test ! -s conftest.err 9670 } && test -s conftest.$ac_objext; then 9671 tcl_cv_flag__largefile64_source=no 9672else 9673 echo "$as_me: failed program was:" >&5 9674sed 's/^/| /' conftest.$ac_ext >&5 9675 9676 cat >conftest.$ac_ext <<_ACEOF 9677/* confdefs.h. */ 9678_ACEOF 9679cat confdefs.h >>conftest.$ac_ext 9680cat >>conftest.$ac_ext <<_ACEOF 9681/* end confdefs.h. */ 9682#define _LARGEFILE64_SOURCE 1 9683#include <sys/stat.h> 9684int 9685main () 9686{ 9687struct stat64 buf; int i = stat64("/", &buf); 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692rm -f conftest.$ac_objext 9693if { (ac_try="$ac_compile" 9694case "(($ac_try" in 9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9696 *) ac_try_echo=$ac_try;; 9697esac 9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9699 (eval "$ac_compile") 2>conftest.er1 9700 ac_status=$? 9701 grep -v '^ *+' conftest.er1 >conftest.err 9702 rm -f conftest.er1 9703 cat conftest.err >&5 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9705 (exit $ac_status); } && { 9706 test -z "$ac_c_werror_flag" || 9707 test ! -s conftest.err 9708 } && test -s conftest.$ac_objext; then 9709 tcl_cv_flag__largefile64_source=yes 9710else 9711 echo "$as_me: failed program was:" >&5 9712sed 's/^/| /' conftest.$ac_ext >&5 9713 9714 tcl_cv_flag__largefile64_source=no 9715fi 9716 9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9718fi 9719 9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9721fi 9722 9723 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9724 9725cat >>confdefs.h <<\_ACEOF 9726#define _LARGEFILE64_SOURCE 1 9727_ACEOF 9728 9729 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9730 fi 9731 9732 9733 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9734 echo $ECHO_N "(cached) $ECHO_C" >&6 9735else 9736 cat >conftest.$ac_ext <<_ACEOF 9737/* confdefs.h. */ 9738_ACEOF 9739cat confdefs.h >>conftest.$ac_ext 9740cat >>conftest.$ac_ext <<_ACEOF 9741/* end confdefs.h. */ 9742#include <sys/stat.h> 9743int 9744main () 9745{ 9746char *p = (char *)open64; 9747 ; 9748 return 0; 9749} 9750_ACEOF 9751rm -f conftest.$ac_objext 9752if { (ac_try="$ac_compile" 9753case "(($ac_try" in 9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9755 *) ac_try_echo=$ac_try;; 9756esac 9757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9758 (eval "$ac_compile") 2>conftest.er1 9759 ac_status=$? 9760 grep -v '^ *+' conftest.er1 >conftest.err 9761 rm -f conftest.er1 9762 cat conftest.err >&5 9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9764 (exit $ac_status); } && { 9765 test -z "$ac_c_werror_flag" || 9766 test ! -s conftest.err 9767 } && test -s conftest.$ac_objext; then 9768 tcl_cv_flag__largefile_source64=no 9769else 9770 echo "$as_me: failed program was:" >&5 9771sed 's/^/| /' conftest.$ac_ext >&5 9772 9773 cat >conftest.$ac_ext <<_ACEOF 9774/* confdefs.h. */ 9775_ACEOF 9776cat confdefs.h >>conftest.$ac_ext 9777cat >>conftest.$ac_ext <<_ACEOF 9778/* end confdefs.h. */ 9779#define _LARGEFILE_SOURCE64 1 9780#include <sys/stat.h> 9781int 9782main () 9783{ 9784char *p = (char *)open64; 9785 ; 9786 return 0; 9787} 9788_ACEOF 9789rm -f conftest.$ac_objext 9790if { (ac_try="$ac_compile" 9791case "(($ac_try" in 9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9793 *) ac_try_echo=$ac_try;; 9794esac 9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9796 (eval "$ac_compile") 2>conftest.er1 9797 ac_status=$? 9798 grep -v '^ *+' conftest.er1 >conftest.err 9799 rm -f conftest.er1 9800 cat conftest.err >&5 9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9802 (exit $ac_status); } && { 9803 test -z "$ac_c_werror_flag" || 9804 test ! -s conftest.err 9805 } && test -s conftest.$ac_objext; then 9806 tcl_cv_flag__largefile_source64=yes 9807else 9808 echo "$as_me: failed program was:" >&5 9809sed 's/^/| /' conftest.$ac_ext >&5 9810 9811 tcl_cv_flag__largefile_source64=no 9812fi 9813 9814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9815fi 9816 9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9818fi 9819 9820 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9821 9822cat >>confdefs.h <<\_ACEOF 9823#define _LARGEFILE_SOURCE64 1 9824_ACEOF 9825 9826 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9827 fi 9828 9829 if test "x${tcl_flags}" = "x" ; then 9830 { echo "$as_me:$LINENO: result: none" >&5 9831echo "${ECHO_T}none" >&6; } 9832 else 9833 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9834echo "${ECHO_T}${tcl_flags}" >&6; } 9835 fi 9836 9837 9838 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9839echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9840 if test "${tcl_cv_type_64bit+set}" = set; then 9841 echo $ECHO_N "(cached) $ECHO_C" >&6 9842else 9843 9844 tcl_cv_type_64bit=none 9845 # See if the compiler knows natively about __int64 9846 cat >conftest.$ac_ext <<_ACEOF 9847/* confdefs.h. */ 9848_ACEOF 9849cat confdefs.h >>conftest.$ac_ext 9850cat >>conftest.$ac_ext <<_ACEOF 9851/* end confdefs.h. */ 9852 9853int 9854main () 9855{ 9856__int64 value = (__int64) 0; 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861rm -f conftest.$ac_objext 9862if { (ac_try="$ac_compile" 9863case "(($ac_try" in 9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9865 *) ac_try_echo=$ac_try;; 9866esac 9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9868 (eval "$ac_compile") 2>conftest.er1 9869 ac_status=$? 9870 grep -v '^ *+' conftest.er1 >conftest.err 9871 rm -f conftest.er1 9872 cat conftest.err >&5 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 (exit $ac_status); } && { 9875 test -z "$ac_c_werror_flag" || 9876 test ! -s conftest.err 9877 } && test -s conftest.$ac_objext; then 9878 tcl_type_64bit=__int64 9879else 9880 echo "$as_me: failed program was:" >&5 9881sed 's/^/| /' conftest.$ac_ext >&5 9882 9883 tcl_type_64bit="long long" 9884fi 9885 9886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9887 # See if we should use long anyway Note that we substitute in the 9888 # type that is our current guess for a 64-bit type inside this check 9889 # program, so it should be modified only carefully... 9890 cat >conftest.$ac_ext <<_ACEOF 9891/* confdefs.h. */ 9892_ACEOF 9893cat confdefs.h >>conftest.$ac_ext 9894cat >>conftest.$ac_ext <<_ACEOF 9895/* end confdefs.h. */ 9896 9897int 9898main () 9899{ 9900switch (0) { 9901 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9902 } 9903 ; 9904 return 0; 9905} 9906_ACEOF 9907rm -f conftest.$ac_objext 9908if { (ac_try="$ac_compile" 9909case "(($ac_try" in 9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9911 *) ac_try_echo=$ac_try;; 9912esac 9913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9914 (eval "$ac_compile") 2>conftest.er1 9915 ac_status=$? 9916 grep -v '^ *+' conftest.er1 >conftest.err 9917 rm -f conftest.er1 9918 cat conftest.err >&5 9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9920 (exit $ac_status); } && { 9921 test -z "$ac_c_werror_flag" || 9922 test ! -s conftest.err 9923 } && test -s conftest.$ac_objext; then 9924 tcl_cv_type_64bit=${tcl_type_64bit} 9925else 9926 echo "$as_me: failed program was:" >&5 9927sed 's/^/| /' conftest.$ac_ext >&5 9928 9929 9930fi 9931 9932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9933fi 9934 9935 if test "${tcl_cv_type_64bit}" = none ; then 9936 9937cat >>confdefs.h <<\_ACEOF 9938#define TCL_WIDE_INT_IS_LONG 1 9939_ACEOF 9940 9941 { echo "$as_me:$LINENO: result: using long" >&5 9942echo "${ECHO_T}using long" >&6; } 9943 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9944 -a "${TEA_PLATFORM}" = "windows" ; then 9945 # TEA specific: We actually want to use the default tcl.h checks in 9946 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9947 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9948echo "${ECHO_T}using Tcl header defaults" >&6; } 9949 else 9950 9951cat >>confdefs.h <<_ACEOF 9952#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9953_ACEOF 9954 9955 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9956echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9957 9958 # Now check for auxiliary declarations 9959 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9960echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9961if test "${tcl_cv_struct_dirent64+set}" = set; then 9962 echo $ECHO_N "(cached) $ECHO_C" >&6 9963else 9964 9965 cat >conftest.$ac_ext <<_ACEOF 9966/* confdefs.h. */ 9967_ACEOF 9968cat confdefs.h >>conftest.$ac_ext 9969cat >>conftest.$ac_ext <<_ACEOF 9970/* end confdefs.h. */ 9971#include <sys/types.h> 9972#include <sys/dirent.h> 9973int 9974main () 9975{ 9976struct dirent64 p; 9977 ; 9978 return 0; 9979} 9980_ACEOF 9981rm -f conftest.$ac_objext 9982if { (ac_try="$ac_compile" 9983case "(($ac_try" in 9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9985 *) ac_try_echo=$ac_try;; 9986esac 9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9988 (eval "$ac_compile") 2>conftest.er1 9989 ac_status=$? 9990 grep -v '^ *+' conftest.er1 >conftest.err 9991 rm -f conftest.er1 9992 cat conftest.err >&5 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); } && { 9995 test -z "$ac_c_werror_flag" || 9996 test ! -s conftest.err 9997 } && test -s conftest.$ac_objext; then 9998 tcl_cv_struct_dirent64=yes 9999else 10000 echo "$as_me: failed program was:" >&5 10001sed 's/^/| /' conftest.$ac_ext >&5 10002 10003 tcl_cv_struct_dirent64=no 10004fi 10005 10006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10007fi 10008{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10009echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10010 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10011 10012cat >>confdefs.h <<\_ACEOF 10013#define HAVE_STRUCT_DIRENT64 1 10014_ACEOF 10015 10016 fi 10017 10018 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10019echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10020if test "${tcl_cv_struct_stat64+set}" = set; then 10021 echo $ECHO_N "(cached) $ECHO_C" >&6 10022else 10023 10024 cat >conftest.$ac_ext <<_ACEOF 10025/* confdefs.h. */ 10026_ACEOF 10027cat confdefs.h >>conftest.$ac_ext 10028cat >>conftest.$ac_ext <<_ACEOF 10029/* end confdefs.h. */ 10030#include <sys/stat.h> 10031int 10032main () 10033{ 10034struct stat64 p; 10035 10036 ; 10037 return 0; 10038} 10039_ACEOF 10040rm -f conftest.$ac_objext 10041if { (ac_try="$ac_compile" 10042case "(($ac_try" in 10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10044 *) ac_try_echo=$ac_try;; 10045esac 10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10047 (eval "$ac_compile") 2>conftest.er1 10048 ac_status=$? 10049 grep -v '^ *+' conftest.er1 >conftest.err 10050 rm -f conftest.er1 10051 cat conftest.err >&5 10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10053 (exit $ac_status); } && { 10054 test -z "$ac_c_werror_flag" || 10055 test ! -s conftest.err 10056 } && test -s conftest.$ac_objext; then 10057 tcl_cv_struct_stat64=yes 10058else 10059 echo "$as_me: failed program was:" >&5 10060sed 's/^/| /' conftest.$ac_ext >&5 10061 10062 tcl_cv_struct_stat64=no 10063fi 10064 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10068echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10069 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10070 10071cat >>confdefs.h <<\_ACEOF 10072#define HAVE_STRUCT_STAT64 1 10073_ACEOF 10074 10075 fi 10076 10077 10078 10079for ac_func in open64 lseek64 10080do 10081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10082{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10085 echo $ECHO_N "(cached) $ECHO_C" >&6 10086else 10087 cat >conftest.$ac_ext <<_ACEOF 10088/* confdefs.h. */ 10089_ACEOF 10090cat confdefs.h >>conftest.$ac_ext 10091cat >>conftest.$ac_ext <<_ACEOF 10092/* end confdefs.h. */ 10093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10094 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10095#define $ac_func innocuous_$ac_func 10096 10097/* System header to define __stub macros and hopefully few prototypes, 10098 which can conflict with char $ac_func (); below. 10099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10100 <limits.h> exists even on freestanding compilers. */ 10101 10102#ifdef __STDC__ 10103# include <limits.h> 10104#else 10105# include <assert.h> 10106#endif 10107 10108#undef $ac_func 10109 10110/* Override any GCC internal prototype to avoid an error. 10111 Use char because int might match the return type of a GCC 10112 builtin and then its argument prototype would still apply. */ 10113#ifdef __cplusplus 10114extern "C" 10115#endif 10116char $ac_func (); 10117/* The GNU C library defines this for functions which it implements 10118 to always fail with ENOSYS. Some functions are actually named 10119 something starting with __ and the normal name is an alias. */ 10120#if defined __stub_$ac_func || defined __stub___$ac_func 10121choke me 10122#endif 10123 10124int 10125main () 10126{ 10127return $ac_func (); 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132rm -f conftest.$ac_objext conftest$ac_exeext 10133if { (ac_try="$ac_link" 10134case "(($ac_try" in 10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10136 *) ac_try_echo=$ac_try;; 10137esac 10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10139 (eval "$ac_link") 2>conftest.er1 10140 ac_status=$? 10141 grep -v '^ *+' conftest.er1 >conftest.err 10142 rm -f conftest.er1 10143 cat conftest.err >&5 10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10145 (exit $ac_status); } && { 10146 test -z "$ac_c_werror_flag" || 10147 test ! -s conftest.err 10148 } && test -s conftest$ac_exeext && 10149 $as_test_x conftest$ac_exeext; then 10150 eval "$as_ac_var=yes" 10151else 10152 echo "$as_me: failed program was:" >&5 10153sed 's/^/| /' conftest.$ac_ext >&5 10154 10155 eval "$as_ac_var=no" 10156fi 10157 10158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10159 conftest$ac_exeext conftest.$ac_ext 10160fi 10161ac_res=`eval echo '${'$as_ac_var'}'` 10162 { echo "$as_me:$LINENO: result: $ac_res" >&5 10163echo "${ECHO_T}$ac_res" >&6; } 10164if test `eval echo '${'$as_ac_var'}'` = yes; then 10165 cat >>confdefs.h <<_ACEOF 10166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10167_ACEOF 10168 10169fi 10170done 10171 10172 { echo "$as_me:$LINENO: checking for off64_t" >&5 10173echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10174 if test "${tcl_cv_type_off64_t+set}" = set; then 10175 echo $ECHO_N "(cached) $ECHO_C" >&6 10176else 10177 10178 cat >conftest.$ac_ext <<_ACEOF 10179/* confdefs.h. */ 10180_ACEOF 10181cat confdefs.h >>conftest.$ac_ext 10182cat >>conftest.$ac_ext <<_ACEOF 10183/* end confdefs.h. */ 10184#include <sys/types.h> 10185int 10186main () 10187{ 10188off64_t offset; 10189 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194rm -f conftest.$ac_objext 10195if { (ac_try="$ac_compile" 10196case "(($ac_try" in 10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10198 *) ac_try_echo=$ac_try;; 10199esac 10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10201 (eval "$ac_compile") 2>conftest.er1 10202 ac_status=$? 10203 grep -v '^ *+' conftest.er1 >conftest.err 10204 rm -f conftest.er1 10205 cat conftest.err >&5 10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10207 (exit $ac_status); } && { 10208 test -z "$ac_c_werror_flag" || 10209 test ! -s conftest.err 10210 } && test -s conftest.$ac_objext; then 10211 tcl_cv_type_off64_t=yes 10212else 10213 echo "$as_me: failed program was:" >&5 10214sed 's/^/| /' conftest.$ac_ext >&5 10215 10216 tcl_cv_type_off64_t=no 10217fi 10218 10219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10220fi 10221 10222 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10223 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10224 test "x${ac_cv_func_open64}" = "xyes" ; then 10225 10226cat >>confdefs.h <<\_ACEOF 10227#define HAVE_TYPE_OFF64_T 1 10228_ACEOF 10229 10230 { echo "$as_me:$LINENO: result: yes" >&5 10231echo "${ECHO_T}yes" >&6; } 10232 else 10233 { echo "$as_me:$LINENO: result: no" >&5 10234echo "${ECHO_T}no" >&6; } 10235 fi 10236 fi 10237 10238 10239 10240#-------------------------------------------------------------------- 10241# Set the default compiler switches based on the --enable-symbols option. 10242#-------------------------------------------------------------------- 10243 10244 10245 10246 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10247echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10248 # Check whether --enable-symbols was given. 10249if test "${enable_symbols+set}" = set; then 10250 enableval=$enable_symbols; tcl_ok=$enableval 10251else 10252 tcl_ok=no 10253fi 10254 10255 DBGX="" 10256 if test "$tcl_ok" = "no"; then 10257 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10258 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10259 { echo "$as_me:$LINENO: result: no" >&5 10260echo "${ECHO_T}no" >&6; } 10261 else 10262 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10263 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10264 if test "$tcl_ok" = "yes"; then 10265 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10266echo "${ECHO_T}yes (standard debugging)" >&6; } 10267 fi 10268 fi 10269 # TEA specific: 10270 if test "${TEA_PLATFORM}" != "windows" ; then 10271 LDFLAGS_DEFAULT="${LDFLAGS}" 10272 fi 10273 10274 10275 10276 10277 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10278 10279cat >>confdefs.h <<\_ACEOF 10280#define TCL_MEM_DEBUG 1 10281_ACEOF 10282 10283 fi 10284 10285 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10286 if test "$tcl_ok" = "all"; then 10287 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10288echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10289 else 10290 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10291echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10292 fi 10293 fi 10294 10295 10296#-------------------------------------------------------------------- 10297# Everyone should be linking against the Tcl stub library. If you 10298# can't for some reason, remove this definition. If you aren't using 10299# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10300# link against the non-stubbed Tcl library. Add Tk too if necessary. 10301#-------------------------------------------------------------------- 10302 10303 10304cat >>confdefs.h <<\_ACEOF 10305#define USE_TCL_STUBS 1 10306_ACEOF 10307 10308#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs]) 10309 10310#-------------------------------------------------------------------- 10311# This macro generates a line to use when building a library. It 10312# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10313# and TEA_LOAD_TCLCONFIG macros above. 10314#-------------------------------------------------------------------- 10315 10316 10317 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10318 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10319 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10320 cat >conftest.$ac_ext <<_ACEOF 10321/* confdefs.h. */ 10322_ACEOF 10323cat confdefs.h >>conftest.$ac_ext 10324cat >>conftest.$ac_ext <<_ACEOF 10325/* end confdefs.h. */ 10326 10327#if defined(_MSC_VER) && _MSC_VER >= 1400 10328print("manifest needed") 10329#endif 10330 10331_ACEOF 10332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10333 $EGREP "manifest needed" >/dev/null 2>&1; then 10334 10335 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10336 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10337 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10338 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10339 10340 CLEANFILES="$CLEANFILES *.manifest" 10341 10342 10343fi 10344rm -f -r conftest* 10345 10346 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10347 else 10348 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10349 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10350 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10351 fi 10352 10353 if test "${SHARED_BUILD}" = "1" ; then 10354 MAKE_LIB="${MAKE_SHARED_LIB} " 10355 else 10356 MAKE_LIB="${MAKE_STATIC_LIB} " 10357 fi 10358 10359 #-------------------------------------------------------------------- 10360 # Shared libraries and static libraries have different names. 10361 # Use the double eval to make sure any variables in the suffix is 10362 # substituted. (@@@ Might not be necessary anymore) 10363 #-------------------------------------------------------------------- 10364 10365 if test "${TEA_PLATFORM}" = "windows" ; then 10366 if test "${SHARED_BUILD}" = "1" ; then 10367 # We force the unresolved linking of symbols that are really in 10368 # the private libraries of Tcl and Tk. 10369 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10370 if test x"${TK_BIN_DIR}" != x ; then 10371 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10372 fi 10373 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10374 else 10375 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10376 fi 10377 # Some packages build their own stubs libraries 10378 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10379 if test "$GCC" = "yes"; then 10380 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10381 fi 10382 # These aren't needed on Windows (either MSVC or gcc) 10383 RANLIB=: 10384 RANLIB_STUB=: 10385 else 10386 RANLIB_STUB="${RANLIB}" 10387 if test "${SHARED_BUILD}" = "1" ; then 10388 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10389 if test x"${TK_BIN_DIR}" != x ; then 10390 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10391 fi 10392 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10393 RANLIB=: 10394 else 10395 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10396 fi 10397 # Some packages build their own stubs libraries 10398 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10399 fi 10400 10401 # These are escaped so that only CFLAGS is picked up at configure time. 10402 # The other values will be substituted at make time. 10403 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10404 if test "${SHARED_BUILD}" = "1" ; then 10405 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10406 fi 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417#-------------------------------------------------------------------- 10418# Determine the name of the tclsh and/or wish executables in the 10419# Tcl and Tk build directories or the location they were installed 10420# into. These paths are used to support running test cases only, 10421# the Makefile should not be making use of these paths to generate 10422# a pkgIndex.tcl file or anything else at extension build time. 10423#-------------------------------------------------------------------- 10424 10425 10426 { echo "$as_me:$LINENO: checking for tclsh" >&5 10427echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10428 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10429 # tclConfig.sh is in Tcl build directory 10430 if test "${TEA_PLATFORM}" = "windows"; then 10431 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10432 else 10433 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10434 fi 10435 else 10436 # tclConfig.sh is in install location 10437 if test "${TEA_PLATFORM}" = "windows"; then 10438 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10439 else 10440 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10441 fi 10442 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10443 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10444 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10445 for i in $list ; do 10446 if test -f "$i/${TCLSH_PROG}" ; then 10447 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10448 break 10449 fi 10450 done 10451 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10452 fi 10453 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10454echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10455 10456 10457#TEA_PROG_WISH 10458 10459#-------------------------------------------------------------------- 10460# Finally, substitute all of the various values into the Makefile. 10461# You may alternatively have a special pkgIndex.tcl.in or other files 10462# which require substituting th AC variables in. Include these here. 10463#-------------------------------------------------------------------- 10464 10465ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 10466 10467cat >confcache <<\_ACEOF 10468# This file is a shell script that caches the results of configure 10469# tests run on this system so they can be shared between configure 10470# scripts and configure runs, see configure's option --config-cache. 10471# It is not useful on other systems. If it contains results you don't 10472# want to keep, you may remove or edit it. 10473# 10474# config.status only pays attention to the cache file if you give it 10475# the --recheck option to rerun configure. 10476# 10477# `ac_cv_env_foo' variables (set or unset) will be overridden when 10478# loading this file, other *unset* `ac_cv_foo' will be assigned the 10479# following values. 10480 10481_ACEOF 10482 10483# The following way of writing the cache mishandles newlines in values, 10484# but we know of no workaround that is simple, portable, and efficient. 10485# So, we kill variables containing newlines. 10486# Ultrix sh set writes to stderr and can't be redirected directly, 10487# and sets the high bit in the cache file unless we assign to the vars. 10488( 10489 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10490 eval ac_val=\$$ac_var 10491 case $ac_val in #( 10492 *${as_nl}*) 10493 case $ac_var in #( 10494 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10495echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10496 esac 10497 case $ac_var in #( 10498 _ | IFS | as_nl) ;; #( 10499 *) $as_unset $ac_var ;; 10500 esac ;; 10501 esac 10502 done 10503 10504 (set) 2>&1 | 10505 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10506 *${as_nl}ac_space=\ *) 10507 # `set' does not quote correctly, so add quotes (double-quote 10508 # substitution turns \\\\ into \\, and sed turns \\ into \). 10509 sed -n \ 10510 "s/'/'\\\\''/g; 10511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10512 ;; #( 10513 *) 10514 # `set' quotes correctly as required by POSIX, so do not add quotes. 10515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10516 ;; 10517 esac | 10518 sort 10519) | 10520 sed ' 10521 /^ac_cv_env_/b end 10522 t clear 10523 :clear 10524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10525 t end 10526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10527 :end' >>confcache 10528if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10529 if test -w "$cache_file"; then 10530 test "x$cache_file" != "x/dev/null" && 10531 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10532echo "$as_me: updating cache $cache_file" >&6;} 10533 cat confcache >$cache_file 10534 else 10535 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10536echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10537 fi 10538fi 10539rm -f confcache 10540 10541test "x$prefix" = xNONE && prefix=$ac_default_prefix 10542# Let make expand exec_prefix. 10543test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10544 10545# Transform confdefs.h into DEFS. 10546# Protect against shell expansion while executing Makefile rules. 10547# Protect against Makefile macro expansion. 10548# 10549# If the first sed substitution is executed (which looks for macros that 10550# take arguments), then branch to the quote section. Otherwise, 10551# look for a macro that doesn't take arguments. 10552ac_script=' 10553t clear 10554:clear 10555s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10556t quote 10557s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10558t quote 10559b any 10560:quote 10561s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10562s/\[/\\&/g 10563s/\]/\\&/g 10564s/\$/$$/g 10565H 10566:any 10567${ 10568 g 10569 s/^\n// 10570 s/\n/ /g 10571 p 10572} 10573' 10574DEFS=`sed -n "$ac_script" confdefs.h` 10575 10576 10577ac_libobjs= 10578ac_ltlibobjs= 10579for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10580 # 1. Remove the extension, and $U if already installed. 10581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10582 ac_i=`echo "$ac_i" | sed "$ac_script"` 10583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10584 # will be set to the directory where LIBOBJS objects are built. 10585 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10586 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10587done 10588LIBOBJS=$ac_libobjs 10589 10590LTLIBOBJS=$ac_ltlibobjs 10591 10592 10593CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10594 10595: ${CONFIG_STATUS=./config.status} 10596ac_clean_files_save=$ac_clean_files 10597ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10598{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10599echo "$as_me: creating $CONFIG_STATUS" >&6;} 10600cat >$CONFIG_STATUS <<_ACEOF 10601#! $SHELL 10602# Generated by $as_me. 10603# Run this file to recreate the current configuration. 10604# Compiler output produced by configure, useful for debugging 10605# configure, is in config.log if it exists. 10606 10607debug=false 10608ac_cs_recheck=false 10609ac_cs_silent=false 10610SHELL=\${CONFIG_SHELL-$SHELL} 10611_ACEOF 10612 10613cat >>$CONFIG_STATUS <<\_ACEOF 10614## --------------------- ## 10615## M4sh Initialization. ## 10616## --------------------- ## 10617 10618# Be more Bourne compatible 10619DUALCASE=1; export DUALCASE # for MKS sh 10620if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10621 emulate sh 10622 NULLCMD=: 10623 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10624 # is contrary to our usage. Disable this feature. 10625 alias -g '${1+"$@"}'='"$@"' 10626 setopt NO_GLOB_SUBST 10627else 10628 case `(set -o) 2>/dev/null` in 10629 *posix*) set -o posix ;; 10630esac 10631 10632fi 10633 10634 10635 10636 10637# PATH needs CR 10638# Avoid depending upon Character Ranges. 10639as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10641as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10642as_cr_digits='0123456789' 10643as_cr_alnum=$as_cr_Letters$as_cr_digits 10644 10645# The user is always right. 10646if test "${PATH_SEPARATOR+set}" != set; then 10647 echo "#! /bin/sh" >conf$$.sh 10648 echo "exit 0" >>conf$$.sh 10649 chmod +x conf$$.sh 10650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10651 PATH_SEPARATOR=';' 10652 else 10653 PATH_SEPARATOR=: 10654 fi 10655 rm -f conf$$.sh 10656fi 10657 10658# Support unset when possible. 10659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10660 as_unset=unset 10661else 10662 as_unset=false 10663fi 10664 10665 10666# IFS 10667# We need space, tab and new line, in precisely that order. Quoting is 10668# there to prevent editors from complaining about space-tab. 10669# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10670# splitting by setting IFS to empty value.) 10671as_nl=' 10672' 10673IFS=" "" $as_nl" 10674 10675# Find who we are. Look in the path if we contain no directory separator. 10676case $0 in 10677 *[\\/]* ) as_myself=$0 ;; 10678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10679for as_dir in $PATH 10680do 10681 IFS=$as_save_IFS 10682 test -z "$as_dir" && as_dir=. 10683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10684done 10685IFS=$as_save_IFS 10686 10687 ;; 10688esac 10689# We did not find ourselves, most probably we were run as `sh COMMAND' 10690# in which case we are not to be found in the path. 10691if test "x$as_myself" = x; then 10692 as_myself=$0 10693fi 10694if test ! -f "$as_myself"; then 10695 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10696 { (exit 1); exit 1; } 10697fi 10698 10699# Work around bugs in pre-3.0 UWIN ksh. 10700for as_var in ENV MAIL MAILPATH 10701do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10702done 10703PS1='$ ' 10704PS2='> ' 10705PS4='+ ' 10706 10707# NLS nuisances. 10708for as_var in \ 10709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10711 LC_TELEPHONE LC_TIME 10712do 10713 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10714 eval $as_var=C; export $as_var 10715 else 10716 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10717 fi 10718done 10719 10720# Required to use basename. 10721if expr a : '\(a\)' >/dev/null 2>&1 && 10722 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10723 as_expr=expr 10724else 10725 as_expr=false 10726fi 10727 10728if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10729 as_basename=basename 10730else 10731 as_basename=false 10732fi 10733 10734 10735# Name of the executable. 10736as_me=`$as_basename -- "$0" || 10737$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10738 X"$0" : 'X\(//\)$' \| \ 10739 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10740echo X/"$0" | 10741 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10742 s//\1/ 10743 q 10744 } 10745 /^X\/\(\/\/\)$/{ 10746 s//\1/ 10747 q 10748 } 10749 /^X\/\(\/\).*/{ 10750 s//\1/ 10751 q 10752 } 10753 s/.*/./; q'` 10754 10755# CDPATH. 10756$as_unset CDPATH 10757 10758 10759 10760 as_lineno_1=$LINENO 10761 as_lineno_2=$LINENO 10762 test "x$as_lineno_1" != "x$as_lineno_2" && 10763 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10764 10765 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10766 # uniformly replaced by the line number. The first 'sed' inserts a 10767 # line-number line after each line using $LINENO; the second 'sed' 10768 # does the real work. The second script uses 'N' to pair each 10769 # line-number line with the line containing $LINENO, and appends 10770 # trailing '-' during substitution so that $LINENO is not a special 10771 # case at line end. 10772 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10773 # scripts with optimization help from Paolo Bonzini. Blame Lee 10774 # E. McMahon (1931-1989) for sed's syntax. :-) 10775 sed -n ' 10776 p 10777 /[$]LINENO/= 10778 ' <$as_myself | 10779 sed ' 10780 s/[$]LINENO.*/&-/ 10781 t lineno 10782 b 10783 :lineno 10784 N 10785 :loop 10786 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10787 t loop 10788 s/-\n.*// 10789 ' >$as_me.lineno && 10790 chmod +x "$as_me.lineno" || 10791 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10792 { (exit 1); exit 1; }; } 10793 10794 # Don't try to exec as it changes $[0], causing all sort of problems 10795 # (the dirname of $[0] is not the place where we might find the 10796 # original and so on. Autoconf is especially sensitive to this). 10797 . "./$as_me.lineno" 10798 # Exit status is that of the last command. 10799 exit 10800} 10801 10802 10803if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10804 as_dirname=dirname 10805else 10806 as_dirname=false 10807fi 10808 10809ECHO_C= ECHO_N= ECHO_T= 10810case `echo -n x` in 10811-n*) 10812 case `echo 'x\c'` in 10813 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10814 *) ECHO_C='\c';; 10815 esac;; 10816*) 10817 ECHO_N='-n';; 10818esac 10819 10820if expr a : '\(a\)' >/dev/null 2>&1 && 10821 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10822 as_expr=expr 10823else 10824 as_expr=false 10825fi 10826 10827rm -f conf$$ conf$$.exe conf$$.file 10828if test -d conf$$.dir; then 10829 rm -f conf$$.dir/conf$$.file 10830else 10831 rm -f conf$$.dir 10832 mkdir conf$$.dir 10833fi 10834echo >conf$$.file 10835if ln -s conf$$.file conf$$ 2>/dev/null; then 10836 as_ln_s='ln -s' 10837 # ... but there are two gotchas: 10838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10840 # In both cases, we have to default to `cp -p'. 10841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10842 as_ln_s='cp -p' 10843elif ln conf$$.file conf$$ 2>/dev/null; then 10844 as_ln_s=ln 10845else 10846 as_ln_s='cp -p' 10847fi 10848rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10849rmdir conf$$.dir 2>/dev/null 10850 10851if mkdir -p . 2>/dev/null; then 10852 as_mkdir_p=: 10853else 10854 test -d ./-p && rmdir ./-p 10855 as_mkdir_p=false 10856fi 10857 10858if test -x / >/dev/null 2>&1; then 10859 as_test_x='test -x' 10860else 10861 if ls -dL / >/dev/null 2>&1; then 10862 as_ls_L_option=L 10863 else 10864 as_ls_L_option= 10865 fi 10866 as_test_x=' 10867 eval sh -c '\'' 10868 if test -d "$1"; then 10869 test -d "$1/."; 10870 else 10871 case $1 in 10872 -*)set "./$1";; 10873 esac; 10874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10875 ???[sx]*):;;*)false;;esac;fi 10876 '\'' sh 10877 ' 10878fi 10879as_executable_p=$as_test_x 10880 10881# Sed expression to map a string onto a valid CPP name. 10882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10883 10884# Sed expression to map a string onto a valid variable name. 10885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10886 10887 10888exec 6>&1 10889 10890# Save the log message, to keep $[0] and so on meaningful, and to 10891# report actual input values of CONFIG_FILES etc. instead of their 10892# values after options handling. 10893ac_log=" 10894This file was extended by tnc $as_me 0.3.0, which was 10895generated by GNU Autoconf 2.61. Invocation command line was 10896 10897 CONFIG_FILES = $CONFIG_FILES 10898 CONFIG_HEADERS = $CONFIG_HEADERS 10899 CONFIG_LINKS = $CONFIG_LINKS 10900 CONFIG_COMMANDS = $CONFIG_COMMANDS 10901 $ $0 $@ 10902 10903on `(hostname || uname -n) 2>/dev/null | sed 1q` 10904" 10905 10906_ACEOF 10907 10908cat >>$CONFIG_STATUS <<_ACEOF 10909# Files that config.status was made for. 10910config_files="$ac_config_files" 10911 10912_ACEOF 10913 10914cat >>$CONFIG_STATUS <<\_ACEOF 10915ac_cs_usage="\ 10916\`$as_me' instantiates files from templates according to the 10917current configuration. 10918 10919Usage: $0 [OPTIONS] [FILE]... 10920 10921 -h, --help print this help, then exit 10922 -V, --version print version number and configuration settings, then exit 10923 -q, --quiet do not print progress messages 10924 -d, --debug don't remove temporary files 10925 --recheck update $as_me by reconfiguring in the same conditions 10926 --file=FILE[:TEMPLATE] 10927 instantiate the configuration file FILE 10928 10929Configuration files: 10930$config_files 10931 10932Report bugs to <bug-autoconf@gnu.org>." 10933 10934_ACEOF 10935cat >>$CONFIG_STATUS <<_ACEOF 10936ac_cs_version="\\ 10937tnc config.status 0.3.0 10938configured by $0, generated by GNU Autoconf 2.61, 10939 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10940 10941Copyright (C) 2006 Free Software Foundation, Inc. 10942This config.status script is free software; the Free Software Foundation 10943gives unlimited permission to copy, distribute and modify it." 10944 10945ac_pwd='$ac_pwd' 10946srcdir='$srcdir' 10947INSTALL='$INSTALL' 10948_ACEOF 10949 10950cat >>$CONFIG_STATUS <<\_ACEOF 10951# If no file are specified by the user, then we need to provide default 10952# value. By we need to know if files were specified by the user. 10953ac_need_defaults=: 10954while test $# != 0 10955do 10956 case $1 in 10957 --*=*) 10958 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10960 ac_shift=: 10961 ;; 10962 *) 10963 ac_option=$1 10964 ac_optarg=$2 10965 ac_shift=shift 10966 ;; 10967 esac 10968 10969 case $ac_option in 10970 # Handling of the options. 10971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10972 ac_cs_recheck=: ;; 10973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10974 echo "$ac_cs_version"; exit ;; 10975 --debug | --debu | --deb | --de | --d | -d ) 10976 debug=: ;; 10977 --file | --fil | --fi | --f ) 10978 $ac_shift 10979 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10980 ac_need_defaults=false;; 10981 --he | --h | --help | --hel | -h ) 10982 echo "$ac_cs_usage"; exit ;; 10983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10984 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10985 ac_cs_silent=: ;; 10986 10987 # This is an error. 10988 -*) { echo "$as_me: error: unrecognized option: $1 10989Try \`$0 --help' for more information." >&2 10990 { (exit 1); exit 1; }; } ;; 10991 10992 *) ac_config_targets="$ac_config_targets $1" 10993 ac_need_defaults=false ;; 10994 10995 esac 10996 shift 10997done 10998 10999ac_configure_extra_args= 11000 11001if $ac_cs_silent; then 11002 exec 6>/dev/null 11003 ac_configure_extra_args="$ac_configure_extra_args --silent" 11004fi 11005 11006_ACEOF 11007cat >>$CONFIG_STATUS <<_ACEOF 11008if \$ac_cs_recheck; then 11009 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11010 CONFIG_SHELL=$SHELL 11011 export CONFIG_SHELL 11012 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11013fi 11014 11015_ACEOF 11016cat >>$CONFIG_STATUS <<\_ACEOF 11017exec 5>>config.log 11018{ 11019 echo 11020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11021## Running $as_me. ## 11022_ASBOX 11023 echo "$ac_log" 11024} >&5 11025 11026_ACEOF 11027cat >>$CONFIG_STATUS <<_ACEOF 11028_ACEOF 11029 11030cat >>$CONFIG_STATUS <<\_ACEOF 11031 11032# Handling of arguments. 11033for ac_config_target in $ac_config_targets 11034do 11035 case $ac_config_target in 11036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11037 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 11038 11039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11040echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11041 { (exit 1); exit 1; }; };; 11042 esac 11043done 11044 11045 11046# If the user did not use the arguments to specify the items to instantiate, 11047# then the envvar interface is used. Set only those that are not. 11048# We use the long form for the default assignment because of an extremely 11049# bizarre bug on SunOS 4.1.3. 11050if $ac_need_defaults; then 11051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11052fi 11053 11054# Have a temporary directory for convenience. Make it in the build tree 11055# simply because there is no reason against having it here, and in addition, 11056# creating and moving files from /tmp can sometimes cause problems. 11057# Hook for its removal unless debugging. 11058# Note that there is a small window in which the directory will not be cleaned: 11059# after its creation but before its name has been assigned to `$tmp'. 11060$debug || 11061{ 11062 tmp= 11063 trap 'exit_status=$? 11064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11065' 0 11066 trap '{ (exit 1); exit 1; }' 1 2 13 15 11067} 11068# Create a (secure) tmp directory for tmp files. 11069 11070{ 11071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11072 test -n "$tmp" && test -d "$tmp" 11073} || 11074{ 11075 tmp=./conf$$-$RANDOM 11076 (umask 077 && mkdir "$tmp") 11077} || 11078{ 11079 echo "$me: cannot create a temporary directory in ." >&2 11080 { (exit 1); exit 1; } 11081} 11082 11083# 11084# Set up the sed scripts for CONFIG_FILES section. 11085# 11086 11087# No need to generate the scripts if there are no CONFIG_FILES. 11088# This happens for instance when ./config.status config.h 11089if test -n "$CONFIG_FILES"; then 11090 11091_ACEOF 11092 11093 11094 11095ac_delim='%!_!# ' 11096for ac_last_try in false false false false false :; do 11097 cat >conf$$subs.sed <<_ACEOF 11098SHELL!$SHELL$ac_delim 11099PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11100PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11101PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11102PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11103PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11104PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11105exec_prefix!$exec_prefix$ac_delim 11106prefix!$prefix$ac_delim 11107program_transform_name!$program_transform_name$ac_delim 11108bindir!$bindir$ac_delim 11109sbindir!$sbindir$ac_delim 11110libexecdir!$libexecdir$ac_delim 11111datarootdir!$datarootdir$ac_delim 11112datadir!$datadir$ac_delim 11113sysconfdir!$sysconfdir$ac_delim 11114sharedstatedir!$sharedstatedir$ac_delim 11115localstatedir!$localstatedir$ac_delim 11116includedir!$includedir$ac_delim 11117oldincludedir!$oldincludedir$ac_delim 11118docdir!$docdir$ac_delim 11119infodir!$infodir$ac_delim 11120htmldir!$htmldir$ac_delim 11121dvidir!$dvidir$ac_delim 11122pdfdir!$pdfdir$ac_delim 11123psdir!$psdir$ac_delim 11124libdir!$libdir$ac_delim 11125localedir!$localedir$ac_delim 11126mandir!$mandir$ac_delim 11127DEFS!$DEFS$ac_delim 11128ECHO_C!$ECHO_C$ac_delim 11129ECHO_N!$ECHO_N$ac_delim 11130ECHO_T!$ECHO_T$ac_delim 11131LIBS!$LIBS$ac_delim 11132build_alias!$build_alias$ac_delim 11133host_alias!$host_alias$ac_delim 11134target_alias!$target_alias$ac_delim 11135CYGPATH!$CYGPATH$ac_delim 11136EXEEXT!$EXEEXT$ac_delim 11137PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11138PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11139PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11140PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11141PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11142PKG_HEADERS!$PKG_HEADERS$ac_delim 11143PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11144PKG_LIBS!$PKG_LIBS$ac_delim 11145PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11146TCL_VERSION!$TCL_VERSION$ac_delim 11147TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11148TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11149TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11150TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11151TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11152TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11153TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11154TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11155TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11156CLEANFILES!$CLEANFILES$ac_delim 11157TCL_LIBS!$TCL_LIBS$ac_delim 11158TCL_DEFS!$TCL_DEFS$ac_delim 11159TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11160TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11161TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11162CC!$CC$ac_delim 11163CFLAGS!$CFLAGS$ac_delim 11164LDFLAGS!$LDFLAGS$ac_delim 11165CPPFLAGS!$CPPFLAGS$ac_delim 11166ac_ct_CC!$ac_ct_CC$ac_delim 11167OBJEXT!$OBJEXT$ac_delim 11168CPP!$CPP$ac_delim 11169INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11170INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11171INSTALL_DATA!$INSTALL_DATA$ac_delim 11172SET_MAKE!$SET_MAKE$ac_delim 11173RANLIB!$RANLIB$ac_delim 11174GREP!$GREP$ac_delim 11175EGREP!$EGREP$ac_delim 11176MATH_LIBS!$MATH_LIBS$ac_delim 11177TDOM_VERSION!$TDOM_VERSION$ac_delim 11178TDOM_STUB_LIB_SPEC!$TDOM_STUB_LIB_SPEC$ac_delim 11179TDOM_SRC_DIR!$TDOM_SRC_DIR$ac_delim 11180PKG_SOURCES!$PKG_SOURCES$ac_delim 11181PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11182TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11183TCL_THREADS!$TCL_THREADS$ac_delim 11184SHARED_BUILD!$SHARED_BUILD$ac_delim 11185AR!$AR$ac_delim 11186CELIB_DIR!$CELIB_DIR$ac_delim 11187CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11188CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11189CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11190STLIB_LD!$STLIB_LD$ac_delim 11191SHLIB_LD!$SHLIB_LD$ac_delim 11192SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11193SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11194LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11195_ACEOF 11196 11197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11198 break 11199 elif $ac_last_try; then 11200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11201echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11202 { (exit 1); exit 1; }; } 11203 else 11204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11205 fi 11206done 11207 11208ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11209if test -n "$ac_eof"; then 11210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11211 ac_eof=`expr $ac_eof + 1` 11212fi 11213 11214cat >>$CONFIG_STATUS <<_ACEOF 11215cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11217_ACEOF 11218sed ' 11219s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11220s/^/s,@/; s/!/@,|#_!!_#|/ 11221:n 11222t n 11223s/'"$ac_delim"'$/,g/; t 11224s/$/\\/; p 11225N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11226' >>$CONFIG_STATUS <conf$$subs.sed 11227rm -f conf$$subs.sed 11228cat >>$CONFIG_STATUS <<_ACEOF 11229CEOF$ac_eof 11230_ACEOF 11231 11232 11233ac_delim='%!_!# ' 11234for ac_last_try in false false false false false :; do 11235 cat >conf$$subs.sed <<_ACEOF 11236CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11237LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11238TCL_DBGX!$TCL_DBGX$ac_delim 11239MAKE_LIB!$MAKE_LIB$ac_delim 11240MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11241MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11242MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11243RANLIB_STUB!$RANLIB_STUB$ac_delim 11244VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11245VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11246TCLSH_PROG!$TCLSH_PROG$ac_delim 11247LIBOBJS!$LIBOBJS$ac_delim 11248LTLIBOBJS!$LTLIBOBJS$ac_delim 11249_ACEOF 11250 11251 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 11252 break 11253 elif $ac_last_try; then 11254 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11255echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11256 { (exit 1); exit 1; }; } 11257 else 11258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11259 fi 11260done 11261 11262ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11263if test -n "$ac_eof"; then 11264 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11265 ac_eof=`expr $ac_eof + 1` 11266fi 11267 11268cat >>$CONFIG_STATUS <<_ACEOF 11269cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11270/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11271_ACEOF 11272sed ' 11273s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11274s/^/s,@/; s/!/@,|#_!!_#|/ 11275:n 11276t n 11277s/'"$ac_delim"'$/,g/; t 11278s/$/\\/; p 11279N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11280' >>$CONFIG_STATUS <conf$$subs.sed 11281rm -f conf$$subs.sed 11282cat >>$CONFIG_STATUS <<_ACEOF 11283:end 11284s/|#_!!_#|//g 11285CEOF$ac_eof 11286_ACEOF 11287 11288 11289# VPATH may cause trouble with some makes, so we remove $(srcdir), 11290# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11291# trailing colons and then remove the whole line if VPATH becomes empty 11292# (actually we leave an empty line to preserve line numbers). 11293if test "x$srcdir" = x.; then 11294 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11295s/:*\$(srcdir):*/:/ 11296s/:*\${srcdir}:*/:/ 11297s/:*@srcdir@:*/:/ 11298s/^\([^=]*=[ ]*\):*/\1/ 11299s/:*$// 11300s/^[^=]*=[ ]*$// 11301}' 11302fi 11303 11304cat >>$CONFIG_STATUS <<\_ACEOF 11305fi # test -n "$CONFIG_FILES" 11306 11307 11308for ac_tag in :F $CONFIG_FILES 11309do 11310 case $ac_tag in 11311 :[FHLC]) ac_mode=$ac_tag; continue;; 11312 esac 11313 case $ac_mode$ac_tag in 11314 :[FHL]*:*);; 11315 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11316echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11317 { (exit 1); exit 1; }; };; 11318 :[FH]-) ac_tag=-:-;; 11319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11320 esac 11321 ac_save_IFS=$IFS 11322 IFS=: 11323 set x $ac_tag 11324 IFS=$ac_save_IFS 11325 shift 11326 ac_file=$1 11327 shift 11328 11329 case $ac_mode in 11330 :L) ac_source=$1;; 11331 :[FH]) 11332 ac_file_inputs= 11333 for ac_f 11334 do 11335 case $ac_f in 11336 -) ac_f="$tmp/stdin";; 11337 *) # Look for the file first in the build tree, then in the source tree 11338 # (if the path is not absolute). The absolute path cannot be DOS-style, 11339 # because $ac_f cannot contain `:'. 11340 test -f "$ac_f" || 11341 case $ac_f in 11342 [\\/$]*) false;; 11343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11344 esac || 11345 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11346echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11347 { (exit 1); exit 1; }; };; 11348 esac 11349 ac_file_inputs="$ac_file_inputs $ac_f" 11350 done 11351 11352 # Let's still pretend it is `configure' which instantiates (i.e., don't 11353 # use $as_me), people would be surprised to read: 11354 # /* config.h. Generated by config.status. */ 11355 configure_input="Generated from "`IFS=: 11356 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11357 if test x"$ac_file" != x-; then 11358 configure_input="$ac_file. $configure_input" 11359 { echo "$as_me:$LINENO: creating $ac_file" >&5 11360echo "$as_me: creating $ac_file" >&6;} 11361 fi 11362 11363 case $ac_tag in 11364 *:-:* | *:-) cat >"$tmp/stdin";; 11365 esac 11366 ;; 11367 esac 11368 11369 ac_dir=`$as_dirname -- "$ac_file" || 11370$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11371 X"$ac_file" : 'X\(//\)[^/]' \| \ 11372 X"$ac_file" : 'X\(//\)$' \| \ 11373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11374echo X"$ac_file" | 11375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11376 s//\1/ 11377 q 11378 } 11379 /^X\(\/\/\)[^/].*/{ 11380 s//\1/ 11381 q 11382 } 11383 /^X\(\/\/\)$/{ 11384 s//\1/ 11385 q 11386 } 11387 /^X\(\/\).*/{ 11388 s//\1/ 11389 q 11390 } 11391 s/.*/./; q'` 11392 { as_dir="$ac_dir" 11393 case $as_dir in #( 11394 -*) as_dir=./$as_dir;; 11395 esac 11396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11397 as_dirs= 11398 while :; do 11399 case $as_dir in #( 11400 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11401 *) as_qdir=$as_dir;; 11402 esac 11403 as_dirs="'$as_qdir' $as_dirs" 11404 as_dir=`$as_dirname -- "$as_dir" || 11405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11406 X"$as_dir" : 'X\(//\)[^/]' \| \ 11407 X"$as_dir" : 'X\(//\)$' \| \ 11408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11409echo X"$as_dir" | 11410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11411 s//\1/ 11412 q 11413 } 11414 /^X\(\/\/\)[^/].*/{ 11415 s//\1/ 11416 q 11417 } 11418 /^X\(\/\/\)$/{ 11419 s//\1/ 11420 q 11421 } 11422 /^X\(\/\).*/{ 11423 s//\1/ 11424 q 11425 } 11426 s/.*/./; q'` 11427 test -d "$as_dir" && break 11428 done 11429 test -z "$as_dirs" || eval "mkdir $as_dirs" 11430 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11431echo "$as_me: error: cannot create directory $as_dir" >&2;} 11432 { (exit 1); exit 1; }; }; } 11433 ac_builddir=. 11434 11435case "$ac_dir" in 11436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11437*) 11438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11439 # A ".." for each directory in $ac_dir_suffix. 11440 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11441 case $ac_top_builddir_sub in 11442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11444 esac ;; 11445esac 11446ac_abs_top_builddir=$ac_pwd 11447ac_abs_builddir=$ac_pwd$ac_dir_suffix 11448# for backward compatibility: 11449ac_top_builddir=$ac_top_build_prefix 11450 11451case $srcdir in 11452 .) # We are building in place. 11453 ac_srcdir=. 11454 ac_top_srcdir=$ac_top_builddir_sub 11455 ac_abs_top_srcdir=$ac_pwd ;; 11456 [\\/]* | ?:[\\/]* ) # Absolute name. 11457 ac_srcdir=$srcdir$ac_dir_suffix; 11458 ac_top_srcdir=$srcdir 11459 ac_abs_top_srcdir=$srcdir ;; 11460 *) # Relative name. 11461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11462 ac_top_srcdir=$ac_top_build_prefix$srcdir 11463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11464esac 11465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11466 11467 11468 case $ac_mode in 11469 :F) 11470 # 11471 # CONFIG_FILE 11472 # 11473 11474 case $INSTALL in 11475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11477 esac 11478_ACEOF 11479 11480cat >>$CONFIG_STATUS <<\_ACEOF 11481# If the template does not know about datarootdir, expand it. 11482# FIXME: This hack should be removed a few years after 2.60. 11483ac_datarootdir_hack=; ac_datarootdir_seen= 11484 11485case `sed -n '/datarootdir/ { 11486 p 11487 q 11488} 11489/@datadir@/p 11490/@docdir@/p 11491/@infodir@/p 11492/@localedir@/p 11493/@mandir@/p 11494' $ac_file_inputs` in 11495*datarootdir*) ac_datarootdir_seen=yes;; 11496*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11497 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11498echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11499_ACEOF 11500cat >>$CONFIG_STATUS <<_ACEOF 11501 ac_datarootdir_hack=' 11502 s&@datadir@&$datadir&g 11503 s&@docdir@&$docdir&g 11504 s&@infodir@&$infodir&g 11505 s&@localedir@&$localedir&g 11506 s&@mandir@&$mandir&g 11507 s&\\\${datarootdir}&$datarootdir&g' ;; 11508esac 11509_ACEOF 11510 11511# Neutralize VPATH when `$srcdir' = `.'. 11512# Shell code in configure.ac might set extrasub. 11513# FIXME: do we really want to maintain this feature? 11514cat >>$CONFIG_STATUS <<_ACEOF 11515 sed "$ac_vpsub 11516$extrasub 11517_ACEOF 11518cat >>$CONFIG_STATUS <<\_ACEOF 11519:t 11520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11521s&@configure_input@&$configure_input&;t t 11522s&@top_builddir@&$ac_top_builddir_sub&;t t 11523s&@srcdir@&$ac_srcdir&;t t 11524s&@abs_srcdir@&$ac_abs_srcdir&;t t 11525s&@top_srcdir@&$ac_top_srcdir&;t t 11526s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11527s&@builddir@&$ac_builddir&;t t 11528s&@abs_builddir@&$ac_abs_builddir&;t t 11529s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11530s&@INSTALL@&$ac_INSTALL&;t t 11531$ac_datarootdir_hack 11532" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11533 11534test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11535 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11536 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11537 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11538which seems to be undefined. Please make sure it is defined." >&5 11539echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11540which seems to be undefined. Please make sure it is defined." >&2;} 11541 11542 rm -f "$tmp/stdin" 11543 case $ac_file in 11544 -) cat "$tmp/out"; rm -f "$tmp/out";; 11545 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11546 esac 11547 ;; 11548 11549 11550 11551 esac 11552 11553done # for ac_tag 11554 11555 11556{ (exit 0); exit 0; } 11557_ACEOF 11558chmod +x $CONFIG_STATUS 11559ac_clean_files=$ac_clean_files_save 11560 11561 11562# configure is writing to config.log, and then calls config.status. 11563# config.status does its own redirection, appending to config.log. 11564# Unfortunately, on DOS this fails, as config.log is still kept open 11565# by configure, so config.status won't be able to write to it; its 11566# output is simply discarded. So we exec the FD to /dev/null, 11567# effectively closing config.log, so it can be properly (re)opened and 11568# appended to by config.status. When coming back to configure, we 11569# need to make the FD available again. 11570if test "$no_create" != yes; then 11571 ac_cs_success=: 11572 ac_config_status_args= 11573 test "$silent" = yes && 11574 ac_config_status_args="$ac_config_status_args --quiet" 11575 exec 5>/dev/null 11576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11577 exec 5>>config.log 11578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11579 # would make configure fail if this is the last instruction. 11580 $ac_cs_success || { (exit 1); exit 1; } 11581fi 11582 11583