1#! /bin/sh 2# From configure.in Id: configure.in. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for Memchan 2.2.1. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 7<&0 </dev/null 6>&1 554 555# Name of the host. 556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557# so uname gets run too. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME='Memchan' 575PACKAGE_TARNAME='memchan' 576PACKAGE_VERSION='2.2.1' 577PACKAGE_STRING='Memchan 2.2.1' 578PACKAGE_BUGREPORT='' 579 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CYGPATH 654EXEEXT 655PKG_LIB_FILE 656PKG_STUB_LIB_FILE 657PKG_STUB_SOURCES 658PKG_STUB_OBJECTS 659PKG_TCL_SOURCES 660PKG_HEADERS 661PKG_INCLUDES 662PKG_LIBS 663PKG_CFLAGS 664TCL_VERSION 665TCL_PATCH_LEVEL 666TCL_BIN_DIR 667TCL_SRC_DIR 668TCL_LIB_FILE 669TCL_LIB_FLAG 670TCL_LIB_SPEC 671TCL_STUB_LIB_FILE 672TCL_STUB_LIB_FLAG 673TCL_STUB_LIB_SPEC 674CLEANFILES 675TCL_LIBS 676TCL_DEFS 677TCL_EXTRA_CFLAGS 678TCL_LD_FLAGS 679TCL_SHLIB_LD_LIBS 680CC 681CFLAGS 682LDFLAGS 683CPPFLAGS 684ac_ct_CC 685OBJEXT 686CPP 687INSTALL_PROGRAM 688INSTALL_SCRIPT 689INSTALL_DATA 690SET_MAKE 691RANLIB 692GREP 693EGREP 694MATH_LIBS 695PKG_SOURCES 696PKG_OBJECTS 697TCL_INCLUDES 698TCL_THREADS 699SHARED_BUILD 700AR 701CELIB_DIR 702CFLAGS_DEBUG 703CFLAGS_OPTIMIZE 704CFLAGS_WARNING 705STLIB_LD 706SHLIB_LD 707SHLIB_LD_LIBS 708SHLIB_CFLAGS 709LD_LIBRARY_PATH_VAR 710SHLIB_SUFFIX 711CFLAGS_DEFAULT 712LDFLAGS_DEFAULT 713TCL_DBGX 714MAKE_LIB 715MAKE_SHARED_LIB 716MAKE_STATIC_LIB 717MAKE_STUB_LIB 718RANLIB_STUB 719VC_MANIFEST_EMBED_DLL 720VC_MANIFEST_EMBED_EXE 721TCLSH_PROG 722LIBOBJS 723LTLIBOBJS' 724ac_subst_files='' 725 ac_precious_vars='build_alias 726host_alias 727target_alias 728CC 729CFLAGS 730LDFLAGS 731LIBS 732CPPFLAGS 733CPP' 734 735 736# Initialize some variables set by options. 737ac_init_help= 738ac_init_version=false 739# The variables have the same names as the options, with 740# dashes changed to underlines. 741cache_file=/dev/null 742exec_prefix=NONE 743no_create= 744no_recursion= 745prefix=NONE 746program_prefix=NONE 747program_suffix=NONE 748program_transform_name=s,x,x, 749silent= 750site= 751srcdir= 752verbose= 753x_includes=NONE 754x_libraries=NONE 755 756# Installation directory options. 757# These are left unexpanded so users can "make install exec_prefix=/foo" 758# and all the variables that are supposed to be based on exec_prefix 759# by default will actually change. 760# Use braces instead of parens because sh, perl, etc. also accept them. 761# (The list follows the same order as the GNU Coding Standards.) 762bindir='${exec_prefix}/bin' 763sbindir='${exec_prefix}/sbin' 764libexecdir='${exec_prefix}/libexec' 765datarootdir='${prefix}/share' 766datadir='${datarootdir}' 767sysconfdir='${prefix}/etc' 768sharedstatedir='${prefix}/com' 769localstatedir='${prefix}/var' 770includedir='${prefix}/include' 771oldincludedir='/usr/include' 772docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 773infodir='${datarootdir}/info' 774htmldir='${docdir}' 775dvidir='${docdir}' 776pdfdir='${docdir}' 777psdir='${docdir}' 778libdir='${exec_prefix}/lib' 779localedir='${datarootdir}/locale' 780mandir='${datarootdir}/man' 781 782ac_prev= 783ac_dashdash= 784for ac_option 785do 786 # If the previous option needs an argument, assign it. 787 if test -n "$ac_prev"; then 788 eval $ac_prev=\$ac_option 789 ac_prev= 790 continue 791 fi 792 793 case $ac_option in 794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 795 *) ac_optarg=yes ;; 796 esac 797 798 # Accept the important Cygnus configure options, so we can diagnose typos. 799 800 case $ac_dashdash$ac_option in 801 --) 802 ac_dashdash=yes ;; 803 804 -bindir | --bindir | --bindi | --bind | --bin | --bi) 805 ac_prev=bindir ;; 806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 807 bindir=$ac_optarg ;; 808 809 -build | --build | --buil | --bui | --bu) 810 ac_prev=build_alias ;; 811 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 812 build_alias=$ac_optarg ;; 813 814 -cache-file | --cache-file | --cache-fil | --cache-fi \ 815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 816 ac_prev=cache_file ;; 817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 819 cache_file=$ac_optarg ;; 820 821 --config-cache | -C) 822 cache_file=config.cache ;; 823 824 -datadir | --datadir | --datadi | --datad) 825 ac_prev=datadir ;; 826 -datadir=* | --datadir=* | --datadi=* | --datad=*) 827 datadir=$ac_optarg ;; 828 829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 830 | --dataroo | --dataro | --datar) 831 ac_prev=datarootdir ;; 832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 834 datarootdir=$ac_optarg ;; 835 836 -disable-* | --disable-*) 837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 838 # Reject names that are not valid shell variable names. 839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 841 { (exit 1); exit 1; }; } 842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 843 eval enable_$ac_feature=no ;; 844 845 -docdir | --docdir | --docdi | --doc | --do) 846 ac_prev=docdir ;; 847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 848 docdir=$ac_optarg ;; 849 850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 851 ac_prev=dvidir ;; 852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 853 dvidir=$ac_optarg ;; 854 855 -enable-* | --enable-*) 856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 860 { (exit 1); exit 1; }; } 861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 862 eval enable_$ac_feature=\$ac_optarg ;; 863 864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 866 | --exec | --exe | --ex) 867 ac_prev=exec_prefix ;; 868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 870 | --exec=* | --exe=* | --ex=*) 871 exec_prefix=$ac_optarg ;; 872 873 -gas | --gas | --ga | --g) 874 # Obsolete; use --with-gas. 875 with_gas=yes ;; 876 877 -help | --help | --hel | --he | -h) 878 ac_init_help=long ;; 879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 880 ac_init_help=recursive ;; 881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 882 ac_init_help=short ;; 883 884 -host | --host | --hos | --ho) 885 ac_prev=host_alias ;; 886 -host=* | --host=* | --hos=* | --ho=*) 887 host_alias=$ac_optarg ;; 888 889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 890 ac_prev=htmldir ;; 891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 892 | --ht=*) 893 htmldir=$ac_optarg ;; 894 895 -includedir | --includedir | --includedi | --included | --include \ 896 | --includ | --inclu | --incl | --inc) 897 ac_prev=includedir ;; 898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 899 | --includ=* | --inclu=* | --incl=* | --inc=*) 900 includedir=$ac_optarg ;; 901 902 -infodir | --infodir | --infodi | --infod | --info | --inf) 903 ac_prev=infodir ;; 904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 905 infodir=$ac_optarg ;; 906 907 -libdir | --libdir | --libdi | --libd) 908 ac_prev=libdir ;; 909 -libdir=* | --libdir=* | --libdi=* | --libd=*) 910 libdir=$ac_optarg ;; 911 912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 913 | --libexe | --libex | --libe) 914 ac_prev=libexecdir ;; 915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 916 | --libexe=* | --libex=* | --libe=*) 917 libexecdir=$ac_optarg ;; 918 919 -localedir | --localedir | --localedi | --localed | --locale) 920 ac_prev=localedir ;; 921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 922 localedir=$ac_optarg ;; 923 924 -localstatedir | --localstatedir | --localstatedi | --localstated \ 925 | --localstate | --localstat | --localsta | --localst | --locals) 926 ac_prev=localstatedir ;; 927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 929 localstatedir=$ac_optarg ;; 930 931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 932 ac_prev=mandir ;; 933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 934 mandir=$ac_optarg ;; 935 936 -nfp | --nfp | --nf) 937 # Obsolete; use --without-fp. 938 with_fp=no ;; 939 940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 941 | --no-cr | --no-c | -n) 942 no_create=yes ;; 943 944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 946 no_recursion=yes ;; 947 948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 950 | --oldin | --oldi | --old | --ol | --o) 951 ac_prev=oldincludedir ;; 952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 955 oldincludedir=$ac_optarg ;; 956 957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 958 ac_prev=prefix ;; 959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 960 prefix=$ac_optarg ;; 961 962 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 963 | --program-pre | --program-pr | --program-p) 964 ac_prev=program_prefix ;; 965 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 967 program_prefix=$ac_optarg ;; 968 969 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 970 | --program-suf | --program-su | --program-s) 971 ac_prev=program_suffix ;; 972 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 974 program_suffix=$ac_optarg ;; 975 976 -program-transform-name | --program-transform-name \ 977 | --program-transform-nam | --program-transform-na \ 978 | --program-transform-n | --program-transform- \ 979 | --program-transform | --program-transfor \ 980 | --program-transfo | --program-transf \ 981 | --program-trans | --program-tran \ 982 | --progr-tra | --program-tr | --program-t) 983 ac_prev=program_transform_name ;; 984 -program-transform-name=* | --program-transform-name=* \ 985 | --program-transform-nam=* | --program-transform-na=* \ 986 | --program-transform-n=* | --program-transform-=* \ 987 | --program-transform=* | --program-transfor=* \ 988 | --program-transfo=* | --program-transf=* \ 989 | --program-trans=* | --program-tran=* \ 990 | --progr-tra=* | --program-tr=* | --program-t=*) 991 program_transform_name=$ac_optarg ;; 992 993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 994 ac_prev=pdfdir ;; 995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 996 pdfdir=$ac_optarg ;; 997 998 -psdir | --psdir | --psdi | --psd | --ps) 999 ac_prev=psdir ;; 1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1001 psdir=$ac_optarg ;; 1002 1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1004 | -silent | --silent | --silen | --sile | --sil) 1005 silent=yes ;; 1006 1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1008 ac_prev=sbindir ;; 1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1010 | --sbi=* | --sb=*) 1011 sbindir=$ac_optarg ;; 1012 1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1015 | --sharedst | --shareds | --shared | --share | --shar \ 1016 | --sha | --sh) 1017 ac_prev=sharedstatedir ;; 1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1021 | --sha=* | --sh=*) 1022 sharedstatedir=$ac_optarg ;; 1023 1024 -site | --site | --sit) 1025 ac_prev=site ;; 1026 -site=* | --site=* | --sit=*) 1027 site=$ac_optarg ;; 1028 1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1030 ac_prev=srcdir ;; 1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1032 srcdir=$ac_optarg ;; 1033 1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1035 | --syscon | --sysco | --sysc | --sys | --sy) 1036 ac_prev=sysconfdir ;; 1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1039 sysconfdir=$ac_optarg ;; 1040 1041 -target | --target | --targe | --targ | --tar | --ta | --t) 1042 ac_prev=target_alias ;; 1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1044 target_alias=$ac_optarg ;; 1045 1046 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1047 verbose=yes ;; 1048 1049 -version | --version | --versio | --versi | --vers | -V) 1050 ac_init_version=: ;; 1051 1052 -with-* | --with-*) 1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1056 { echo "$as_me: error: invalid package name: $ac_package" >&2 1057 { (exit 1); exit 1; }; } 1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1059 eval with_$ac_package=\$ac_optarg ;; 1060 1061 -without-* | --without-*) 1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1065 { echo "$as_me: error: invalid package name: $ac_package" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1068 eval with_$ac_package=no ;; 1069 1070 --x) 1071 # Obsolete; use --with-x. 1072 with_x=yes ;; 1073 1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1075 | --x-incl | --x-inc | --x-in | --x-i) 1076 ac_prev=x_includes ;; 1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1079 x_includes=$ac_optarg ;; 1080 1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1083 ac_prev=x_libraries ;; 1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1086 x_libraries=$ac_optarg ;; 1087 1088 -*) { echo "$as_me: error: unrecognized option: $ac_option 1089Try \`$0 --help' for more information." >&2 1090 { (exit 1); exit 1; }; } 1091 ;; 1092 1093 *=*) 1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1095 # Reject names that are not valid shell variable names. 1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1098 { (exit 1); exit 1; }; } 1099 eval $ac_envvar=\$ac_optarg 1100 export $ac_envvar ;; 1101 1102 *) 1103 # FIXME: should be removed in autoconf 3.0. 1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1108 ;; 1109 1110 esac 1111done 1112 1113if test -n "$ac_prev"; then 1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1115 { echo "$as_me: error: missing argument to $ac_option" >&2 1116 { (exit 1); exit 1; }; } 1117fi 1118 1119# Be sure to have absolute directory names. 1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1121 datadir sysconfdir sharedstatedir localstatedir includedir \ 1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1123 libdir localedir mandir 1124do 1125 eval ac_val=\$$ac_var 1126 case $ac_val in 1127 [\\/$]* | ?:[\\/]* ) continue;; 1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1129 esac 1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1131 { (exit 1); exit 1; }; } 1132done 1133 1134# There might be people who depend on the old broken behavior: `$host' 1135# used to hold the argument of --host etc. 1136# FIXME: To remove some day. 1137build=$build_alias 1138host=$host_alias 1139target=$target_alias 1140 1141# FIXME: To remove some day. 1142if test "x$host_alias" != x; then 1143 if test "x$build_alias" = x; then 1144 cross_compiling=maybe 1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1146 If a cross compiler is detected then cross compile mode will be used." >&2 1147 elif test "x$build_alias" != "x$host_alias"; then 1148 cross_compiling=yes 1149 fi 1150fi 1151 1152ac_tool_prefix= 1153test -n "$host_alias" && ac_tool_prefix=$host_alias- 1154 1155test "$silent" = yes && exec 6>/dev/null 1156 1157 1158ac_pwd=`pwd` && test -n "$ac_pwd" && 1159ac_ls_di=`ls -di .` && 1160ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1161 { echo "$as_me: error: Working directory cannot be determined" >&2 1162 { (exit 1); exit 1; }; } 1163test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1164 { echo "$as_me: error: pwd does not report name of working directory" >&2 1165 { (exit 1); exit 1; }; } 1166 1167 1168# Find the source files, if location was not specified. 1169if test -z "$srcdir"; then 1170 ac_srcdir_defaulted=yes 1171 # Try the directory containing this script, then the parent directory. 1172 ac_confdir=`$as_dirname -- "$0" || 1173$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1174 X"$0" : 'X\(//\)[^/]' \| \ 1175 X"$0" : 'X\(//\)$' \| \ 1176 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1177echo X"$0" | 1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1179 s//\1/ 1180 q 1181 } 1182 /^X\(\/\/\)[^/].*/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\/\)$/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\).*/{ 1191 s//\1/ 1192 q 1193 } 1194 s/.*/./; q'` 1195 srcdir=$ac_confdir 1196 if test ! -r "$srcdir/$ac_unique_file"; then 1197 srcdir=.. 1198 fi 1199else 1200 ac_srcdir_defaulted=no 1201fi 1202if test ! -r "$srcdir/$ac_unique_file"; then 1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1205 { (exit 1); exit 1; }; } 1206fi 1207ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1208ac_abs_confdir=`( 1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1210 { (exit 1); exit 1; }; } 1211 pwd)` 1212# When building in place, set srcdir=. 1213if test "$ac_abs_confdir" = "$ac_pwd"; then 1214 srcdir=. 1215fi 1216# Remove unnecessary trailing slashes from srcdir. 1217# Double slashes in file names in object file debugging info 1218# mess up M-x gdb in Emacs. 1219case $srcdir in 1220*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1221esac 1222for ac_var in $ac_precious_vars; do 1223 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1224 eval ac_env_${ac_var}_value=\$${ac_var} 1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1226 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1227done 1228 1229# 1230# Report the --help message. 1231# 1232if test "$ac_init_help" = "long"; then 1233 # Omit some internal or obsolete options to make the list less imposing. 1234 # This message is too long to be a string in the A/UX 3.1 sh. 1235 cat <<_ACEOF 1236\`configure' configures Memchan 2.2.1 to adapt to many kinds of systems. 1237 1238Usage: $0 [OPTION]... [VAR=VALUE]... 1239 1240To assign environment variables (e.g., CC, CFLAGS...), specify them as 1241VAR=VALUE. See below for descriptions of some of the useful variables. 1242 1243Defaults for the options are specified in brackets. 1244 1245Configuration: 1246 -h, --help display this help and exit 1247 --help=short display options specific to this package 1248 --help=recursive display the short help of all the included packages 1249 -V, --version display version information and exit 1250 -q, --quiet, --silent do not print \`checking...' messages 1251 --cache-file=FILE cache test results in FILE [disabled] 1252 -C, --config-cache alias for \`--cache-file=config.cache' 1253 -n, --no-create do not create output files 1254 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1255 1256Installation directories: 1257 --prefix=PREFIX install architecture-independent files in PREFIX 1258 [$ac_default_prefix] 1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1260 [PREFIX] 1261 1262By default, \`make install' will install all the files in 1263\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1264an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1265for instance \`--prefix=\$HOME'. 1266 1267For better control, use the options below. 1268 1269Fine tuning of the installation directories: 1270 --bindir=DIR user executables [EPREFIX/bin] 1271 --sbindir=DIR system admin executables [EPREFIX/sbin] 1272 --libexecdir=DIR program executables [EPREFIX/libexec] 1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1276 --libdir=DIR object code libraries [EPREFIX/lib] 1277 --includedir=DIR C header files [PREFIX/include] 1278 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1281 --infodir=DIR info documentation [DATAROOTDIR/info] 1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1283 --mandir=DIR man documentation [DATAROOTDIR/man] 1284 --docdir=DIR documentation root [DATAROOTDIR/doc/memchan] 1285 --htmldir=DIR html documentation [DOCDIR] 1286 --dvidir=DIR dvi documentation [DOCDIR] 1287 --pdfdir=DIR pdf documentation [DOCDIR] 1288 --psdir=DIR ps documentation [DOCDIR] 1289_ACEOF 1290 1291 cat <<\_ACEOF 1292_ACEOF 1293fi 1294 1295if test -n "$ac_init_help"; then 1296 case $ac_init_help in 1297 short | recursive ) echo "Configuration of Memchan 2.2.1:";; 1298 esac 1299 cat <<\_ACEOF 1300 1301Optional Features: 1302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1304 --enable-threads build with threads 1305 --enable-shared build and link with shared libraries (default: on) 1306 --enable-64bit enable 64bit support (default: off) 1307 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1308 --disable-rpath disable rpath support (default: on) 1309 --enable-wince enable Win/CE support (where applicable) 1310 --enable-symbols build with debugging symbols (default: off) 1311 1312Optional Packages: 1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1315 --with-tcl directory containing tcl configuration 1316 (tclConfig.sh) 1317 --with-tclinclude directory containing the public Tcl header files 1318 --with-celib=DIR use Windows/CE support library from DIR 1319 1320Some influential environment variables: 1321 CC C compiler command 1322 CFLAGS C compiler flags 1323 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1324 nonstandard directory <lib dir> 1325 LIBS libraries to pass to the linker, e.g. -l<library> 1326 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1327 you have headers in a nonstandard directory <include dir> 1328 CPP C preprocessor 1329 1330Use these variables to override the choices made by `configure' or to help 1331it to find libraries and programs with nonstandard names/locations. 1332 1333_ACEOF 1334ac_status=$? 1335fi 1336 1337if test "$ac_init_help" = "recursive"; then 1338 # If there are subdirs, report their specific --help. 1339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1340 test -d "$ac_dir" || continue 1341 ac_builddir=. 1342 1343case "$ac_dir" in 1344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1345*) 1346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1347 # A ".." for each directory in $ac_dir_suffix. 1348 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1349 case $ac_top_builddir_sub in 1350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1352 esac ;; 1353esac 1354ac_abs_top_builddir=$ac_pwd 1355ac_abs_builddir=$ac_pwd$ac_dir_suffix 1356# for backward compatibility: 1357ac_top_builddir=$ac_top_build_prefix 1358 1359case $srcdir in 1360 .) # We are building in place. 1361 ac_srcdir=. 1362 ac_top_srcdir=$ac_top_builddir_sub 1363 ac_abs_top_srcdir=$ac_pwd ;; 1364 [\\/]* | ?:[\\/]* ) # Absolute name. 1365 ac_srcdir=$srcdir$ac_dir_suffix; 1366 ac_top_srcdir=$srcdir 1367 ac_abs_top_srcdir=$srcdir ;; 1368 *) # Relative name. 1369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1370 ac_top_srcdir=$ac_top_build_prefix$srcdir 1371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1372esac 1373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1374 1375 cd "$ac_dir" || { ac_status=$?; continue; } 1376 # Check for guested configure. 1377 if test -f "$ac_srcdir/configure.gnu"; then 1378 echo && 1379 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1380 elif test -f "$ac_srcdir/configure"; then 1381 echo && 1382 $SHELL "$ac_srcdir/configure" --help=recursive 1383 else 1384 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1385 fi || ac_status=$? 1386 cd "$ac_pwd" || { ac_status=$?; break; } 1387 done 1388fi 1389 1390test -n "$ac_init_help" && exit $ac_status 1391if $ac_init_version; then 1392 cat <<\_ACEOF 1393Memchan configure 2.2.1 1394generated by GNU Autoconf 2.61 1395 1396Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1398This configure script is free software; the Free Software Foundation 1399gives unlimited permission to copy, distribute and modify it. 1400_ACEOF 1401 exit 1402fi 1403cat >config.log <<_ACEOF 1404This file contains any messages produced by compilers while 1405running configure, to aid debugging if configure makes a mistake. 1406 1407It was created by Memchan $as_me 2.2.1, which was 1408generated by GNU Autoconf 2.61. Invocation command line was 1409 1410 $ $0 $@ 1411 1412_ACEOF 1413exec 5>>config.log 1414{ 1415cat <<_ASUNAME 1416## --------- ## 1417## Platform. ## 1418## --------- ## 1419 1420hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1421uname -m = `(uname -m) 2>/dev/null || echo unknown` 1422uname -r = `(uname -r) 2>/dev/null || echo unknown` 1423uname -s = `(uname -s) 2>/dev/null || echo unknown` 1424uname -v = `(uname -v) 2>/dev/null || echo unknown` 1425 1426/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1427/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1428 1429/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1430/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1431/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1432/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1433/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1434/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1435/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1436 1437_ASUNAME 1438 1439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1440for as_dir in $PATH 1441do 1442 IFS=$as_save_IFS 1443 test -z "$as_dir" && as_dir=. 1444 echo "PATH: $as_dir" 1445done 1446IFS=$as_save_IFS 1447 1448} >&5 1449 1450cat >&5 <<_ACEOF 1451 1452 1453## ----------- ## 1454## Core tests. ## 1455## ----------- ## 1456 1457_ACEOF 1458 1459 1460# Keep a trace of the command line. 1461# Strip out --no-create and --no-recursion so they do not pile up. 1462# Strip out --silent because we don't want to record it for future runs. 1463# Also quote any args containing shell meta-characters. 1464# Make two passes to allow for proper duplicate-argument suppression. 1465ac_configure_args= 1466ac_configure_args0= 1467ac_configure_args1= 1468ac_must_keep_next=false 1469for ac_pass in 1 2 1470do 1471 for ac_arg 1472 do 1473 case $ac_arg in 1474 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1476 | -silent | --silent | --silen | --sile | --sil) 1477 continue ;; 1478 *\'*) 1479 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1480 esac 1481 case $ac_pass in 1482 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1483 2) 1484 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1485 if test $ac_must_keep_next = true; then 1486 ac_must_keep_next=false # Got value, back to normal. 1487 else 1488 case $ac_arg in 1489 *=* | --config-cache | -C | -disable-* | --disable-* \ 1490 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1491 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1492 | -with-* | --with-* | -without-* | --without-* | --x) 1493 case "$ac_configure_args0 " in 1494 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1495 esac 1496 ;; 1497 -* ) ac_must_keep_next=true ;; 1498 esac 1499 fi 1500 ac_configure_args="$ac_configure_args '$ac_arg'" 1501 ;; 1502 esac 1503 done 1504done 1505$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1506$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1507 1508# When interrupted or exit'd, cleanup temporary files, and complete 1509# config.log. We remove comments because anyway the quotes in there 1510# would cause problems or look ugly. 1511# WARNING: Use '\'' to represent an apostrophe within the trap. 1512# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1513trap 'exit_status=$? 1514 # Save into config.log some information that might help in debugging. 1515 { 1516 echo 1517 1518 cat <<\_ASBOX 1519## ---------------- ## 1520## Cache variables. ## 1521## ---------------- ## 1522_ASBOX 1523 echo 1524 # The following way of writing the cache mishandles newlines in values, 1525( 1526 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1527 eval ac_val=\$$ac_var 1528 case $ac_val in #( 1529 *${as_nl}*) 1530 case $ac_var in #( 1531 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1532echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1533 esac 1534 case $ac_var in #( 1535 _ | IFS | as_nl) ;; #( 1536 *) $as_unset $ac_var ;; 1537 esac ;; 1538 esac 1539 done 1540 (set) 2>&1 | 1541 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1542 *${as_nl}ac_space=\ *) 1543 sed -n \ 1544 "s/'\''/'\''\\\\'\'''\''/g; 1545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1546 ;; #( 1547 *) 1548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1549 ;; 1550 esac | 1551 sort 1552) 1553 echo 1554 1555 cat <<\_ASBOX 1556## ----------------- ## 1557## Output variables. ## 1558## ----------------- ## 1559_ASBOX 1560 echo 1561 for ac_var in $ac_subst_vars 1562 do 1563 eval ac_val=\$$ac_var 1564 case $ac_val in 1565 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1566 esac 1567 echo "$ac_var='\''$ac_val'\''" 1568 done | sort 1569 echo 1570 1571 if test -n "$ac_subst_files"; then 1572 cat <<\_ASBOX 1573## ------------------- ## 1574## File substitutions. ## 1575## ------------------- ## 1576_ASBOX 1577 echo 1578 for ac_var in $ac_subst_files 1579 do 1580 eval ac_val=\$$ac_var 1581 case $ac_val in 1582 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1583 esac 1584 echo "$ac_var='\''$ac_val'\''" 1585 done | sort 1586 echo 1587 fi 1588 1589 if test -s confdefs.h; then 1590 cat <<\_ASBOX 1591## ----------- ## 1592## confdefs.h. ## 1593## ----------- ## 1594_ASBOX 1595 echo 1596 cat confdefs.h 1597 echo 1598 fi 1599 test "$ac_signal" != 0 && 1600 echo "$as_me: caught signal $ac_signal" 1601 echo "$as_me: exit $exit_status" 1602 } >&5 1603 rm -f core *.core core.conftest.* && 1604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1605 exit $exit_status 1606' 0 1607for ac_signal in 1 2 13 15; do 1608 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1609done 1610ac_signal=0 1611 1612# confdefs.h avoids OS command line length limits that DEFS can exceed. 1613rm -f -r conftest* confdefs.h 1614 1615# Predefined preprocessor variables. 1616 1617cat >>confdefs.h <<_ACEOF 1618#define PACKAGE_NAME "$PACKAGE_NAME" 1619_ACEOF 1620 1621 1622cat >>confdefs.h <<_ACEOF 1623#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1624_ACEOF 1625 1626 1627cat >>confdefs.h <<_ACEOF 1628#define PACKAGE_VERSION "$PACKAGE_VERSION" 1629_ACEOF 1630 1631 1632cat >>confdefs.h <<_ACEOF 1633#define PACKAGE_STRING "$PACKAGE_STRING" 1634_ACEOF 1635 1636 1637cat >>confdefs.h <<_ACEOF 1638#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1639_ACEOF 1640 1641 1642# Let the site file select an alternate cache file if it wants to. 1643# Prefer explicitly selected file to automatically selected ones. 1644if test -n "$CONFIG_SITE"; then 1645 set x "$CONFIG_SITE" 1646elif test "x$prefix" != xNONE; then 1647 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1648else 1649 set x "$ac_default_prefix/share/config.site" \ 1650 "$ac_default_prefix/etc/config.site" 1651fi 1652shift 1653for ac_site_file 1654do 1655 if test -r "$ac_site_file"; then 1656 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1657echo "$as_me: loading site script $ac_site_file" >&6;} 1658 sed 's/^/| /' "$ac_site_file" >&5 1659 . "$ac_site_file" 1660 fi 1661done 1662 1663if test -r "$cache_file"; then 1664 # Some versions of bash will fail to source /dev/null (special 1665 # files actually), so we avoid doing that. 1666 if test -f "$cache_file"; then 1667 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1668echo "$as_me: loading cache $cache_file" >&6;} 1669 case $cache_file in 1670 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1671 *) . "./$cache_file";; 1672 esac 1673 fi 1674else 1675 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1676echo "$as_me: creating cache $cache_file" >&6;} 1677 >$cache_file 1678fi 1679 1680# Check that the precious variables saved in the cache have kept the same 1681# value. 1682ac_cache_corrupted=false 1683for ac_var in $ac_precious_vars; do 1684 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1685 eval ac_new_set=\$ac_env_${ac_var}_set 1686 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1687 eval ac_new_val=\$ac_env_${ac_var}_value 1688 case $ac_old_set,$ac_new_set in 1689 set,) 1690 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1691echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1692 ac_cache_corrupted=: ;; 1693 ,set) 1694 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1695echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1696 ac_cache_corrupted=: ;; 1697 ,);; 1698 *) 1699 if test "x$ac_old_val" != "x$ac_new_val"; then 1700 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1701echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1702 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1703echo "$as_me: former value: $ac_old_val" >&2;} 1704 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1705echo "$as_me: current value: $ac_new_val" >&2;} 1706 ac_cache_corrupted=: 1707 fi;; 1708 esac 1709 # Pass precious variables to config.status. 1710 if test "$ac_new_set" = set; then 1711 case $ac_new_val in 1712 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1713 *) ac_arg=$ac_var=$ac_new_val ;; 1714 esac 1715 case " $ac_configure_args " in 1716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1717 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1718 esac 1719 fi 1720done 1721if $ac_cache_corrupted; then 1722 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1723echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1724 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1725echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1726 { (exit 1); exit 1; }; } 1727fi 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753ac_ext=c 1754ac_cpp='$CPP $CPPFLAGS' 1755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1757ac_compiler_gnu=$ac_cv_c_compiler_gnu 1758 1759 1760 1761 1762 # TEA extensions pass this us the version of TEA they think they 1763 # are compatible with. 1764 TEA_VERSION="3.9" 1765 1766 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1767echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1768 if test x"${PACKAGE_NAME}" = x ; then 1769 { { echo "$as_me:$LINENO: error: 1770The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1771echo "$as_me: error: 1772The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1773 { (exit 1); exit 1; }; } 1774 fi 1775 if test x"3.9" = x ; then 1776 { { echo "$as_me:$LINENO: error: 1777TEA version not specified." >&5 1778echo "$as_me: error: 1779TEA version not specified." >&2;} 1780 { (exit 1); exit 1; }; } 1781 elif test "3.9" != "${TEA_VERSION}" ; then 1782 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1783echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1784 else 1785 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1786echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1787 fi 1788 case "`uname -s`" in 1789 *win32*|*WIN32*|*MINGW32_*) 1790 # Extract the first word of "cygpath", so it can be a program name with args. 1791set dummy cygpath; ac_word=$2 1792{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1794if test "${ac_cv_prog_CYGPATH+set}" = set; then 1795 echo $ECHO_N "(cached) $ECHO_C" >&6 1796else 1797 if test -n "$CYGPATH"; then 1798 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1799else 1800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1801for as_dir in $PATH 1802do 1803 IFS=$as_save_IFS 1804 test -z "$as_dir" && as_dir=. 1805 for ac_exec_ext in '' $ac_executable_extensions; do 1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1807 ac_cv_prog_CYGPATH="cygpath -w" 1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1809 break 2 1810 fi 1811done 1812done 1813IFS=$as_save_IFS 1814 1815 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1816fi 1817fi 1818CYGPATH=$ac_cv_prog_CYGPATH 1819if test -n "$CYGPATH"; then 1820 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1821echo "${ECHO_T}$CYGPATH" >&6; } 1822else 1823 { echo "$as_me:$LINENO: result: no" >&5 1824echo "${ECHO_T}no" >&6; } 1825fi 1826 1827 1828 EXEEXT=".exe" 1829 TEA_PLATFORM="windows" 1830 ;; 1831 *CYGWIN_*) 1832 CYGPATH=echo 1833 EXEEXT=".exe" 1834 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1835 ;; 1836 *) 1837 CYGPATH=echo 1838 EXEEXT="" 1839 TEA_PLATFORM="unix" 1840 ;; 1841 esac 1842 1843 # Check if exec_prefix is set. If not use fall back to prefix. 1844 # Note when adjusted, so that TEA_PREFIX can correct for this. 1845 # This is needed for recursive configures, since autoconf propagates 1846 # $prefix, but not $exec_prefix (doh!). 1847 if test x$exec_prefix = xNONE ; then 1848 exec_prefix_default=yes 1849 exec_prefix=$prefix 1850 fi 1851 1852 1853 1854 1855 # This package name must be replaced statically for AC_SUBST to work 1856 1857 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1858 1859 1860 # We AC_SUBST these here to ensure they are subst'ed, 1861 # in case the user doesn't call TEA_ADD_... 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871ac_aux_dir= 1872for ac_dir in tclconfig "$srcdir"/tclconfig; do 1873 if test -f "$ac_dir/install-sh"; then 1874 ac_aux_dir=$ac_dir 1875 ac_install_sh="$ac_aux_dir/install-sh -c" 1876 break 1877 elif test -f "$ac_dir/install.sh"; then 1878 ac_aux_dir=$ac_dir 1879 ac_install_sh="$ac_aux_dir/install.sh -c" 1880 break 1881 elif test -f "$ac_dir/shtool"; then 1882 ac_aux_dir=$ac_dir 1883 ac_install_sh="$ac_aux_dir/shtool install -c" 1884 break 1885 fi 1886done 1887if test -z "$ac_aux_dir"; then 1888 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1889echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1890 { (exit 1); exit 1; }; } 1891fi 1892 1893# These three variables are undocumented and unsupported, 1894# and are intended to be withdrawn in a future Autoconf release. 1895# They can cause serious problems if a builder's source tree is in a directory 1896# whose full name contains unusual characters. 1897ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1898ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1899ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1900 1901 1902 1903#-------------------------------------------------------------------- 1904# Configure script for package 'Memchan', as distributed at March 18, 2005. 1905# TEA compliant. 1906#-------------------------------------------------------------------- 1907 1908#-------------------------------------------------------------------- 1909# Load the tclConfig.sh file 1910#-------------------------------------------------------------------- 1911 1912 1913 1914 # 1915 # Ok, lets find the tcl configuration 1916 # First, look for one uninstalled. 1917 # the alternative search directory is invoked by --with-tcl 1918 # 1919 1920 if test x"${no_tcl}" = x ; then 1921 # we reset no_tcl in case something fails here 1922 no_tcl=true 1923 1924# Check whether --with-tcl was given. 1925if test "${with_tcl+set}" = set; then 1926 withval=$with_tcl; with_tclconfig="${withval}" 1927fi 1928 1929 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1930echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1931 if test "${ac_cv_c_tclconfig+set}" = set; then 1932 echo $ECHO_N "(cached) $ECHO_C" >&6 1933else 1934 1935 1936 # First check to see if --with-tcl was specified. 1937 if test x"${with_tclconfig}" != x ; then 1938 case "${with_tclconfig}" in 1939 */tclConfig.sh ) 1940 if test -f "${with_tclconfig}"; then 1941 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1942echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1943 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1944 fi ;; 1945 esac 1946 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1947 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1948 else 1949 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1950echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1951 { (exit 1); exit 1; }; } 1952 fi 1953 fi 1954 1955 # then check for a private Tcl installation 1956 if test x"${ac_cv_c_tclconfig}" = x ; then 1957 for i in \ 1958 ../tcl \ 1959 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1960 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1961 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 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` ; do 1970 if test "${TEA_PLATFORM}" = "windows" \ 1971 -a -f "$i/win/tclConfig.sh" ; then 1972 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1973 break 1974 fi 1975 if test -f "$i/unix/tclConfig.sh" ; then 1976 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1977 break 1978 fi 1979 done 1980 fi 1981 1982 # on Darwin, check in Framework installation locations 1983 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1984 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1985 `ls -d /Library/Frameworks 2>/dev/null` \ 1986 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1987 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1988 ; do 1989 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1990 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1991 break 1992 fi 1993 done 1994 fi 1995 1996 # TEA specific: on Windows, check in common installation locations 1997 if test "${TEA_PLATFORM}" = "windows" \ 1998 -a x"${ac_cv_c_tclconfig}" = x ; then 1999 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2000 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2001 ; do 2002 if test -f "$i/tclConfig.sh" ; then 2003 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2004 break 2005 fi 2006 done 2007 fi 2008 2009 # check in a few common install locations 2010 if test x"${ac_cv_c_tclconfig}" = x ; then 2011 for i in `ls -d ${libdir} 2>/dev/null` \ 2012 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2013 `ls -d ${prefix}/lib 2>/dev/null` \ 2014 `ls -d /usr/local/lib 2>/dev/null` \ 2015 `ls -d /usr/contrib/lib 2>/dev/null` \ 2016 `ls -d /usr/lib 2>/dev/null` \ 2017 `ls -d /usr/lib64 2>/dev/null` \ 2018 ; do 2019 if test -f "$i/tclConfig.sh" ; then 2020 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2021 break 2022 fi 2023 done 2024 fi 2025 2026 # check in a few other private locations 2027 if test x"${ac_cv_c_tclconfig}" = x ; then 2028 for i in \ 2029 ${srcdir}/../tcl \ 2030 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2031 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2032 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2033 if test "${TEA_PLATFORM}" = "windows" \ 2034 -a -f "$i/win/tclConfig.sh" ; then 2035 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2036 break 2037 fi 2038 if test -f "$i/unix/tclConfig.sh" ; then 2039 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2040 break 2041 fi 2042 done 2043 fi 2044 2045fi 2046 2047 2048 if test x"${ac_cv_c_tclconfig}" = x ; then 2049 TCL_BIN_DIR="# no Tcl configs found" 2050 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2051echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2052 { (exit 1); exit 1; }; } 2053 else 2054 no_tcl= 2055 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2056 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2057echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2058 fi 2059 fi 2060 2061 2062 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2063echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2064 2065 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2066 { echo "$as_me:$LINENO: result: loading" >&5 2067echo "${ECHO_T}loading" >&6; } 2068 . "${TCL_BIN_DIR}/tclConfig.sh" 2069 else 2070 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2071echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2072 fi 2073 2074 # eval is required to do the TCL_DBGX substitution 2075 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2076 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2077 2078 # If the TCL_BIN_DIR is the build directory (not the install directory), 2079 # then set the common variable name to the value of the build variables. 2080 # For example, the variable TCL_LIB_SPEC will be set to the value 2081 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2082 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2083 # installed and uninstalled version of Tcl. 2084 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2085 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2086 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2087 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2088 elif test "`uname -s`" = "Darwin"; then 2089 # If Tcl was built as a framework, attempt to use the libraries 2090 # from the framework at the given location so that linking works 2091 # against Tcl.framework installed in an arbitrary location. 2092 case ${TCL_DEFS} in 2093 *TCL_FRAMEWORK*) 2094 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2095 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2096 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2097 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2098 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2099 break 2100 fi 2101 done 2102 fi 2103 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2104 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2105 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2106 fi 2107 ;; 2108 esac 2109 fi 2110 2111 # eval is required to do the TCL_DBGX substitution 2112 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2113 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2114 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2115 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 case "`uname -s`" in 2131 *CYGWIN_*) 2132 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2133echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2134 case ${TCL_EXTRA_CFLAGS} in 2135 *-mwin32*|*-mno-cygwin*) 2136 TEA_PLATFORM="windows" 2137 CFLAGS="$CFLAGS -mwin32" 2138 { echo "$as_me:$LINENO: result: win32" >&5 2139echo "${ECHO_T}win32" >&6; } 2140 ;; 2141 *) 2142 TEA_PLATFORM="unix" 2143 { echo "$as_me:$LINENO: result: unix" >&5 2144echo "${ECHO_T}unix" >&6; } 2145 ;; 2146 esac 2147 EXEEXT=".exe" 2148 ;; 2149 *) 2150 ;; 2151 esac 2152 2153 # Do this here as we have fully defined TEA_PLATFORM now 2154 if test "${TEA_PLATFORM}" = "windows" ; then 2155 # The BUILD_$pkg is to define the correct extern storage class 2156 # handling when making this package 2157 2158cat >>confdefs.h <<_ACEOF 2159#define BUILD_${PACKAGE_NAME} 2160_ACEOF 2161 2162 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2163 fi 2164 2165 # TEA specific: 2166 2167 2168 2169 2170 2171 2172 2173 2174#----------------------------------------------------------------------- 2175# Handle the --prefix=... option by defaulting to what Tcl gave. 2176# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2177#----------------------------------------------------------------------- 2178 2179 2180 if test "${prefix}" = "NONE"; then 2181 prefix_default=yes 2182 if test x"${TCL_PREFIX}" != x; then 2183 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2184echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2185 prefix=${TCL_PREFIX} 2186 else 2187 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2188echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2189 prefix=/usr/local 2190 fi 2191 fi 2192 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2193 -o x"${exec_prefix_default}" = x"yes" ; then 2194 if test x"${TCL_EXEC_PREFIX}" != x; then 2195 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2196echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2197 exec_prefix=${TCL_EXEC_PREFIX} 2198 else 2199 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2200echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2201 exec_prefix=$prefix 2202 fi 2203 fi 2204 2205 2206#----------------------------------------------------------------------- 2207# Standard compiler checks. 2208# This sets up CC by using the CC env var, or looks for gcc otherwise. 2209# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2210# the basic setup necessary to compile executables. 2211#----------------------------------------------------------------------- 2212 2213 2214 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2215 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2216 2217 # If the user did not set CFLAGS, set it now to keep 2218 # the AC_PROG_CC macro from adding "-g -O2". 2219 if test "${CFLAGS+set}" != "set" ; then 2220 CFLAGS="" 2221 fi 2222 2223 ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228if test -n "$ac_tool_prefix"; then 2229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2230set dummy ${ac_tool_prefix}gcc; ac_word=$2 2231{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2233if test "${ac_cv_prog_CC+set}" = set; then 2234 echo $ECHO_N "(cached) $ECHO_C" >&6 2235else 2236 if test -n "$CC"; then 2237 ac_cv_prog_CC="$CC" # Let the user override the test. 2238else 2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2240for as_dir in $PATH 2241do 2242 IFS=$as_save_IFS 2243 test -z "$as_dir" && as_dir=. 2244 for ac_exec_ext in '' $ac_executable_extensions; do 2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2246 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2248 break 2 2249 fi 2250done 2251done 2252IFS=$as_save_IFS 2253 2254fi 2255fi 2256CC=$ac_cv_prog_CC 2257if test -n "$CC"; then 2258 { echo "$as_me:$LINENO: result: $CC" >&5 2259echo "${ECHO_T}$CC" >&6; } 2260else 2261 { echo "$as_me:$LINENO: result: no" >&5 2262echo "${ECHO_T}no" >&6; } 2263fi 2264 2265 2266fi 2267if test -z "$ac_cv_prog_CC"; then 2268 ac_ct_CC=$CC 2269 # Extract the first word of "gcc", so it can be a program name with args. 2270set dummy gcc; ac_word=$2 2271{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2274 echo $ECHO_N "(cached) $ECHO_C" >&6 2275else 2276 if test -n "$ac_ct_CC"; then 2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2278else 2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280for as_dir in $PATH 2281do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 for ac_exec_ext in '' $ac_executable_extensions; do 2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2286 ac_cv_prog_ac_ct_CC="gcc" 2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2288 break 2 2289 fi 2290done 2291done 2292IFS=$as_save_IFS 2293 2294fi 2295fi 2296ac_ct_CC=$ac_cv_prog_ac_ct_CC 2297if test -n "$ac_ct_CC"; then 2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2299echo "${ECHO_T}$ac_ct_CC" >&6; } 2300else 2301 { echo "$as_me:$LINENO: result: no" >&5 2302echo "${ECHO_T}no" >&6; } 2303fi 2304 2305 if test "x$ac_ct_CC" = x; then 2306 CC="" 2307 else 2308 case $cross_compiling:$ac_tool_warned in 2309yes:) 2310{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2311whose name does not start with the host triplet. If you think this 2312configuration is useful to you, please write to autoconf@gnu.org." >&5 2313echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2314whose name does not start with the host triplet. If you think this 2315configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2316ac_tool_warned=yes ;; 2317esac 2318 CC=$ac_ct_CC 2319 fi 2320else 2321 CC="$ac_cv_prog_CC" 2322fi 2323 2324if test -z "$CC"; then 2325 if test -n "$ac_tool_prefix"; then 2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2327set dummy ${ac_tool_prefix}cc; ac_word=$2 2328{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2330if test "${ac_cv_prog_CC+set}" = set; then 2331 echo $ECHO_N "(cached) $ECHO_C" >&6 2332else 2333 if test -n "$CC"; then 2334 ac_cv_prog_CC="$CC" # Let the user override the test. 2335else 2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 for ac_exec_ext in '' $ac_executable_extensions; do 2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2343 ac_cv_prog_CC="${ac_tool_prefix}cc" 2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2345 break 2 2346 fi 2347done 2348done 2349IFS=$as_save_IFS 2350 2351fi 2352fi 2353CC=$ac_cv_prog_CC 2354if test -n "$CC"; then 2355 { echo "$as_me:$LINENO: result: $CC" >&5 2356echo "${ECHO_T}$CC" >&6; } 2357else 2358 { echo "$as_me:$LINENO: result: no" >&5 2359echo "${ECHO_T}no" >&6; } 2360fi 2361 2362 2363 fi 2364fi 2365if test -z "$CC"; then 2366 # Extract the first word of "cc", so it can be a program name with args. 2367set dummy cc; ac_word=$2 2368{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2370if test "${ac_cv_prog_CC+set}" = set; then 2371 echo $ECHO_N "(cached) $ECHO_C" >&6 2372else 2373 if test -n "$CC"; then 2374 ac_cv_prog_CC="$CC" # Let the user override the test. 2375else 2376 ac_prog_rejected=no 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2385 ac_prog_rejected=yes 2386 continue 2387 fi 2388 ac_cv_prog_CC="cc" 2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 break 2 2391 fi 2392done 2393done 2394IFS=$as_save_IFS 2395 2396if test $ac_prog_rejected = yes; then 2397 # We found a bogon in the path, so make sure we never use it. 2398 set dummy $ac_cv_prog_CC 2399 shift 2400 if test $# != 0; then 2401 # We chose a different compiler from the bogus one. 2402 # However, it has the same basename, so the bogon will be chosen 2403 # first if we set CC to just the basename; use the full file name. 2404 shift 2405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2406 fi 2407fi 2408fi 2409fi 2410CC=$ac_cv_prog_CC 2411if test -n "$CC"; then 2412 { echo "$as_me:$LINENO: result: $CC" >&5 2413echo "${ECHO_T}$CC" >&6; } 2414else 2415 { echo "$as_me:$LINENO: result: no" >&5 2416echo "${ECHO_T}no" >&6; } 2417fi 2418 2419 2420fi 2421if test -z "$CC"; then 2422 if test -n "$ac_tool_prefix"; then 2423 for ac_prog in cl.exe 2424 do 2425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2427{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2429if test "${ac_cv_prog_CC+set}" = set; then 2430 echo $ECHO_N "(cached) $ECHO_C" >&6 2431else 2432 if test -n "$CC"; then 2433 ac_cv_prog_CC="$CC" # Let the user override the test. 2434else 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436for as_dir in $PATH 2437do 2438 IFS=$as_save_IFS 2439 test -z "$as_dir" && as_dir=. 2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2444 break 2 2445 fi 2446done 2447done 2448IFS=$as_save_IFS 2449 2450fi 2451fi 2452CC=$ac_cv_prog_CC 2453if test -n "$CC"; then 2454 { echo "$as_me:$LINENO: result: $CC" >&5 2455echo "${ECHO_T}$CC" >&6; } 2456else 2457 { echo "$as_me:$LINENO: result: no" >&5 2458echo "${ECHO_T}no" >&6; } 2459fi 2460 2461 2462 test -n "$CC" && break 2463 done 2464fi 2465if test -z "$CC"; then 2466 ac_ct_CC=$CC 2467 for ac_prog in cl.exe 2468do 2469 # Extract the first word of "$ac_prog", so it can be a program name with args. 2470set dummy $ac_prog; ac_word=$2 2471{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2474 echo $ECHO_N "(cached) $ECHO_C" >&6 2475else 2476 if test -n "$ac_ct_CC"; then 2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2486 ac_cv_prog_ac_ct_CC="$ac_prog" 2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496ac_ct_CC=$ac_cv_prog_ac_ct_CC 2497if test -n "$ac_ct_CC"; then 2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2499echo "${ECHO_T}$ac_ct_CC" >&6; } 2500else 2501 { echo "$as_me:$LINENO: result: no" >&5 2502echo "${ECHO_T}no" >&6; } 2503fi 2504 2505 2506 test -n "$ac_ct_CC" && break 2507done 2508 2509 if test "x$ac_ct_CC" = x; then 2510 CC="" 2511 else 2512 case $cross_compiling:$ac_tool_warned in 2513yes:) 2514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2515whose name does not start with the host triplet. If you think this 2516configuration is useful to you, please write to autoconf@gnu.org." >&5 2517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2518whose name does not start with the host triplet. If you think this 2519configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2520ac_tool_warned=yes ;; 2521esac 2522 CC=$ac_ct_CC 2523 fi 2524fi 2525 2526fi 2527 2528 2529test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2530See \`config.log' for more details." >&5 2531echo "$as_me: error: no acceptable C compiler found in \$PATH 2532See \`config.log' for more details." >&2;} 2533 { (exit 1); exit 1; }; } 2534 2535# Provide some information about the compiler. 2536echo "$as_me:$LINENO: checking for C compiler version" >&5 2537ac_compiler=`set X $ac_compile; echo $2` 2538{ (ac_try="$ac_compiler --version >&5" 2539case "(($ac_try" in 2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2541 *) ac_try_echo=$ac_try;; 2542esac 2543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2544 (eval "$ac_compiler --version >&5") 2>&5 2545 ac_status=$? 2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2547 (exit $ac_status); } 2548{ (ac_try="$ac_compiler -v >&5" 2549case "(($ac_try" in 2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2551 *) ac_try_echo=$ac_try;; 2552esac 2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2554 (eval "$ac_compiler -v >&5") 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); } 2558{ (ac_try="$ac_compiler -V >&5" 2559case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562esac 2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2564 (eval "$ac_compiler -V >&5") 2>&5 2565 ac_status=$? 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } 2568 2569cat >conftest.$ac_ext <<_ACEOF 2570/* confdefs.h. */ 2571_ACEOF 2572cat confdefs.h >>conftest.$ac_ext 2573cat >>conftest.$ac_ext <<_ACEOF 2574/* end confdefs.h. */ 2575 2576int 2577main () 2578{ 2579 2580 ; 2581 return 0; 2582} 2583_ACEOF 2584ac_clean_files_save=$ac_clean_files 2585ac_clean_files="$ac_clean_files a.out a.exe b.out" 2586# Try to create an executable without -o first, disregard a.out. 2587# It will help us diagnose broken compilers, and finding out an intuition 2588# of exeext. 2589{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2590echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2591ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2592# 2593# List of possible output files, starting from the most likely. 2594# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2595# only as a last resort. b.out is created by i960 compilers. 2596ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2597# 2598# The IRIX 6 linker writes into existing files which may not be 2599# executable, retaining their permissions. Remove them first so a 2600# subsequent execution test works. 2601ac_rmfiles= 2602for ac_file in $ac_files 2603do 2604 case $ac_file in 2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2607 esac 2608done 2609rm -f $ac_rmfiles 2610 2611if { (ac_try="$ac_link_default" 2612case "(($ac_try" in 2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2614 *) ac_try_echo=$ac_try;; 2615esac 2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2617 (eval "$ac_link_default") 2>&5 2618 ac_status=$? 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); }; then 2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2622# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2623# in a Makefile. We should not override ac_cv_exeext if it was cached, 2624# so that the user can short-circuit this test for compilers unknown to 2625# Autoconf. 2626for ac_file in $ac_files '' 2627do 2628 test -f "$ac_file" || continue 2629 case $ac_file in 2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2631 ;; 2632 [ab].out ) 2633 # We found the default executable, but exeext='' is most 2634 # certainly right. 2635 break;; 2636 *.* ) 2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2638 then :; else 2639 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2640 fi 2641 # We set ac_cv_exeext here because the later test for it is not 2642 # safe: cross compilers may not add the suffix if given an `-o' 2643 # argument, so we may need to know it at that point already. 2644 # Even if this section looks crufty: it has the advantage of 2645 # actually working. 2646 break;; 2647 * ) 2648 break;; 2649 esac 2650done 2651test "$ac_cv_exeext" = no && ac_cv_exeext= 2652 2653else 2654 ac_file='' 2655fi 2656 2657{ echo "$as_me:$LINENO: result: $ac_file" >&5 2658echo "${ECHO_T}$ac_file" >&6; } 2659if test -z "$ac_file"; then 2660 echo "$as_me: failed program was:" >&5 2661sed 's/^/| /' conftest.$ac_ext >&5 2662 2663{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2664See \`config.log' for more details." >&5 2665echo "$as_me: error: C compiler cannot create executables 2666See \`config.log' for more details." >&2;} 2667 { (exit 77); exit 77; }; } 2668fi 2669 2670ac_exeext=$ac_cv_exeext 2671 2672# Check that the compiler produces executables we can run. If not, either 2673# the compiler is broken, or we cross compile. 2674{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2675echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2676# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2677# If not cross compiling, check that we can run a simple program. 2678if test "$cross_compiling" != yes; then 2679 if { ac_try='./$ac_file' 2680 { (case "(($ac_try" in 2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2682 *) ac_try_echo=$ac_try;; 2683esac 2684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2685 (eval "$ac_try") 2>&5 2686 ac_status=$? 2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2688 (exit $ac_status); }; }; then 2689 cross_compiling=no 2690 else 2691 if test "$cross_compiling" = maybe; then 2692 cross_compiling=yes 2693 else 2694 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2695If you meant to cross compile, use \`--host'. 2696See \`config.log' for more details." >&5 2697echo "$as_me: error: cannot run C compiled programs. 2698If you meant to cross compile, use \`--host'. 2699See \`config.log' for more details." >&2;} 2700 { (exit 1); exit 1; }; } 2701 fi 2702 fi 2703fi 2704{ echo "$as_me:$LINENO: result: yes" >&5 2705echo "${ECHO_T}yes" >&6; } 2706 2707rm -f a.out a.exe conftest$ac_cv_exeext b.out 2708ac_clean_files=$ac_clean_files_save 2709# Check that the compiler produces executables we can run. If not, either 2710# the compiler is broken, or we cross compile. 2711{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2712echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2713{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2714echo "${ECHO_T}$cross_compiling" >&6; } 2715 2716{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2717echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2718if { (ac_try="$ac_link" 2719case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722esac 2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2724 (eval "$ac_link") 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); }; then 2728 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2729# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2730# work properly (i.e., refer to `conftest.exe'), while it won't with 2731# `rm'. 2732for ac_file in conftest.exe conftest conftest.*; do 2733 test -f "$ac_file" || continue 2734 case $ac_file in 2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2737 break;; 2738 * ) break;; 2739 esac 2740done 2741else 2742 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2743See \`config.log' for more details." >&5 2744echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2745See \`config.log' for more details." >&2;} 2746 { (exit 1); exit 1; }; } 2747fi 2748 2749rm -f conftest$ac_cv_exeext 2750{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2751echo "${ECHO_T}$ac_cv_exeext" >&6; } 2752 2753rm -f conftest.$ac_ext 2754EXEEXT=$ac_cv_exeext 2755ac_exeext=$EXEEXT 2756{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2757echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2758if test "${ac_cv_objext+set}" = set; then 2759 echo $ECHO_N "(cached) $ECHO_C" >&6 2760else 2761 cat >conftest.$ac_ext <<_ACEOF 2762/* confdefs.h. */ 2763_ACEOF 2764cat confdefs.h >>conftest.$ac_ext 2765cat >>conftest.$ac_ext <<_ACEOF 2766/* end confdefs.h. */ 2767 2768int 2769main () 2770{ 2771 2772 ; 2773 return 0; 2774} 2775_ACEOF 2776rm -f conftest.o conftest.obj 2777if { (ac_try="$ac_compile" 2778case "(($ac_try" in 2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2780 *) ac_try_echo=$ac_try;; 2781esac 2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2783 (eval "$ac_compile") 2>&5 2784 ac_status=$? 2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2786 (exit $ac_status); }; then 2787 for ac_file in conftest.o conftest.obj conftest.*; do 2788 test -f "$ac_file" || continue; 2789 case $ac_file in 2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2792 break;; 2793 esac 2794done 2795else 2796 echo "$as_me: failed program was:" >&5 2797sed 's/^/| /' conftest.$ac_ext >&5 2798 2799{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2800See \`config.log' for more details." >&5 2801echo "$as_me: error: cannot compute suffix of object files: cannot compile 2802See \`config.log' for more details." >&2;} 2803 { (exit 1); exit 1; }; } 2804fi 2805 2806rm -f conftest.$ac_cv_objext conftest.$ac_ext 2807fi 2808{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2809echo "${ECHO_T}$ac_cv_objext" >&6; } 2810OBJEXT=$ac_cv_objext 2811ac_objext=$OBJEXT 2812{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2813echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2814if test "${ac_cv_c_compiler_gnu+set}" = set; then 2815 echo $ECHO_N "(cached) $ECHO_C" >&6 2816else 2817 cat >conftest.$ac_ext <<_ACEOF 2818/* confdefs.h. */ 2819_ACEOF 2820cat confdefs.h >>conftest.$ac_ext 2821cat >>conftest.$ac_ext <<_ACEOF 2822/* end confdefs.h. */ 2823 2824int 2825main () 2826{ 2827#ifndef __GNUC__ 2828 choke me 2829#endif 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835rm -f conftest.$ac_objext 2836if { (ac_try="$ac_compile" 2837case "(($ac_try" in 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2839 *) ac_try_echo=$ac_try;; 2840esac 2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2842 (eval "$ac_compile") 2>conftest.er1 2843 ac_status=$? 2844 grep -v '^ *+' conftest.er1 >conftest.err 2845 rm -f conftest.er1 2846 cat conftest.err >&5 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); } && { 2849 test -z "$ac_c_werror_flag" || 2850 test ! -s conftest.err 2851 } && test -s conftest.$ac_objext; then 2852 ac_compiler_gnu=yes 2853else 2854 echo "$as_me: failed program was:" >&5 2855sed 's/^/| /' conftest.$ac_ext >&5 2856 2857 ac_compiler_gnu=no 2858fi 2859 2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2861ac_cv_c_compiler_gnu=$ac_compiler_gnu 2862 2863fi 2864{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2865echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2866GCC=`test $ac_compiler_gnu = yes && echo yes` 2867ac_test_CFLAGS=${CFLAGS+set} 2868ac_save_CFLAGS=$CFLAGS 2869{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2870echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2871if test "${ac_cv_prog_cc_g+set}" = set; then 2872 echo $ECHO_N "(cached) $ECHO_C" >&6 2873else 2874 ac_save_c_werror_flag=$ac_c_werror_flag 2875 ac_c_werror_flag=yes 2876 ac_cv_prog_cc_g=no 2877 CFLAGS="-g" 2878 cat >conftest.$ac_ext <<_ACEOF 2879/* confdefs.h. */ 2880_ACEOF 2881cat confdefs.h >>conftest.$ac_ext 2882cat >>conftest.$ac_ext <<_ACEOF 2883/* end confdefs.h. */ 2884 2885int 2886main () 2887{ 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893rm -f conftest.$ac_objext 2894if { (ac_try="$ac_compile" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_compile") 2>conftest.er1 2901 ac_status=$? 2902 grep -v '^ *+' conftest.er1 >conftest.err 2903 rm -f conftest.er1 2904 cat conftest.err >&5 2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); } && { 2907 test -z "$ac_c_werror_flag" || 2908 test ! -s conftest.err 2909 } && test -s conftest.$ac_objext; then 2910 ac_cv_prog_cc_g=yes 2911else 2912 echo "$as_me: failed program was:" >&5 2913sed 's/^/| /' conftest.$ac_ext >&5 2914 2915 CFLAGS="" 2916 cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931rm -f conftest.$ac_objext 2932if { (ac_try="$ac_compile" 2933case "(($ac_try" in 2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2935 *) ac_try_echo=$ac_try;; 2936esac 2937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2938 (eval "$ac_compile") 2>conftest.er1 2939 ac_status=$? 2940 grep -v '^ *+' conftest.er1 >conftest.err 2941 rm -f conftest.er1 2942 cat conftest.err >&5 2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2944 (exit $ac_status); } && { 2945 test -z "$ac_c_werror_flag" || 2946 test ! -s conftest.err 2947 } && test -s conftest.$ac_objext; then 2948 : 2949else 2950 echo "$as_me: failed program was:" >&5 2951sed 's/^/| /' conftest.$ac_ext >&5 2952 2953 ac_c_werror_flag=$ac_save_c_werror_flag 2954 CFLAGS="-g" 2955 cat >conftest.$ac_ext <<_ACEOF 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970rm -f conftest.$ac_objext 2971if { (ac_try="$ac_compile" 2972case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2977 (eval "$ac_compile") 2>conftest.er1 2978 ac_status=$? 2979 grep -v '^ *+' conftest.er1 >conftest.err 2980 rm -f conftest.er1 2981 cat conftest.err >&5 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } && { 2984 test -z "$ac_c_werror_flag" || 2985 test ! -s conftest.err 2986 } && test -s conftest.$ac_objext; then 2987 ac_cv_prog_cc_g=yes 2988else 2989 echo "$as_me: failed program was:" >&5 2990sed 's/^/| /' conftest.$ac_ext >&5 2991 2992 2993fi 2994 2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2996fi 2997 2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2999fi 3000 3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3002 ac_c_werror_flag=$ac_save_c_werror_flag 3003fi 3004{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3005echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3006if test "$ac_test_CFLAGS" = set; then 3007 CFLAGS=$ac_save_CFLAGS 3008elif test $ac_cv_prog_cc_g = yes; then 3009 if test "$GCC" = yes; then 3010 CFLAGS="-g -O2" 3011 else 3012 CFLAGS="-g" 3013 fi 3014else 3015 if test "$GCC" = yes; then 3016 CFLAGS="-O2" 3017 else 3018 CFLAGS= 3019 fi 3020fi 3021{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3022echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3023if test "${ac_cv_prog_cc_c89+set}" = set; then 3024 echo $ECHO_N "(cached) $ECHO_C" >&6 3025else 3026 ac_cv_prog_cc_c89=no 3027ac_save_CC=$CC 3028cat >conftest.$ac_ext <<_ACEOF 3029/* confdefs.h. */ 3030_ACEOF 3031cat confdefs.h >>conftest.$ac_ext 3032cat >>conftest.$ac_ext <<_ACEOF 3033/* end confdefs.h. */ 3034#include <stdarg.h> 3035#include <stdio.h> 3036#include <sys/types.h> 3037#include <sys/stat.h> 3038/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3039struct buf { int x; }; 3040FILE * (*rcsopen) (struct buf *, struct stat *, int); 3041static char *e (p, i) 3042 char **p; 3043 int i; 3044{ 3045 return p[i]; 3046} 3047static char *f (char * (*g) (char **, int), char **p, ...) 3048{ 3049 char *s; 3050 va_list v; 3051 va_start (v,p); 3052 s = g (p, va_arg (v,int)); 3053 va_end (v); 3054 return s; 3055} 3056 3057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3058 function prototypes and stuff, but not '\xHH' hex character constants. 3059 These don't provoke an error unfortunately, instead are silently treated 3060 as 'x'. The following induces an error, until -std is added to get 3061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3062 array size at least. It's necessary to write '\x00'==0 to get something 3063 that's true only with -std. */ 3064int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3065 3066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3067 inside strings and character constants. */ 3068#define FOO(x) 'x' 3069int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3070 3071int test (int i, double x); 3072struct s1 {int (*f) (int a);}; 3073struct s2 {int (*f) (double a);}; 3074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3075int argc; 3076char **argv; 3077int 3078main () 3079{ 3080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3081 ; 3082 return 0; 3083} 3084_ACEOF 3085for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3087do 3088 CC="$ac_save_CC $ac_arg" 3089 rm -f conftest.$ac_objext 3090if { (ac_try="$ac_compile" 3091case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_compile") 2>conftest.er1 3097 ac_status=$? 3098 grep -v '^ *+' conftest.er1 >conftest.err 3099 rm -f conftest.er1 3100 cat conftest.err >&5 3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3102 (exit $ac_status); } && { 3103 test -z "$ac_c_werror_flag" || 3104 test ! -s conftest.err 3105 } && test -s conftest.$ac_objext; then 3106 ac_cv_prog_cc_c89=$ac_arg 3107else 3108 echo "$as_me: failed program was:" >&5 3109sed 's/^/| /' conftest.$ac_ext >&5 3110 3111 3112fi 3113 3114rm -f core conftest.err conftest.$ac_objext 3115 test "x$ac_cv_prog_cc_c89" != "xno" && break 3116done 3117rm -f conftest.$ac_ext 3118CC=$ac_save_CC 3119 3120fi 3121# AC_CACHE_VAL 3122case "x$ac_cv_prog_cc_c89" in 3123 x) 3124 { echo "$as_me:$LINENO: result: none needed" >&5 3125echo "${ECHO_T}none needed" >&6; } ;; 3126 xno) 3127 { echo "$as_me:$LINENO: result: unsupported" >&5 3128echo "${ECHO_T}unsupported" >&6; } ;; 3129 *) 3130 CC="$CC $ac_cv_prog_cc_c89" 3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3132echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3133esac 3134 3135 3136ac_ext=c 3137ac_cpp='$CPP $CPPFLAGS' 3138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3140ac_compiler_gnu=$ac_cv_c_compiler_gnu 3141 3142 ac_ext=c 3143ac_cpp='$CPP $CPPFLAGS' 3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3146ac_compiler_gnu=$ac_cv_c_compiler_gnu 3147{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3148echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3149# On Suns, sometimes $CPP names a directory. 3150if test -n "$CPP" && test -d "$CPP"; then 3151 CPP= 3152fi 3153if test -z "$CPP"; then 3154 if test "${ac_cv_prog_CPP+set}" = set; then 3155 echo $ECHO_N "(cached) $ECHO_C" >&6 3156else 3157 # Double quotes because CPP needs to be expanded 3158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3159 do 3160 ac_preproc_ok=false 3161for ac_c_preproc_warn_flag in '' yes 3162do 3163 # Use a header file that comes with gcc, so configuring glibc 3164 # with a fresh cross-compiler works. 3165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3166 # <limits.h> exists even on freestanding compilers. 3167 # On the NeXT, cc -E runs the code through the compiler's parser, 3168 # not just through cpp. "Syntax error" is here to catch this case. 3169 cat >conftest.$ac_ext <<_ACEOF 3170/* confdefs.h. */ 3171_ACEOF 3172cat confdefs.h >>conftest.$ac_ext 3173cat >>conftest.$ac_ext <<_ACEOF 3174/* end confdefs.h. */ 3175#ifdef __STDC__ 3176# include <limits.h> 3177#else 3178# include <assert.h> 3179#endif 3180 Syntax error 3181_ACEOF 3182if { (ac_try="$ac_cpp conftest.$ac_ext" 3183case "(($ac_try" in 3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3185 *) ac_try_echo=$ac_try;; 3186esac 3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3189 ac_status=$? 3190 grep -v '^ *+' conftest.er1 >conftest.err 3191 rm -f conftest.er1 3192 cat conftest.err >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } >/dev/null && { 3195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3196 test ! -s conftest.err 3197 }; then 3198 : 3199else 3200 echo "$as_me: failed program was:" >&5 3201sed 's/^/| /' conftest.$ac_ext >&5 3202 3203 # Broken: fails on valid input. 3204continue 3205fi 3206 3207rm -f conftest.err conftest.$ac_ext 3208 3209 # OK, works on sane cases. Now check whether nonexistent headers 3210 # can be detected and how. 3211 cat >conftest.$ac_ext <<_ACEOF 3212/* confdefs.h. */ 3213_ACEOF 3214cat confdefs.h >>conftest.$ac_ext 3215cat >>conftest.$ac_ext <<_ACEOF 3216/* end confdefs.h. */ 3217#include <ac_nonexistent.h> 3218_ACEOF 3219if { (ac_try="$ac_cpp conftest.$ac_ext" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3226 ac_status=$? 3227 grep -v '^ *+' conftest.er1 >conftest.err 3228 rm -f conftest.er1 3229 cat conftest.err >&5 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); } >/dev/null && { 3232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3233 test ! -s conftest.err 3234 }; then 3235 # Broken: success on invalid input. 3236continue 3237else 3238 echo "$as_me: failed program was:" >&5 3239sed 's/^/| /' conftest.$ac_ext >&5 3240 3241 # Passes both tests. 3242ac_preproc_ok=: 3243break 3244fi 3245 3246rm -f conftest.err conftest.$ac_ext 3247 3248done 3249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3250rm -f conftest.err conftest.$ac_ext 3251if $ac_preproc_ok; then 3252 break 3253fi 3254 3255 done 3256 ac_cv_prog_CPP=$CPP 3257 3258fi 3259 CPP=$ac_cv_prog_CPP 3260else 3261 ac_cv_prog_CPP=$CPP 3262fi 3263{ echo "$as_me:$LINENO: result: $CPP" >&5 3264echo "${ECHO_T}$CPP" >&6; } 3265ac_preproc_ok=false 3266for ac_c_preproc_warn_flag in '' yes 3267do 3268 # Use a header file that comes with gcc, so configuring glibc 3269 # with a fresh cross-compiler works. 3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3271 # <limits.h> exists even on freestanding compilers. 3272 # On the NeXT, cc -E runs the code through the compiler's parser, 3273 # not just through cpp. "Syntax error" is here to catch this case. 3274 cat >conftest.$ac_ext <<_ACEOF 3275/* confdefs.h. */ 3276_ACEOF 3277cat confdefs.h >>conftest.$ac_ext 3278cat >>conftest.$ac_ext <<_ACEOF 3279/* end confdefs.h. */ 3280#ifdef __STDC__ 3281# include <limits.h> 3282#else 3283# include <assert.h> 3284#endif 3285 Syntax error 3286_ACEOF 3287if { (ac_try="$ac_cpp conftest.$ac_ext" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } >/dev/null && { 3300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 }; then 3303 : 3304else 3305 echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 # Broken: fails on valid input. 3309continue 3310fi 3311 3312rm -f conftest.err conftest.$ac_ext 3313 3314 # OK, works on sane cases. Now check whether nonexistent headers 3315 # can be detected and how. 3316 cat >conftest.$ac_ext <<_ACEOF 3317/* confdefs.h. */ 3318_ACEOF 3319cat confdefs.h >>conftest.$ac_ext 3320cat >>conftest.$ac_ext <<_ACEOF 3321/* end confdefs.h. */ 3322#include <ac_nonexistent.h> 3323_ACEOF 3324if { (ac_try="$ac_cpp conftest.$ac_ext" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } >/dev/null && { 3337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3338 test ! -s conftest.err 3339 }; then 3340 # Broken: success on invalid input. 3341continue 3342else 3343 echo "$as_me: failed program was:" >&5 3344sed 's/^/| /' conftest.$ac_ext >&5 3345 3346 # Passes both tests. 3347ac_preproc_ok=: 3348break 3349fi 3350 3351rm -f conftest.err conftest.$ac_ext 3352 3353done 3354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3355rm -f conftest.err conftest.$ac_ext 3356if $ac_preproc_ok; then 3357 : 3358else 3359 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3360See \`config.log' for more details." >&5 3361echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3362See \`config.log' for more details." >&2;} 3363 { (exit 1); exit 1; }; } 3364fi 3365 3366ac_ext=c 3367ac_cpp='$CPP $CPPFLAGS' 3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3370ac_compiler_gnu=$ac_cv_c_compiler_gnu 3371 3372 3373 # Find a good install program. We prefer a C program (faster), 3374# so one script is as good as another. But avoid the broken or 3375# incompatible versions: 3376# SysV /etc/install, /usr/sbin/install 3377# SunOS /usr/etc/install 3378# IRIX /sbin/install 3379# AIX /bin/install 3380# AmigaOS /C/install, which installs bootblocks on floppy discs 3381# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3382# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3383# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3384# OS/2's system install, which has a completely different semantic 3385# ./install, which can be erroneously created by make from ./install.sh. 3386{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3387echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3388if test -z "$INSTALL"; then 3389if test "${ac_cv_path_install+set}" = set; then 3390 echo $ECHO_N "(cached) $ECHO_C" >&6 3391else 3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 test -z "$as_dir" && as_dir=. 3397 # Account for people who put trailing slashes in PATH elements. 3398case $as_dir/ in 3399 ./ | .// | /cC/* | \ 3400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3401 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3402 /usr/ucb/* ) ;; 3403 *) 3404 # OSF1 and SCO ODT 3.0 have their own names for install. 3405 # Don't use installbsd from OSF since it installs stuff as root 3406 # by default. 3407 for ac_prog in ginstall scoinst install; do 3408 for ac_exec_ext in '' $ac_executable_extensions; do 3409 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3410 if test $ac_prog = install && 3411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3412 # AIX install. It has an incompatible calling convention. 3413 : 3414 elif test $ac_prog = install && 3415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3416 # program-specific install script used by HP pwplus--don't use. 3417 : 3418 else 3419 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3420 break 3 3421 fi 3422 fi 3423 done 3424 done 3425 ;; 3426esac 3427done 3428IFS=$as_save_IFS 3429 3430 3431fi 3432 if test "${ac_cv_path_install+set}" = set; then 3433 INSTALL=$ac_cv_path_install 3434 else 3435 # As a last resort, use the slow shell script. Don't cache a 3436 # value for INSTALL within a source directory, because that will 3437 # break other packages using the cache if that directory is 3438 # removed, or if the value is a relative name. 3439 INSTALL=$ac_install_sh 3440 fi 3441fi 3442{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3443echo "${ECHO_T}$INSTALL" >&6; } 3444 3445# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3446# It thinks the first close brace ends the variable substitution. 3447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3448 3449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3450 3451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3452 3453 3454 #-------------------------------------------------------------------- 3455 # Checks to see if the make program sets the $MAKE variable. 3456 #-------------------------------------------------------------------- 3457 3458 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3459echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3460set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3461if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3462 echo $ECHO_N "(cached) $ECHO_C" >&6 3463else 3464 cat >conftest.make <<\_ACEOF 3465SHELL = /bin/sh 3466all: 3467 @echo '@@@%%%=$(MAKE)=@@@%%%' 3468_ACEOF 3469# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3470case `${MAKE-make} -f conftest.make 2>/dev/null` in 3471 *@@@%%%=?*=@@@%%%*) 3472 eval ac_cv_prog_make_${ac_make}_set=yes;; 3473 *) 3474 eval ac_cv_prog_make_${ac_make}_set=no;; 3475esac 3476rm -f conftest.make 3477fi 3478if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3479 { echo "$as_me:$LINENO: result: yes" >&5 3480echo "${ECHO_T}yes" >&6; } 3481 SET_MAKE= 3482else 3483 { echo "$as_me:$LINENO: result: no" >&5 3484echo "${ECHO_T}no" >&6; } 3485 SET_MAKE="MAKE=${MAKE-make}" 3486fi 3487 3488 3489 #-------------------------------------------------------------------- 3490 # Find ranlib 3491 #-------------------------------------------------------------------- 3492 3493 if test -n "$ac_tool_prefix"; then 3494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3495set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3498if test "${ac_cv_prog_RANLIB+set}" = set; then 3499 echo $ECHO_N "(cached) $ECHO_C" >&6 3500else 3501 if test -n "$RANLIB"; then 3502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3503else 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516done 3517IFS=$as_save_IFS 3518 3519fi 3520fi 3521RANLIB=$ac_cv_prog_RANLIB 3522if test -n "$RANLIB"; then 3523 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3524echo "${ECHO_T}$RANLIB" >&6; } 3525else 3526 { echo "$as_me:$LINENO: result: no" >&5 3527echo "${ECHO_T}no" >&6; } 3528fi 3529 3530 3531fi 3532if test -z "$ac_cv_prog_RANLIB"; then 3533 ac_ct_RANLIB=$RANLIB 3534 # Extract the first word of "ranlib", so it can be a program name with args. 3535set dummy ranlib; ac_word=$2 3536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3538if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3539 echo $ECHO_N "(cached) $ECHO_C" >&6 3540else 3541 if test -n "$ac_ct_RANLIB"; then 3542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 test -z "$as_dir" && as_dir=. 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3551 ac_cv_prog_ac_ct_RANLIB="ranlib" 3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555done 3556done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3562if test -n "$ac_ct_RANLIB"; then 3563 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3564echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3565else 3566 { echo "$as_me:$LINENO: result: no" >&5 3567echo "${ECHO_T}no" >&6; } 3568fi 3569 3570 if test "x$ac_ct_RANLIB" = x; then 3571 RANLIB=":" 3572 else 3573 case $cross_compiling:$ac_tool_warned in 3574yes:) 3575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3576whose name does not start with the host triplet. If you think this 3577configuration is useful to you, please write to autoconf@gnu.org." >&5 3578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3579whose name does not start with the host triplet. If you think this 3580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3581ac_tool_warned=yes ;; 3582esac 3583 RANLIB=$ac_ct_RANLIB 3584 fi 3585else 3586 RANLIB="$ac_cv_prog_RANLIB" 3587fi 3588 3589 3590 #-------------------------------------------------------------------- 3591 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3592 #-------------------------------------------------------------------- 3593 3594 3595 3596 3597 3598 3599{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3600echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3601if test "${ac_cv_path_GREP+set}" = set; then 3602 echo $ECHO_N "(cached) $ECHO_C" >&6 3603else 3604 # Extract the first word of "grep ggrep" to use in msg output 3605if test -z "$GREP"; then 3606set dummy grep ggrep; ac_prog_name=$2 3607if test "${ac_cv_path_GREP+set}" = set; then 3608 echo $ECHO_N "(cached) $ECHO_C" >&6 3609else 3610 ac_path_GREP_found=false 3611# Loop through the user's path and test for each of PROGNAME-LIST 3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3614do 3615 IFS=$as_save_IFS 3616 test -z "$as_dir" && as_dir=. 3617 for ac_prog in grep ggrep; do 3618 for ac_exec_ext in '' $ac_executable_extensions; do 3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3620 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3621 # Check for GNU ac_path_GREP and select it if it is found. 3622 # Check for GNU $ac_path_GREP 3623case `"$ac_path_GREP" --version 2>&1` in 3624*GNU*) 3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3626*) 3627 ac_count=0 3628 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3629 while : 3630 do 3631 cat "conftest.in" "conftest.in" >"conftest.tmp" 3632 mv "conftest.tmp" "conftest.in" 3633 cp "conftest.in" "conftest.nl" 3634 echo 'GREP' >> "conftest.nl" 3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3637 ac_count=`expr $ac_count + 1` 3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3639 # Best one so far, save it but keep looking for a better one 3640 ac_cv_path_GREP="$ac_path_GREP" 3641 ac_path_GREP_max=$ac_count 3642 fi 3643 # 10*(2^10) chars as input seems more than enough 3644 test $ac_count -gt 10 && break 3645 done 3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3647esac 3648 3649 3650 $ac_path_GREP_found && break 3 3651 done 3652done 3653 3654done 3655IFS=$as_save_IFS 3656 3657 3658fi 3659 3660GREP="$ac_cv_path_GREP" 3661if test -z "$GREP"; then 3662 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3663echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3664 { (exit 1); exit 1; }; } 3665fi 3666 3667else 3668 ac_cv_path_GREP=$GREP 3669fi 3670 3671 3672fi 3673{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3674echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3675 GREP="$ac_cv_path_GREP" 3676 3677 3678{ echo "$as_me:$LINENO: checking for egrep" >&5 3679echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3680if test "${ac_cv_path_EGREP+set}" = set; then 3681 echo $ECHO_N "(cached) $ECHO_C" >&6 3682else 3683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3684 then ac_cv_path_EGREP="$GREP -E" 3685 else 3686 # Extract the first word of "egrep" to use in msg output 3687if test -z "$EGREP"; then 3688set dummy egrep; ac_prog_name=$2 3689if test "${ac_cv_path_EGREP+set}" = set; then 3690 echo $ECHO_N "(cached) $ECHO_C" >&6 3691else 3692 ac_path_EGREP_found=false 3693# Loop through the user's path and test for each of PROGNAME-LIST 3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3696do 3697 IFS=$as_save_IFS 3698 test -z "$as_dir" && as_dir=. 3699 for ac_prog in egrep; do 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3702 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3703 # Check for GNU ac_path_EGREP and select it if it is found. 3704 # Check for GNU $ac_path_EGREP 3705case `"$ac_path_EGREP" --version 2>&1` in 3706*GNU*) 3707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3708*) 3709 ac_count=0 3710 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3711 while : 3712 do 3713 cat "conftest.in" "conftest.in" >"conftest.tmp" 3714 mv "conftest.tmp" "conftest.in" 3715 cp "conftest.in" "conftest.nl" 3716 echo 'EGREP' >> "conftest.nl" 3717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3719 ac_count=`expr $ac_count + 1` 3720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3721 # Best one so far, save it but keep looking for a better one 3722 ac_cv_path_EGREP="$ac_path_EGREP" 3723 ac_path_EGREP_max=$ac_count 3724 fi 3725 # 10*(2^10) chars as input seems more than enough 3726 test $ac_count -gt 10 && break 3727 done 3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3729esac 3730 3731 3732 $ac_path_EGREP_found && break 3 3733 done 3734done 3735 3736done 3737IFS=$as_save_IFS 3738 3739 3740fi 3741 3742EGREP="$ac_cv_path_EGREP" 3743if test -z "$EGREP"; then 3744 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3745echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3746 { (exit 1); exit 1; }; } 3747fi 3748 3749else 3750 ac_cv_path_EGREP=$EGREP 3751fi 3752 3753 3754 fi 3755fi 3756{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3757echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3758 EGREP="$ac_cv_path_EGREP" 3759 3760 3761{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3762echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3763if test "${ac_cv_header_stdc+set}" = set; then 3764 echo $ECHO_N "(cached) $ECHO_C" >&6 3765else 3766 cat >conftest.$ac_ext <<_ACEOF 3767/* confdefs.h. */ 3768_ACEOF 3769cat confdefs.h >>conftest.$ac_ext 3770cat >>conftest.$ac_ext <<_ACEOF 3771/* end confdefs.h. */ 3772#include <stdlib.h> 3773#include <stdarg.h> 3774#include <string.h> 3775#include <float.h> 3776 3777int 3778main () 3779{ 3780 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785rm -f conftest.$ac_objext 3786if { (ac_try="$ac_compile" 3787case "(($ac_try" in 3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3789 *) ac_try_echo=$ac_try;; 3790esac 3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3792 (eval "$ac_compile") 2>conftest.er1 3793 ac_status=$? 3794 grep -v '^ *+' conftest.er1 >conftest.err 3795 rm -f conftest.er1 3796 cat conftest.err >&5 3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3798 (exit $ac_status); } && { 3799 test -z "$ac_c_werror_flag" || 3800 test ! -s conftest.err 3801 } && test -s conftest.$ac_objext; then 3802 ac_cv_header_stdc=yes 3803else 3804 echo "$as_me: failed program was:" >&5 3805sed 's/^/| /' conftest.$ac_ext >&5 3806 3807 ac_cv_header_stdc=no 3808fi 3809 3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3811 3812if test $ac_cv_header_stdc = yes; then 3813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3814 cat >conftest.$ac_ext <<_ACEOF 3815/* confdefs.h. */ 3816_ACEOF 3817cat confdefs.h >>conftest.$ac_ext 3818cat >>conftest.$ac_ext <<_ACEOF 3819/* end confdefs.h. */ 3820#include <string.h> 3821 3822_ACEOF 3823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3824 $EGREP "memchr" >/dev/null 2>&1; then 3825 : 3826else 3827 ac_cv_header_stdc=no 3828fi 3829rm -f -r conftest* 3830 3831fi 3832 3833if test $ac_cv_header_stdc = yes; then 3834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3835 cat >conftest.$ac_ext <<_ACEOF 3836/* confdefs.h. */ 3837_ACEOF 3838cat confdefs.h >>conftest.$ac_ext 3839cat >>conftest.$ac_ext <<_ACEOF 3840/* end confdefs.h. */ 3841#include <stdlib.h> 3842 3843_ACEOF 3844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3845 $EGREP "free" >/dev/null 2>&1; then 3846 : 3847else 3848 ac_cv_header_stdc=no 3849fi 3850rm -f -r conftest* 3851 3852fi 3853 3854if test $ac_cv_header_stdc = yes; then 3855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3856 if test "$cross_compiling" = yes; then 3857 : 3858else 3859 cat >conftest.$ac_ext <<_ACEOF 3860/* confdefs.h. */ 3861_ACEOF 3862cat confdefs.h >>conftest.$ac_ext 3863cat >>conftest.$ac_ext <<_ACEOF 3864/* end confdefs.h. */ 3865#include <ctype.h> 3866#include <stdlib.h> 3867#if ((' ' & 0x0FF) == 0x020) 3868# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3869# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3870#else 3871# define ISLOWER(c) \ 3872 (('a' <= (c) && (c) <= 'i') \ 3873 || ('j' <= (c) && (c) <= 'r') \ 3874 || ('s' <= (c) && (c) <= 'z')) 3875# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3876#endif 3877 3878#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3879int 3880main () 3881{ 3882 int i; 3883 for (i = 0; i < 256; i++) 3884 if (XOR (islower (i), ISLOWER (i)) 3885 || toupper (i) != TOUPPER (i)) 3886 return 2; 3887 return 0; 3888} 3889_ACEOF 3890rm -f conftest$ac_exeext 3891if { (ac_try="$ac_link" 3892case "(($ac_try" in 3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3894 *) ac_try_echo=$ac_try;; 3895esac 3896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3897 (eval "$ac_link") 2>&5 3898 ac_status=$? 3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3901 { (case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3906 (eval "$ac_try") 2>&5 3907 ac_status=$? 3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3909 (exit $ac_status); }; }; then 3910 : 3911else 3912 echo "$as_me: program exited with status $ac_status" >&5 3913echo "$as_me: failed program was:" >&5 3914sed 's/^/| /' conftest.$ac_ext >&5 3915 3916( exit $ac_status ) 3917ac_cv_header_stdc=no 3918fi 3919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3920fi 3921 3922 3923fi 3924fi 3925{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3926echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3927if test $ac_cv_header_stdc = yes; then 3928 3929cat >>confdefs.h <<\_ACEOF 3930#define STDC_HEADERS 1 3931_ACEOF 3932 3933fi 3934 3935# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3946 inttypes.h stdint.h unistd.h 3947do 3948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3949{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&6 3953else 3954 cat >conftest.$ac_ext <<_ACEOF 3955/* confdefs.h. */ 3956_ACEOF 3957cat confdefs.h >>conftest.$ac_ext 3958cat >>conftest.$ac_ext <<_ACEOF 3959/* end confdefs.h. */ 3960$ac_includes_default 3961 3962#include <$ac_header> 3963_ACEOF 3964rm -f conftest.$ac_objext 3965if { (ac_try="$ac_compile" 3966case "(($ac_try" in 3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3968 *) ac_try_echo=$ac_try;; 3969esac 3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3971 (eval "$ac_compile") 2>conftest.er1 3972 ac_status=$? 3973 grep -v '^ *+' conftest.er1 >conftest.err 3974 rm -f conftest.er1 3975 cat conftest.err >&5 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3977 (exit $ac_status); } && { 3978 test -z "$ac_c_werror_flag" || 3979 test ! -s conftest.err 3980 } && test -s conftest.$ac_objext; then 3981 eval "$as_ac_Header=yes" 3982else 3983 echo "$as_me: failed program was:" >&5 3984sed 's/^/| /' conftest.$ac_ext >&5 3985 3986 eval "$as_ac_Header=no" 3987fi 3988 3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3990fi 3991ac_res=`eval echo '${'$as_ac_Header'}'` 3992 { echo "$as_me:$LINENO: result: $ac_res" >&5 3993echo "${ECHO_T}$ac_res" >&6; } 3994if test `eval echo '${'$as_ac_Header'}'` = yes; then 3995 cat >>confdefs.h <<_ACEOF 3996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3997_ACEOF 3998 3999fi 4000 4001done 4002 4003 4004 4005 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4006 4007 4008 #------------------------------------------------------------------------ 4009 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4010 # It makes compiling go faster. (This is only a performance feature.) 4011 #------------------------------------------------------------------------ 4012 4013 if test -z "$no_pipe" -a -n "$GCC"; then 4014 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4015echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4016if test "${tcl_cv_cc_pipe+set}" = set; then 4017 echo $ECHO_N "(cached) $ECHO_C" >&6 4018else 4019 4020 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4021 cat >conftest.$ac_ext <<_ACEOF 4022/* confdefs.h. */ 4023_ACEOF 4024cat confdefs.h >>conftest.$ac_ext 4025cat >>conftest.$ac_ext <<_ACEOF 4026/* end confdefs.h. */ 4027 4028int 4029main () 4030{ 4031 4032 ; 4033 return 0; 4034} 4035_ACEOF 4036rm -f conftest.$ac_objext 4037if { (ac_try="$ac_compile" 4038case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4043 (eval "$ac_compile") 2>conftest.er1 4044 ac_status=$? 4045 grep -v '^ *+' conftest.er1 >conftest.err 4046 rm -f conftest.er1 4047 cat conftest.err >&5 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } && { 4050 test -z "$ac_c_werror_flag" || 4051 test ! -s conftest.err 4052 } && test -s conftest.$ac_objext; then 4053 tcl_cv_cc_pipe=yes 4054else 4055 echo "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058 tcl_cv_cc_pipe=no 4059fi 4060 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 CFLAGS=$hold_cflags 4063fi 4064{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4065echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4066 if test $tcl_cv_cc_pipe = yes; then 4067 CFLAGS="$CFLAGS -pipe" 4068 fi 4069 fi 4070 4071 #-------------------------------------------------------------------- 4072 # Common compiler flag setup 4073 #-------------------------------------------------------------------- 4074 4075 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4076echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4077if test "${ac_cv_c_bigendian+set}" = set; then 4078 echo $ECHO_N "(cached) $ECHO_C" >&6 4079else 4080 # See if sys/param.h defines the BYTE_ORDER macro. 4081cat >conftest.$ac_ext <<_ACEOF 4082/* confdefs.h. */ 4083_ACEOF 4084cat confdefs.h >>conftest.$ac_ext 4085cat >>conftest.$ac_ext <<_ACEOF 4086/* end confdefs.h. */ 4087#include <sys/types.h> 4088#include <sys/param.h> 4089 4090int 4091main () 4092{ 4093#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4094 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4095 bogus endian macros 4096#endif 4097 4098 ; 4099 return 0; 4100} 4101_ACEOF 4102rm -f conftest.$ac_objext 4103if { (ac_try="$ac_compile" 4104case "(($ac_try" in 4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4106 *) ac_try_echo=$ac_try;; 4107esac 4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4109 (eval "$ac_compile") 2>conftest.er1 4110 ac_status=$? 4111 grep -v '^ *+' conftest.er1 >conftest.err 4112 rm -f conftest.er1 4113 cat conftest.err >&5 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4115 (exit $ac_status); } && { 4116 test -z "$ac_c_werror_flag" || 4117 test ! -s conftest.err 4118 } && test -s conftest.$ac_objext; then 4119 # It does; now see whether it defined to BIG_ENDIAN or not. 4120cat >conftest.$ac_ext <<_ACEOF 4121/* confdefs.h. */ 4122_ACEOF 4123cat confdefs.h >>conftest.$ac_ext 4124cat >>conftest.$ac_ext <<_ACEOF 4125/* end confdefs.h. */ 4126#include <sys/types.h> 4127#include <sys/param.h> 4128 4129int 4130main () 4131{ 4132#if BYTE_ORDER != BIG_ENDIAN 4133 not big endian 4134#endif 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140rm -f conftest.$ac_objext 4141if { (ac_try="$ac_compile" 4142case "(($ac_try" in 4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4144 *) ac_try_echo=$ac_try;; 4145esac 4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4147 (eval "$ac_compile") 2>conftest.er1 4148 ac_status=$? 4149 grep -v '^ *+' conftest.er1 >conftest.err 4150 rm -f conftest.er1 4151 cat conftest.err >&5 4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4153 (exit $ac_status); } && { 4154 test -z "$ac_c_werror_flag" || 4155 test ! -s conftest.err 4156 } && test -s conftest.$ac_objext; then 4157 ac_cv_c_bigendian=yes 4158else 4159 echo "$as_me: failed program was:" >&5 4160sed 's/^/| /' conftest.$ac_ext >&5 4161 4162 ac_cv_c_bigendian=no 4163fi 4164 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4166else 4167 echo "$as_me: failed program was:" >&5 4168sed 's/^/| /' conftest.$ac_ext >&5 4169 4170 # It does not; compile a test program. 4171if test "$cross_compiling" = yes; then 4172 # try to guess the endianness by grepping values into an object file 4173 ac_cv_c_bigendian=unknown 4174 cat >conftest.$ac_ext <<_ACEOF 4175/* confdefs.h. */ 4176_ACEOF 4177cat confdefs.h >>conftest.$ac_ext 4178cat >>conftest.$ac_ext <<_ACEOF 4179/* end confdefs.h. */ 4180short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4181short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4182void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4183short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4184short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4185void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4186int 4187main () 4188{ 4189 _ascii (); _ebcdic (); 4190 ; 4191 return 0; 4192} 4193_ACEOF 4194rm -f conftest.$ac_objext 4195if { (ac_try="$ac_compile" 4196case "(($ac_try" in 4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4198 *) ac_try_echo=$ac_try;; 4199esac 4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4201 (eval "$ac_compile") 2>conftest.er1 4202 ac_status=$? 4203 grep -v '^ *+' conftest.er1 >conftest.err 4204 rm -f conftest.er1 4205 cat conftest.err >&5 4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4207 (exit $ac_status); } && { 4208 test -z "$ac_c_werror_flag" || 4209 test ! -s conftest.err 4210 } && test -s conftest.$ac_objext; then 4211 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4212 ac_cv_c_bigendian=yes 4213fi 4214if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4215 if test "$ac_cv_c_bigendian" = unknown; then 4216 ac_cv_c_bigendian=no 4217 else 4218 # finding both strings is unlikely to happen, but who knows? 4219 ac_cv_c_bigendian=unknown 4220 fi 4221fi 4222else 4223 echo "$as_me: failed program was:" >&5 4224sed 's/^/| /' conftest.$ac_ext >&5 4225 4226 4227fi 4228 4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4230else 4231 cat >conftest.$ac_ext <<_ACEOF 4232/* confdefs.h. */ 4233_ACEOF 4234cat confdefs.h >>conftest.$ac_ext 4235cat >>conftest.$ac_ext <<_ACEOF 4236/* end confdefs.h. */ 4237$ac_includes_default 4238int 4239main () 4240{ 4241 4242 /* Are we little or big endian? From Harbison&Steele. */ 4243 union 4244 { 4245 long int l; 4246 char c[sizeof (long int)]; 4247 } u; 4248 u.l = 1; 4249 return u.c[sizeof (long int) - 1] == 1; 4250 4251 ; 4252 return 0; 4253} 4254_ACEOF 4255rm -f conftest$ac_exeext 4256if { (ac_try="$ac_link" 4257case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260esac 4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_link") 2>&5 4263 ac_status=$? 4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4266 { (case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4271 (eval "$ac_try") 2>&5 4272 ac_status=$? 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); }; }; then 4275 ac_cv_c_bigendian=no 4276else 4277 echo "$as_me: program exited with status $ac_status" >&5 4278echo "$as_me: failed program was:" >&5 4279sed 's/^/| /' conftest.$ac_ext >&5 4280 4281( exit $ac_status ) 4282ac_cv_c_bigendian=yes 4283fi 4284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4285fi 4286 4287 4288fi 4289 4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4291fi 4292{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4293echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4294case $ac_cv_c_bigendian in 4295 yes) 4296 4297cat >>confdefs.h <<\_ACEOF 4298#define WORDS_BIGENDIAN 1 4299_ACEOF 4300 ;; 4301 no) 4302 ;; 4303 *) 4304 { { echo "$as_me:$LINENO: error: unknown endianness 4305presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4306echo "$as_me: error: unknown endianness 4307presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4308 { (exit 1); exit 1; }; } ;; 4309esac 4310 4311 if test "${TEA_PLATFORM}" = "unix" ; then 4312 4313 #-------------------------------------------------------------------- 4314 # On a few very rare systems, all of the libm.a stuff is 4315 # already in libc.a. Set compiler flags accordingly. 4316 # Also, Linux requires the "ieee" library for math to work 4317 # right (and it must appear before "-lm"). 4318 #-------------------------------------------------------------------- 4319 4320 { echo "$as_me:$LINENO: checking for sin" >&5 4321echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4322if test "${ac_cv_func_sin+set}" = set; then 4323 echo $ECHO_N "(cached) $ECHO_C" >&6 4324else 4325 cat >conftest.$ac_ext <<_ACEOF 4326/* confdefs.h. */ 4327_ACEOF 4328cat confdefs.h >>conftest.$ac_ext 4329cat >>conftest.$ac_ext <<_ACEOF 4330/* end confdefs.h. */ 4331/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4332 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4333#define sin innocuous_sin 4334 4335/* System header to define __stub macros and hopefully few prototypes, 4336 which can conflict with char sin (); below. 4337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4338 <limits.h> exists even on freestanding compilers. */ 4339 4340#ifdef __STDC__ 4341# include <limits.h> 4342#else 4343# include <assert.h> 4344#endif 4345 4346#undef sin 4347 4348/* Override any GCC internal prototype to avoid an error. 4349 Use char because int might match the return type of a GCC 4350 builtin and then its argument prototype would still apply. */ 4351#ifdef __cplusplus 4352extern "C" 4353#endif 4354char sin (); 4355/* The GNU C library defines this for functions which it implements 4356 to always fail with ENOSYS. Some functions are actually named 4357 something starting with __ and the normal name is an alias. */ 4358#if defined __stub_sin || defined __stub___sin 4359choke me 4360#endif 4361 4362int 4363main () 4364{ 4365return sin (); 4366 ; 4367 return 0; 4368} 4369_ACEOF 4370rm -f conftest.$ac_objext conftest$ac_exeext 4371if { (ac_try="$ac_link" 4372case "(($ac_try" in 4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4374 *) ac_try_echo=$ac_try;; 4375esac 4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4377 (eval "$ac_link") 2>conftest.er1 4378 ac_status=$? 4379 grep -v '^ *+' conftest.er1 >conftest.err 4380 rm -f conftest.er1 4381 cat conftest.err >&5 4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4383 (exit $ac_status); } && { 4384 test -z "$ac_c_werror_flag" || 4385 test ! -s conftest.err 4386 } && test -s conftest$ac_exeext && 4387 $as_test_x conftest$ac_exeext; then 4388 ac_cv_func_sin=yes 4389else 4390 echo "$as_me: failed program was:" >&5 4391sed 's/^/| /' conftest.$ac_ext >&5 4392 4393 ac_cv_func_sin=no 4394fi 4395 4396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4397 conftest$ac_exeext conftest.$ac_ext 4398fi 4399{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4400echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4401if test $ac_cv_func_sin = yes; then 4402 MATH_LIBS="" 4403else 4404 MATH_LIBS="-lm" 4405fi 4406 4407 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4408echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4409if test "${ac_cv_lib_ieee_main+set}" = set; then 4410 echo $ECHO_N "(cached) $ECHO_C" >&6 4411else 4412 ac_check_lib_save_LIBS=$LIBS 4413LIBS="-lieee $LIBS" 4414cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420 4421 4422int 4423main () 4424{ 4425return main (); 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430rm -f conftest.$ac_objext conftest$ac_exeext 4431if { (ac_try="$ac_link" 4432case "(($ac_try" in 4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4434 *) ac_try_echo=$ac_try;; 4435esac 4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4437 (eval "$ac_link") 2>conftest.er1 4438 ac_status=$? 4439 grep -v '^ *+' conftest.er1 >conftest.err 4440 rm -f conftest.er1 4441 cat conftest.err >&5 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); } && { 4444 test -z "$ac_c_werror_flag" || 4445 test ! -s conftest.err 4446 } && test -s conftest$ac_exeext && 4447 $as_test_x conftest$ac_exeext; then 4448 ac_cv_lib_ieee_main=yes 4449else 4450 echo "$as_me: failed program was:" >&5 4451sed 's/^/| /' conftest.$ac_ext >&5 4452 4453 ac_cv_lib_ieee_main=no 4454fi 4455 4456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4457 conftest$ac_exeext conftest.$ac_ext 4458LIBS=$ac_check_lib_save_LIBS 4459fi 4460{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4461echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4462if test $ac_cv_lib_ieee_main = yes; then 4463 MATH_LIBS="-lieee $MATH_LIBS" 4464fi 4465 4466 4467 #-------------------------------------------------------------------- 4468 # Interactive UNIX requires -linet instead of -lsocket, plus it 4469 # needs net/errno.h to define the socket-related error codes. 4470 #-------------------------------------------------------------------- 4471 4472 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4473echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4474if test "${ac_cv_lib_inet_main+set}" = set; then 4475 echo $ECHO_N "(cached) $ECHO_C" >&6 4476else 4477 ac_check_lib_save_LIBS=$LIBS 4478LIBS="-linet $LIBS" 4479cat >conftest.$ac_ext <<_ACEOF 4480/* confdefs.h. */ 4481_ACEOF 4482cat confdefs.h >>conftest.$ac_ext 4483cat >>conftest.$ac_ext <<_ACEOF 4484/* end confdefs.h. */ 4485 4486 4487int 4488main () 4489{ 4490return main (); 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495rm -f conftest.$ac_objext conftest$ac_exeext 4496if { (ac_try="$ac_link" 4497case "(($ac_try" in 4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4499 *) ac_try_echo=$ac_try;; 4500esac 4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4502 (eval "$ac_link") 2>conftest.er1 4503 ac_status=$? 4504 grep -v '^ *+' conftest.er1 >conftest.err 4505 rm -f conftest.er1 4506 cat conftest.err >&5 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); } && { 4509 test -z "$ac_c_werror_flag" || 4510 test ! -s conftest.err 4511 } && test -s conftest$ac_exeext && 4512 $as_test_x conftest$ac_exeext; then 4513 ac_cv_lib_inet_main=yes 4514else 4515 echo "$as_me: failed program was:" >&5 4516sed 's/^/| /' conftest.$ac_ext >&5 4517 4518 ac_cv_lib_inet_main=no 4519fi 4520 4521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4522 conftest$ac_exeext conftest.$ac_ext 4523LIBS=$ac_check_lib_save_LIBS 4524fi 4525{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4526echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4527if test $ac_cv_lib_inet_main = yes; then 4528 LIBS="$LIBS -linet" 4529fi 4530 4531 if test "${ac_cv_header_net_errno_h+set}" = set; then 4532 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4533echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4534if test "${ac_cv_header_net_errno_h+set}" = set; then 4535 echo $ECHO_N "(cached) $ECHO_C" >&6 4536fi 4537{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4538echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4539else 4540 # Is the header compilable? 4541{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4542echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4543cat >conftest.$ac_ext <<_ACEOF 4544/* confdefs.h. */ 4545_ACEOF 4546cat confdefs.h >>conftest.$ac_ext 4547cat >>conftest.$ac_ext <<_ACEOF 4548/* end confdefs.h. */ 4549$ac_includes_default 4550#include <net/errno.h> 4551_ACEOF 4552rm -f conftest.$ac_objext 4553if { (ac_try="$ac_compile" 4554case "(($ac_try" in 4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4556 *) ac_try_echo=$ac_try;; 4557esac 4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4559 (eval "$ac_compile") 2>conftest.er1 4560 ac_status=$? 4561 grep -v '^ *+' conftest.er1 >conftest.err 4562 rm -f conftest.er1 4563 cat conftest.err >&5 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); } && { 4566 test -z "$ac_c_werror_flag" || 4567 test ! -s conftest.err 4568 } && test -s conftest.$ac_objext; then 4569 ac_header_compiler=yes 4570else 4571 echo "$as_me: failed program was:" >&5 4572sed 's/^/| /' conftest.$ac_ext >&5 4573 4574 ac_header_compiler=no 4575fi 4576 4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4579echo "${ECHO_T}$ac_header_compiler" >&6; } 4580 4581# Is the header present? 4582{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4583echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4584cat >conftest.$ac_ext <<_ACEOF 4585/* confdefs.h. */ 4586_ACEOF 4587cat confdefs.h >>conftest.$ac_ext 4588cat >>conftest.$ac_ext <<_ACEOF 4589/* end confdefs.h. */ 4590#include <net/errno.h> 4591_ACEOF 4592if { (ac_try="$ac_cpp conftest.$ac_ext" 4593case "(($ac_try" in 4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4595 *) ac_try_echo=$ac_try;; 4596esac 4597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4599 ac_status=$? 4600 grep -v '^ *+' conftest.er1 >conftest.err 4601 rm -f conftest.er1 4602 cat conftest.err >&5 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); } >/dev/null && { 4605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4606 test ! -s conftest.err 4607 }; then 4608 ac_header_preproc=yes 4609else 4610 echo "$as_me: failed program was:" >&5 4611sed 's/^/| /' conftest.$ac_ext >&5 4612 4613 ac_header_preproc=no 4614fi 4615 4616rm -f conftest.err conftest.$ac_ext 4617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4618echo "${ECHO_T}$ac_header_preproc" >&6; } 4619 4620# So? What about this header? 4621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4622 yes:no: ) 4623 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4624echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4625 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4626echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4627 ac_header_preproc=yes 4628 ;; 4629 no:yes:* ) 4630 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4631echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4632 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4633echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4634 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4635echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4636 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4637echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4638 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4639echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4641echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4642 4643 ;; 4644esac 4645{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4646echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4647if test "${ac_cv_header_net_errno_h+set}" = set; then 4648 echo $ECHO_N "(cached) $ECHO_C" >&6 4649else 4650 ac_cv_header_net_errno_h=$ac_header_preproc 4651fi 4652{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4653echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4654 4655fi 4656if test $ac_cv_header_net_errno_h = yes; then 4657 4658 4659cat >>confdefs.h <<\_ACEOF 4660#define HAVE_NET_ERRNO_H 1 4661_ACEOF 4662 4663fi 4664 4665 4666 4667 #-------------------------------------------------------------------- 4668 # Check for the existence of the -lsocket and -lnsl libraries. 4669 # The order here is important, so that they end up in the right 4670 # order in the command line generated by make. Here are some 4671 # special considerations: 4672 # 1. Use "connect" and "accept" to check for -lsocket, and 4673 # "gethostbyname" to check for -lnsl. 4674 # 2. Use each function name only once: can't redo a check because 4675 # autoconf caches the results of the last check and won't redo it. 4676 # 3. Use -lnsl and -lsocket only if they supply procedures that 4677 # aren't already present in the normal libraries. This is because 4678 # IRIX 5.2 has libraries, but they aren't needed and they're 4679 # bogus: they goof up name resolution if used. 4680 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4681 # To get around this problem, check for both libraries together 4682 # if -lsocket doesn't work by itself. 4683 #-------------------------------------------------------------------- 4684 4685 tcl_checkBoth=0 4686 { echo "$as_me:$LINENO: checking for connect" >&5 4687echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4688if test "${ac_cv_func_connect+set}" = set; then 4689 echo $ECHO_N "(cached) $ECHO_C" >&6 4690else 4691 cat >conftest.$ac_ext <<_ACEOF 4692/* confdefs.h. */ 4693_ACEOF 4694cat confdefs.h >>conftest.$ac_ext 4695cat >>conftest.$ac_ext <<_ACEOF 4696/* end confdefs.h. */ 4697/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4699#define connect innocuous_connect 4700 4701/* System header to define __stub macros and hopefully few prototypes, 4702 which can conflict with char connect (); below. 4703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4704 <limits.h> exists even on freestanding compilers. */ 4705 4706#ifdef __STDC__ 4707# include <limits.h> 4708#else 4709# include <assert.h> 4710#endif 4711 4712#undef connect 4713 4714/* Override any GCC internal prototype to avoid an error. 4715 Use char because int might match the return type of a GCC 4716 builtin and then its argument prototype would still apply. */ 4717#ifdef __cplusplus 4718extern "C" 4719#endif 4720char connect (); 4721/* The GNU C library defines this for functions which it implements 4722 to always fail with ENOSYS. Some functions are actually named 4723 something starting with __ and the normal name is an alias. */ 4724#if defined __stub_connect || defined __stub___connect 4725choke me 4726#endif 4727 4728int 4729main () 4730{ 4731return connect (); 4732 ; 4733 return 0; 4734} 4735_ACEOF 4736rm -f conftest.$ac_objext conftest$ac_exeext 4737if { (ac_try="$ac_link" 4738case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4743 (eval "$ac_link") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } && { 4750 test -z "$ac_c_werror_flag" || 4751 test ! -s conftest.err 4752 } && test -s conftest$ac_exeext && 4753 $as_test_x conftest$ac_exeext; then 4754 ac_cv_func_connect=yes 4755else 4756 echo "$as_me: failed program was:" >&5 4757sed 's/^/| /' conftest.$ac_ext >&5 4758 4759 ac_cv_func_connect=no 4760fi 4761 4762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4763 conftest$ac_exeext conftest.$ac_ext 4764fi 4765{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4766echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4767if test $ac_cv_func_connect = yes; then 4768 tcl_checkSocket=0 4769else 4770 tcl_checkSocket=1 4771fi 4772 4773 if test "$tcl_checkSocket" = 1; then 4774 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4775echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4776if test "${ac_cv_func_setsockopt+set}" = set; then 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 4778else 4779 cat >conftest.$ac_ext <<_ACEOF 4780/* confdefs.h. */ 4781_ACEOF 4782cat confdefs.h >>conftest.$ac_ext 4783cat >>conftest.$ac_ext <<_ACEOF 4784/* end confdefs.h. */ 4785/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4786 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4787#define setsockopt innocuous_setsockopt 4788 4789/* System header to define __stub macros and hopefully few prototypes, 4790 which can conflict with char setsockopt (); below. 4791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4792 <limits.h> exists even on freestanding compilers. */ 4793 4794#ifdef __STDC__ 4795# include <limits.h> 4796#else 4797# include <assert.h> 4798#endif 4799 4800#undef setsockopt 4801 4802/* Override any GCC internal prototype to avoid an error. 4803 Use char because int might match the return type of a GCC 4804 builtin and then its argument prototype would still apply. */ 4805#ifdef __cplusplus 4806extern "C" 4807#endif 4808char setsockopt (); 4809/* The GNU C library defines this for functions which it implements 4810 to always fail with ENOSYS. Some functions are actually named 4811 something starting with __ and the normal name is an alias. */ 4812#if defined __stub_setsockopt || defined __stub___setsockopt 4813choke me 4814#endif 4815 4816int 4817main () 4818{ 4819return setsockopt (); 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824rm -f conftest.$ac_objext conftest$ac_exeext 4825if { (ac_try="$ac_link" 4826case "(($ac_try" in 4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4828 *) ac_try_echo=$ac_try;; 4829esac 4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4831 (eval "$ac_link") 2>conftest.er1 4832 ac_status=$? 4833 grep -v '^ *+' conftest.er1 >conftest.err 4834 rm -f conftest.er1 4835 cat conftest.err >&5 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); } && { 4838 test -z "$ac_c_werror_flag" || 4839 test ! -s conftest.err 4840 } && test -s conftest$ac_exeext && 4841 $as_test_x conftest$ac_exeext; then 4842 ac_cv_func_setsockopt=yes 4843else 4844 echo "$as_me: failed program was:" >&5 4845sed 's/^/| /' conftest.$ac_ext >&5 4846 4847 ac_cv_func_setsockopt=no 4848fi 4849 4850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4851 conftest$ac_exeext conftest.$ac_ext 4852fi 4853{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4854echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4855if test $ac_cv_func_setsockopt = yes; then 4856 : 4857else 4858 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4859echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4860if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4861 echo $ECHO_N "(cached) $ECHO_C" >&6 4862else 4863 ac_check_lib_save_LIBS=$LIBS 4864LIBS="-lsocket $LIBS" 4865cat >conftest.$ac_ext <<_ACEOF 4866/* confdefs.h. */ 4867_ACEOF 4868cat confdefs.h >>conftest.$ac_ext 4869cat >>conftest.$ac_ext <<_ACEOF 4870/* end confdefs.h. */ 4871 4872/* Override any GCC internal prototype to avoid an error. 4873 Use char because int might match the return type of a GCC 4874 builtin and then its argument prototype would still apply. */ 4875#ifdef __cplusplus 4876extern "C" 4877#endif 4878char setsockopt (); 4879int 4880main () 4881{ 4882return setsockopt (); 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887rm -f conftest.$ac_objext conftest$ac_exeext 4888if { (ac_try="$ac_link" 4889case "(($ac_try" in 4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4891 *) ac_try_echo=$ac_try;; 4892esac 4893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4894 (eval "$ac_link") 2>conftest.er1 4895 ac_status=$? 4896 grep -v '^ *+' conftest.er1 >conftest.err 4897 rm -f conftest.er1 4898 cat conftest.err >&5 4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); } && { 4901 test -z "$ac_c_werror_flag" || 4902 test ! -s conftest.err 4903 } && test -s conftest$ac_exeext && 4904 $as_test_x conftest$ac_exeext; then 4905 ac_cv_lib_socket_setsockopt=yes 4906else 4907 echo "$as_me: failed program was:" >&5 4908sed 's/^/| /' conftest.$ac_ext >&5 4909 4910 ac_cv_lib_socket_setsockopt=no 4911fi 4912 4913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4914 conftest$ac_exeext conftest.$ac_ext 4915LIBS=$ac_check_lib_save_LIBS 4916fi 4917{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4918echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4919if test $ac_cv_lib_socket_setsockopt = yes; then 4920 LIBS="$LIBS -lsocket" 4921else 4922 tcl_checkBoth=1 4923fi 4924 4925fi 4926 4927 fi 4928 if test "$tcl_checkBoth" = 1; then 4929 tk_oldLibs=$LIBS 4930 LIBS="$LIBS -lsocket -lnsl" 4931 { echo "$as_me:$LINENO: checking for accept" >&5 4932echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4933if test "${ac_cv_func_accept+set}" = set; then 4934 echo $ECHO_N "(cached) $ECHO_C" >&6 4935else 4936 cat >conftest.$ac_ext <<_ACEOF 4937/* confdefs.h. */ 4938_ACEOF 4939cat confdefs.h >>conftest.$ac_ext 4940cat >>conftest.$ac_ext <<_ACEOF 4941/* end confdefs.h. */ 4942/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4943 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4944#define accept innocuous_accept 4945 4946/* System header to define __stub macros and hopefully few prototypes, 4947 which can conflict with char accept (); below. 4948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4949 <limits.h> exists even on freestanding compilers. */ 4950 4951#ifdef __STDC__ 4952# include <limits.h> 4953#else 4954# include <assert.h> 4955#endif 4956 4957#undef accept 4958 4959/* Override any GCC internal prototype to avoid an error. 4960 Use char because int might match the return type of a GCC 4961 builtin and then its argument prototype would still apply. */ 4962#ifdef __cplusplus 4963extern "C" 4964#endif 4965char accept (); 4966/* The GNU C library defines this for functions which it implements 4967 to always fail with ENOSYS. Some functions are actually named 4968 something starting with __ and the normal name is an alias. */ 4969#if defined __stub_accept || defined __stub___accept 4970choke me 4971#endif 4972 4973int 4974main () 4975{ 4976return accept (); 4977 ; 4978 return 0; 4979} 4980_ACEOF 4981rm -f conftest.$ac_objext conftest$ac_exeext 4982if { (ac_try="$ac_link" 4983case "(($ac_try" in 4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4985 *) ac_try_echo=$ac_try;; 4986esac 4987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4988 (eval "$ac_link") 2>conftest.er1 4989 ac_status=$? 4990 grep -v '^ *+' conftest.er1 >conftest.err 4991 rm -f conftest.er1 4992 cat conftest.err >&5 4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4994 (exit $ac_status); } && { 4995 test -z "$ac_c_werror_flag" || 4996 test ! -s conftest.err 4997 } && test -s conftest$ac_exeext && 4998 $as_test_x conftest$ac_exeext; then 4999 ac_cv_func_accept=yes 5000else 5001 echo "$as_me: failed program was:" >&5 5002sed 's/^/| /' conftest.$ac_ext >&5 5003 5004 ac_cv_func_accept=no 5005fi 5006 5007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5008 conftest$ac_exeext conftest.$ac_ext 5009fi 5010{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5011echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5012if test $ac_cv_func_accept = yes; then 5013 tcl_checkNsl=0 5014else 5015 LIBS=$tk_oldLibs 5016fi 5017 5018 fi 5019 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5020echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5021if test "${ac_cv_func_gethostbyname+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 cat >conftest.$ac_ext <<_ACEOF 5025/* confdefs.h. */ 5026_ACEOF 5027cat confdefs.h >>conftest.$ac_ext 5028cat >>conftest.$ac_ext <<_ACEOF 5029/* end confdefs.h. */ 5030/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5032#define gethostbyname innocuous_gethostbyname 5033 5034/* System header to define __stub macros and hopefully few prototypes, 5035 which can conflict with char gethostbyname (); below. 5036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5037 <limits.h> exists even on freestanding compilers. */ 5038 5039#ifdef __STDC__ 5040# include <limits.h> 5041#else 5042# include <assert.h> 5043#endif 5044 5045#undef gethostbyname 5046 5047/* Override any GCC internal prototype to avoid an error. 5048 Use char because int might match the return type of a GCC 5049 builtin and then its argument prototype would still apply. */ 5050#ifdef __cplusplus 5051extern "C" 5052#endif 5053char gethostbyname (); 5054/* The GNU C library defines this for functions which it implements 5055 to always fail with ENOSYS. Some functions are actually named 5056 something starting with __ and the normal name is an alias. */ 5057#if defined __stub_gethostbyname || defined __stub___gethostbyname 5058choke me 5059#endif 5060 5061int 5062main () 5063{ 5064return gethostbyname (); 5065 ; 5066 return 0; 5067} 5068_ACEOF 5069rm -f conftest.$ac_objext conftest$ac_exeext 5070if { (ac_try="$ac_link" 5071case "(($ac_try" in 5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5073 *) ac_try_echo=$ac_try;; 5074esac 5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5076 (eval "$ac_link") 2>conftest.er1 5077 ac_status=$? 5078 grep -v '^ *+' conftest.er1 >conftest.err 5079 rm -f conftest.er1 5080 cat conftest.err >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5082 (exit $ac_status); } && { 5083 test -z "$ac_c_werror_flag" || 5084 test ! -s conftest.err 5085 } && test -s conftest$ac_exeext && 5086 $as_test_x conftest$ac_exeext; then 5087 ac_cv_func_gethostbyname=yes 5088else 5089 echo "$as_me: failed program was:" >&5 5090sed 's/^/| /' conftest.$ac_ext >&5 5091 5092 ac_cv_func_gethostbyname=no 5093fi 5094 5095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5096 conftest$ac_exeext conftest.$ac_ext 5097fi 5098{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5099echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5100if test $ac_cv_func_gethostbyname = yes; then 5101 : 5102else 5103 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5104echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5105if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5106 echo $ECHO_N "(cached) $ECHO_C" >&6 5107else 5108 ac_check_lib_save_LIBS=$LIBS 5109LIBS="-lnsl $LIBS" 5110cat >conftest.$ac_ext <<_ACEOF 5111/* confdefs.h. */ 5112_ACEOF 5113cat confdefs.h >>conftest.$ac_ext 5114cat >>conftest.$ac_ext <<_ACEOF 5115/* end confdefs.h. */ 5116 5117/* Override any GCC internal prototype to avoid an error. 5118 Use char because int might match the return type of a GCC 5119 builtin and then its argument prototype would still apply. */ 5120#ifdef __cplusplus 5121extern "C" 5122#endif 5123char gethostbyname (); 5124int 5125main () 5126{ 5127return gethostbyname (); 5128 ; 5129 return 0; 5130} 5131_ACEOF 5132rm -f conftest.$ac_objext conftest$ac_exeext 5133if { (ac_try="$ac_link" 5134case "(($ac_try" in 5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5136 *) ac_try_echo=$ac_try;; 5137esac 5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5139 (eval "$ac_link") 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } && { 5146 test -z "$ac_c_werror_flag" || 5147 test ! -s conftest.err 5148 } && test -s conftest$ac_exeext && 5149 $as_test_x conftest$ac_exeext; then 5150 ac_cv_lib_nsl_gethostbyname=yes 5151else 5152 echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_cv_lib_nsl_gethostbyname=no 5156fi 5157 5158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5159 conftest$ac_exeext conftest.$ac_ext 5160LIBS=$ac_check_lib_save_LIBS 5161fi 5162{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5163echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5164if test $ac_cv_lib_nsl_gethostbyname = yes; then 5165 LIBS="$LIBS -lnsl" 5166fi 5167 5168fi 5169 5170 5171 # TEA specific: Don't perform the eval of the libraries here because 5172 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5173 5174 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5175 5176 5177 5178 5179 { echo "$as_me:$LINENO: checking dirent.h" >&5 5180echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5181if test "${tcl_cv_dirent_h+set}" = set; then 5182 echo $ECHO_N "(cached) $ECHO_C" >&6 5183else 5184 5185 cat >conftest.$ac_ext <<_ACEOF 5186/* confdefs.h. */ 5187_ACEOF 5188cat confdefs.h >>conftest.$ac_ext 5189cat >>conftest.$ac_ext <<_ACEOF 5190/* end confdefs.h. */ 5191#include <sys/types.h> 5192#include <dirent.h> 5193int 5194main () 5195{ 5196 5197#ifndef _POSIX_SOURCE 5198# ifdef __Lynx__ 5199 /* 5200 * Generate compilation error to make the test fail: Lynx headers 5201 * are only valid if really in the POSIX environment. 5202 */ 5203 5204 missing_procedure(); 5205# endif 5206#endif 5207DIR *d; 5208struct dirent *entryPtr; 5209char *p; 5210d = opendir("foobar"); 5211entryPtr = readdir(d); 5212p = entryPtr->d_name; 5213closedir(d); 5214 5215 ; 5216 return 0; 5217} 5218_ACEOF 5219rm -f conftest.$ac_objext conftest$ac_exeext 5220if { (ac_try="$ac_link" 5221case "(($ac_try" in 5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5223 *) ac_try_echo=$ac_try;; 5224esac 5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5226 (eval "$ac_link") 2>conftest.er1 5227 ac_status=$? 5228 grep -v '^ *+' conftest.er1 >conftest.err 5229 rm -f conftest.er1 5230 cat conftest.err >&5 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); } && { 5233 test -z "$ac_c_werror_flag" || 5234 test ! -s conftest.err 5235 } && test -s conftest$ac_exeext && 5236 $as_test_x conftest$ac_exeext; then 5237 tcl_cv_dirent_h=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242 tcl_cv_dirent_h=no 5243fi 5244 5245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5246 conftest$ac_exeext conftest.$ac_ext 5247fi 5248{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5249echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5250 5251 if test $tcl_cv_dirent_h = no; then 5252 5253cat >>confdefs.h <<\_ACEOF 5254#define NO_DIRENT_H 1 5255_ACEOF 5256 5257 fi 5258 5259 # TEA specific: 5260 if test "${ac_cv_header_errno_h+set}" = set; then 5261 { echo "$as_me:$LINENO: checking for errno.h" >&5 5262echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5263if test "${ac_cv_header_errno_h+set}" = set; then 5264 echo $ECHO_N "(cached) $ECHO_C" >&6 5265fi 5266{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5267echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5268else 5269 # Is the header compilable? 5270{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5271echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5272cat >conftest.$ac_ext <<_ACEOF 5273/* confdefs.h. */ 5274_ACEOF 5275cat confdefs.h >>conftest.$ac_ext 5276cat >>conftest.$ac_ext <<_ACEOF 5277/* end confdefs.h. */ 5278$ac_includes_default 5279#include <errno.h> 5280_ACEOF 5281rm -f conftest.$ac_objext 5282if { (ac_try="$ac_compile" 5283case "(($ac_try" in 5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5285 *) ac_try_echo=$ac_try;; 5286esac 5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5288 (eval "$ac_compile") 2>conftest.er1 5289 ac_status=$? 5290 grep -v '^ *+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } && { 5295 test -z "$ac_c_werror_flag" || 5296 test ! -s conftest.err 5297 } && test -s conftest.$ac_objext; then 5298 ac_header_compiler=yes 5299else 5300 echo "$as_me: failed program was:" >&5 5301sed 's/^/| /' conftest.$ac_ext >&5 5302 5303 ac_header_compiler=no 5304fi 5305 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5308echo "${ECHO_T}$ac_header_compiler" >&6; } 5309 5310# Is the header present? 5311{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5312echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5313cat >conftest.$ac_ext <<_ACEOF 5314/* confdefs.h. */ 5315_ACEOF 5316cat confdefs.h >>conftest.$ac_ext 5317cat >>conftest.$ac_ext <<_ACEOF 5318/* end confdefs.h. */ 5319#include <errno.h> 5320_ACEOF 5321if { (ac_try="$ac_cpp conftest.$ac_ext" 5322case "(($ac_try" in 5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5324 *) ac_try_echo=$ac_try;; 5325esac 5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5328 ac_status=$? 5329 grep -v '^ *+' conftest.er1 >conftest.err 5330 rm -f conftest.er1 5331 cat conftest.err >&5 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } >/dev/null && { 5334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5335 test ! -s conftest.err 5336 }; then 5337 ac_header_preproc=yes 5338else 5339 echo "$as_me: failed program was:" >&5 5340sed 's/^/| /' conftest.$ac_ext >&5 5341 5342 ac_header_preproc=no 5343fi 5344 5345rm -f conftest.err conftest.$ac_ext 5346{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5347echo "${ECHO_T}$ac_header_preproc" >&6; } 5348 5349# So? What about this header? 5350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5351 yes:no: ) 5352 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5353echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5354 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5355echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5356 ac_header_preproc=yes 5357 ;; 5358 no:yes:* ) 5359 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5360echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5361 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5362echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5363 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5364echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5365 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5366echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5367 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5368echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5369 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5370echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5371 5372 ;; 5373esac 5374{ echo "$as_me:$LINENO: checking for errno.h" >&5 5375echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5376if test "${ac_cv_header_errno_h+set}" = set; then 5377 echo $ECHO_N "(cached) $ECHO_C" >&6 5378else 5379 ac_cv_header_errno_h=$ac_header_preproc 5380fi 5381{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5382echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5383 5384fi 5385if test $ac_cv_header_errno_h = yes; then 5386 : 5387else 5388 5389cat >>confdefs.h <<\_ACEOF 5390#define NO_ERRNO_H 1 5391_ACEOF 5392 5393fi 5394 5395 5396 if test "${ac_cv_header_float_h+set}" = set; then 5397 { echo "$as_me:$LINENO: checking for float.h" >&5 5398echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5399if test "${ac_cv_header_float_h+set}" = set; then 5400 echo $ECHO_N "(cached) $ECHO_C" >&6 5401fi 5402{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5403echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5404else 5405 # Is the header compilable? 5406{ echo "$as_me:$LINENO: checking float.h usability" >&5 5407echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5408cat >conftest.$ac_ext <<_ACEOF 5409/* confdefs.h. */ 5410_ACEOF 5411cat confdefs.h >>conftest.$ac_ext 5412cat >>conftest.$ac_ext <<_ACEOF 5413/* end confdefs.h. */ 5414$ac_includes_default 5415#include <float.h> 5416_ACEOF 5417rm -f conftest.$ac_objext 5418if { (ac_try="$ac_compile" 5419case "(($ac_try" in 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5421 *) ac_try_echo=$ac_try;; 5422esac 5423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5424 (eval "$ac_compile") 2>conftest.er1 5425 ac_status=$? 5426 grep -v '^ *+' conftest.er1 >conftest.err 5427 rm -f conftest.er1 5428 cat conftest.err >&5 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); } && { 5431 test -z "$ac_c_werror_flag" || 5432 test ! -s conftest.err 5433 } && test -s conftest.$ac_objext; then 5434 ac_header_compiler=yes 5435else 5436 echo "$as_me: failed program was:" >&5 5437sed 's/^/| /' conftest.$ac_ext >&5 5438 5439 ac_header_compiler=no 5440fi 5441 5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5444echo "${ECHO_T}$ac_header_compiler" >&6; } 5445 5446# Is the header present? 5447{ echo "$as_me:$LINENO: checking float.h presence" >&5 5448echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5449cat >conftest.$ac_ext <<_ACEOF 5450/* confdefs.h. */ 5451_ACEOF 5452cat confdefs.h >>conftest.$ac_ext 5453cat >>conftest.$ac_ext <<_ACEOF 5454/* end confdefs.h. */ 5455#include <float.h> 5456_ACEOF 5457if { (ac_try="$ac_cpp conftest.$ac_ext" 5458case "(($ac_try" in 5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5460 *) ac_try_echo=$ac_try;; 5461esac 5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5464 ac_status=$? 5465 grep -v '^ *+' conftest.er1 >conftest.err 5466 rm -f conftest.er1 5467 cat conftest.err >&5 5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); } >/dev/null && { 5470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5471 test ! -s conftest.err 5472 }; then 5473 ac_header_preproc=yes 5474else 5475 echo "$as_me: failed program was:" >&5 5476sed 's/^/| /' conftest.$ac_ext >&5 5477 5478 ac_header_preproc=no 5479fi 5480 5481rm -f conftest.err conftest.$ac_ext 5482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5483echo "${ECHO_T}$ac_header_preproc" >&6; } 5484 5485# So? What about this header? 5486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5487 yes:no: ) 5488 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5489echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5490 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5491echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5492 ac_header_preproc=yes 5493 ;; 5494 no:yes:* ) 5495 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5496echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5497 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5498echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5499 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5500echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5501 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5502echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5503 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5504echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5505 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5506echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5507 5508 ;; 5509esac 5510{ echo "$as_me:$LINENO: checking for float.h" >&5 5511echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5512if test "${ac_cv_header_float_h+set}" = set; then 5513 echo $ECHO_N "(cached) $ECHO_C" >&6 5514else 5515 ac_cv_header_float_h=$ac_header_preproc 5516fi 5517{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5518echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5519 5520fi 5521if test $ac_cv_header_float_h = yes; then 5522 : 5523else 5524 5525cat >>confdefs.h <<\_ACEOF 5526#define NO_FLOAT_H 1 5527_ACEOF 5528 5529fi 5530 5531 5532 if test "${ac_cv_header_values_h+set}" = set; then 5533 { echo "$as_me:$LINENO: checking for values.h" >&5 5534echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5535if test "${ac_cv_header_values_h+set}" = set; then 5536 echo $ECHO_N "(cached) $ECHO_C" >&6 5537fi 5538{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5539echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5540else 5541 # Is the header compilable? 5542{ echo "$as_me:$LINENO: checking values.h usability" >&5 5543echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5544cat >conftest.$ac_ext <<_ACEOF 5545/* confdefs.h. */ 5546_ACEOF 5547cat confdefs.h >>conftest.$ac_ext 5548cat >>conftest.$ac_ext <<_ACEOF 5549/* end confdefs.h. */ 5550$ac_includes_default 5551#include <values.h> 5552_ACEOF 5553rm -f conftest.$ac_objext 5554if { (ac_try="$ac_compile" 5555case "(($ac_try" in 5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5557 *) ac_try_echo=$ac_try;; 5558esac 5559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5560 (eval "$ac_compile") 2>conftest.er1 5561 ac_status=$? 5562 grep -v '^ *+' conftest.er1 >conftest.err 5563 rm -f conftest.er1 5564 cat conftest.err >&5 5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 (exit $ac_status); } && { 5567 test -z "$ac_c_werror_flag" || 5568 test ! -s conftest.err 5569 } && test -s conftest.$ac_objext; then 5570 ac_header_compiler=yes 5571else 5572 echo "$as_me: failed program was:" >&5 5573sed 's/^/| /' conftest.$ac_ext >&5 5574 5575 ac_header_compiler=no 5576fi 5577 5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5580echo "${ECHO_T}$ac_header_compiler" >&6; } 5581 5582# Is the header present? 5583{ echo "$as_me:$LINENO: checking values.h presence" >&5 5584echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5585cat >conftest.$ac_ext <<_ACEOF 5586/* confdefs.h. */ 5587_ACEOF 5588cat confdefs.h >>conftest.$ac_ext 5589cat >>conftest.$ac_ext <<_ACEOF 5590/* end confdefs.h. */ 5591#include <values.h> 5592_ACEOF 5593if { (ac_try="$ac_cpp conftest.$ac_ext" 5594case "(($ac_try" in 5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5596 *) ac_try_echo=$ac_try;; 5597esac 5598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5600 ac_status=$? 5601 grep -v '^ *+' conftest.er1 >conftest.err 5602 rm -f conftest.er1 5603 cat conftest.err >&5 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); } >/dev/null && { 5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5607 test ! -s conftest.err 5608 }; then 5609 ac_header_preproc=yes 5610else 5611 echo "$as_me: failed program was:" >&5 5612sed 's/^/| /' conftest.$ac_ext >&5 5613 5614 ac_header_preproc=no 5615fi 5616 5617rm -f conftest.err conftest.$ac_ext 5618{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5619echo "${ECHO_T}$ac_header_preproc" >&6; } 5620 5621# So? What about this header? 5622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5623 yes:no: ) 5624 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5625echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5626 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5627echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5628 ac_header_preproc=yes 5629 ;; 5630 no:yes:* ) 5631 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5632echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5633 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5634echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5635 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5636echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5637 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5638echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5639 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5640echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5641 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5642echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5643 5644 ;; 5645esac 5646{ echo "$as_me:$LINENO: checking for values.h" >&5 5647echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5648if test "${ac_cv_header_values_h+set}" = set; then 5649 echo $ECHO_N "(cached) $ECHO_C" >&6 5650else 5651 ac_cv_header_values_h=$ac_header_preproc 5652fi 5653{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5654echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5655 5656fi 5657if test $ac_cv_header_values_h = yes; then 5658 : 5659else 5660 5661cat >>confdefs.h <<\_ACEOF 5662#define NO_VALUES_H 1 5663_ACEOF 5664 5665fi 5666 5667 5668 if test "${ac_cv_header_limits_h+set}" = set; then 5669 { echo "$as_me:$LINENO: checking for limits.h" >&5 5670echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5671if test "${ac_cv_header_limits_h+set}" = set; then 5672 echo $ECHO_N "(cached) $ECHO_C" >&6 5673fi 5674{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5675echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5676else 5677 # Is the header compilable? 5678{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5679echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5680cat >conftest.$ac_ext <<_ACEOF 5681/* confdefs.h. */ 5682_ACEOF 5683cat confdefs.h >>conftest.$ac_ext 5684cat >>conftest.$ac_ext <<_ACEOF 5685/* end confdefs.h. */ 5686$ac_includes_default 5687#include <limits.h> 5688_ACEOF 5689rm -f conftest.$ac_objext 5690if { (ac_try="$ac_compile" 5691case "(($ac_try" in 5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5693 *) ac_try_echo=$ac_try;; 5694esac 5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5696 (eval "$ac_compile") 2>conftest.er1 5697 ac_status=$? 5698 grep -v '^ *+' conftest.er1 >conftest.err 5699 rm -f conftest.er1 5700 cat conftest.err >&5 5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5702 (exit $ac_status); } && { 5703 test -z "$ac_c_werror_flag" || 5704 test ! -s conftest.err 5705 } && test -s conftest.$ac_objext; then 5706 ac_header_compiler=yes 5707else 5708 echo "$as_me: failed program was:" >&5 5709sed 's/^/| /' conftest.$ac_ext >&5 5710 5711 ac_header_compiler=no 5712fi 5713 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5716echo "${ECHO_T}$ac_header_compiler" >&6; } 5717 5718# Is the header present? 5719{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5720echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5721cat >conftest.$ac_ext <<_ACEOF 5722/* confdefs.h. */ 5723_ACEOF 5724cat confdefs.h >>conftest.$ac_ext 5725cat >>conftest.$ac_ext <<_ACEOF 5726/* end confdefs.h. */ 5727#include <limits.h> 5728_ACEOF 5729if { (ac_try="$ac_cpp conftest.$ac_ext" 5730case "(($ac_try" in 5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5732 *) ac_try_echo=$ac_try;; 5733esac 5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5736 ac_status=$? 5737 grep -v '^ *+' conftest.er1 >conftest.err 5738 rm -f conftest.er1 5739 cat conftest.err >&5 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5741 (exit $ac_status); } >/dev/null && { 5742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5743 test ! -s conftest.err 5744 }; then 5745 ac_header_preproc=yes 5746else 5747 echo "$as_me: failed program was:" >&5 5748sed 's/^/| /' conftest.$ac_ext >&5 5749 5750 ac_header_preproc=no 5751fi 5752 5753rm -f conftest.err conftest.$ac_ext 5754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5755echo "${ECHO_T}$ac_header_preproc" >&6; } 5756 5757# So? What about this header? 5758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5759 yes:no: ) 5760 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5761echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5762 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5763echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5764 ac_header_preproc=yes 5765 ;; 5766 no:yes:* ) 5767 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5768echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5769 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5770echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5771 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5772echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5773 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5774echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5775 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5776echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5777 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5778echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5779 5780 ;; 5781esac 5782{ echo "$as_me:$LINENO: checking for limits.h" >&5 5783echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5784if test "${ac_cv_header_limits_h+set}" = set; then 5785 echo $ECHO_N "(cached) $ECHO_C" >&6 5786else 5787 ac_cv_header_limits_h=$ac_header_preproc 5788fi 5789{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5790echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5791 5792fi 5793if test $ac_cv_header_limits_h = yes; then 5794 5795cat >>confdefs.h <<\_ACEOF 5796#define HAVE_LIMITS_H 1 5797_ACEOF 5798 5799else 5800 5801cat >>confdefs.h <<\_ACEOF 5802#define NO_LIMITS_H 1 5803_ACEOF 5804 5805fi 5806 5807 5808 if test "${ac_cv_header_stdlib_h+set}" = set; then 5809 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5810echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5811if test "${ac_cv_header_stdlib_h+set}" = set; then 5812 echo $ECHO_N "(cached) $ECHO_C" >&6 5813fi 5814{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5815echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5816else 5817 # Is the header compilable? 5818{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5819echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5820cat >conftest.$ac_ext <<_ACEOF 5821/* confdefs.h. */ 5822_ACEOF 5823cat confdefs.h >>conftest.$ac_ext 5824cat >>conftest.$ac_ext <<_ACEOF 5825/* end confdefs.h. */ 5826$ac_includes_default 5827#include <stdlib.h> 5828_ACEOF 5829rm -f conftest.$ac_objext 5830if { (ac_try="$ac_compile" 5831case "(($ac_try" in 5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5833 *) ac_try_echo=$ac_try;; 5834esac 5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5836 (eval "$ac_compile") 2>conftest.er1 5837 ac_status=$? 5838 grep -v '^ *+' conftest.er1 >conftest.err 5839 rm -f conftest.er1 5840 cat conftest.err >&5 5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5842 (exit $ac_status); } && { 5843 test -z "$ac_c_werror_flag" || 5844 test ! -s conftest.err 5845 } && test -s conftest.$ac_objext; then 5846 ac_header_compiler=yes 5847else 5848 echo "$as_me: failed program was:" >&5 5849sed 's/^/| /' conftest.$ac_ext >&5 5850 5851 ac_header_compiler=no 5852fi 5853 5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5856echo "${ECHO_T}$ac_header_compiler" >&6; } 5857 5858# Is the header present? 5859{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5860echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5861cat >conftest.$ac_ext <<_ACEOF 5862/* confdefs.h. */ 5863_ACEOF 5864cat confdefs.h >>conftest.$ac_ext 5865cat >>conftest.$ac_ext <<_ACEOF 5866/* end confdefs.h. */ 5867#include <stdlib.h> 5868_ACEOF 5869if { (ac_try="$ac_cpp conftest.$ac_ext" 5870case "(($ac_try" in 5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5872 *) ac_try_echo=$ac_try;; 5873esac 5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5876 ac_status=$? 5877 grep -v '^ *+' conftest.er1 >conftest.err 5878 rm -f conftest.er1 5879 cat conftest.err >&5 5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5881 (exit $ac_status); } >/dev/null && { 5882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5883 test ! -s conftest.err 5884 }; then 5885 ac_header_preproc=yes 5886else 5887 echo "$as_me: failed program was:" >&5 5888sed 's/^/| /' conftest.$ac_ext >&5 5889 5890 ac_header_preproc=no 5891fi 5892 5893rm -f conftest.err conftest.$ac_ext 5894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5895echo "${ECHO_T}$ac_header_preproc" >&6; } 5896 5897# So? What about this header? 5898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5899 yes:no: ) 5900 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5901echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5902 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5903echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5904 ac_header_preproc=yes 5905 ;; 5906 no:yes:* ) 5907 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5908echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5909 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5910echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5911 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5912echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5913 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5914echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5916echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5918echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5919 5920 ;; 5921esac 5922{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5923echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5924if test "${ac_cv_header_stdlib_h+set}" = set; then 5925 echo $ECHO_N "(cached) $ECHO_C" >&6 5926else 5927 ac_cv_header_stdlib_h=$ac_header_preproc 5928fi 5929{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5930echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5931 5932fi 5933if test $ac_cv_header_stdlib_h = yes; then 5934 tcl_ok=1 5935else 5936 tcl_ok=0 5937fi 5938 5939 5940 cat >conftest.$ac_ext <<_ACEOF 5941/* confdefs.h. */ 5942_ACEOF 5943cat confdefs.h >>conftest.$ac_ext 5944cat >>conftest.$ac_ext <<_ACEOF 5945/* end confdefs.h. */ 5946#include <stdlib.h> 5947 5948_ACEOF 5949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5950 $EGREP "strtol" >/dev/null 2>&1; then 5951 : 5952else 5953 tcl_ok=0 5954fi 5955rm -f -r conftest* 5956 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963#include <stdlib.h> 5964 5965_ACEOF 5966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5967 $EGREP "strtoul" >/dev/null 2>&1; then 5968 : 5969else 5970 tcl_ok=0 5971fi 5972rm -f -r conftest* 5973 5974 cat >conftest.$ac_ext <<_ACEOF 5975/* confdefs.h. */ 5976_ACEOF 5977cat confdefs.h >>conftest.$ac_ext 5978cat >>conftest.$ac_ext <<_ACEOF 5979/* end confdefs.h. */ 5980#include <stdlib.h> 5981 5982_ACEOF 5983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5984 $EGREP "strtod" >/dev/null 2>&1; then 5985 : 5986else 5987 tcl_ok=0 5988fi 5989rm -f -r conftest* 5990 5991 if test $tcl_ok = 0; then 5992 5993cat >>confdefs.h <<\_ACEOF 5994#define NO_STDLIB_H 1 5995_ACEOF 5996 5997 fi 5998 if test "${ac_cv_header_string_h+set}" = set; then 5999 { echo "$as_me:$LINENO: checking for string.h" >&5 6000echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6001if test "${ac_cv_header_string_h+set}" = set; then 6002 echo $ECHO_N "(cached) $ECHO_C" >&6 6003fi 6004{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6005echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6006else 6007 # Is the header compilable? 6008{ echo "$as_me:$LINENO: checking string.h usability" >&5 6009echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6010cat >conftest.$ac_ext <<_ACEOF 6011/* confdefs.h. */ 6012_ACEOF 6013cat confdefs.h >>conftest.$ac_ext 6014cat >>conftest.$ac_ext <<_ACEOF 6015/* end confdefs.h. */ 6016$ac_includes_default 6017#include <string.h> 6018_ACEOF 6019rm -f conftest.$ac_objext 6020if { (ac_try="$ac_compile" 6021case "(($ac_try" in 6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6023 *) ac_try_echo=$ac_try;; 6024esac 6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6026 (eval "$ac_compile") 2>conftest.er1 6027 ac_status=$? 6028 grep -v '^ *+' conftest.er1 >conftest.err 6029 rm -f conftest.er1 6030 cat conftest.err >&5 6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6032 (exit $ac_status); } && { 6033 test -z "$ac_c_werror_flag" || 6034 test ! -s conftest.err 6035 } && test -s conftest.$ac_objext; then 6036 ac_header_compiler=yes 6037else 6038 echo "$as_me: failed program was:" >&5 6039sed 's/^/| /' conftest.$ac_ext >&5 6040 6041 ac_header_compiler=no 6042fi 6043 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6046echo "${ECHO_T}$ac_header_compiler" >&6; } 6047 6048# Is the header present? 6049{ echo "$as_me:$LINENO: checking string.h presence" >&5 6050echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6051cat >conftest.$ac_ext <<_ACEOF 6052/* confdefs.h. */ 6053_ACEOF 6054cat confdefs.h >>conftest.$ac_ext 6055cat >>conftest.$ac_ext <<_ACEOF 6056/* end confdefs.h. */ 6057#include <string.h> 6058_ACEOF 6059if { (ac_try="$ac_cpp conftest.$ac_ext" 6060case "(($ac_try" in 6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6062 *) ac_try_echo=$ac_try;; 6063esac 6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6066 ac_status=$? 6067 grep -v '^ *+' conftest.er1 >conftest.err 6068 rm -f conftest.er1 6069 cat conftest.err >&5 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); } >/dev/null && { 6072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6073 test ! -s conftest.err 6074 }; then 6075 ac_header_preproc=yes 6076else 6077 echo "$as_me: failed program was:" >&5 6078sed 's/^/| /' conftest.$ac_ext >&5 6079 6080 ac_header_preproc=no 6081fi 6082 6083rm -f conftest.err conftest.$ac_ext 6084{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6085echo "${ECHO_T}$ac_header_preproc" >&6; } 6086 6087# So? What about this header? 6088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6089 yes:no: ) 6090 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6091echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6092 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6093echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6094 ac_header_preproc=yes 6095 ;; 6096 no:yes:* ) 6097 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6098echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6099 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6100echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6101 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6102echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6104echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6105 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6106echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6107 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6108echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6109 6110 ;; 6111esac 6112{ echo "$as_me:$LINENO: checking for string.h" >&5 6113echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6114if test "${ac_cv_header_string_h+set}" = set; then 6115 echo $ECHO_N "(cached) $ECHO_C" >&6 6116else 6117 ac_cv_header_string_h=$ac_header_preproc 6118fi 6119{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6120echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6121 6122fi 6123if test $ac_cv_header_string_h = yes; then 6124 tcl_ok=1 6125else 6126 tcl_ok=0 6127fi 6128 6129 6130 cat >conftest.$ac_ext <<_ACEOF 6131/* confdefs.h. */ 6132_ACEOF 6133cat confdefs.h >>conftest.$ac_ext 6134cat >>conftest.$ac_ext <<_ACEOF 6135/* end confdefs.h. */ 6136#include <string.h> 6137 6138_ACEOF 6139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6140 $EGREP "strstr" >/dev/null 2>&1; then 6141 : 6142else 6143 tcl_ok=0 6144fi 6145rm -f -r conftest* 6146 6147 cat >conftest.$ac_ext <<_ACEOF 6148/* confdefs.h. */ 6149_ACEOF 6150cat confdefs.h >>conftest.$ac_ext 6151cat >>conftest.$ac_ext <<_ACEOF 6152/* end confdefs.h. */ 6153#include <string.h> 6154 6155_ACEOF 6156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6157 $EGREP "strerror" >/dev/null 2>&1; then 6158 : 6159else 6160 tcl_ok=0 6161fi 6162rm -f -r conftest* 6163 6164 6165 # See also memmove check below for a place where NO_STRING_H can be 6166 # set and why. 6167 6168 if test $tcl_ok = 0; then 6169 6170cat >>confdefs.h <<\_ACEOF 6171#define NO_STRING_H 1 6172_ACEOF 6173 6174 fi 6175 6176 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6177 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6178echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6179if test "${ac_cv_header_sys_wait_h+set}" = set; then 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 6181fi 6182{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6183echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6184else 6185 # Is the header compilable? 6186{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6187echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6188cat >conftest.$ac_ext <<_ACEOF 6189/* confdefs.h. */ 6190_ACEOF 6191cat confdefs.h >>conftest.$ac_ext 6192cat >>conftest.$ac_ext <<_ACEOF 6193/* end confdefs.h. */ 6194$ac_includes_default 6195#include <sys/wait.h> 6196_ACEOF 6197rm -f conftest.$ac_objext 6198if { (ac_try="$ac_compile" 6199case "(($ac_try" in 6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6201 *) ac_try_echo=$ac_try;; 6202esac 6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6204 (eval "$ac_compile") 2>conftest.er1 6205 ac_status=$? 6206 grep -v '^ *+' conftest.er1 >conftest.err 6207 rm -f conftest.er1 6208 cat conftest.err >&5 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); } && { 6211 test -z "$ac_c_werror_flag" || 6212 test ! -s conftest.err 6213 } && test -s conftest.$ac_objext; then 6214 ac_header_compiler=yes 6215else 6216 echo "$as_me: failed program was:" >&5 6217sed 's/^/| /' conftest.$ac_ext >&5 6218 6219 ac_header_compiler=no 6220fi 6221 6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6224echo "${ECHO_T}$ac_header_compiler" >&6; } 6225 6226# Is the header present? 6227{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6228echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6229cat >conftest.$ac_ext <<_ACEOF 6230/* confdefs.h. */ 6231_ACEOF 6232cat confdefs.h >>conftest.$ac_ext 6233cat >>conftest.$ac_ext <<_ACEOF 6234/* end confdefs.h. */ 6235#include <sys/wait.h> 6236_ACEOF 6237if { (ac_try="$ac_cpp conftest.$ac_ext" 6238case "(($ac_try" in 6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6240 *) ac_try_echo=$ac_try;; 6241esac 6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6244 ac_status=$? 6245 grep -v '^ *+' conftest.er1 >conftest.err 6246 rm -f conftest.er1 6247 cat conftest.err >&5 6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6249 (exit $ac_status); } >/dev/null && { 6250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6251 test ! -s conftest.err 6252 }; then 6253 ac_header_preproc=yes 6254else 6255 echo "$as_me: failed program was:" >&5 6256sed 's/^/| /' conftest.$ac_ext >&5 6257 6258 ac_header_preproc=no 6259fi 6260 6261rm -f conftest.err conftest.$ac_ext 6262{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6263echo "${ECHO_T}$ac_header_preproc" >&6; } 6264 6265# So? What about this header? 6266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6267 yes:no: ) 6268 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6269echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6270 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6271echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6272 ac_header_preproc=yes 6273 ;; 6274 no:yes:* ) 6275 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6276echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6277 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6278echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6279 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6280echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6281 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6282echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6283 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6284echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6285 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6286echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6287 6288 ;; 6289esac 6290{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6291echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6292if test "${ac_cv_header_sys_wait_h+set}" = set; then 6293 echo $ECHO_N "(cached) $ECHO_C" >&6 6294else 6295 ac_cv_header_sys_wait_h=$ac_header_preproc 6296fi 6297{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6298echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6299 6300fi 6301if test $ac_cv_header_sys_wait_h = yes; then 6302 : 6303else 6304 6305cat >>confdefs.h <<\_ACEOF 6306#define NO_SYS_WAIT_H 1 6307_ACEOF 6308 6309fi 6310 6311 6312 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6313 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6314echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6315if test "${ac_cv_header_dlfcn_h+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317fi 6318{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6319echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6320else 6321 # Is the header compilable? 6322{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6323echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6324cat >conftest.$ac_ext <<_ACEOF 6325/* confdefs.h. */ 6326_ACEOF 6327cat confdefs.h >>conftest.$ac_ext 6328cat >>conftest.$ac_ext <<_ACEOF 6329/* end confdefs.h. */ 6330$ac_includes_default 6331#include <dlfcn.h> 6332_ACEOF 6333rm -f conftest.$ac_objext 6334if { (ac_try="$ac_compile" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_compile") 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } && { 6347 test -z "$ac_c_werror_flag" || 6348 test ! -s conftest.err 6349 } && test -s conftest.$ac_objext; then 6350 ac_header_compiler=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_header_compiler=no 6356fi 6357 6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6360echo "${ECHO_T}$ac_header_compiler" >&6; } 6361 6362# Is the header present? 6363{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6364echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6365cat >conftest.$ac_ext <<_ACEOF 6366/* confdefs.h. */ 6367_ACEOF 6368cat confdefs.h >>conftest.$ac_ext 6369cat >>conftest.$ac_ext <<_ACEOF 6370/* end confdefs.h. */ 6371#include <dlfcn.h> 6372_ACEOF 6373if { (ac_try="$ac_cpp conftest.$ac_ext" 6374case "(($ac_try" in 6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6376 *) ac_try_echo=$ac_try;; 6377esac 6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6380 ac_status=$? 6381 grep -v '^ *+' conftest.er1 >conftest.err 6382 rm -f conftest.er1 6383 cat conftest.err >&5 6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); } >/dev/null && { 6386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6387 test ! -s conftest.err 6388 }; then 6389 ac_header_preproc=yes 6390else 6391 echo "$as_me: failed program was:" >&5 6392sed 's/^/| /' conftest.$ac_ext >&5 6393 6394 ac_header_preproc=no 6395fi 6396 6397rm -f conftest.err conftest.$ac_ext 6398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6399echo "${ECHO_T}$ac_header_preproc" >&6; } 6400 6401# So? What about this header? 6402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6403 yes:no: ) 6404 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6405echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6406 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6407echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6408 ac_header_preproc=yes 6409 ;; 6410 no:yes:* ) 6411 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6412echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6413 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6414echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6415 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6416echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6417 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6418echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6419 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6420echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6421 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6422echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6423 6424 ;; 6425esac 6426{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6427echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6428if test "${ac_cv_header_dlfcn_h+set}" = set; then 6429 echo $ECHO_N "(cached) $ECHO_C" >&6 6430else 6431 ac_cv_header_dlfcn_h=$ac_header_preproc 6432fi 6433{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6434echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6435 6436fi 6437if test $ac_cv_header_dlfcn_h = yes; then 6438 : 6439else 6440 6441cat >>confdefs.h <<\_ACEOF 6442#define NO_DLFCN_H 1 6443_ACEOF 6444 6445fi 6446 6447 6448 6449 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6450 6451for ac_header in sys/param.h 6452do 6453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6455 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459fi 6460ac_res=`eval echo '${'$as_ac_Header'}'` 6461 { echo "$as_me:$LINENO: result: $ac_res" >&5 6462echo "${ECHO_T}$ac_res" >&6; } 6463else 6464 # Is the header compilable? 6465{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6467cat >conftest.$ac_ext <<_ACEOF 6468/* confdefs.h. */ 6469_ACEOF 6470cat confdefs.h >>conftest.$ac_ext 6471cat >>conftest.$ac_ext <<_ACEOF 6472/* end confdefs.h. */ 6473$ac_includes_default 6474#include <$ac_header> 6475_ACEOF 6476rm -f conftest.$ac_objext 6477if { (ac_try="$ac_compile" 6478case "(($ac_try" in 6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6480 *) ac_try_echo=$ac_try;; 6481esac 6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6483 (eval "$ac_compile") 2>conftest.er1 6484 ac_status=$? 6485 grep -v '^ *+' conftest.er1 >conftest.err 6486 rm -f conftest.er1 6487 cat conftest.err >&5 6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 (exit $ac_status); } && { 6490 test -z "$ac_c_werror_flag" || 6491 test ! -s conftest.err 6492 } && test -s conftest.$ac_objext; then 6493 ac_header_compiler=yes 6494else 6495 echo "$as_me: failed program was:" >&5 6496sed 's/^/| /' conftest.$ac_ext >&5 6497 6498 ac_header_compiler=no 6499fi 6500 6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6503echo "${ECHO_T}$ac_header_compiler" >&6; } 6504 6505# Is the header present? 6506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6508cat >conftest.$ac_ext <<_ACEOF 6509/* confdefs.h. */ 6510_ACEOF 6511cat confdefs.h >>conftest.$ac_ext 6512cat >>conftest.$ac_ext <<_ACEOF 6513/* end confdefs.h. */ 6514#include <$ac_header> 6515_ACEOF 6516if { (ac_try="$ac_cpp conftest.$ac_ext" 6517case "(($ac_try" in 6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6519 *) ac_try_echo=$ac_try;; 6520esac 6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6523 ac_status=$? 6524 grep -v '^ *+' conftest.er1 >conftest.err 6525 rm -f conftest.er1 6526 cat conftest.err >&5 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); } >/dev/null && { 6529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6530 test ! -s conftest.err 6531 }; then 6532 ac_header_preproc=yes 6533else 6534 echo "$as_me: failed program was:" >&5 6535sed 's/^/| /' conftest.$ac_ext >&5 6536 6537 ac_header_preproc=no 6538fi 6539 6540rm -f conftest.err conftest.$ac_ext 6541{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6542echo "${ECHO_T}$ac_header_preproc" >&6; } 6543 6544# So? What about this header? 6545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6546 yes:no: ) 6547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6551 ac_header_preproc=yes 6552 ;; 6553 no:yes:* ) 6554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6566 6567 ;; 6568esac 6569{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6572 echo $ECHO_N "(cached) $ECHO_C" >&6 6573else 6574 eval "$as_ac_Header=\$ac_header_preproc" 6575fi 6576ac_res=`eval echo '${'$as_ac_Header'}'` 6577 { echo "$as_me:$LINENO: result: $ac_res" >&5 6578echo "${ECHO_T}$ac_res" >&6; } 6579 6580fi 6581if test `eval echo '${'$as_ac_Header'}'` = yes; then 6582 cat >>confdefs.h <<_ACEOF 6583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6584_ACEOF 6585 6586fi 6587 6588done 6589 6590 6591 # Let the user call this, because if it triggers, they will 6592 # need a compat/strtod.c that is correct. Users can also 6593 # use Tcl_GetDouble(FromObj) instead. 6594 #TEA_BUGGY_STRTOD 6595 fi 6596 6597 6598#----------------------------------------------------------------------- 6599# Specify the C source files to compile in TEA_ADD_SOURCES, 6600# public headers that need to be installed in TEA_ADD_HEADERS, 6601# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6602# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6603# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6604# and PKG_TCL_SOURCES. 6605#----------------------------------------------------------------------- 6606 6607 6608 vars="memchan.c init.c counter.c" 6609 for i in $vars; do 6610 case $i in 6611 \$*) 6612 # allow $-var names 6613 PKG_SOURCES="$PKG_SOURCES $i" 6614 PKG_OBJECTS="$PKG_OBJECTS $i" 6615 ;; 6616 *) 6617 # check for existence - allows for generic/win/unix VPATH 6618 # To add more dirs here (like 'src'), you have to update VPATH 6619 # in Makefile.in as well 6620 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6621 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6622 -a ! -f "${srcdir}/macosx/$i" \ 6623 ; then 6624 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6625echo "$as_me: error: could not find source file '$i'" >&2;} 6626 { (exit 1); exit 1; }; } 6627 fi 6628 PKG_SOURCES="$PKG_SOURCES $i" 6629 # this assumes it is in a VPATH dir 6630 i=`basename $i` 6631 # handle user calling this before or after TEA_SETUP_COMPILER 6632 if test x"${OBJEXT}" != x ; then 6633 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6634 else 6635 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6636 fi 6637 PKG_OBJECTS="$PKG_OBJECTS $j" 6638 ;; 6639 esac 6640 done 6641 6642 6643 6644 6645 vars="fifo.c fifo2.c null.c zero.c random.c" 6646 for i in $vars; do 6647 case $i in 6648 \$*) 6649 # allow $-var names 6650 PKG_SOURCES="$PKG_SOURCES $i" 6651 PKG_OBJECTS="$PKG_OBJECTS $i" 6652 ;; 6653 *) 6654 # check for existence - allows for generic/win/unix VPATH 6655 # To add more dirs here (like 'src'), you have to update VPATH 6656 # in Makefile.in as well 6657 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6658 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6659 -a ! -f "${srcdir}/macosx/$i" \ 6660 ; then 6661 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6662echo "$as_me: error: could not find source file '$i'" >&2;} 6663 { (exit 1); exit 1; }; } 6664 fi 6665 PKG_SOURCES="$PKG_SOURCES $i" 6666 # this assumes it is in a VPATH dir 6667 i=`basename $i` 6668 # handle user calling this before or after TEA_SETUP_COMPILER 6669 if test x"${OBJEXT}" != x ; then 6670 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6671 else 6672 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6673 fi 6674 PKG_OBJECTS="$PKG_OBJECTS $j" 6675 ;; 6676 esac 6677 done 6678 6679 6680 6681 6682 vars="isaac/randport.c" 6683 for i in $vars; do 6684 case $i in 6685 \$*) 6686 # allow $-var names 6687 PKG_SOURCES="$PKG_SOURCES $i" 6688 PKG_OBJECTS="$PKG_OBJECTS $i" 6689 ;; 6690 *) 6691 # check for existence - allows for generic/win/unix VPATH 6692 # To add more dirs here (like 'src'), you have to update VPATH 6693 # in Makefile.in as well 6694 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6695 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6696 -a ! -f "${srcdir}/macosx/$i" \ 6697 ; then 6698 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6699echo "$as_me: error: could not find source file '$i'" >&2;} 6700 { (exit 1); exit 1; }; } 6701 fi 6702 PKG_SOURCES="$PKG_SOURCES $i" 6703 # this assumes it is in a VPATH dir 6704 i=`basename $i` 6705 # handle user calling this before or after TEA_SETUP_COMPILER 6706 if test x"${OBJEXT}" != x ; then 6707 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6708 else 6709 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6710 fi 6711 PKG_OBJECTS="$PKG_OBJECTS $j" 6712 ;; 6713 esac 6714 done 6715 6716 6717 6718 6719 vars="buf.c bufFix.c bufExt.c bufRange.c bufQueue.c" 6720 for i in $vars; do 6721 case $i in 6722 \$*) 6723 # allow $-var names 6724 PKG_SOURCES="$PKG_SOURCES $i" 6725 PKG_OBJECTS="$PKG_OBJECTS $i" 6726 ;; 6727 *) 6728 # check for existence - allows for generic/win/unix VPATH 6729 # To add more dirs here (like 'src'), you have to update VPATH 6730 # in Makefile.in as well 6731 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6732 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6733 -a ! -f "${srcdir}/macosx/$i" \ 6734 ; then 6735 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6736echo "$as_me: error: could not find source file '$i'" >&2;} 6737 { (exit 1); exit 1; }; } 6738 fi 6739 PKG_SOURCES="$PKG_SOURCES $i" 6740 # this assumes it is in a VPATH dir 6741 i=`basename $i` 6742 # handle user calling this before or after TEA_SETUP_COMPILER 6743 if test x"${OBJEXT}" != x ; then 6744 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6745 else 6746 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6747 fi 6748 PKG_OBJECTS="$PKG_OBJECTS $j" 6749 ;; 6750 esac 6751 done 6752 6753 6754 6755 6756 vars="bufStubInit.c memchanStubInit.c " 6757 for i in $vars; do 6758 case $i in 6759 \$*) 6760 # allow $-var names 6761 PKG_SOURCES="$PKG_SOURCES $i" 6762 PKG_OBJECTS="$PKG_OBJECTS $i" 6763 ;; 6764 *) 6765 # check for existence - allows for generic/win/unix VPATH 6766 # To add more dirs here (like 'src'), you have to update VPATH 6767 # in Makefile.in as well 6768 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6769 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6770 -a ! -f "${srcdir}/macosx/$i" \ 6771 ; then 6772 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6773echo "$as_me: error: could not find source file '$i'" >&2;} 6774 { (exit 1); exit 1; }; } 6775 fi 6776 PKG_SOURCES="$PKG_SOURCES $i" 6777 # this assumes it is in a VPATH dir 6778 i=`basename $i` 6779 # handle user calling this before or after TEA_SETUP_COMPILER 6780 if test x"${OBJEXT}" != x ; then 6781 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6782 else 6783 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6784 fi 6785 PKG_OBJECTS="$PKG_OBJECTS $j" 6786 ;; 6787 esac 6788 done 6789 6790 6791 6792 6793 vars="generic/memchan.h generic/memchanDecls.h" 6794 for i in $vars; do 6795 # check for existence, be strict because it is installed 6796 if test ! -f "${srcdir}/$i" ; then 6797 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6798echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6799 { (exit 1); exit 1; }; } 6800 fi 6801 PKG_HEADERS="$PKG_HEADERS $i" 6802 done 6803 6804 6805 6806 vars="generic/buf.h generic/bufDecls.h generic/bufIntDecls.h" 6807 for i in $vars; do 6808 # check for existence, be strict because it is installed 6809 if test ! -f "${srcdir}/$i" ; then 6810 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6811echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6812 { (exit 1); exit 1; }; } 6813 fi 6814 PKG_HEADERS="$PKG_HEADERS $i" 6815 done 6816 6817 6818 6819 vars="-I\"`\${CYGPATH} \${srcdir}/isaac`\"" 6820 for i in $vars; do 6821 PKG_INCLUDES="$PKG_INCLUDES $i" 6822 done 6823 6824 6825 6826 vars="" 6827 for i in $vars; do 6828 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6829 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6830 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6831 fi 6832 PKG_LIBS="$PKG_LIBS $i" 6833 done 6834 6835 6836 6837 PKG_CFLAGS="$PKG_CFLAGS " 6838 6839 6840 6841 vars="bufStubLib.c memchanStubLib.c" 6842 for i in $vars; do 6843 # check for existence - allows for generic/win/unix VPATH 6844 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6845 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6846 -a ! -f "${srcdir}/macosx/$i" \ 6847 ; then 6848 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6849echo "$as_me: error: could not find stub source file '$i'" >&2;} 6850 { (exit 1); exit 1; }; } 6851 fi 6852 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6853 # this assumes it is in a VPATH dir 6854 i=`basename $i` 6855 # handle user calling this before or after TEA_SETUP_COMPILER 6856 if test x"${OBJEXT}" != x ; then 6857 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6858 else 6859 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6860 fi 6861 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6862 done 6863 6864 6865 6866 6867 vars="bufStubLib.c memchanStubLib.c" 6868 for i in $vars; do 6869 case $i in 6870 \$*) 6871 # allow $-var names 6872 PKG_SOURCES="$PKG_SOURCES $i" 6873 PKG_OBJECTS="$PKG_OBJECTS $i" 6874 ;; 6875 *) 6876 # check for existence - allows for generic/win/unix VPATH 6877 # To add more dirs here (like 'src'), you have to update VPATH 6878 # in Makefile.in as well 6879 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6880 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6881 -a ! -f "${srcdir}/macosx/$i" \ 6882 ; then 6883 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6884echo "$as_me: error: could not find source file '$i'" >&2;} 6885 { (exit 1); exit 1; }; } 6886 fi 6887 PKG_SOURCES="$PKG_SOURCES $i" 6888 # this assumes it is in a VPATH dir 6889 i=`basename $i` 6890 # handle user calling this before or after TEA_SETUP_COMPILER 6891 if test x"${OBJEXT}" != x ; then 6892 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6893 else 6894 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6895 fi 6896 PKG_OBJECTS="$PKG_OBJECTS $j" 6897 ;; 6898 esac 6899 done 6900 6901 6902 6903 6904 vars="" 6905 for i in $vars; do 6906 # check for existence, be strict because it is installed 6907 if test ! -f "${srcdir}/$i" ; then 6908 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6909echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6910 { (exit 1); exit 1; }; } 6911 fi 6912 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6913 done 6914 6915 6916 6917#-------------------------------------------------------------------- 6918# A few miscellaneous platform-specific items: 6919# 6920# We have to define a special symbol for Windows (BUILD_Memchan in this 6921# case) so that we create the export library with the dll. 6922# 6923# Windows creates a few extra files that need to be cleaned up. 6924# We can add more files to clean if our extension creates any extra 6925# files in the future. 6926# 6927# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6928# These will be appended to the current set of compiler flags for 6929# your system. 6930#-------------------------------------------------------------------- 6931 6932if test "${TEA_PLATFORM}" = "windows" ; then 6933 cat >>confdefs.h <<\_ACEOF 6934#define BUILD_Memchan 1 6935_ACEOF 6936 6937 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6938else 6939 CLEANFILES="pkgIndex.tcl" 6940fi 6941 6942 6943#-------------------------------------------------------------------- 6944# __CHANGE__ 6945# Choose which headers you need. Extension authors should try very 6946# hard to only rely on the Tcl public header files. Internal headers 6947# contain private data structures and are subject to change without 6948# notice. 6949# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6950#-------------------------------------------------------------------- 6951 6952 6953 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6954echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6955 6956 6957# Check whether --with-tclinclude was given. 6958if test "${with_tclinclude+set}" = set; then 6959 withval=$with_tclinclude; with_tclinclude=${withval} 6960fi 6961 6962 6963 if test "${ac_cv_c_tclh+set}" = set; then 6964 echo $ECHO_N "(cached) $ECHO_C" >&6 6965else 6966 6967 # Use the value from --with-tclinclude, if it was given 6968 6969 if test x"${with_tclinclude}" != x ; then 6970 if test -f "${with_tclinclude}/tcl.h" ; then 6971 ac_cv_c_tclh=${with_tclinclude} 6972 else 6973 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6974echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6975 { (exit 1); exit 1; }; } 6976 fi 6977 else 6978 list="" 6979 if test "`uname -s`" = "Darwin"; then 6980 # If Tcl was built as a framework, attempt to use 6981 # the framework's Headers directory 6982 case ${TCL_DEFS} in 6983 *TCL_FRAMEWORK*) 6984 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6985 ;; 6986 esac 6987 fi 6988 6989 # Look in the source dir only if Tcl is not installed, 6990 # and in that situation, look there before installed locations. 6991 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6992 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6993 fi 6994 6995 # Check order: pkg --prefix location, Tcl's --prefix location, 6996 # relative to directory of tclConfig.sh. 6997 6998 eval "temp_includedir=${includedir}" 6999 list="$list \ 7000 `ls -d ${temp_includedir} 2>/dev/null` \ 7001 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 7002 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 7003 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 7004 list="$list /usr/local/include /usr/include" 7005 if test x"${TCL_INCLUDE_SPEC}" != x ; then 7006 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 7007 list="$list `ls -d ${d} 2>/dev/null`" 7008 fi 7009 fi 7010 for i in $list ; do 7011 if test -f "$i/tcl.h" ; then 7012 ac_cv_c_tclh=$i 7013 break 7014 fi 7015 done 7016 fi 7017 7018fi 7019 7020 7021 # Print a message based on how we determined the include path 7022 7023 if test x"${ac_cv_c_tclh}" = x ; then 7024 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 7025echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 7026 { (exit 1); exit 1; }; } 7027 else 7028 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 7029echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 7030 fi 7031 7032 # Convert to a native path and substitute into the output files. 7033 7034 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 7035 7036 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 7037 7038 7039 7040#TEA_PRIVATE_TCL_HEADERS 7041 7042#-------------------------------------------------------------------- 7043# Check whether --enable-threads or --disable-threads was given. 7044# So far only Tcl responds to this one. 7045#-------------------------------------------------------------------- 7046 7047 7048 # Check whether --enable-threads was given. 7049if test "${enable_threads+set}" = set; then 7050 enableval=$enable_threads; tcl_ok=$enableval 7051else 7052 tcl_ok=yes 7053fi 7054 7055 7056 if test "${enable_threads+set}" = set; then 7057 enableval="$enable_threads" 7058 tcl_ok=$enableval 7059 else 7060 tcl_ok=yes 7061 fi 7062 7063 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 7064 TCL_THREADS=1 7065 7066 if test "${TEA_PLATFORM}" != "windows" ; then 7067 # We are always OK on Windows, so check what this platform wants: 7068 7069 # USE_THREAD_ALLOC tells us to try the special thread-based 7070 # allocator that significantly reduces lock contention 7071 7072cat >>confdefs.h <<\_ACEOF 7073#define USE_THREAD_ALLOC 1 7074_ACEOF 7075 7076 7077cat >>confdefs.h <<\_ACEOF 7078#define _REENTRANT 1 7079_ACEOF 7080 7081 if test "`uname -s`" = "SunOS" ; then 7082 7083cat >>confdefs.h <<\_ACEOF 7084#define _POSIX_PTHREAD_SEMANTICS 1 7085_ACEOF 7086 7087 fi 7088 7089cat >>confdefs.h <<\_ACEOF 7090#define _THREAD_SAFE 1 7091_ACEOF 7092 7093 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 7094echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7095if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 7096 echo $ECHO_N "(cached) $ECHO_C" >&6 7097else 7098 ac_check_lib_save_LIBS=$LIBS 7099LIBS="-lpthread $LIBS" 7100cat >conftest.$ac_ext <<_ACEOF 7101/* confdefs.h. */ 7102_ACEOF 7103cat confdefs.h >>conftest.$ac_ext 7104cat >>conftest.$ac_ext <<_ACEOF 7105/* end confdefs.h. */ 7106 7107/* Override any GCC internal prototype to avoid an error. 7108 Use char because int might match the return type of a GCC 7109 builtin and then its argument prototype would still apply. */ 7110#ifdef __cplusplus 7111extern "C" 7112#endif 7113char pthread_mutex_init (); 7114int 7115main () 7116{ 7117return pthread_mutex_init (); 7118 ; 7119 return 0; 7120} 7121_ACEOF 7122rm -f conftest.$ac_objext conftest$ac_exeext 7123if { (ac_try="$ac_link" 7124case "(($ac_try" in 7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7126 *) ac_try_echo=$ac_try;; 7127esac 7128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7129 (eval "$ac_link") 2>conftest.er1 7130 ac_status=$? 7131 grep -v '^ *+' conftest.er1 >conftest.err 7132 rm -f conftest.er1 7133 cat conftest.err >&5 7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7135 (exit $ac_status); } && { 7136 test -z "$ac_c_werror_flag" || 7137 test ! -s conftest.err 7138 } && test -s conftest$ac_exeext && 7139 $as_test_x conftest$ac_exeext; then 7140 ac_cv_lib_pthread_pthread_mutex_init=yes 7141else 7142 echo "$as_me: failed program was:" >&5 7143sed 's/^/| /' conftest.$ac_ext >&5 7144 7145 ac_cv_lib_pthread_pthread_mutex_init=no 7146fi 7147 7148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7149 conftest$ac_exeext conftest.$ac_ext 7150LIBS=$ac_check_lib_save_LIBS 7151fi 7152{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7153echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7154if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7155 tcl_ok=yes 7156else 7157 tcl_ok=no 7158fi 7159 7160 if test "$tcl_ok" = "no"; then 7161 # Check a little harder for __pthread_mutex_init in the same 7162 # library, as some systems hide it there until pthread.h is 7163 # defined. We could alternatively do an AC_TRY_COMPILE with 7164 # pthread.h, but that will work with libpthread really doesn't 7165 # exist, like AIX 4.2. [Bug: 4359] 7166 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7167echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7168if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7169 echo $ECHO_N "(cached) $ECHO_C" >&6 7170else 7171 ac_check_lib_save_LIBS=$LIBS 7172LIBS="-lpthread $LIBS" 7173cat >conftest.$ac_ext <<_ACEOF 7174/* confdefs.h. */ 7175_ACEOF 7176cat confdefs.h >>conftest.$ac_ext 7177cat >>conftest.$ac_ext <<_ACEOF 7178/* end confdefs.h. */ 7179 7180/* Override any GCC internal prototype to avoid an error. 7181 Use char because int might match the return type of a GCC 7182 builtin and then its argument prototype would still apply. */ 7183#ifdef __cplusplus 7184extern "C" 7185#endif 7186char __pthread_mutex_init (); 7187int 7188main () 7189{ 7190return __pthread_mutex_init (); 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195rm -f conftest.$ac_objext conftest$ac_exeext 7196if { (ac_try="$ac_link" 7197case "(($ac_try" in 7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7199 *) ac_try_echo=$ac_try;; 7200esac 7201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7202 (eval "$ac_link") 2>conftest.er1 7203 ac_status=$? 7204 grep -v '^ *+' conftest.er1 >conftest.err 7205 rm -f conftest.er1 7206 cat conftest.err >&5 7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7208 (exit $ac_status); } && { 7209 test -z "$ac_c_werror_flag" || 7210 test ! -s conftest.err 7211 } && test -s conftest$ac_exeext && 7212 $as_test_x conftest$ac_exeext; then 7213 ac_cv_lib_pthread___pthread_mutex_init=yes 7214else 7215 echo "$as_me: failed program was:" >&5 7216sed 's/^/| /' conftest.$ac_ext >&5 7217 7218 ac_cv_lib_pthread___pthread_mutex_init=no 7219fi 7220 7221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7222 conftest$ac_exeext conftest.$ac_ext 7223LIBS=$ac_check_lib_save_LIBS 7224fi 7225{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7226echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7227if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7228 tcl_ok=yes 7229else 7230 tcl_ok=no 7231fi 7232 7233 fi 7234 7235 if test "$tcl_ok" = "yes"; then 7236 # The space is needed 7237 THREADS_LIBS=" -lpthread" 7238 else 7239 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7240echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7241if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7242 echo $ECHO_N "(cached) $ECHO_C" >&6 7243else 7244 ac_check_lib_save_LIBS=$LIBS 7245LIBS="-lpthreads $LIBS" 7246cat >conftest.$ac_ext <<_ACEOF 7247/* confdefs.h. */ 7248_ACEOF 7249cat confdefs.h >>conftest.$ac_ext 7250cat >>conftest.$ac_ext <<_ACEOF 7251/* end confdefs.h. */ 7252 7253/* Override any GCC internal prototype to avoid an error. 7254 Use char because int might match the return type of a GCC 7255 builtin and then its argument prototype would still apply. */ 7256#ifdef __cplusplus 7257extern "C" 7258#endif 7259char pthread_mutex_init (); 7260int 7261main () 7262{ 7263return pthread_mutex_init (); 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268rm -f conftest.$ac_objext conftest$ac_exeext 7269if { (ac_try="$ac_link" 7270case "(($ac_try" in 7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7272 *) ac_try_echo=$ac_try;; 7273esac 7274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7275 (eval "$ac_link") 2>conftest.er1 7276 ac_status=$? 7277 grep -v '^ *+' conftest.er1 >conftest.err 7278 rm -f conftest.er1 7279 cat conftest.err >&5 7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7281 (exit $ac_status); } && { 7282 test -z "$ac_c_werror_flag" || 7283 test ! -s conftest.err 7284 } && test -s conftest$ac_exeext && 7285 $as_test_x conftest$ac_exeext; then 7286 ac_cv_lib_pthreads_pthread_mutex_init=yes 7287else 7288 echo "$as_me: failed program was:" >&5 7289sed 's/^/| /' conftest.$ac_ext >&5 7290 7291 ac_cv_lib_pthreads_pthread_mutex_init=no 7292fi 7293 7294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7295 conftest$ac_exeext conftest.$ac_ext 7296LIBS=$ac_check_lib_save_LIBS 7297fi 7298{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7299echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7300if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7301 tcl_ok=yes 7302else 7303 tcl_ok=no 7304fi 7305 7306 if test "$tcl_ok" = "yes"; then 7307 # The space is needed 7308 THREADS_LIBS=" -lpthreads" 7309 else 7310 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7311echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7312if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7313 echo $ECHO_N "(cached) $ECHO_C" >&6 7314else 7315 ac_check_lib_save_LIBS=$LIBS 7316LIBS="-lc $LIBS" 7317cat >conftest.$ac_ext <<_ACEOF 7318/* confdefs.h. */ 7319_ACEOF 7320cat confdefs.h >>conftest.$ac_ext 7321cat >>conftest.$ac_ext <<_ACEOF 7322/* end confdefs.h. */ 7323 7324/* Override any GCC internal prototype to avoid an error. 7325 Use char because int might match the return type of a GCC 7326 builtin and then its argument prototype would still apply. */ 7327#ifdef __cplusplus 7328extern "C" 7329#endif 7330char pthread_mutex_init (); 7331int 7332main () 7333{ 7334return pthread_mutex_init (); 7335 ; 7336 return 0; 7337} 7338_ACEOF 7339rm -f conftest.$ac_objext conftest$ac_exeext 7340if { (ac_try="$ac_link" 7341case "(($ac_try" in 7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7343 *) ac_try_echo=$ac_try;; 7344esac 7345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7346 (eval "$ac_link") 2>conftest.er1 7347 ac_status=$? 7348 grep -v '^ *+' conftest.er1 >conftest.err 7349 rm -f conftest.er1 7350 cat conftest.err >&5 7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7352 (exit $ac_status); } && { 7353 test -z "$ac_c_werror_flag" || 7354 test ! -s conftest.err 7355 } && test -s conftest$ac_exeext && 7356 $as_test_x conftest$ac_exeext; then 7357 ac_cv_lib_c_pthread_mutex_init=yes 7358else 7359 echo "$as_me: failed program was:" >&5 7360sed 's/^/| /' conftest.$ac_ext >&5 7361 7362 ac_cv_lib_c_pthread_mutex_init=no 7363fi 7364 7365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7366 conftest$ac_exeext conftest.$ac_ext 7367LIBS=$ac_check_lib_save_LIBS 7368fi 7369{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7370echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7371if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7372 tcl_ok=yes 7373else 7374 tcl_ok=no 7375fi 7376 7377 if test "$tcl_ok" = "no"; then 7378 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7379echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7380if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7381 echo $ECHO_N "(cached) $ECHO_C" >&6 7382else 7383 ac_check_lib_save_LIBS=$LIBS 7384LIBS="-lc_r $LIBS" 7385cat >conftest.$ac_ext <<_ACEOF 7386/* confdefs.h. */ 7387_ACEOF 7388cat confdefs.h >>conftest.$ac_ext 7389cat >>conftest.$ac_ext <<_ACEOF 7390/* end confdefs.h. */ 7391 7392/* Override any GCC internal prototype to avoid an error. 7393 Use char because int might match the return type of a GCC 7394 builtin and then its argument prototype would still apply. */ 7395#ifdef __cplusplus 7396extern "C" 7397#endif 7398char pthread_mutex_init (); 7399int 7400main () 7401{ 7402return pthread_mutex_init (); 7403 ; 7404 return 0; 7405} 7406_ACEOF 7407rm -f conftest.$ac_objext conftest$ac_exeext 7408if { (ac_try="$ac_link" 7409case "(($ac_try" in 7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7411 *) ac_try_echo=$ac_try;; 7412esac 7413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7414 (eval "$ac_link") 2>conftest.er1 7415 ac_status=$? 7416 grep -v '^ *+' conftest.er1 >conftest.err 7417 rm -f conftest.er1 7418 cat conftest.err >&5 7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7420 (exit $ac_status); } && { 7421 test -z "$ac_c_werror_flag" || 7422 test ! -s conftest.err 7423 } && test -s conftest$ac_exeext && 7424 $as_test_x conftest$ac_exeext; then 7425 ac_cv_lib_c_r_pthread_mutex_init=yes 7426else 7427 echo "$as_me: failed program was:" >&5 7428sed 's/^/| /' conftest.$ac_ext >&5 7429 7430 ac_cv_lib_c_r_pthread_mutex_init=no 7431fi 7432 7433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7434 conftest$ac_exeext conftest.$ac_ext 7435LIBS=$ac_check_lib_save_LIBS 7436fi 7437{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7438echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7439if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7440 tcl_ok=yes 7441else 7442 tcl_ok=no 7443fi 7444 7445 if test "$tcl_ok" = "yes"; then 7446 # The space is needed 7447 THREADS_LIBS=" -pthread" 7448 else 7449 TCL_THREADS=0 7450 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7451echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7452 fi 7453 fi 7454 fi 7455 fi 7456 fi 7457 else 7458 TCL_THREADS=0 7459 fi 7460 # Do checking message here to not mess up interleaved configure output 7461 { echo "$as_me:$LINENO: checking for building with threads" >&5 7462echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7463 if test "${TCL_THREADS}" = 1; then 7464 7465cat >>confdefs.h <<\_ACEOF 7466#define TCL_THREADS 1 7467_ACEOF 7468 7469 { echo "$as_me:$LINENO: result: yes (default)" >&5 7470echo "${ECHO_T}yes (default)" >&6; } 7471 else 7472 { echo "$as_me:$LINENO: result: no" >&5 7473echo "${ECHO_T}no" >&6; } 7474 fi 7475 # TCL_THREADS sanity checking. See if our request for building with 7476 # threads is the same as the way Tcl was built. If not, warn the user. 7477 case ${TCL_DEFS} in 7478 *THREADS=1*) 7479 if test "${TCL_THREADS}" = "0"; then 7480 { echo "$as_me:$LINENO: WARNING: 7481 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7482 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7483echo "$as_me: WARNING: 7484 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7485 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7486 fi 7487 ;; 7488 *) 7489 if test "${TCL_THREADS}" = "1"; then 7490 { echo "$as_me:$LINENO: WARNING: 7491 --enable-threads requested, but building against a Tcl that is NOT 7492 thread-enabled. This is an OK configuration that will also run in 7493 a thread-enabled core." >&5 7494echo "$as_me: WARNING: 7495 --enable-threads requested, but building against a Tcl that is NOT 7496 thread-enabled. This is an OK configuration that will also run in 7497 a thread-enabled core." >&2;} 7498 fi 7499 ;; 7500 esac 7501 7502 7503 7504#-------------------------------------------------------------------- 7505# The statement below defines a collection of symbols related to 7506# building as a shared library instead of a static library. 7507#-------------------------------------------------------------------- 7508 7509 7510 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7511echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7512 # Check whether --enable-shared was given. 7513if test "${enable_shared+set}" = set; then 7514 enableval=$enable_shared; tcl_ok=$enableval 7515else 7516 tcl_ok=yes 7517fi 7518 7519 7520 if test "${enable_shared+set}" = set; then 7521 enableval="$enable_shared" 7522 tcl_ok=$enableval 7523 else 7524 tcl_ok=yes 7525 fi 7526 7527 if test "$tcl_ok" = "yes" ; then 7528 { echo "$as_me:$LINENO: result: shared" >&5 7529echo "${ECHO_T}shared" >&6; } 7530 SHARED_BUILD=1 7531 else 7532 { echo "$as_me:$LINENO: result: static" >&5 7533echo "${ECHO_T}static" >&6; } 7534 SHARED_BUILD=0 7535 7536cat >>confdefs.h <<\_ACEOF 7537#define STATIC_BUILD 1 7538_ACEOF 7539 7540 fi 7541 7542 7543 7544#-------------------------------------------------------------------- 7545# This macro figures out what flags to use with the compiler/linker 7546# when building shared/static debug/optimized objects. This information 7547# can be taken from the tclConfig.sh file, but this figures it all out. 7548#-------------------------------------------------------------------- 7549 7550 7551 7552 7553 # Step 0.a: Enable 64 bit support? 7554 7555 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7556echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7557 # Check whether --enable-64bit was given. 7558if test "${enable_64bit+set}" = set; then 7559 enableval=$enable_64bit; do64bit=$enableval 7560else 7561 do64bit=no 7562fi 7563 7564 { echo "$as_me:$LINENO: result: $do64bit" >&5 7565echo "${ECHO_T}$do64bit" >&6; } 7566 7567 # Step 0.b: Enable Solaris 64 bit VIS support? 7568 7569 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7570echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7571 # Check whether --enable-64bit-vis was given. 7572if test "${enable_64bit_vis+set}" = set; then 7573 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7574else 7575 do64bitVIS=no 7576fi 7577 7578 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7579echo "${ECHO_T}$do64bitVIS" >&6; } 7580 # Force 64bit on with VIS 7581 if test "$do64bitVIS" = "yes"; then 7582 do64bit=yes 7583fi 7584 7585 7586 # Step 0.c: Check if visibility support is available. Do this here so 7587 # that platform specific alternatives can be used below if this fails. 7588 7589 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7590echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7591if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7592 echo $ECHO_N "(cached) $ECHO_C" >&6 7593else 7594 7595 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7596 cat >conftest.$ac_ext <<_ACEOF 7597/* confdefs.h. */ 7598_ACEOF 7599cat confdefs.h >>conftest.$ac_ext 7600cat >>conftest.$ac_ext <<_ACEOF 7601/* end confdefs.h. */ 7602 7603 extern __attribute__((__visibility__("hidden"))) void f(void); 7604 void f(void) {} 7605int 7606main () 7607{ 7608f(); 7609 ; 7610 return 0; 7611} 7612_ACEOF 7613rm -f conftest.$ac_objext conftest$ac_exeext 7614if { (ac_try="$ac_link" 7615case "(($ac_try" in 7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7617 *) ac_try_echo=$ac_try;; 7618esac 7619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7620 (eval "$ac_link") 2>conftest.er1 7621 ac_status=$? 7622 grep -v '^ *+' conftest.er1 >conftest.err 7623 rm -f conftest.er1 7624 cat conftest.err >&5 7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 (exit $ac_status); } && { 7627 test -z "$ac_c_werror_flag" || 7628 test ! -s conftest.err 7629 } && test -s conftest$ac_exeext && 7630 $as_test_x conftest$ac_exeext; then 7631 tcl_cv_cc_visibility_hidden=yes 7632else 7633 echo "$as_me: failed program was:" >&5 7634sed 's/^/| /' conftest.$ac_ext >&5 7635 7636 tcl_cv_cc_visibility_hidden=no 7637fi 7638 7639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7640 conftest$ac_exeext conftest.$ac_ext 7641 CFLAGS=$hold_cflags 7642fi 7643{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7644echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7645 if test $tcl_cv_cc_visibility_hidden = yes; then 7646 7647 7648cat >>confdefs.h <<\_ACEOF 7649#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7650_ACEOF 7651 7652 7653fi 7654 7655 7656 # Step 0.d: Disable -rpath support? 7657 7658 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7659echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7660 # Check whether --enable-rpath was given. 7661if test "${enable_rpath+set}" = set; then 7662 enableval=$enable_rpath; doRpath=$enableval 7663else 7664 doRpath=yes 7665fi 7666 7667 { echo "$as_me:$LINENO: result: $doRpath" >&5 7668echo "${ECHO_T}$doRpath" >&6; } 7669 7670 # TEA specific: Cross-compiling options for Windows/CE builds? 7671 7672 if test "${TEA_PLATFORM}" = windows; then 7673 7674 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7675echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7676 # Check whether --enable-wince was given. 7677if test "${enable_wince+set}" = set; then 7678 enableval=$enable_wince; doWince=$enableval 7679else 7680 doWince=no 7681fi 7682 7683 { echo "$as_me:$LINENO: result: $doWince" >&5 7684echo "${ECHO_T}$doWince" >&6; } 7685 7686fi 7687 7688 7689 # Set the variable "system" to hold the name and version number 7690 # for the system. 7691 7692 7693 { echo "$as_me:$LINENO: checking system version" >&5 7694echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7695if test "${tcl_cv_sys_version+set}" = set; then 7696 echo $ECHO_N "(cached) $ECHO_C" >&6 7697else 7698 7699 # TEA specific: 7700 if test "${TEA_PLATFORM}" = "windows" ; then 7701 tcl_cv_sys_version=windows 7702 else 7703 tcl_cv_sys_version=`uname -s`-`uname -r` 7704 if test "$?" -ne 0 ; then 7705 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7706echo "$as_me: WARNING: can't find uname command" >&2;} 7707 tcl_cv_sys_version=unknown 7708 else 7709 if test "`uname -s`" = "AIX" ; then 7710 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7711 fi 7712 fi 7713 fi 7714 7715fi 7716{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7717echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7718 system=$tcl_cv_sys_version 7719 7720 7721 # Require ranlib early so we can override it in special cases below. 7722 7723 7724 7725 # Set configuration options based on system name and version. 7726 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7727 # "windows" case and removed some core-only vars. 7728 7729 do64bit_ok=no 7730 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7731 SHLIB_LD_LIBS='${LIBS}' 7732 # When ld needs options to work in 64-bit mode, put them in 7733 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7734 # is disabled by the user. [Bug 1016796] 7735 LDFLAGS_ARCH="" 7736 UNSHARED_LIB_SUFFIX="" 7737 # TEA specific: use PACKAGE_VERSION instead of VERSION 7738 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7739 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7740 TCL_LIB_VERSIONS_OK=ok 7741 CFLAGS_DEBUG=-g 7742 CFLAGS_OPTIMIZE=-O 7743 if test "$GCC" = yes; then 7744 7745 # TEA specific: 7746 CFLAGS_OPTIMIZE=-O2 7747 CFLAGS_WARNING="-Wall" 7748 7749else 7750 CFLAGS_WARNING="" 7751fi 7752 7753 # Extract the first word of "ar", so it can be a program name with args. 7754set dummy ar; ac_word=$2 7755{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7757if test "${ac_cv_prog_AR+set}" = set; then 7758 echo $ECHO_N "(cached) $ECHO_C" >&6 7759else 7760 if test -n "$AR"; then 7761 ac_cv_prog_AR="$AR" # Let the user override the test. 7762else 7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764for as_dir in $PATH 7765do 7766 IFS=$as_save_IFS 7767 test -z "$as_dir" && as_dir=. 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7770 ac_cv_prog_AR="ar" 7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774done 7775done 7776IFS=$as_save_IFS 7777 7778fi 7779fi 7780AR=$ac_cv_prog_AR 7781if test -n "$AR"; then 7782 { echo "$as_me:$LINENO: result: $AR" >&5 7783echo "${ECHO_T}$AR" >&6; } 7784else 7785 { echo "$as_me:$LINENO: result: no" >&5 7786echo "${ECHO_T}no" >&6; } 7787fi 7788 7789 7790 STLIB_LD='${AR} cr' 7791 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7792 if test "x$SHLIB_VERSION" = x; then 7793 SHLIB_VERSION="1.0" 7794fi 7795 7796 case $system in 7797 # TEA specific: 7798 windows) 7799 # This is a 2-stage check to make sure we have the 64-bit SDK 7800 # We have to know where the SDK is installed. 7801 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7802 # MACHINE is IX86 for LINK, but this is used by the manifest, 7803 # which requires x86|amd64|ia64. 7804 MACHINE="X86" 7805 if test "$do64bit" != "no" ; then 7806 if test "x${MSSDK}x" = "xx" ; then 7807 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7808 fi 7809 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7810 PATH64="" 7811 case "$do64bit" in 7812 amd64|x64|yes) 7813 MACHINE="AMD64" ; # default to AMD64 64-bit build 7814 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7815 ;; 7816 ia64) 7817 MACHINE="IA64" 7818 PATH64="${MSSDK}/Bin/Win64" 7819 ;; 7820 esac 7821 if test ! -d "${PATH64}" ; then 7822 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7823echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7824 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7825echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7826 do64bit="no" 7827 else 7828 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7829echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7830 do64bit_ok="yes" 7831 fi 7832 fi 7833 7834 if test "$doWince" != "no" ; then 7835 if test "$do64bit" != "no" ; then 7836 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7837echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7838 { (exit 1); exit 1; }; } 7839 fi 7840 if test "$GCC" = "yes" ; then 7841 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7842echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7843 { (exit 1); exit 1; }; } 7844 fi 7845 7846 # First, look for one uninstalled. 7847 # the alternative search directory is invoked by --with-celib 7848 7849 if test x"${no_celib}" = x ; then 7850 # we reset no_celib in case something fails here 7851 no_celib=true 7852 7853# Check whether --with-celib was given. 7854if test "${with_celib+set}" = set; then 7855 withval=$with_celib; with_celibconfig=${withval} 7856fi 7857 7858 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7859echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7860 if test "${ac_cv_c_celibconfig+set}" = set; then 7861 echo $ECHO_N "(cached) $ECHO_C" >&6 7862else 7863 7864 # First check to see if --with-celibconfig was specified. 7865 if test x"${with_celibconfig}" != x ; then 7866 if test -d "${with_celibconfig}/inc" ; then 7867 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7868 else 7869 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7870echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7871 { (exit 1); exit 1; }; } 7872 fi 7873 fi 7874 7875 # then check for a celib library 7876 if test x"${ac_cv_c_celibconfig}" = x ; then 7877 for i in \ 7878 ../celib-palm-3.0 \ 7879 ../celib \ 7880 ../../celib-palm-3.0 \ 7881 ../../celib \ 7882 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7883 ${srcdir}/../celib-palm-3.0 \ 7884 ${srcdir}/../celib \ 7885 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7886 ; do 7887 if test -d "$i/inc" ; then 7888 ac_cv_c_celibconfig=`(cd $i; pwd)` 7889 break 7890 fi 7891 done 7892 fi 7893 7894fi 7895 7896 if test x"${ac_cv_c_celibconfig}" = x ; then 7897 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7898echo "$as_me: error: Cannot find celib support library directory" >&2;} 7899 { (exit 1); exit 1; }; } 7900 else 7901 no_celib= 7902 CELIB_DIR=${ac_cv_c_celibconfig} 7903 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7904 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7905echo "${ECHO_T}found $CELIB_DIR" >&6; } 7906 fi 7907 fi 7908 7909 # Set defaults for common evc4/PPC2003 setup 7910 # Currently Tcl requires 300+, possibly 420+ for sockets 7911 CEVERSION=420; # could be 211 300 301 400 420 ... 7912 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7913 ARCH=ARM; # could be ARM MIPS X86EM ... 7914 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7915 if test "$doWince" != "yes"; then 7916 # If !yes then the user specified something 7917 # Reset ARCH to allow user to skip specifying it 7918 ARCH= 7919 eval `echo $doWince | awk -F, '{ \ 7920 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7921 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7922 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7923 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7924 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7925 }'` 7926 if test "x${ARCH}" = "x" ; then 7927 ARCH=$TARGETCPU; 7928 fi 7929 fi 7930 OSVERSION=WCE$CEVERSION; 7931 if test "x${WCEROOT}" = "x" ; then 7932 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7933 if test ! -d "${WCEROOT}" ; then 7934 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7935 fi 7936 fi 7937 if test "x${SDKROOT}" = "x" ; then 7938 SDKROOT="C:/Program Files/Windows CE Tools" 7939 if test ! -d "${SDKROOT}" ; then 7940 SDKROOT="C:/Windows CE Tools" 7941 fi 7942 fi 7943 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7944 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7945 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7946 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7947 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7948echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7949 { (exit 1); exit 1; }; } 7950 doWince="no" 7951 else 7952 # We could PATH_NOSPACE these, but that's not important, 7953 # as long as we quote them when used. 7954 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7955 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7956 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7957 fi 7958 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7959 fi 7960 fi 7961 7962 if test "$GCC" != "yes" ; then 7963 if test "${SHARED_BUILD}" = "0" ; then 7964 runtime=-MT 7965 else 7966 runtime=-MD 7967 fi 7968 7969 if test "$do64bit" != "no" ; then 7970 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7971 CC="\"${PATH64}/cl.exe\"" 7972 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7973 RC="\"${MSSDK}/bin/rc.exe\"" 7974 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7975 LINKBIN="\"${PATH64}/link.exe\"" 7976 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7977 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7978 # Avoid 'unresolved external symbol __security_cookie' 7979 # errors, c.f. http://support.microsoft.com/?id=894573 7980 7981 vars="bufferoverflowU.lib" 7982 for i in $vars; do 7983 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7984 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7985 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7986 fi 7987 PKG_LIBS="$PKG_LIBS $i" 7988 done 7989 7990 7991 elif test "$doWince" != "no" ; then 7992 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7993 if test "${TARGETCPU}" = "X86"; then 7994 CC="\"${CEBINROOT}/cl.exe\"" 7995 else 7996 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7997 fi 7998 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7999 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 8000 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 8001 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 8002 if test "${SHARED_BUILD}" = "1" ; then 8003 # Static CE builds require static celib as well 8004 defs="${defs} _DLL" 8005 fi 8006 for i in $defs ; do 8007 8008cat >>confdefs.h <<_ACEOF 8009#define $i 1 8010_ACEOF 8011 8012 done 8013 8014cat >>confdefs.h <<_ACEOF 8015#define _WIN32_WCE $CEVERSION 8016_ACEOF 8017 8018 8019cat >>confdefs.h <<_ACEOF 8020#define UNDER_CE $CEVERSION 8021_ACEOF 8022 8023 CFLAGS_DEBUG="-nologo -Zi -Od" 8024 CFLAGS_OPTIMIZE="-nologo -Ox" 8025 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 8026 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 8027 LINKBIN="\"${CEBINROOT}/link.exe\"" 8028 8029 else 8030 RC="rc" 8031 lflags="-nologo" 8032 LINKBIN="link" 8033 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 8034 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 8035 fi 8036 fi 8037 8038 if test "$GCC" = "yes"; then 8039 # mingw gcc mode 8040 RC="windres" 8041 CFLAGS_DEBUG="-g" 8042 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8043 SHLIB_LD="$CC -shared" 8044 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8045 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 8046 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 8047 else 8048 SHLIB_LD="${LINKBIN} -dll ${lflags}" 8049 # link -lib only works when -lib is the first arg 8050 STLIB_LD="${LINKBIN} -lib ${lflags}" 8051 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 8052 PATHTYPE=-w 8053 # For information on what debugtype is most useful, see: 8054 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 8055 # and also 8056 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 8057 # This essentially turns it all on. 8058 LDFLAGS_DEBUG="-debug -debugtype:cv" 8059 LDFLAGS_OPTIMIZE="-release" 8060 if test "$doWince" != "no" ; then 8061 LDFLAGS_CONSOLE="-link ${lflags}" 8062 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 8063 else 8064 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 8065 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 8066 fi 8067 fi 8068 8069 SHLIB_SUFFIX=".dll" 8070 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 8071 8072 TCL_LIB_VERSIONS_OK=nodots 8073 ;; 8074 AIX-*) 8075 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 8076 8077 # AIX requires the _r compiler when gcc isn't being used 8078 case "${CC}" in 8079 *_r|*_r\ *) 8080 # ok ... 8081 ;; 8082 *) 8083 # Make sure only first arg gets _r 8084 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 8085 ;; 8086 esac 8087 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 8088echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 8089 8090fi 8091 8092 LIBS="$LIBS -lc" 8093 SHLIB_CFLAGS="" 8094 SHLIB_SUFFIX=".so" 8095 8096 LD_LIBRARY_PATH_VAR="LIBPATH" 8097 8098 # Check to enable 64-bit flags for compiler/linker 8099 if test "$do64bit" = yes; then 8100 8101 if test "$GCC" = yes; then 8102 8103 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8104echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8105 8106else 8107 8108 do64bit_ok=yes 8109 CFLAGS="$CFLAGS -q64" 8110 LDFLAGS_ARCH="-q64" 8111 RANLIB="${RANLIB} -X64" 8112 AR="${AR} -X64" 8113 SHLIB_LD_FLAGS="-b64" 8114 8115fi 8116 8117 8118fi 8119 8120 8121 if test "`uname -m`" = ia64; then 8122 8123 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 8124 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 8125 if test "$GCC" = yes; then 8126 8127 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 8128 8129else 8130 8131 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 8132 8133fi 8134 8135 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 8136 8137else 8138 8139 if test "$GCC" = yes; then 8140 8141 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8142 8143else 8144 8145 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8146 LDFLAGS="$LDFLAGS -brtl" 8147 8148fi 8149 8150 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8151 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8152 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8153 8154fi 8155 8156 ;; 8157 BeOS*) 8158 SHLIB_CFLAGS="-fPIC" 8159 SHLIB_LD='${CC} -nostart' 8160 SHLIB_SUFFIX=".so" 8161 8162 #----------------------------------------------------------- 8163 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8164 # -lsocket, even if the network functions are in -lnet which 8165 # is always linked to, for compatibility. 8166 #----------------------------------------------------------- 8167 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8168echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8169if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8170 echo $ECHO_N "(cached) $ECHO_C" >&6 8171else 8172 ac_check_lib_save_LIBS=$LIBS 8173LIBS="-lbind $LIBS" 8174cat >conftest.$ac_ext <<_ACEOF 8175/* confdefs.h. */ 8176_ACEOF 8177cat confdefs.h >>conftest.$ac_ext 8178cat >>conftest.$ac_ext <<_ACEOF 8179/* end confdefs.h. */ 8180 8181/* Override any GCC internal prototype to avoid an error. 8182 Use char because int might match the return type of a GCC 8183 builtin and then its argument prototype would still apply. */ 8184#ifdef __cplusplus 8185extern "C" 8186#endif 8187char inet_ntoa (); 8188int 8189main () 8190{ 8191return inet_ntoa (); 8192 ; 8193 return 0; 8194} 8195_ACEOF 8196rm -f conftest.$ac_objext conftest$ac_exeext 8197if { (ac_try="$ac_link" 8198case "(($ac_try" in 8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8200 *) ac_try_echo=$ac_try;; 8201esac 8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8203 (eval "$ac_link") 2>conftest.er1 8204 ac_status=$? 8205 grep -v '^ *+' conftest.er1 >conftest.err 8206 rm -f conftest.er1 8207 cat conftest.err >&5 8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8209 (exit $ac_status); } && { 8210 test -z "$ac_c_werror_flag" || 8211 test ! -s conftest.err 8212 } && test -s conftest$ac_exeext && 8213 $as_test_x conftest$ac_exeext; then 8214 ac_cv_lib_bind_inet_ntoa=yes 8215else 8216 echo "$as_me: failed program was:" >&5 8217sed 's/^/| /' conftest.$ac_ext >&5 8218 8219 ac_cv_lib_bind_inet_ntoa=no 8220fi 8221 8222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8223 conftest$ac_exeext conftest.$ac_ext 8224LIBS=$ac_check_lib_save_LIBS 8225fi 8226{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8227echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8228if test $ac_cv_lib_bind_inet_ntoa = yes; then 8229 LIBS="$LIBS -lbind -lsocket" 8230fi 8231 8232 ;; 8233 BSD/OS-4.*) 8234 SHLIB_CFLAGS="-export-dynamic -fPIC" 8235 SHLIB_LD='${CC} -shared' 8236 SHLIB_SUFFIX=".so" 8237 LDFLAGS="$LDFLAGS -export-dynamic" 8238 CC_SEARCH_FLAGS="" 8239 LD_SEARCH_FLAGS="" 8240 ;; 8241 CYGWIN_*) 8242 SHLIB_CFLAGS="" 8243 SHLIB_LD='${CC} -shared' 8244 SHLIB_SUFFIX=".dll" 8245 EXE_SUFFIX=".exe" 8246 CC_SEARCH_FLAGS="" 8247 LD_SEARCH_FLAGS="" 8248 ;; 8249 Haiku*) 8250 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8251 SHLIB_CFLAGS="-fPIC" 8252 SHLIB_SUFFIX=".so" 8253 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8254 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8255echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8256if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8257 echo $ECHO_N "(cached) $ECHO_C" >&6 8258else 8259 ac_check_lib_save_LIBS=$LIBS 8260LIBS="-lnetwork $LIBS" 8261cat >conftest.$ac_ext <<_ACEOF 8262/* confdefs.h. */ 8263_ACEOF 8264cat confdefs.h >>conftest.$ac_ext 8265cat >>conftest.$ac_ext <<_ACEOF 8266/* end confdefs.h. */ 8267 8268/* Override any GCC internal prototype to avoid an error. 8269 Use char because int might match the return type of a GCC 8270 builtin and then its argument prototype would still apply. */ 8271#ifdef __cplusplus 8272extern "C" 8273#endif 8274char inet_ntoa (); 8275int 8276main () 8277{ 8278return inet_ntoa (); 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283rm -f conftest.$ac_objext conftest$ac_exeext 8284if { (ac_try="$ac_link" 8285case "(($ac_try" in 8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8287 *) ac_try_echo=$ac_try;; 8288esac 8289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8290 (eval "$ac_link") 2>conftest.er1 8291 ac_status=$? 8292 grep -v '^ *+' conftest.er1 >conftest.err 8293 rm -f conftest.er1 8294 cat conftest.err >&5 8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8296 (exit $ac_status); } && { 8297 test -z "$ac_c_werror_flag" || 8298 test ! -s conftest.err 8299 } && test -s conftest$ac_exeext && 8300 $as_test_x conftest$ac_exeext; then 8301 ac_cv_lib_network_inet_ntoa=yes 8302else 8303 echo "$as_me: failed program was:" >&5 8304sed 's/^/| /' conftest.$ac_ext >&5 8305 8306 ac_cv_lib_network_inet_ntoa=no 8307fi 8308 8309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8310 conftest$ac_exeext conftest.$ac_ext 8311LIBS=$ac_check_lib_save_LIBS 8312fi 8313{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8314echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8315if test $ac_cv_lib_network_inet_ntoa = yes; then 8316 LIBS="$LIBS -lnetwork" 8317fi 8318 8319 ;; 8320 HP-UX-*.11.*) 8321 # Use updated header definitions where possible 8322 8323cat >>confdefs.h <<\_ACEOF 8324#define _XOPEN_SOURCE_EXTENDED 1 8325_ACEOF 8326 8327 # TEA specific: Needed by Tcl, but not most extensions 8328 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8329 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8330 8331 if test "`uname -m`" = ia64; then 8332 8333 SHLIB_SUFFIX=".so" 8334 # Use newer C++ library for C++ extensions 8335 #if test "$GCC" != "yes" ; then 8336 # CPPFLAGS="-AA" 8337 #fi 8338 8339else 8340 8341 SHLIB_SUFFIX=".sl" 8342 8343fi 8344 8345 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8346echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8347if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8348 echo $ECHO_N "(cached) $ECHO_C" >&6 8349else 8350 ac_check_lib_save_LIBS=$LIBS 8351LIBS="-ldld $LIBS" 8352cat >conftest.$ac_ext <<_ACEOF 8353/* confdefs.h. */ 8354_ACEOF 8355cat confdefs.h >>conftest.$ac_ext 8356cat >>conftest.$ac_ext <<_ACEOF 8357/* end confdefs.h. */ 8358 8359/* Override any GCC internal prototype to avoid an error. 8360 Use char because int might match the return type of a GCC 8361 builtin and then its argument prototype would still apply. */ 8362#ifdef __cplusplus 8363extern "C" 8364#endif 8365char shl_load (); 8366int 8367main () 8368{ 8369return shl_load (); 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374rm -f conftest.$ac_objext conftest$ac_exeext 8375if { (ac_try="$ac_link" 8376case "(($ac_try" in 8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8378 *) ac_try_echo=$ac_try;; 8379esac 8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8381 (eval "$ac_link") 2>conftest.er1 8382 ac_status=$? 8383 grep -v '^ *+' conftest.er1 >conftest.err 8384 rm -f conftest.er1 8385 cat conftest.err >&5 8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8387 (exit $ac_status); } && { 8388 test -z "$ac_c_werror_flag" || 8389 test ! -s conftest.err 8390 } && test -s conftest$ac_exeext && 8391 $as_test_x conftest$ac_exeext; then 8392 ac_cv_lib_dld_shl_load=yes 8393else 8394 echo "$as_me: failed program was:" >&5 8395sed 's/^/| /' conftest.$ac_ext >&5 8396 8397 ac_cv_lib_dld_shl_load=no 8398fi 8399 8400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8401 conftest$ac_exeext conftest.$ac_ext 8402LIBS=$ac_check_lib_save_LIBS 8403fi 8404{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8405echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8406if test $ac_cv_lib_dld_shl_load = yes; then 8407 tcl_ok=yes 8408else 8409 tcl_ok=no 8410fi 8411 8412 if test "$tcl_ok" = yes; then 8413 8414 LDFLAGS="$LDFLAGS -E" 8415 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8416 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8417 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8418 8419fi 8420 8421 if test "$GCC" = yes; then 8422 8423 SHLIB_LD='${CC} -shared' 8424 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8425 8426else 8427 8428 CFLAGS="$CFLAGS -z" 8429 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8430 #CFLAGS="$CFLAGS +DAportable" 8431 SHLIB_CFLAGS="+z" 8432 SHLIB_LD="ld -b" 8433 8434fi 8435 8436 8437 # Check to enable 64-bit flags for compiler/linker 8438 if test "$do64bit" = "yes"; then 8439 8440 if test "$GCC" = yes; then 8441 8442 case `${CC} -dumpmachine` in 8443 hppa64*) 8444 # 64-bit gcc in use. Fix flags for GNU ld. 8445 do64bit_ok=yes 8446 SHLIB_LD='${CC} -shared' 8447 if test $doRpath = yes; then 8448 8449 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8450fi 8451 8452 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8453 ;; 8454 *) 8455 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8456echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8457 ;; 8458 esac 8459 8460else 8461 8462 do64bit_ok=yes 8463 CFLAGS="$CFLAGS +DD64" 8464 LDFLAGS_ARCH="+DD64" 8465 8466fi 8467 8468 8469fi 8470 ;; 8471 IRIX-6.*) 8472 SHLIB_CFLAGS="" 8473 SHLIB_LD="ld -n32 -shared -rdata_shared" 8474 SHLIB_SUFFIX=".so" 8475 if test $doRpath = yes; then 8476 8477 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8478 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8479fi 8480 8481 if test "$GCC" = yes; then 8482 8483 CFLAGS="$CFLAGS -mabi=n32" 8484 LDFLAGS="$LDFLAGS -mabi=n32" 8485 8486else 8487 8488 case $system in 8489 IRIX-6.3) 8490 # Use to build 6.2 compatible binaries on 6.3. 8491 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8492 ;; 8493 *) 8494 CFLAGS="$CFLAGS -n32" 8495 ;; 8496 esac 8497 LDFLAGS="$LDFLAGS -n32" 8498 8499fi 8500 8501 ;; 8502 IRIX64-6.*) 8503 SHLIB_CFLAGS="" 8504 SHLIB_LD="ld -n32 -shared -rdata_shared" 8505 SHLIB_SUFFIX=".so" 8506 if test $doRpath = yes; then 8507 8508 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8509 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8510fi 8511 8512 8513 # Check to enable 64-bit flags for compiler/linker 8514 8515 if test "$do64bit" = yes; then 8516 8517 if test "$GCC" = yes; then 8518 8519 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8520echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8521 8522else 8523 8524 do64bit_ok=yes 8525 SHLIB_LD="ld -64 -shared -rdata_shared" 8526 CFLAGS="$CFLAGS -64" 8527 LDFLAGS_ARCH="-64" 8528 8529fi 8530 8531 8532fi 8533 8534 ;; 8535 Linux*) 8536 SHLIB_CFLAGS="-fPIC" 8537 SHLIB_SUFFIX=".so" 8538 8539 # TEA specific: 8540 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8541 8542 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8543 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8544 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8545 if test $doRpath = yes; then 8546 8547 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8548fi 8549 8550 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8551 if test "`uname -m`" = "alpha"; then 8552 CFLAGS="$CFLAGS -mieee" 8553fi 8554 8555 if test $do64bit = yes; then 8556 8557 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8558echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8559if test "${tcl_cv_cc_m64+set}" = set; then 8560 echo $ECHO_N "(cached) $ECHO_C" >&6 8561else 8562 8563 hold_cflags=$CFLAGS 8564 CFLAGS="$CFLAGS -m64" 8565 cat >conftest.$ac_ext <<_ACEOF 8566/* confdefs.h. */ 8567_ACEOF 8568cat confdefs.h >>conftest.$ac_ext 8569cat >>conftest.$ac_ext <<_ACEOF 8570/* end confdefs.h. */ 8571 8572int 8573main () 8574{ 8575 8576 ; 8577 return 0; 8578} 8579_ACEOF 8580rm -f conftest.$ac_objext conftest$ac_exeext 8581if { (ac_try="$ac_link" 8582case "(($ac_try" in 8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8584 *) ac_try_echo=$ac_try;; 8585esac 8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8587 (eval "$ac_link") 2>conftest.er1 8588 ac_status=$? 8589 grep -v '^ *+' conftest.er1 >conftest.err 8590 rm -f conftest.er1 8591 cat conftest.err >&5 8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 (exit $ac_status); } && { 8594 test -z "$ac_c_werror_flag" || 8595 test ! -s conftest.err 8596 } && test -s conftest$ac_exeext && 8597 $as_test_x conftest$ac_exeext; then 8598 tcl_cv_cc_m64=yes 8599else 8600 echo "$as_me: failed program was:" >&5 8601sed 's/^/| /' conftest.$ac_ext >&5 8602 8603 tcl_cv_cc_m64=no 8604fi 8605 8606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8607 conftest$ac_exeext conftest.$ac_ext 8608 CFLAGS=$hold_cflags 8609fi 8610{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8611echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8612 if test $tcl_cv_cc_m64 = yes; then 8613 8614 CFLAGS="$CFLAGS -m64" 8615 do64bit_ok=yes 8616 8617fi 8618 8619 8620fi 8621 8622 8623 # The combo of gcc + glibc has a bug related to inlining of 8624 # functions like strtod(). The -fno-builtin flag should address 8625 # this problem but it does not work. The -fno-inline flag is kind 8626 # of overkill but it works. Disable inlining only when one of the 8627 # files in compat/*.c is being linked in. 8628 8629 if test x"${USE_COMPAT}" != x; then 8630 CFLAGS="$CFLAGS -fno-inline" 8631fi 8632 8633 8634 ;; 8635 GNU*) 8636 SHLIB_CFLAGS="-fPIC" 8637 SHLIB_SUFFIX=".so" 8638 8639 SHLIB_LD='${CC} -shared' 8640 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8641 CC_SEARCH_FLAGS="" 8642 LD_SEARCH_FLAGS="" 8643 if test "`uname -m`" = "alpha"; then 8644 CFLAGS="$CFLAGS -mieee" 8645fi 8646 8647 ;; 8648 Lynx*) 8649 SHLIB_CFLAGS="-fPIC" 8650 SHLIB_SUFFIX=".so" 8651 CFLAGS_OPTIMIZE=-02 8652 SHLIB_LD='${CC} -shared' 8653 LD_FLAGS="-Wl,--export-dynamic" 8654 if test $doRpath = yes; then 8655 8656 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8657 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8658fi 8659 8660 ;; 8661 OpenBSD-*) 8662 SHLIB_CFLAGS="-fPIC" 8663 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8664 SHLIB_SUFFIX=".so" 8665 if test $doRpath = yes; then 8666 8667 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8668fi 8669 8670 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8671 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8672 { echo "$as_me:$LINENO: checking for ELF" >&5 8673echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8674if test "${tcl_cv_ld_elf+set}" = set; then 8675 echo $ECHO_N "(cached) $ECHO_C" >&6 8676else 8677 8678 cat >conftest.$ac_ext <<_ACEOF 8679/* confdefs.h. */ 8680_ACEOF 8681cat confdefs.h >>conftest.$ac_ext 8682cat >>conftest.$ac_ext <<_ACEOF 8683/* end confdefs.h. */ 8684 8685#ifdef __ELF__ 8686 yes 8687#endif 8688 8689_ACEOF 8690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8691 $EGREP "yes" >/dev/null 2>&1; then 8692 tcl_cv_ld_elf=yes 8693else 8694 tcl_cv_ld_elf=no 8695fi 8696rm -f -r conftest* 8697 8698fi 8699{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8700echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8701 if test $tcl_cv_ld_elf = yes; then 8702 8703 LDFLAGS=-Wl,-export-dynamic 8704 8705else 8706 LDFLAGS="" 8707fi 8708 8709 if test "${TCL_THREADS}" = "1"; then 8710 8711 # OpenBSD builds and links with -pthread, never -lpthread. 8712 LIBS=`echo $LIBS | sed s/-lpthread//` 8713 CFLAGS="$CFLAGS -pthread" 8714 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8715 8716fi 8717 8718 # OpenBSD doesn't do version numbers with dots. 8719 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8720 TCL_LIB_VERSIONS_OK=nodots 8721 ;; 8722 NetBSD-*|FreeBSD-[3-4].*) 8723 # FreeBSD 3.* and greater have ELF. 8724 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8725 SHLIB_CFLAGS="-fPIC" 8726 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8727 SHLIB_SUFFIX=".so" 8728 LDFLAGS="$LDFLAGS -export-dynamic" 8729 if test $doRpath = yes; then 8730 8731 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8732fi 8733 8734 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8735 if test "${TCL_THREADS}" = "1"; then 8736 8737 # The -pthread needs to go in the CFLAGS, not LIBS 8738 LIBS=`echo $LIBS | sed s/-pthread//` 8739 CFLAGS="$CFLAGS -pthread" 8740 LDFLAGS="$LDFLAGS -pthread" 8741 8742fi 8743 8744 case $system in 8745 FreeBSD-3.*) 8746 # FreeBSD-3 doesn't handle version numbers with dots. 8747 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8748 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8749 TCL_LIB_VERSIONS_OK=nodots 8750 ;; 8751 esac 8752 ;; 8753 FreeBSD-*) 8754 # This configuration from FreeBSD Ports. 8755 SHLIB_CFLAGS="-fPIC" 8756 SHLIB_LD="${CC} -shared" 8757 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8758 SHLIB_SUFFIX=".so" 8759 LDFLAGS="" 8760 if test $doRpath = yes; then 8761 8762 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8763 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8764fi 8765 8766 if test "${TCL_THREADS}" = "1"; then 8767 8768 # The -pthread needs to go in the LDFLAGS, not LIBS 8769 LIBS=`echo $LIBS | sed s/-pthread//` 8770 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8771 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8772fi 8773 8774 # Version numbers are dot-stripped by system policy. 8775 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8776 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8777 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8778 TCL_LIB_VERSIONS_OK=nodots 8779 ;; 8780 Darwin-*) 8781 CFLAGS_OPTIMIZE="-Os" 8782 SHLIB_CFLAGS="-fno-common" 8783 # To avoid discrepancies between what headers configure sees during 8784 # preprocessing tests and compiling tests, move any -isysroot and 8785 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8786 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8787 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8788 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8789 CFLAGS="`echo " ${CFLAGS}" | \ 8790 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8791 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8792 if test $do64bit = yes; then 8793 8794 case `arch` in 8795 ppc) 8796 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8797echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8798if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8799 echo $ECHO_N "(cached) $ECHO_C" >&6 8800else 8801 8802 hold_cflags=$CFLAGS 8803 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8804 cat >conftest.$ac_ext <<_ACEOF 8805/* confdefs.h. */ 8806_ACEOF 8807cat confdefs.h >>conftest.$ac_ext 8808cat >>conftest.$ac_ext <<_ACEOF 8809/* end confdefs.h. */ 8810 8811int 8812main () 8813{ 8814 8815 ; 8816 return 0; 8817} 8818_ACEOF 8819rm -f conftest.$ac_objext conftest$ac_exeext 8820if { (ac_try="$ac_link" 8821case "(($ac_try" in 8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8823 *) ac_try_echo=$ac_try;; 8824esac 8825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8826 (eval "$ac_link") 2>conftest.er1 8827 ac_status=$? 8828 grep -v '^ *+' conftest.er1 >conftest.err 8829 rm -f conftest.er1 8830 cat conftest.err >&5 8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8832 (exit $ac_status); } && { 8833 test -z "$ac_c_werror_flag" || 8834 test ! -s conftest.err 8835 } && test -s conftest$ac_exeext && 8836 $as_test_x conftest$ac_exeext; then 8837 tcl_cv_cc_arch_ppc64=yes 8838else 8839 echo "$as_me: failed program was:" >&5 8840sed 's/^/| /' conftest.$ac_ext >&5 8841 8842 tcl_cv_cc_arch_ppc64=no 8843fi 8844 8845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8846 conftest$ac_exeext conftest.$ac_ext 8847 CFLAGS=$hold_cflags 8848fi 8849{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8850echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8851 if test $tcl_cv_cc_arch_ppc64 = yes; then 8852 8853 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8854 do64bit_ok=yes 8855 8856fi 8857;; 8858 i386) 8859 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8860echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8861if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8862 echo $ECHO_N "(cached) $ECHO_C" >&6 8863else 8864 8865 hold_cflags=$CFLAGS 8866 CFLAGS="$CFLAGS -arch x86_64" 8867 cat >conftest.$ac_ext <<_ACEOF 8868/* confdefs.h. */ 8869_ACEOF 8870cat confdefs.h >>conftest.$ac_ext 8871cat >>conftest.$ac_ext <<_ACEOF 8872/* end confdefs.h. */ 8873 8874int 8875main () 8876{ 8877 8878 ; 8879 return 0; 8880} 8881_ACEOF 8882rm -f conftest.$ac_objext conftest$ac_exeext 8883if { (ac_try="$ac_link" 8884case "(($ac_try" in 8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8886 *) ac_try_echo=$ac_try;; 8887esac 8888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8889 (eval "$ac_link") 2>conftest.er1 8890 ac_status=$? 8891 grep -v '^ *+' conftest.er1 >conftest.err 8892 rm -f conftest.er1 8893 cat conftest.err >&5 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 (exit $ac_status); } && { 8896 test -z "$ac_c_werror_flag" || 8897 test ! -s conftest.err 8898 } && test -s conftest$ac_exeext && 8899 $as_test_x conftest$ac_exeext; then 8900 tcl_cv_cc_arch_x86_64=yes 8901else 8902 echo "$as_me: failed program was:" >&5 8903sed 's/^/| /' conftest.$ac_ext >&5 8904 8905 tcl_cv_cc_arch_x86_64=no 8906fi 8907 8908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8909 conftest$ac_exeext conftest.$ac_ext 8910 CFLAGS=$hold_cflags 8911fi 8912{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8913echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8914 if test $tcl_cv_cc_arch_x86_64 = yes; then 8915 8916 CFLAGS="$CFLAGS -arch x86_64" 8917 do64bit_ok=yes 8918 8919fi 8920;; 8921 *) 8922 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8923echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8924 esac 8925 8926else 8927 8928 # Check for combined 32-bit and 64-bit fat build 8929 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8930 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8931 8932 fat_32_64=yes 8933fi 8934 8935 8936fi 8937 8938 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8939 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8940 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8941echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8942if test "${tcl_cv_ld_single_module+set}" = set; then 8943 echo $ECHO_N "(cached) $ECHO_C" >&6 8944else 8945 8946 hold_ldflags=$LDFLAGS 8947 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8948 cat >conftest.$ac_ext <<_ACEOF 8949/* confdefs.h. */ 8950_ACEOF 8951cat confdefs.h >>conftest.$ac_ext 8952cat >>conftest.$ac_ext <<_ACEOF 8953/* end confdefs.h. */ 8954 8955int 8956main () 8957{ 8958int i; 8959 ; 8960 return 0; 8961} 8962_ACEOF 8963rm -f conftest.$ac_objext conftest$ac_exeext 8964if { (ac_try="$ac_link" 8965case "(($ac_try" in 8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8967 *) ac_try_echo=$ac_try;; 8968esac 8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8970 (eval "$ac_link") 2>conftest.er1 8971 ac_status=$? 8972 grep -v '^ *+' conftest.er1 >conftest.err 8973 rm -f conftest.er1 8974 cat conftest.err >&5 8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8976 (exit $ac_status); } && { 8977 test -z "$ac_c_werror_flag" || 8978 test ! -s conftest.err 8979 } && test -s conftest$ac_exeext && 8980 $as_test_x conftest$ac_exeext; then 8981 tcl_cv_ld_single_module=yes 8982else 8983 echo "$as_me: failed program was:" >&5 8984sed 's/^/| /' conftest.$ac_ext >&5 8985 8986 tcl_cv_ld_single_module=no 8987fi 8988 8989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8990 conftest$ac_exeext conftest.$ac_ext 8991 LDFLAGS=$hold_ldflags 8992fi 8993{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8994echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8995 if test $tcl_cv_ld_single_module = yes; then 8996 8997 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8998 8999fi 9000 9001 # TEA specific: link shlib with current and compatiblity version flags 9002 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 9003 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 9004 SHLIB_SUFFIX=".dylib" 9005 # Don't use -prebind when building for Mac OS X 10.4 or later only: 9006 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 9007 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 9008 9009 LDFLAGS="$LDFLAGS -prebind" 9010fi 9011 9012 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 9013 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 9014echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 9015if test "${tcl_cv_ld_search_paths_first+set}" = set; then 9016 echo $ECHO_N "(cached) $ECHO_C" >&6 9017else 9018 9019 hold_ldflags=$LDFLAGS 9020 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9021 cat >conftest.$ac_ext <<_ACEOF 9022/* confdefs.h. */ 9023_ACEOF 9024cat confdefs.h >>conftest.$ac_ext 9025cat >>conftest.$ac_ext <<_ACEOF 9026/* end confdefs.h. */ 9027 9028int 9029main () 9030{ 9031int i; 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036rm -f conftest.$ac_objext conftest$ac_exeext 9037if { (ac_try="$ac_link" 9038case "(($ac_try" in 9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9040 *) ac_try_echo=$ac_try;; 9041esac 9042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9043 (eval "$ac_link") 2>conftest.er1 9044 ac_status=$? 9045 grep -v '^ *+' conftest.er1 >conftest.err 9046 rm -f conftest.er1 9047 cat conftest.err >&5 9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9049 (exit $ac_status); } && { 9050 test -z "$ac_c_werror_flag" || 9051 test ! -s conftest.err 9052 } && test -s conftest$ac_exeext && 9053 $as_test_x conftest$ac_exeext; then 9054 tcl_cv_ld_search_paths_first=yes 9055else 9056 echo "$as_me: failed program was:" >&5 9057sed 's/^/| /' conftest.$ac_ext >&5 9058 9059 tcl_cv_ld_search_paths_first=no 9060fi 9061 9062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9063 conftest$ac_exeext conftest.$ac_ext 9064 LDFLAGS=$hold_ldflags 9065fi 9066{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 9067echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 9068 if test $tcl_cv_ld_search_paths_first = yes; then 9069 9070 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 9071 9072fi 9073 9074 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9075 9076 9077cat >>confdefs.h <<\_ACEOF 9078#define MODULE_SCOPE __private_extern__ 9079_ACEOF 9080 9081 tcl_cv_cc_visibility_hidden=yes 9082 9083fi 9084 9085 CC_SEARCH_FLAGS="" 9086 LD_SEARCH_FLAGS="" 9087 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 9088 # TEA specific: for combined 32 & 64 bit fat builds of Tk 9089 # extensions, verify that 64-bit build is possible. 9090 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 9091 9092 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 9093 9094 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9095echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 9096if test "${tcl_cv_lib_x11_64+set}" = set; then 9097 echo $ECHO_N "(cached) $ECHO_C" >&6 9098else 9099 9100 for v in CFLAGS CPPFLAGS LDFLAGS; do 9101 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9102 done 9103 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9104 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9105 cat >conftest.$ac_ext <<_ACEOF 9106/* confdefs.h. */ 9107_ACEOF 9108cat confdefs.h >>conftest.$ac_ext 9109cat >>conftest.$ac_ext <<_ACEOF 9110/* end confdefs.h. */ 9111#include <X11/Xlib.h> 9112int 9113main () 9114{ 9115XrmInitialize(); 9116 ; 9117 return 0; 9118} 9119_ACEOF 9120rm -f conftest.$ac_objext conftest$ac_exeext 9121if { (ac_try="$ac_link" 9122case "(($ac_try" in 9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9124 *) ac_try_echo=$ac_try;; 9125esac 9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9127 (eval "$ac_link") 2>conftest.er1 9128 ac_status=$? 9129 grep -v '^ *+' conftest.er1 >conftest.err 9130 rm -f conftest.er1 9131 cat conftest.err >&5 9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9133 (exit $ac_status); } && { 9134 test -z "$ac_c_werror_flag" || 9135 test ! -s conftest.err 9136 } && test -s conftest$ac_exeext && 9137 $as_test_x conftest$ac_exeext; then 9138 tcl_cv_lib_x11_64=yes 9139else 9140 echo "$as_me: failed program was:" >&5 9141sed 's/^/| /' conftest.$ac_ext >&5 9142 9143 tcl_cv_lib_x11_64=no 9144fi 9145 9146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9147 conftest$ac_exeext conftest.$ac_ext 9148 for v in CFLAGS CPPFLAGS LDFLAGS; do 9149 eval $v'="$hold_'$v'"' 9150 done 9151fi 9152{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9153echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9154 9155fi 9156 9157 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9158 9159 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9160echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9161if test "${tcl_cv_lib_tk_64+set}" = set; then 9162 echo $ECHO_N "(cached) $ECHO_C" >&6 9163else 9164 9165 for v in CFLAGS CPPFLAGS LDFLAGS; do 9166 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9167 done 9168 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9169 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9170 cat >conftest.$ac_ext <<_ACEOF 9171/* confdefs.h. */ 9172_ACEOF 9173cat confdefs.h >>conftest.$ac_ext 9174cat >>conftest.$ac_ext <<_ACEOF 9175/* end confdefs.h. */ 9176#include <tk.h> 9177int 9178main () 9179{ 9180Tk_InitStubs(NULL, "", 0); 9181 ; 9182 return 0; 9183} 9184_ACEOF 9185rm -f conftest.$ac_objext conftest$ac_exeext 9186if { (ac_try="$ac_link" 9187case "(($ac_try" in 9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9189 *) ac_try_echo=$ac_try;; 9190esac 9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9192 (eval "$ac_link") 2>conftest.er1 9193 ac_status=$? 9194 grep -v '^ *+' conftest.er1 >conftest.err 9195 rm -f conftest.er1 9196 cat conftest.err >&5 9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9198 (exit $ac_status); } && { 9199 test -z "$ac_c_werror_flag" || 9200 test ! -s conftest.err 9201 } && test -s conftest$ac_exeext && 9202 $as_test_x conftest$ac_exeext; then 9203 tcl_cv_lib_tk_64=yes 9204else 9205 echo "$as_me: failed program was:" >&5 9206sed 's/^/| /' conftest.$ac_ext >&5 9207 9208 tcl_cv_lib_tk_64=no 9209fi 9210 9211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9212 conftest$ac_exeext conftest.$ac_ext 9213 for v in CFLAGS CPPFLAGS LDFLAGS; do 9214 eval $v'="$hold_'$v'"' 9215 done 9216fi 9217{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9218echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9219 9220fi 9221 9222 # remove 64-bit arch flags from CFLAGS et al. if configuration 9223 # does not support 64-bit. 9224 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9225 9226 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9227echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9228 for v in CFLAGS CPPFLAGS LDFLAGS; do 9229 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9230 done 9231fi 9232 9233 9234fi 9235 9236 ;; 9237 OS/390-*) 9238 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9239 9240cat >>confdefs.h <<\_ACEOF 9241#define _OE_SOCKETS 1 9242_ACEOF 9243 9244 ;; 9245 OSF1-V*) 9246 # Digital OSF/1 9247 SHLIB_CFLAGS="" 9248 if test "$SHARED_BUILD" = 1; then 9249 9250 SHLIB_LD='ld -shared -expect_unresolved "*"' 9251 9252else 9253 9254 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9255 9256fi 9257 9258 SHLIB_SUFFIX=".so" 9259 if test $doRpath = yes; then 9260 9261 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9262 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9263fi 9264 9265 if test "$GCC" = yes; then 9266 CFLAGS="$CFLAGS -mieee" 9267else 9268 9269 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9270fi 9271 9272 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9273 if test "${TCL_THREADS}" = 1; then 9274 9275 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9276 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9277 LIBS=`echo $LIBS | sed s/-lpthreads//` 9278 if test "$GCC" = yes; then 9279 9280 LIBS="$LIBS -lpthread -lmach -lexc" 9281 9282else 9283 9284 CFLAGS="$CFLAGS -pthread" 9285 LDFLAGS="$LDFLAGS -pthread" 9286 9287fi 9288 9289 9290fi 9291 9292 ;; 9293 QNX-6*) 9294 # QNX RTP 9295 # This may work for all QNX, but it was only reported for v6. 9296 SHLIB_CFLAGS="-fPIC" 9297 SHLIB_LD="ld -Bshareable -x" 9298 SHLIB_LD_LIBS="" 9299 SHLIB_SUFFIX=".so" 9300 CC_SEARCH_FLAGS="" 9301 LD_SEARCH_FLAGS="" 9302 ;; 9303 SCO_SV-3.2*) 9304 if test "$GCC" = yes; then 9305 9306 SHLIB_CFLAGS="-fPIC -melf" 9307 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9308 9309else 9310 9311 SHLIB_CFLAGS="-Kpic -belf" 9312 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9313 9314fi 9315 9316 SHLIB_LD="ld -G" 9317 SHLIB_LD_LIBS="" 9318 SHLIB_SUFFIX=".so" 9319 CC_SEARCH_FLAGS="" 9320 LD_SEARCH_FLAGS="" 9321 ;; 9322 SunOS-5.[0-6]) 9323 # Careful to not let 5.10+ fall into this case 9324 9325 # Note: If _REENTRANT isn't defined, then Solaris 9326 # won't define thread-safe library routines. 9327 9328 9329cat >>confdefs.h <<\_ACEOF 9330#define _REENTRANT 1 9331_ACEOF 9332 9333 9334cat >>confdefs.h <<\_ACEOF 9335#define _POSIX_PTHREAD_SEMANTICS 1 9336_ACEOF 9337 9338 9339 SHLIB_CFLAGS="-KPIC" 9340 SHLIB_SUFFIX=".so" 9341 if test "$GCC" = yes; then 9342 9343 SHLIB_LD='${CC} -shared' 9344 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9345 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9346 9347else 9348 9349 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9350 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9351 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9352 9353fi 9354 9355 ;; 9356 SunOS-5*) 9357 # Note: If _REENTRANT isn't defined, then Solaris 9358 # won't define thread-safe library routines. 9359 9360 9361cat >>confdefs.h <<\_ACEOF 9362#define _REENTRANT 1 9363_ACEOF 9364 9365 9366cat >>confdefs.h <<\_ACEOF 9367#define _POSIX_PTHREAD_SEMANTICS 1 9368_ACEOF 9369 9370 9371 SHLIB_CFLAGS="-KPIC" 9372 9373 # Check to enable 64-bit flags for compiler/linker 9374 if test "$do64bit" = yes; then 9375 9376 arch=`isainfo` 9377 if test "$arch" = "sparcv9 sparc"; then 9378 9379 if test "$GCC" = yes; then 9380 9381 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9382 9383 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9384echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9385 9386else 9387 9388 do64bit_ok=yes 9389 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9390 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9391 SHLIB_CFLAGS="-fPIC" 9392 9393fi 9394 9395 9396else 9397 9398 do64bit_ok=yes 9399 if test "$do64bitVIS" = yes; then 9400 9401 CFLAGS="$CFLAGS -xarch=v9a" 9402 LDFLAGS_ARCH="-xarch=v9a" 9403 9404else 9405 9406 CFLAGS="$CFLAGS -xarch=v9" 9407 LDFLAGS_ARCH="-xarch=v9" 9408 9409fi 9410 9411 # Solaris 64 uses this as well 9412 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9413 9414fi 9415 9416 9417else 9418 if test "$arch" = "amd64 i386"; then 9419 9420 if test "$GCC" = yes; then 9421 9422 case $system in 9423 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9424 do64bit_ok=yes 9425 CFLAGS="$CFLAGS -m64" 9426 LDFLAGS="$LDFLAGS -m64";; 9427 *) 9428 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9429echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9430 esac 9431 9432else 9433 9434 do64bit_ok=yes 9435 case $system in 9436 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9437 CFLAGS="$CFLAGS -m64" 9438 LDFLAGS="$LDFLAGS -m64";; 9439 *) 9440 CFLAGS="$CFLAGS -xarch=amd64" 9441 LDFLAGS="$LDFLAGS -xarch=amd64";; 9442 esac 9443 9444fi 9445 9446 9447else 9448 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9449echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9450fi 9451 9452fi 9453 9454 9455fi 9456 9457 9458 SHLIB_SUFFIX=".so" 9459 if test "$GCC" = yes; then 9460 9461 SHLIB_LD='${CC} -shared' 9462 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9463 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9464 if test "$do64bit_ok" = yes; then 9465 9466 if test "$arch" = "sparcv9 sparc"; then 9467 9468 # We need to specify -static-libgcc or we need to 9469 # add the path to the sparv9 libgcc. 9470 # JH: static-libgcc is necessary for core Tcl, but may 9471 # not be necessary for extensions. 9472 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9473 # for finding sparcv9 libgcc, get the regular libgcc 9474 # path, remove so name and append 'sparcv9' 9475 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9476 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9477 9478else 9479 if test "$arch" = "amd64 i386"; then 9480 9481 # JH: static-libgcc is necessary for core Tcl, but may 9482 # not be necessary for extensions. 9483 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9484 9485fi 9486 9487fi 9488 9489 9490fi 9491 9492 9493else 9494 9495 case $system in 9496 SunOS-5.[1-9][0-9]*) 9497 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9498 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9499 *) 9500 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9501 esac 9502 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9503 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9504 9505fi 9506 9507 ;; 9508 esac 9509 9510 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9511 9512 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9513echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9514 9515fi 9516 9517 9518 9519 9520 # Add in the arch flags late to ensure it wasn't removed. 9521 # Not necessary in TEA, but this is aligned with core 9522 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9523 9524 # If we're running gcc, then change the C flags for compiling shared 9525 # libraries to the right flags for gcc, instead of those for the 9526 # standard manufacturer compiler. 9527 9528 if test "$GCC" = yes; then 9529 9530 case $system in 9531 AIX-*) ;; 9532 BSD/OS*) ;; 9533 CYGWIN_*) ;; 9534 IRIX*) ;; 9535 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9536 Darwin-*) ;; 9537 SCO_SV-3.2*) ;; 9538 windows) ;; 9539 *) SHLIB_CFLAGS="-fPIC" ;; 9540 esac 9541fi 9542 9543 9544 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9545 9546 9547cat >>confdefs.h <<\_ACEOF 9548#define MODULE_SCOPE extern 9549_ACEOF 9550 9551 9552cat >>confdefs.h <<\_ACEOF 9553#define NO_VIZ 9554_ACEOF 9555 9556 9557fi 9558 9559 9560 if test "$SHARED_LIB_SUFFIX" = ""; then 9561 9562 # TEA specific: use PACKAGE_VERSION instead of VERSION 9563 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9564fi 9565 9566 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9567 9568 # TEA specific: use PACKAGE_VERSION instead of VERSION 9569 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9570fi 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 # These must be called after we do the basic CFLAGS checks and 9586 # verify any possible 64-bit or similar switches are necessary 9587 9588 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9589echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9590 tcl_flags="" 9591 9592 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9593 echo $ECHO_N "(cached) $ECHO_C" >&6 9594else 9595 cat >conftest.$ac_ext <<_ACEOF 9596/* confdefs.h. */ 9597_ACEOF 9598cat confdefs.h >>conftest.$ac_ext 9599cat >>conftest.$ac_ext <<_ACEOF 9600/* end confdefs.h. */ 9601#include <stdlib.h> 9602int 9603main () 9604{ 9605char *p = (char *)strtoll; char *q = (char *)strtoull; 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610rm -f conftest.$ac_objext 9611if { (ac_try="$ac_compile" 9612case "(($ac_try" in 9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9614 *) ac_try_echo=$ac_try;; 9615esac 9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9617 (eval "$ac_compile") 2>conftest.er1 9618 ac_status=$? 9619 grep -v '^ *+' conftest.er1 >conftest.err 9620 rm -f conftest.er1 9621 cat conftest.err >&5 9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9623 (exit $ac_status); } && { 9624 test -z "$ac_c_werror_flag" || 9625 test ! -s conftest.err 9626 } && test -s conftest.$ac_objext; then 9627 tcl_cv_flag__isoc99_source=no 9628else 9629 echo "$as_me: failed program was:" >&5 9630sed 's/^/| /' conftest.$ac_ext >&5 9631 9632 cat >conftest.$ac_ext <<_ACEOF 9633/* confdefs.h. */ 9634_ACEOF 9635cat confdefs.h >>conftest.$ac_ext 9636cat >>conftest.$ac_ext <<_ACEOF 9637/* end confdefs.h. */ 9638#define _ISOC99_SOURCE 1 9639#include <stdlib.h> 9640int 9641main () 9642{ 9643char *p = (char *)strtoll; char *q = (char *)strtoull; 9644 ; 9645 return 0; 9646} 9647_ACEOF 9648rm -f conftest.$ac_objext 9649if { (ac_try="$ac_compile" 9650case "(($ac_try" in 9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9652 *) ac_try_echo=$ac_try;; 9653esac 9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9655 (eval "$ac_compile") 2>conftest.er1 9656 ac_status=$? 9657 grep -v '^ *+' conftest.er1 >conftest.err 9658 rm -f conftest.er1 9659 cat conftest.err >&5 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9661 (exit $ac_status); } && { 9662 test -z "$ac_c_werror_flag" || 9663 test ! -s conftest.err 9664 } && test -s conftest.$ac_objext; then 9665 tcl_cv_flag__isoc99_source=yes 9666else 9667 echo "$as_me: failed program was:" >&5 9668sed 's/^/| /' conftest.$ac_ext >&5 9669 9670 tcl_cv_flag__isoc99_source=no 9671fi 9672 9673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9674fi 9675 9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9677fi 9678 9679 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9680 9681cat >>confdefs.h <<\_ACEOF 9682#define _ISOC99_SOURCE 1 9683_ACEOF 9684 9685 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9686 fi 9687 9688 9689 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9690 echo $ECHO_N "(cached) $ECHO_C" >&6 9691else 9692 cat >conftest.$ac_ext <<_ACEOF 9693/* confdefs.h. */ 9694_ACEOF 9695cat confdefs.h >>conftest.$ac_ext 9696cat >>conftest.$ac_ext <<_ACEOF 9697/* end confdefs.h. */ 9698#include <sys/stat.h> 9699int 9700main () 9701{ 9702struct stat64 buf; int i = stat64("/", &buf); 9703 ; 9704 return 0; 9705} 9706_ACEOF 9707rm -f conftest.$ac_objext 9708if { (ac_try="$ac_compile" 9709case "(($ac_try" in 9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9711 *) ac_try_echo=$ac_try;; 9712esac 9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9714 (eval "$ac_compile") 2>conftest.er1 9715 ac_status=$? 9716 grep -v '^ *+' conftest.er1 >conftest.err 9717 rm -f conftest.er1 9718 cat conftest.err >&5 9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9720 (exit $ac_status); } && { 9721 test -z "$ac_c_werror_flag" || 9722 test ! -s conftest.err 9723 } && test -s conftest.$ac_objext; then 9724 tcl_cv_flag__largefile64_source=no 9725else 9726 echo "$as_me: failed program was:" >&5 9727sed 's/^/| /' conftest.$ac_ext >&5 9728 9729 cat >conftest.$ac_ext <<_ACEOF 9730/* confdefs.h. */ 9731_ACEOF 9732cat confdefs.h >>conftest.$ac_ext 9733cat >>conftest.$ac_ext <<_ACEOF 9734/* end confdefs.h. */ 9735#define _LARGEFILE64_SOURCE 1 9736#include <sys/stat.h> 9737int 9738main () 9739{ 9740struct stat64 buf; int i = stat64("/", &buf); 9741 ; 9742 return 0; 9743} 9744_ACEOF 9745rm -f conftest.$ac_objext 9746if { (ac_try="$ac_compile" 9747case "(($ac_try" in 9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9749 *) ac_try_echo=$ac_try;; 9750esac 9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9752 (eval "$ac_compile") 2>conftest.er1 9753 ac_status=$? 9754 grep -v '^ *+' conftest.er1 >conftest.err 9755 rm -f conftest.er1 9756 cat conftest.err >&5 9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9758 (exit $ac_status); } && { 9759 test -z "$ac_c_werror_flag" || 9760 test ! -s conftest.err 9761 } && test -s conftest.$ac_objext; then 9762 tcl_cv_flag__largefile64_source=yes 9763else 9764 echo "$as_me: failed program was:" >&5 9765sed 's/^/| /' conftest.$ac_ext >&5 9766 9767 tcl_cv_flag__largefile64_source=no 9768fi 9769 9770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9771fi 9772 9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9774fi 9775 9776 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9777 9778cat >>confdefs.h <<\_ACEOF 9779#define _LARGEFILE64_SOURCE 1 9780_ACEOF 9781 9782 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9783 fi 9784 9785 9786 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9787 echo $ECHO_N "(cached) $ECHO_C" >&6 9788else 9789 cat >conftest.$ac_ext <<_ACEOF 9790/* confdefs.h. */ 9791_ACEOF 9792cat confdefs.h >>conftest.$ac_ext 9793cat >>conftest.$ac_ext <<_ACEOF 9794/* end confdefs.h. */ 9795#include <sys/stat.h> 9796int 9797main () 9798{ 9799char *p = (char *)open64; 9800 ; 9801 return 0; 9802} 9803_ACEOF 9804rm -f conftest.$ac_objext 9805if { (ac_try="$ac_compile" 9806case "(($ac_try" in 9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9808 *) ac_try_echo=$ac_try;; 9809esac 9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9811 (eval "$ac_compile") 2>conftest.er1 9812 ac_status=$? 9813 grep -v '^ *+' conftest.er1 >conftest.err 9814 rm -f conftest.er1 9815 cat conftest.err >&5 9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9817 (exit $ac_status); } && { 9818 test -z "$ac_c_werror_flag" || 9819 test ! -s conftest.err 9820 } && test -s conftest.$ac_objext; then 9821 tcl_cv_flag__largefile_source64=no 9822else 9823 echo "$as_me: failed program was:" >&5 9824sed 's/^/| /' conftest.$ac_ext >&5 9825 9826 cat >conftest.$ac_ext <<_ACEOF 9827/* confdefs.h. */ 9828_ACEOF 9829cat confdefs.h >>conftest.$ac_ext 9830cat >>conftest.$ac_ext <<_ACEOF 9831/* end confdefs.h. */ 9832#define _LARGEFILE_SOURCE64 1 9833#include <sys/stat.h> 9834int 9835main () 9836{ 9837char *p = (char *)open64; 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842rm -f conftest.$ac_objext 9843if { (ac_try="$ac_compile" 9844case "(($ac_try" in 9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9846 *) ac_try_echo=$ac_try;; 9847esac 9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9849 (eval "$ac_compile") 2>conftest.er1 9850 ac_status=$? 9851 grep -v '^ *+' conftest.er1 >conftest.err 9852 rm -f conftest.er1 9853 cat conftest.err >&5 9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9855 (exit $ac_status); } && { 9856 test -z "$ac_c_werror_flag" || 9857 test ! -s conftest.err 9858 } && test -s conftest.$ac_objext; then 9859 tcl_cv_flag__largefile_source64=yes 9860else 9861 echo "$as_me: failed program was:" >&5 9862sed 's/^/| /' conftest.$ac_ext >&5 9863 9864 tcl_cv_flag__largefile_source64=no 9865fi 9866 9867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9868fi 9869 9870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9871fi 9872 9873 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9874 9875cat >>confdefs.h <<\_ACEOF 9876#define _LARGEFILE_SOURCE64 1 9877_ACEOF 9878 9879 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9880 fi 9881 9882 if test "x${tcl_flags}" = "x" ; then 9883 { echo "$as_me:$LINENO: result: none" >&5 9884echo "${ECHO_T}none" >&6; } 9885 else 9886 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9887echo "${ECHO_T}${tcl_flags}" >&6; } 9888 fi 9889 9890 9891 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9892echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9893 if test "${tcl_cv_type_64bit+set}" = set; then 9894 echo $ECHO_N "(cached) $ECHO_C" >&6 9895else 9896 9897 tcl_cv_type_64bit=none 9898 # See if the compiler knows natively about __int64 9899 cat >conftest.$ac_ext <<_ACEOF 9900/* confdefs.h. */ 9901_ACEOF 9902cat confdefs.h >>conftest.$ac_ext 9903cat >>conftest.$ac_ext <<_ACEOF 9904/* end confdefs.h. */ 9905 9906int 9907main () 9908{ 9909__int64 value = (__int64) 0; 9910 ; 9911 return 0; 9912} 9913_ACEOF 9914rm -f conftest.$ac_objext 9915if { (ac_try="$ac_compile" 9916case "(($ac_try" in 9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9918 *) ac_try_echo=$ac_try;; 9919esac 9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9921 (eval "$ac_compile") 2>conftest.er1 9922 ac_status=$? 9923 grep -v '^ *+' conftest.er1 >conftest.err 9924 rm -f conftest.er1 9925 cat conftest.err >&5 9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9927 (exit $ac_status); } && { 9928 test -z "$ac_c_werror_flag" || 9929 test ! -s conftest.err 9930 } && test -s conftest.$ac_objext; then 9931 tcl_type_64bit=__int64 9932else 9933 echo "$as_me: failed program was:" >&5 9934sed 's/^/| /' conftest.$ac_ext >&5 9935 9936 tcl_type_64bit="long long" 9937fi 9938 9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9940 # See if we should use long anyway Note that we substitute in the 9941 # type that is our current guess for a 64-bit type inside this check 9942 # program, so it should be modified only carefully... 9943 cat >conftest.$ac_ext <<_ACEOF 9944/* confdefs.h. */ 9945_ACEOF 9946cat confdefs.h >>conftest.$ac_ext 9947cat >>conftest.$ac_ext <<_ACEOF 9948/* end confdefs.h. */ 9949 9950int 9951main () 9952{ 9953switch (0) { 9954 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9955 } 9956 ; 9957 return 0; 9958} 9959_ACEOF 9960rm -f conftest.$ac_objext 9961if { (ac_try="$ac_compile" 9962case "(($ac_try" in 9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9964 *) ac_try_echo=$ac_try;; 9965esac 9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9967 (eval "$ac_compile") 2>conftest.er1 9968 ac_status=$? 9969 grep -v '^ *+' conftest.er1 >conftest.err 9970 rm -f conftest.er1 9971 cat conftest.err >&5 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); } && { 9974 test -z "$ac_c_werror_flag" || 9975 test ! -s conftest.err 9976 } && test -s conftest.$ac_objext; then 9977 tcl_cv_type_64bit=${tcl_type_64bit} 9978else 9979 echo "$as_me: failed program was:" >&5 9980sed 's/^/| /' conftest.$ac_ext >&5 9981 9982 9983fi 9984 9985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9986fi 9987 9988 if test "${tcl_cv_type_64bit}" = none ; then 9989 9990cat >>confdefs.h <<\_ACEOF 9991#define TCL_WIDE_INT_IS_LONG 1 9992_ACEOF 9993 9994 { echo "$as_me:$LINENO: result: using long" >&5 9995echo "${ECHO_T}using long" >&6; } 9996 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9997 -a "${TEA_PLATFORM}" = "windows" ; then 9998 # TEA specific: We actually want to use the default tcl.h checks in 9999 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 10000 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 10001echo "${ECHO_T}using Tcl header defaults" >&6; } 10002 else 10003 10004cat >>confdefs.h <<_ACEOF 10005#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 10006_ACEOF 10007 10008 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 10009echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 10010 10011 # Now check for auxiliary declarations 10012 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 10013echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 10014if test "${tcl_cv_struct_dirent64+set}" = set; then 10015 echo $ECHO_N "(cached) $ECHO_C" >&6 10016else 10017 10018 cat >conftest.$ac_ext <<_ACEOF 10019/* confdefs.h. */ 10020_ACEOF 10021cat confdefs.h >>conftest.$ac_ext 10022cat >>conftest.$ac_ext <<_ACEOF 10023/* end confdefs.h. */ 10024#include <sys/types.h> 10025#include <sys/dirent.h> 10026int 10027main () 10028{ 10029struct dirent64 p; 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034rm -f conftest.$ac_objext 10035if { (ac_try="$ac_compile" 10036case "(($ac_try" in 10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10038 *) ac_try_echo=$ac_try;; 10039esac 10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10041 (eval "$ac_compile") 2>conftest.er1 10042 ac_status=$? 10043 grep -v '^ *+' conftest.er1 >conftest.err 10044 rm -f conftest.er1 10045 cat conftest.err >&5 10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10047 (exit $ac_status); } && { 10048 test -z "$ac_c_werror_flag" || 10049 test ! -s conftest.err 10050 } && test -s conftest.$ac_objext; then 10051 tcl_cv_struct_dirent64=yes 10052else 10053 echo "$as_me: failed program was:" >&5 10054sed 's/^/| /' conftest.$ac_ext >&5 10055 10056 tcl_cv_struct_dirent64=no 10057fi 10058 10059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10060fi 10061{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 10062echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 10063 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 10064 10065cat >>confdefs.h <<\_ACEOF 10066#define HAVE_STRUCT_DIRENT64 1 10067_ACEOF 10068 10069 fi 10070 10071 { echo "$as_me:$LINENO: checking for struct stat64" >&5 10072echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 10073if test "${tcl_cv_struct_stat64+set}" = set; then 10074 echo $ECHO_N "(cached) $ECHO_C" >&6 10075else 10076 10077 cat >conftest.$ac_ext <<_ACEOF 10078/* confdefs.h. */ 10079_ACEOF 10080cat confdefs.h >>conftest.$ac_ext 10081cat >>conftest.$ac_ext <<_ACEOF 10082/* end confdefs.h. */ 10083#include <sys/stat.h> 10084int 10085main () 10086{ 10087struct stat64 p; 10088 10089 ; 10090 return 0; 10091} 10092_ACEOF 10093rm -f conftest.$ac_objext 10094if { (ac_try="$ac_compile" 10095case "(($ac_try" in 10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10097 *) ac_try_echo=$ac_try;; 10098esac 10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10100 (eval "$ac_compile") 2>conftest.er1 10101 ac_status=$? 10102 grep -v '^ *+' conftest.er1 >conftest.err 10103 rm -f conftest.er1 10104 cat conftest.err >&5 10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10106 (exit $ac_status); } && { 10107 test -z "$ac_c_werror_flag" || 10108 test ! -s conftest.err 10109 } && test -s conftest.$ac_objext; then 10110 tcl_cv_struct_stat64=yes 10111else 10112 echo "$as_me: failed program was:" >&5 10113sed 's/^/| /' conftest.$ac_ext >&5 10114 10115 tcl_cv_struct_stat64=no 10116fi 10117 10118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10119fi 10120{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 10121echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 10122 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 10123 10124cat >>confdefs.h <<\_ACEOF 10125#define HAVE_STRUCT_STAT64 1 10126_ACEOF 10127 10128 fi 10129 10130 10131 10132for ac_func in open64 lseek64 10133do 10134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10135{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10137if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10138 echo $ECHO_N "(cached) $ECHO_C" >&6 10139else 10140 cat >conftest.$ac_ext <<_ACEOF 10141/* confdefs.h. */ 10142_ACEOF 10143cat confdefs.h >>conftest.$ac_ext 10144cat >>conftest.$ac_ext <<_ACEOF 10145/* end confdefs.h. */ 10146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10147 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10148#define $ac_func innocuous_$ac_func 10149 10150/* System header to define __stub macros and hopefully few prototypes, 10151 which can conflict with char $ac_func (); below. 10152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10153 <limits.h> exists even on freestanding compilers. */ 10154 10155#ifdef __STDC__ 10156# include <limits.h> 10157#else 10158# include <assert.h> 10159#endif 10160 10161#undef $ac_func 10162 10163/* Override any GCC internal prototype to avoid an error. 10164 Use char because int might match the return type of a GCC 10165 builtin and then its argument prototype would still apply. */ 10166#ifdef __cplusplus 10167extern "C" 10168#endif 10169char $ac_func (); 10170/* The GNU C library defines this for functions which it implements 10171 to always fail with ENOSYS. Some functions are actually named 10172 something starting with __ and the normal name is an alias. */ 10173#if defined __stub_$ac_func || defined __stub___$ac_func 10174choke me 10175#endif 10176 10177int 10178main () 10179{ 10180return $ac_func (); 10181 ; 10182 return 0; 10183} 10184_ACEOF 10185rm -f conftest.$ac_objext conftest$ac_exeext 10186if { (ac_try="$ac_link" 10187case "(($ac_try" in 10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10189 *) ac_try_echo=$ac_try;; 10190esac 10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10192 (eval "$ac_link") 2>conftest.er1 10193 ac_status=$? 10194 grep -v '^ *+' conftest.er1 >conftest.err 10195 rm -f conftest.er1 10196 cat conftest.err >&5 10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10198 (exit $ac_status); } && { 10199 test -z "$ac_c_werror_flag" || 10200 test ! -s conftest.err 10201 } && test -s conftest$ac_exeext && 10202 $as_test_x conftest$ac_exeext; then 10203 eval "$as_ac_var=yes" 10204else 10205 echo "$as_me: failed program was:" >&5 10206sed 's/^/| /' conftest.$ac_ext >&5 10207 10208 eval "$as_ac_var=no" 10209fi 10210 10211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10212 conftest$ac_exeext conftest.$ac_ext 10213fi 10214ac_res=`eval echo '${'$as_ac_var'}'` 10215 { echo "$as_me:$LINENO: result: $ac_res" >&5 10216echo "${ECHO_T}$ac_res" >&6; } 10217if test `eval echo '${'$as_ac_var'}'` = yes; then 10218 cat >>confdefs.h <<_ACEOF 10219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10220_ACEOF 10221 10222fi 10223done 10224 10225 { echo "$as_me:$LINENO: checking for off64_t" >&5 10226echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10227 if test "${tcl_cv_type_off64_t+set}" = set; then 10228 echo $ECHO_N "(cached) $ECHO_C" >&6 10229else 10230 10231 cat >conftest.$ac_ext <<_ACEOF 10232/* confdefs.h. */ 10233_ACEOF 10234cat confdefs.h >>conftest.$ac_ext 10235cat >>conftest.$ac_ext <<_ACEOF 10236/* end confdefs.h. */ 10237#include <sys/types.h> 10238int 10239main () 10240{ 10241off64_t offset; 10242 10243 ; 10244 return 0; 10245} 10246_ACEOF 10247rm -f conftest.$ac_objext 10248if { (ac_try="$ac_compile" 10249case "(($ac_try" in 10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10251 *) ac_try_echo=$ac_try;; 10252esac 10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10254 (eval "$ac_compile") 2>conftest.er1 10255 ac_status=$? 10256 grep -v '^ *+' conftest.er1 >conftest.err 10257 rm -f conftest.er1 10258 cat conftest.err >&5 10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10260 (exit $ac_status); } && { 10261 test -z "$ac_c_werror_flag" || 10262 test ! -s conftest.err 10263 } && test -s conftest.$ac_objext; then 10264 tcl_cv_type_off64_t=yes 10265else 10266 echo "$as_me: failed program was:" >&5 10267sed 's/^/| /' conftest.$ac_ext >&5 10268 10269 tcl_cv_type_off64_t=no 10270fi 10271 10272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10273fi 10274 10275 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10276 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10277 test "x${ac_cv_func_open64}" = "xyes" ; then 10278 10279cat >>confdefs.h <<\_ACEOF 10280#define HAVE_TYPE_OFF64_T 1 10281_ACEOF 10282 10283 { echo "$as_me:$LINENO: result: yes" >&5 10284echo "${ECHO_T}yes" >&6; } 10285 else 10286 { echo "$as_me:$LINENO: result: no" >&5 10287echo "${ECHO_T}no" >&6; } 10288 fi 10289 fi 10290 10291 10292 10293# Needed for the chantest library. 10294 10295 10296#-------------------------------------------------------------------- 10297# Set the default compiler switches based on the --enable-symbols option. 10298#-------------------------------------------------------------------- 10299 10300 10301 10302 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10303echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10304 # Check whether --enable-symbols was given. 10305if test "${enable_symbols+set}" = set; then 10306 enableval=$enable_symbols; tcl_ok=$enableval 10307else 10308 tcl_ok=no 10309fi 10310 10311 DBGX="" 10312 if test "$tcl_ok" = "no"; then 10313 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10314 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10315 { echo "$as_me:$LINENO: result: no" >&5 10316echo "${ECHO_T}no" >&6; } 10317 else 10318 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10319 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10320 if test "$tcl_ok" = "yes"; then 10321 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10322echo "${ECHO_T}yes (standard debugging)" >&6; } 10323 fi 10324 fi 10325 # TEA specific: 10326 if test "${TEA_PLATFORM}" != "windows" ; then 10327 LDFLAGS_DEFAULT="${LDFLAGS}" 10328 fi 10329 10330 10331 10332 10333 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10334 10335cat >>confdefs.h <<\_ACEOF 10336#define TCL_MEM_DEBUG 1 10337_ACEOF 10338 10339 fi 10340 10341 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10342 if test "$tcl_ok" = "all"; then 10343 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10344echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10345 else 10346 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10347echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10348 fi 10349 fi 10350 10351 10352#-------------------------------------------------------------------- 10353# Everyone should be linking against the Tcl stub library. If you 10354# can't for some reason, remove this definition. If you aren't using 10355# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10356# link against the non-stubbed Tcl library. 10357#-------------------------------------------------------------------- 10358 10359cat >>confdefs.h <<\_ACEOF 10360#define USE_TCL_STUBS 1 10361_ACEOF 10362 10363 10364#-------------------------------------------------------------------- 10365# If ltoa is present, use it to convert integer values into strings. 10366# If not, sprintf is used, which is slower and requires more code. 10367#-------------------------------------------------------------------- 10368 10369 10370for ac_func in ltoa 10371do 10372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10373{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10376 echo $ECHO_N "(cached) $ECHO_C" >&6 10377else 10378 cat >conftest.$ac_ext <<_ACEOF 10379/* confdefs.h. */ 10380_ACEOF 10381cat confdefs.h >>conftest.$ac_ext 10382cat >>conftest.$ac_ext <<_ACEOF 10383/* end confdefs.h. */ 10384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10385 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10386#define $ac_func innocuous_$ac_func 10387 10388/* System header to define __stub macros and hopefully few prototypes, 10389 which can conflict with char $ac_func (); below. 10390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10391 <limits.h> exists even on freestanding compilers. */ 10392 10393#ifdef __STDC__ 10394# include <limits.h> 10395#else 10396# include <assert.h> 10397#endif 10398 10399#undef $ac_func 10400 10401/* Override any GCC internal prototype to avoid an error. 10402 Use char because int might match the return type of a GCC 10403 builtin and then its argument prototype would still apply. */ 10404#ifdef __cplusplus 10405extern "C" 10406#endif 10407char $ac_func (); 10408/* The GNU C library defines this for functions which it implements 10409 to always fail with ENOSYS. Some functions are actually named 10410 something starting with __ and the normal name is an alias. */ 10411#if defined __stub_$ac_func || defined __stub___$ac_func 10412choke me 10413#endif 10414 10415int 10416main () 10417{ 10418return $ac_func (); 10419 ; 10420 return 0; 10421} 10422_ACEOF 10423rm -f conftest.$ac_objext conftest$ac_exeext 10424if { (ac_try="$ac_link" 10425case "(($ac_try" in 10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10427 *) ac_try_echo=$ac_try;; 10428esac 10429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10430 (eval "$ac_link") 2>conftest.er1 10431 ac_status=$? 10432 grep -v '^ *+' conftest.er1 >conftest.err 10433 rm -f conftest.er1 10434 cat conftest.err >&5 10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10436 (exit $ac_status); } && { 10437 test -z "$ac_c_werror_flag" || 10438 test ! -s conftest.err 10439 } && test -s conftest$ac_exeext && 10440 $as_test_x conftest$ac_exeext; then 10441 eval "$as_ac_var=yes" 10442else 10443 echo "$as_me: failed program was:" >&5 10444sed 's/^/| /' conftest.$ac_ext >&5 10445 10446 eval "$as_ac_var=no" 10447fi 10448 10449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10450 conftest$ac_exeext conftest.$ac_ext 10451fi 10452ac_res=`eval echo '${'$as_ac_var'}'` 10453 { echo "$as_me:$LINENO: result: $ac_res" >&5 10454echo "${ECHO_T}$ac_res" >&6; } 10455if test `eval echo '${'$as_ac_var'}'` = yes; then 10456 cat >>confdefs.h <<_ACEOF 10457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10458_ACEOF 10459 10460fi 10461done 10462 10463 10464#-------------------------------------------------------------------- 10465# This macro generates a line to use when building a library. It 10466# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10467# and TEA_LOAD_TCLCONFIG macros above. 10468#-------------------------------------------------------------------- 10469 10470 10471 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10472 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10473 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10474 cat >conftest.$ac_ext <<_ACEOF 10475/* confdefs.h. */ 10476_ACEOF 10477cat confdefs.h >>conftest.$ac_ext 10478cat >>conftest.$ac_ext <<_ACEOF 10479/* end confdefs.h. */ 10480 10481#if defined(_MSC_VER) && _MSC_VER >= 1400 10482print("manifest needed") 10483#endif 10484 10485_ACEOF 10486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10487 $EGREP "manifest needed" >/dev/null 2>&1; then 10488 10489 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10490 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10491 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10492 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10493 10494 CLEANFILES="$CLEANFILES *.manifest" 10495 10496 10497fi 10498rm -f -r conftest* 10499 10500 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10501 else 10502 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10503 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10504 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10505 fi 10506 10507 if test "${SHARED_BUILD}" = "1" ; then 10508 MAKE_LIB="${MAKE_SHARED_LIB} " 10509 else 10510 MAKE_LIB="${MAKE_STATIC_LIB} " 10511 fi 10512 10513 #-------------------------------------------------------------------- 10514 # Shared libraries and static libraries have different names. 10515 # Use the double eval to make sure any variables in the suffix is 10516 # substituted. (@@@ Might not be necessary anymore) 10517 #-------------------------------------------------------------------- 10518 10519 if test "${TEA_PLATFORM}" = "windows" ; then 10520 if test "${SHARED_BUILD}" = "1" ; then 10521 # We force the unresolved linking of symbols that are really in 10522 # the private libraries of Tcl and Tk. 10523 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10524 if test x"${TK_BIN_DIR}" != x ; then 10525 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10526 fi 10527 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10528 else 10529 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10530 fi 10531 # Some packages build their own stubs libraries 10532 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10533 if test "$GCC" = "yes"; then 10534 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10535 fi 10536 # These aren't needed on Windows (either MSVC or gcc) 10537 RANLIB=: 10538 RANLIB_STUB=: 10539 else 10540 RANLIB_STUB="${RANLIB}" 10541 if test "${SHARED_BUILD}" = "1" ; then 10542 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10543 if test x"${TK_BIN_DIR}" != x ; then 10544 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10545 fi 10546 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10547 RANLIB=: 10548 else 10549 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10550 fi 10551 # Some packages build their own stubs libraries 10552 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10553 fi 10554 10555 # These are escaped so that only CFLAGS is picked up at configure time. 10556 # The other values will be substituted at make time. 10557 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10558 if test "${SHARED_BUILD}" = "1" ; then 10559 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10560 fi 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571#-------------------------------------------------------------------- 10572# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10573# file during the install process. Don't run the TCLSH_PROG through 10574# ${CYGPATH} because it's being used directly by make. 10575# Require that we use a tclsh shell version 8.2 or later since earlier 10576# versions have bugs in the pkg_mkIndex routine. 10577# Add WISH as well if this is a Tk extension. 10578#-------------------------------------------------------------------- 10579 10580 10581 { echo "$as_me:$LINENO: checking for tclsh" >&5 10582echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10583 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10584 # tclConfig.sh is in Tcl build directory 10585 if test "${TEA_PLATFORM}" = "windows"; then 10586 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10587 else 10588 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10589 fi 10590 else 10591 # tclConfig.sh is in install location 10592 if test "${TEA_PLATFORM}" = "windows"; then 10593 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10594 else 10595 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10596 fi 10597 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10598 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10599 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10600 for i in $list ; do 10601 if test -f "$i/${TCLSH_PROG}" ; then 10602 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10603 break 10604 fi 10605 done 10606 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10607 fi 10608 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10609echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10610 10611 10612 10613#-------------------------------------------------------------------- 10614# Finally, substitute all of the various values into the Makefile. 10615# You may alternatively have a special pkgIndex.tcl.in or other files 10616# which require substituting th AC variables in. Include these here. 10617#-------------------------------------------------------------------- 10618 10619ac_config_files="$ac_config_files Makefile" 10620 10621cat >confcache <<\_ACEOF 10622# This file is a shell script that caches the results of configure 10623# tests run on this system so they can be shared between configure 10624# scripts and configure runs, see configure's option --config-cache. 10625# It is not useful on other systems. If it contains results you don't 10626# want to keep, you may remove or edit it. 10627# 10628# config.status only pays attention to the cache file if you give it 10629# the --recheck option to rerun configure. 10630# 10631# `ac_cv_env_foo' variables (set or unset) will be overridden when 10632# loading this file, other *unset* `ac_cv_foo' will be assigned the 10633# following values. 10634 10635_ACEOF 10636 10637# The following way of writing the cache mishandles newlines in values, 10638# but we know of no workaround that is simple, portable, and efficient. 10639# So, we kill variables containing newlines. 10640# Ultrix sh set writes to stderr and can't be redirected directly, 10641# and sets the high bit in the cache file unless we assign to the vars. 10642( 10643 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10644 eval ac_val=\$$ac_var 10645 case $ac_val in #( 10646 *${as_nl}*) 10647 case $ac_var in #( 10648 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10649echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10650 esac 10651 case $ac_var in #( 10652 _ | IFS | as_nl) ;; #( 10653 *) $as_unset $ac_var ;; 10654 esac ;; 10655 esac 10656 done 10657 10658 (set) 2>&1 | 10659 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10660 *${as_nl}ac_space=\ *) 10661 # `set' does not quote correctly, so add quotes (double-quote 10662 # substitution turns \\\\ into \\, and sed turns \\ into \). 10663 sed -n \ 10664 "s/'/'\\\\''/g; 10665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10666 ;; #( 10667 *) 10668 # `set' quotes correctly as required by POSIX, so do not add quotes. 10669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10670 ;; 10671 esac | 10672 sort 10673) | 10674 sed ' 10675 /^ac_cv_env_/b end 10676 t clear 10677 :clear 10678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10679 t end 10680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10681 :end' >>confcache 10682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10683 if test -w "$cache_file"; then 10684 test "x$cache_file" != "x/dev/null" && 10685 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10686echo "$as_me: updating cache $cache_file" >&6;} 10687 cat confcache >$cache_file 10688 else 10689 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10690echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10691 fi 10692fi 10693rm -f confcache 10694 10695test "x$prefix" = xNONE && prefix=$ac_default_prefix 10696# Let make expand exec_prefix. 10697test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10698 10699# Transform confdefs.h into DEFS. 10700# Protect against shell expansion while executing Makefile rules. 10701# Protect against Makefile macro expansion. 10702# 10703# If the first sed substitution is executed (which looks for macros that 10704# take arguments), then branch to the quote section. Otherwise, 10705# look for a macro that doesn't take arguments. 10706ac_script=' 10707t clear 10708:clear 10709s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10710t quote 10711s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10712t quote 10713b any 10714:quote 10715s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10716s/\[/\\&/g 10717s/\]/\\&/g 10718s/\$/$$/g 10719H 10720:any 10721${ 10722 g 10723 s/^\n// 10724 s/\n/ /g 10725 p 10726} 10727' 10728DEFS=`sed -n "$ac_script" confdefs.h` 10729 10730 10731ac_libobjs= 10732ac_ltlibobjs= 10733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10734 # 1. Remove the extension, and $U if already installed. 10735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10736 ac_i=`echo "$ac_i" | sed "$ac_script"` 10737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10738 # will be set to the directory where LIBOBJS objects are built. 10739 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10740 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10741done 10742LIBOBJS=$ac_libobjs 10743 10744LTLIBOBJS=$ac_ltlibobjs 10745 10746 10747CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10748 10749: ${CONFIG_STATUS=./config.status} 10750ac_clean_files_save=$ac_clean_files 10751ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10752{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10753echo "$as_me: creating $CONFIG_STATUS" >&6;} 10754cat >$CONFIG_STATUS <<_ACEOF 10755#! $SHELL 10756# Generated by $as_me. 10757# Run this file to recreate the current configuration. 10758# Compiler output produced by configure, useful for debugging 10759# configure, is in config.log if it exists. 10760 10761debug=false 10762ac_cs_recheck=false 10763ac_cs_silent=false 10764SHELL=\${CONFIG_SHELL-$SHELL} 10765_ACEOF 10766 10767cat >>$CONFIG_STATUS <<\_ACEOF 10768## --------------------- ## 10769## M4sh Initialization. ## 10770## --------------------- ## 10771 10772# Be more Bourne compatible 10773DUALCASE=1; export DUALCASE # for MKS sh 10774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10775 emulate sh 10776 NULLCMD=: 10777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10778 # is contrary to our usage. Disable this feature. 10779 alias -g '${1+"$@"}'='"$@"' 10780 setopt NO_GLOB_SUBST 10781else 10782 case `(set -o) 2>/dev/null` in 10783 *posix*) set -o posix ;; 10784esac 10785 10786fi 10787 10788 10789 10790 10791# PATH needs CR 10792# Avoid depending upon Character Ranges. 10793as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10794as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10795as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10796as_cr_digits='0123456789' 10797as_cr_alnum=$as_cr_Letters$as_cr_digits 10798 10799# The user is always right. 10800if test "${PATH_SEPARATOR+set}" != set; then 10801 echo "#! /bin/sh" >conf$$.sh 10802 echo "exit 0" >>conf$$.sh 10803 chmod +x conf$$.sh 10804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10805 PATH_SEPARATOR=';' 10806 else 10807 PATH_SEPARATOR=: 10808 fi 10809 rm -f conf$$.sh 10810fi 10811 10812# Support unset when possible. 10813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10814 as_unset=unset 10815else 10816 as_unset=false 10817fi 10818 10819 10820# IFS 10821# We need space, tab and new line, in precisely that order. Quoting is 10822# there to prevent editors from complaining about space-tab. 10823# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10824# splitting by setting IFS to empty value.) 10825as_nl=' 10826' 10827IFS=" "" $as_nl" 10828 10829# Find who we are. Look in the path if we contain no directory separator. 10830case $0 in 10831 *[\\/]* ) as_myself=$0 ;; 10832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10833for as_dir in $PATH 10834do 10835 IFS=$as_save_IFS 10836 test -z "$as_dir" && as_dir=. 10837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10838done 10839IFS=$as_save_IFS 10840 10841 ;; 10842esac 10843# We did not find ourselves, most probably we were run as `sh COMMAND' 10844# in which case we are not to be found in the path. 10845if test "x$as_myself" = x; then 10846 as_myself=$0 10847fi 10848if test ! -f "$as_myself"; then 10849 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10850 { (exit 1); exit 1; } 10851fi 10852 10853# Work around bugs in pre-3.0 UWIN ksh. 10854for as_var in ENV MAIL MAILPATH 10855do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10856done 10857PS1='$ ' 10858PS2='> ' 10859PS4='+ ' 10860 10861# NLS nuisances. 10862for as_var in \ 10863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10865 LC_TELEPHONE LC_TIME 10866do 10867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10868 eval $as_var=C; export $as_var 10869 else 10870 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10871 fi 10872done 10873 10874# Required to use basename. 10875if expr a : '\(a\)' >/dev/null 2>&1 && 10876 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10877 as_expr=expr 10878else 10879 as_expr=false 10880fi 10881 10882if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10883 as_basename=basename 10884else 10885 as_basename=false 10886fi 10887 10888 10889# Name of the executable. 10890as_me=`$as_basename -- "$0" || 10891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10892 X"$0" : 'X\(//\)$' \| \ 10893 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10894echo X/"$0" | 10895 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10896 s//\1/ 10897 q 10898 } 10899 /^X\/\(\/\/\)$/{ 10900 s//\1/ 10901 q 10902 } 10903 /^X\/\(\/\).*/{ 10904 s//\1/ 10905 q 10906 } 10907 s/.*/./; q'` 10908 10909# CDPATH. 10910$as_unset CDPATH 10911 10912 10913 10914 as_lineno_1=$LINENO 10915 as_lineno_2=$LINENO 10916 test "x$as_lineno_1" != "x$as_lineno_2" && 10917 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10918 10919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10920 # uniformly replaced by the line number. The first 'sed' inserts a 10921 # line-number line after each line using $LINENO; the second 'sed' 10922 # does the real work. The second script uses 'N' to pair each 10923 # line-number line with the line containing $LINENO, and appends 10924 # trailing '-' during substitution so that $LINENO is not a special 10925 # case at line end. 10926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10927 # scripts with optimization help from Paolo Bonzini. Blame Lee 10928 # E. McMahon (1931-1989) for sed's syntax. :-) 10929 sed -n ' 10930 p 10931 /[$]LINENO/= 10932 ' <$as_myself | 10933 sed ' 10934 s/[$]LINENO.*/&-/ 10935 t lineno 10936 b 10937 :lineno 10938 N 10939 :loop 10940 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10941 t loop 10942 s/-\n.*// 10943 ' >$as_me.lineno && 10944 chmod +x "$as_me.lineno" || 10945 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10946 { (exit 1); exit 1; }; } 10947 10948 # Don't try to exec as it changes $[0], causing all sort of problems 10949 # (the dirname of $[0] is not the place where we might find the 10950 # original and so on. Autoconf is especially sensitive to this). 10951 . "./$as_me.lineno" 10952 # Exit status is that of the last command. 10953 exit 10954} 10955 10956 10957if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10958 as_dirname=dirname 10959else 10960 as_dirname=false 10961fi 10962 10963ECHO_C= ECHO_N= ECHO_T= 10964case `echo -n x` in 10965-n*) 10966 case `echo 'x\c'` in 10967 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10968 *) ECHO_C='\c';; 10969 esac;; 10970*) 10971 ECHO_N='-n';; 10972esac 10973 10974if expr a : '\(a\)' >/dev/null 2>&1 && 10975 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10976 as_expr=expr 10977else 10978 as_expr=false 10979fi 10980 10981rm -f conf$$ conf$$.exe conf$$.file 10982if test -d conf$$.dir; then 10983 rm -f conf$$.dir/conf$$.file 10984else 10985 rm -f conf$$.dir 10986 mkdir conf$$.dir 10987fi 10988echo >conf$$.file 10989if ln -s conf$$.file conf$$ 2>/dev/null; then 10990 as_ln_s='ln -s' 10991 # ... but there are two gotchas: 10992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10994 # In both cases, we have to default to `cp -p'. 10995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10996 as_ln_s='cp -p' 10997elif ln conf$$.file conf$$ 2>/dev/null; then 10998 as_ln_s=ln 10999else 11000 as_ln_s='cp -p' 11001fi 11002rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11003rmdir conf$$.dir 2>/dev/null 11004 11005if mkdir -p . 2>/dev/null; then 11006 as_mkdir_p=: 11007else 11008 test -d ./-p && rmdir ./-p 11009 as_mkdir_p=false 11010fi 11011 11012if test -x / >/dev/null 2>&1; then 11013 as_test_x='test -x' 11014else 11015 if ls -dL / >/dev/null 2>&1; then 11016 as_ls_L_option=L 11017 else 11018 as_ls_L_option= 11019 fi 11020 as_test_x=' 11021 eval sh -c '\'' 11022 if test -d "$1"; then 11023 test -d "$1/."; 11024 else 11025 case $1 in 11026 -*)set "./$1";; 11027 esac; 11028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11029 ???[sx]*):;;*)false;;esac;fi 11030 '\'' sh 11031 ' 11032fi 11033as_executable_p=$as_test_x 11034 11035# Sed expression to map a string onto a valid CPP name. 11036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11037 11038# Sed expression to map a string onto a valid variable name. 11039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11040 11041 11042exec 6>&1 11043 11044# Save the log message, to keep $[0] and so on meaningful, and to 11045# report actual input values of CONFIG_FILES etc. instead of their 11046# values after options handling. 11047ac_log=" 11048This file was extended by Memchan $as_me 2.2.1, which was 11049generated by GNU Autoconf 2.61. Invocation command line was 11050 11051 CONFIG_FILES = $CONFIG_FILES 11052 CONFIG_HEADERS = $CONFIG_HEADERS 11053 CONFIG_LINKS = $CONFIG_LINKS 11054 CONFIG_COMMANDS = $CONFIG_COMMANDS 11055 $ $0 $@ 11056 11057on `(hostname || uname -n) 2>/dev/null | sed 1q` 11058" 11059 11060_ACEOF 11061 11062cat >>$CONFIG_STATUS <<_ACEOF 11063# Files that config.status was made for. 11064config_files="$ac_config_files" 11065 11066_ACEOF 11067 11068cat >>$CONFIG_STATUS <<\_ACEOF 11069ac_cs_usage="\ 11070\`$as_me' instantiates files from templates according to the 11071current configuration. 11072 11073Usage: $0 [OPTIONS] [FILE]... 11074 11075 -h, --help print this help, then exit 11076 -V, --version print version number and configuration settings, then exit 11077 -q, --quiet do not print progress messages 11078 -d, --debug don't remove temporary files 11079 --recheck update $as_me by reconfiguring in the same conditions 11080 --file=FILE[:TEMPLATE] 11081 instantiate the configuration file FILE 11082 11083Configuration files: 11084$config_files 11085 11086Report bugs to <bug-autoconf@gnu.org>." 11087 11088_ACEOF 11089cat >>$CONFIG_STATUS <<_ACEOF 11090ac_cs_version="\\ 11091Memchan config.status 2.2.1 11092configured by $0, generated by GNU Autoconf 2.61, 11093 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11094 11095Copyright (C) 2006 Free Software Foundation, Inc. 11096This config.status script is free software; the Free Software Foundation 11097gives unlimited permission to copy, distribute and modify it." 11098 11099ac_pwd='$ac_pwd' 11100srcdir='$srcdir' 11101INSTALL='$INSTALL' 11102_ACEOF 11103 11104cat >>$CONFIG_STATUS <<\_ACEOF 11105# If no file are specified by the user, then we need to provide default 11106# value. By we need to know if files were specified by the user. 11107ac_need_defaults=: 11108while test $# != 0 11109do 11110 case $1 in 11111 --*=*) 11112 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11113 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11114 ac_shift=: 11115 ;; 11116 *) 11117 ac_option=$1 11118 ac_optarg=$2 11119 ac_shift=shift 11120 ;; 11121 esac 11122 11123 case $ac_option in 11124 # Handling of the options. 11125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11126 ac_cs_recheck=: ;; 11127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11128 echo "$ac_cs_version"; exit ;; 11129 --debug | --debu | --deb | --de | --d | -d ) 11130 debug=: ;; 11131 --file | --fil | --fi | --f ) 11132 $ac_shift 11133 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11134 ac_need_defaults=false;; 11135 --he | --h | --help | --hel | -h ) 11136 echo "$ac_cs_usage"; exit ;; 11137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11138 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11139 ac_cs_silent=: ;; 11140 11141 # This is an error. 11142 -*) { echo "$as_me: error: unrecognized option: $1 11143Try \`$0 --help' for more information." >&2 11144 { (exit 1); exit 1; }; } ;; 11145 11146 *) ac_config_targets="$ac_config_targets $1" 11147 ac_need_defaults=false ;; 11148 11149 esac 11150 shift 11151done 11152 11153ac_configure_extra_args= 11154 11155if $ac_cs_silent; then 11156 exec 6>/dev/null 11157 ac_configure_extra_args="$ac_configure_extra_args --silent" 11158fi 11159 11160_ACEOF 11161cat >>$CONFIG_STATUS <<_ACEOF 11162if \$ac_cs_recheck; then 11163 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11164 CONFIG_SHELL=$SHELL 11165 export CONFIG_SHELL 11166 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11167fi 11168 11169_ACEOF 11170cat >>$CONFIG_STATUS <<\_ACEOF 11171exec 5>>config.log 11172{ 11173 echo 11174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11175## Running $as_me. ## 11176_ASBOX 11177 echo "$ac_log" 11178} >&5 11179 11180_ACEOF 11181cat >>$CONFIG_STATUS <<_ACEOF 11182_ACEOF 11183 11184cat >>$CONFIG_STATUS <<\_ACEOF 11185 11186# Handling of arguments. 11187for ac_config_target in $ac_config_targets 11188do 11189 case $ac_config_target in 11190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11191 11192 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11193echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11194 { (exit 1); exit 1; }; };; 11195 esac 11196done 11197 11198 11199# If the user did not use the arguments to specify the items to instantiate, 11200# then the envvar interface is used. Set only those that are not. 11201# We use the long form for the default assignment because of an extremely 11202# bizarre bug on SunOS 4.1.3. 11203if $ac_need_defaults; then 11204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11205fi 11206 11207# Have a temporary directory for convenience. Make it in the build tree 11208# simply because there is no reason against having it here, and in addition, 11209# creating and moving files from /tmp can sometimes cause problems. 11210# Hook for its removal unless debugging. 11211# Note that there is a small window in which the directory will not be cleaned: 11212# after its creation but before its name has been assigned to `$tmp'. 11213$debug || 11214{ 11215 tmp= 11216 trap 'exit_status=$? 11217 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11218' 0 11219 trap '{ (exit 1); exit 1; }' 1 2 13 15 11220} 11221# Create a (secure) tmp directory for tmp files. 11222 11223{ 11224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11225 test -n "$tmp" && test -d "$tmp" 11226} || 11227{ 11228 tmp=./conf$$-$RANDOM 11229 (umask 077 && mkdir "$tmp") 11230} || 11231{ 11232 echo "$me: cannot create a temporary directory in ." >&2 11233 { (exit 1); exit 1; } 11234} 11235 11236# 11237# Set up the sed scripts for CONFIG_FILES section. 11238# 11239 11240# No need to generate the scripts if there are no CONFIG_FILES. 11241# This happens for instance when ./config.status config.h 11242if test -n "$CONFIG_FILES"; then 11243 11244_ACEOF 11245 11246 11247 11248ac_delim='%!_!# ' 11249for ac_last_try in false false false false false :; do 11250 cat >conf$$subs.sed <<_ACEOF 11251SHELL!$SHELL$ac_delim 11252PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11253PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11254PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11255PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11256PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11257PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11258exec_prefix!$exec_prefix$ac_delim 11259prefix!$prefix$ac_delim 11260program_transform_name!$program_transform_name$ac_delim 11261bindir!$bindir$ac_delim 11262sbindir!$sbindir$ac_delim 11263libexecdir!$libexecdir$ac_delim 11264datarootdir!$datarootdir$ac_delim 11265datadir!$datadir$ac_delim 11266sysconfdir!$sysconfdir$ac_delim 11267sharedstatedir!$sharedstatedir$ac_delim 11268localstatedir!$localstatedir$ac_delim 11269includedir!$includedir$ac_delim 11270oldincludedir!$oldincludedir$ac_delim 11271docdir!$docdir$ac_delim 11272infodir!$infodir$ac_delim 11273htmldir!$htmldir$ac_delim 11274dvidir!$dvidir$ac_delim 11275pdfdir!$pdfdir$ac_delim 11276psdir!$psdir$ac_delim 11277libdir!$libdir$ac_delim 11278localedir!$localedir$ac_delim 11279mandir!$mandir$ac_delim 11280DEFS!$DEFS$ac_delim 11281ECHO_C!$ECHO_C$ac_delim 11282ECHO_N!$ECHO_N$ac_delim 11283ECHO_T!$ECHO_T$ac_delim 11284LIBS!$LIBS$ac_delim 11285build_alias!$build_alias$ac_delim 11286host_alias!$host_alias$ac_delim 11287target_alias!$target_alias$ac_delim 11288CYGPATH!$CYGPATH$ac_delim 11289EXEEXT!$EXEEXT$ac_delim 11290PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11291PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11292PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11293PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11294PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11295PKG_HEADERS!$PKG_HEADERS$ac_delim 11296PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11297PKG_LIBS!$PKG_LIBS$ac_delim 11298PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11299TCL_VERSION!$TCL_VERSION$ac_delim 11300TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11301TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11302TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11303TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11304TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11305TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11306TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11307TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11308TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11309CLEANFILES!$CLEANFILES$ac_delim 11310TCL_LIBS!$TCL_LIBS$ac_delim 11311TCL_DEFS!$TCL_DEFS$ac_delim 11312TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11313TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11314TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11315CC!$CC$ac_delim 11316CFLAGS!$CFLAGS$ac_delim 11317LDFLAGS!$LDFLAGS$ac_delim 11318CPPFLAGS!$CPPFLAGS$ac_delim 11319ac_ct_CC!$ac_ct_CC$ac_delim 11320OBJEXT!$OBJEXT$ac_delim 11321CPP!$CPP$ac_delim 11322INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11323INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11324INSTALL_DATA!$INSTALL_DATA$ac_delim 11325SET_MAKE!$SET_MAKE$ac_delim 11326RANLIB!$RANLIB$ac_delim 11327GREP!$GREP$ac_delim 11328EGREP!$EGREP$ac_delim 11329MATH_LIBS!$MATH_LIBS$ac_delim 11330PKG_SOURCES!$PKG_SOURCES$ac_delim 11331PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11332TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11333TCL_THREADS!$TCL_THREADS$ac_delim 11334SHARED_BUILD!$SHARED_BUILD$ac_delim 11335AR!$AR$ac_delim 11336CELIB_DIR!$CELIB_DIR$ac_delim 11337CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11338CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11339CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11340STLIB_LD!$STLIB_LD$ac_delim 11341SHLIB_LD!$SHLIB_LD$ac_delim 11342SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11343SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11344LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11345SHLIB_SUFFIX!$SHLIB_SUFFIX$ac_delim 11346CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11347LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11348_ACEOF 11349 11350 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11351 break 11352 elif $ac_last_try; then 11353 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11354echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11355 { (exit 1); exit 1; }; } 11356 else 11357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11358 fi 11359done 11360 11361ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11362if test -n "$ac_eof"; then 11363 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11364 ac_eof=`expr $ac_eof + 1` 11365fi 11366 11367cat >>$CONFIG_STATUS <<_ACEOF 11368cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11369/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11370_ACEOF 11371sed ' 11372s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11373s/^/s,@/; s/!/@,|#_!!_#|/ 11374:n 11375t n 11376s/'"$ac_delim"'$/,g/; t 11377s/$/\\/; p 11378N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11379' >>$CONFIG_STATUS <conf$$subs.sed 11380rm -f conf$$subs.sed 11381cat >>$CONFIG_STATUS <<_ACEOF 11382CEOF$ac_eof 11383_ACEOF 11384 11385 11386ac_delim='%!_!# ' 11387for ac_last_try in false false false false false :; do 11388 cat >conf$$subs.sed <<_ACEOF 11389TCL_DBGX!$TCL_DBGX$ac_delim 11390MAKE_LIB!$MAKE_LIB$ac_delim 11391MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11392MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11393MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11394RANLIB_STUB!$RANLIB_STUB$ac_delim 11395VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11396VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11397TCLSH_PROG!$TCLSH_PROG$ac_delim 11398LIBOBJS!$LIBOBJS$ac_delim 11399LTLIBOBJS!$LTLIBOBJS$ac_delim 11400_ACEOF 11401 11402 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then 11403 break 11404 elif $ac_last_try; then 11405 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11406echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11407 { (exit 1); exit 1; }; } 11408 else 11409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11410 fi 11411done 11412 11413ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11414if test -n "$ac_eof"; then 11415 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11416 ac_eof=`expr $ac_eof + 1` 11417fi 11418 11419cat >>$CONFIG_STATUS <<_ACEOF 11420cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11422_ACEOF 11423sed ' 11424s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11425s/^/s,@/; s/!/@,|#_!!_#|/ 11426:n 11427t n 11428s/'"$ac_delim"'$/,g/; t 11429s/$/\\/; p 11430N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11431' >>$CONFIG_STATUS <conf$$subs.sed 11432rm -f conf$$subs.sed 11433cat >>$CONFIG_STATUS <<_ACEOF 11434:end 11435s/|#_!!_#|//g 11436CEOF$ac_eof 11437_ACEOF 11438 11439 11440# VPATH may cause trouble with some makes, so we remove $(srcdir), 11441# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11442# trailing colons and then remove the whole line if VPATH becomes empty 11443# (actually we leave an empty line to preserve line numbers). 11444if test "x$srcdir" = x.; then 11445 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11446s/:*\$(srcdir):*/:/ 11447s/:*\${srcdir}:*/:/ 11448s/:*@srcdir@:*/:/ 11449s/^\([^=]*=[ ]*\):*/\1/ 11450s/:*$// 11451s/^[^=]*=[ ]*$// 11452}' 11453fi 11454 11455cat >>$CONFIG_STATUS <<\_ACEOF 11456fi # test -n "$CONFIG_FILES" 11457 11458 11459for ac_tag in :F $CONFIG_FILES 11460do 11461 case $ac_tag in 11462 :[FHLC]) ac_mode=$ac_tag; continue;; 11463 esac 11464 case $ac_mode$ac_tag in 11465 :[FHL]*:*);; 11466 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11467echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11468 { (exit 1); exit 1; }; };; 11469 :[FH]-) ac_tag=-:-;; 11470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11471 esac 11472 ac_save_IFS=$IFS 11473 IFS=: 11474 set x $ac_tag 11475 IFS=$ac_save_IFS 11476 shift 11477 ac_file=$1 11478 shift 11479 11480 case $ac_mode in 11481 :L) ac_source=$1;; 11482 :[FH]) 11483 ac_file_inputs= 11484 for ac_f 11485 do 11486 case $ac_f in 11487 -) ac_f="$tmp/stdin";; 11488 *) # Look for the file first in the build tree, then in the source tree 11489 # (if the path is not absolute). The absolute path cannot be DOS-style, 11490 # because $ac_f cannot contain `:'. 11491 test -f "$ac_f" || 11492 case $ac_f in 11493 [\\/$]*) false;; 11494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11495 esac || 11496 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11497echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11498 { (exit 1); exit 1; }; };; 11499 esac 11500 ac_file_inputs="$ac_file_inputs $ac_f" 11501 done 11502 11503 # Let's still pretend it is `configure' which instantiates (i.e., don't 11504 # use $as_me), people would be surprised to read: 11505 # /* config.h. Generated by config.status. */ 11506 configure_input="Generated from "`IFS=: 11507 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11508 if test x"$ac_file" != x-; then 11509 configure_input="$ac_file. $configure_input" 11510 { echo "$as_me:$LINENO: creating $ac_file" >&5 11511echo "$as_me: creating $ac_file" >&6;} 11512 fi 11513 11514 case $ac_tag in 11515 *:-:* | *:-) cat >"$tmp/stdin";; 11516 esac 11517 ;; 11518 esac 11519 11520 ac_dir=`$as_dirname -- "$ac_file" || 11521$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11522 X"$ac_file" : 'X\(//\)[^/]' \| \ 11523 X"$ac_file" : 'X\(//\)$' \| \ 11524 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11525echo X"$ac_file" | 11526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11527 s//\1/ 11528 q 11529 } 11530 /^X\(\/\/\)[^/].*/{ 11531 s//\1/ 11532 q 11533 } 11534 /^X\(\/\/\)$/{ 11535 s//\1/ 11536 q 11537 } 11538 /^X\(\/\).*/{ 11539 s//\1/ 11540 q 11541 } 11542 s/.*/./; q'` 11543 { as_dir="$ac_dir" 11544 case $as_dir in #( 11545 -*) as_dir=./$as_dir;; 11546 esac 11547 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11548 as_dirs= 11549 while :; do 11550 case $as_dir in #( 11551 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11552 *) as_qdir=$as_dir;; 11553 esac 11554 as_dirs="'$as_qdir' $as_dirs" 11555 as_dir=`$as_dirname -- "$as_dir" || 11556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11557 X"$as_dir" : 'X\(//\)[^/]' \| \ 11558 X"$as_dir" : 'X\(//\)$' \| \ 11559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11560echo X"$as_dir" | 11561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11562 s//\1/ 11563 q 11564 } 11565 /^X\(\/\/\)[^/].*/{ 11566 s//\1/ 11567 q 11568 } 11569 /^X\(\/\/\)$/{ 11570 s//\1/ 11571 q 11572 } 11573 /^X\(\/\).*/{ 11574 s//\1/ 11575 q 11576 } 11577 s/.*/./; q'` 11578 test -d "$as_dir" && break 11579 done 11580 test -z "$as_dirs" || eval "mkdir $as_dirs" 11581 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11582echo "$as_me: error: cannot create directory $as_dir" >&2;} 11583 { (exit 1); exit 1; }; }; } 11584 ac_builddir=. 11585 11586case "$ac_dir" in 11587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11588*) 11589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11590 # A ".." for each directory in $ac_dir_suffix. 11591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11592 case $ac_top_builddir_sub in 11593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11595 esac ;; 11596esac 11597ac_abs_top_builddir=$ac_pwd 11598ac_abs_builddir=$ac_pwd$ac_dir_suffix 11599# for backward compatibility: 11600ac_top_builddir=$ac_top_build_prefix 11601 11602case $srcdir in 11603 .) # We are building in place. 11604 ac_srcdir=. 11605 ac_top_srcdir=$ac_top_builddir_sub 11606 ac_abs_top_srcdir=$ac_pwd ;; 11607 [\\/]* | ?:[\\/]* ) # Absolute name. 11608 ac_srcdir=$srcdir$ac_dir_suffix; 11609 ac_top_srcdir=$srcdir 11610 ac_abs_top_srcdir=$srcdir ;; 11611 *) # Relative name. 11612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11613 ac_top_srcdir=$ac_top_build_prefix$srcdir 11614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11615esac 11616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11617 11618 11619 case $ac_mode in 11620 :F) 11621 # 11622 # CONFIG_FILE 11623 # 11624 11625 case $INSTALL in 11626 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11627 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11628 esac 11629_ACEOF 11630 11631cat >>$CONFIG_STATUS <<\_ACEOF 11632# If the template does not know about datarootdir, expand it. 11633# FIXME: This hack should be removed a few years after 2.60. 11634ac_datarootdir_hack=; ac_datarootdir_seen= 11635 11636case `sed -n '/datarootdir/ { 11637 p 11638 q 11639} 11640/@datadir@/p 11641/@docdir@/p 11642/@infodir@/p 11643/@localedir@/p 11644/@mandir@/p 11645' $ac_file_inputs` in 11646*datarootdir*) ac_datarootdir_seen=yes;; 11647*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11648 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11649echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11650_ACEOF 11651cat >>$CONFIG_STATUS <<_ACEOF 11652 ac_datarootdir_hack=' 11653 s&@datadir@&$datadir&g 11654 s&@docdir@&$docdir&g 11655 s&@infodir@&$infodir&g 11656 s&@localedir@&$localedir&g 11657 s&@mandir@&$mandir&g 11658 s&\\\${datarootdir}&$datarootdir&g' ;; 11659esac 11660_ACEOF 11661 11662# Neutralize VPATH when `$srcdir' = `.'. 11663# Shell code in configure.ac might set extrasub. 11664# FIXME: do we really want to maintain this feature? 11665cat >>$CONFIG_STATUS <<_ACEOF 11666 sed "$ac_vpsub 11667$extrasub 11668_ACEOF 11669cat >>$CONFIG_STATUS <<\_ACEOF 11670:t 11671/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11672s&@configure_input@&$configure_input&;t t 11673s&@top_builddir@&$ac_top_builddir_sub&;t t 11674s&@srcdir@&$ac_srcdir&;t t 11675s&@abs_srcdir@&$ac_abs_srcdir&;t t 11676s&@top_srcdir@&$ac_top_srcdir&;t t 11677s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11678s&@builddir@&$ac_builddir&;t t 11679s&@abs_builddir@&$ac_abs_builddir&;t t 11680s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11681s&@INSTALL@&$ac_INSTALL&;t t 11682$ac_datarootdir_hack 11683" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11684 11685test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11686 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11687 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11688 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11689which seems to be undefined. Please make sure it is defined." >&5 11690echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11691which seems to be undefined. Please make sure it is defined." >&2;} 11692 11693 rm -f "$tmp/stdin" 11694 case $ac_file in 11695 -) cat "$tmp/out"; rm -f "$tmp/out";; 11696 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11697 esac 11698 ;; 11699 11700 11701 11702 esac 11703 11704done # for ac_tag 11705 11706 11707{ (exit 0); exit 0; } 11708_ACEOF 11709chmod +x $CONFIG_STATUS 11710ac_clean_files=$ac_clean_files_save 11711 11712 11713# configure is writing to config.log, and then calls config.status. 11714# config.status does its own redirection, appending to config.log. 11715# Unfortunately, on DOS this fails, as config.log is still kept open 11716# by configure, so config.status won't be able to write to it; its 11717# output is simply discarded. So we exec the FD to /dev/null, 11718# effectively closing config.log, so it can be properly (re)opened and 11719# appended to by config.status. When coming back to configure, we 11720# need to make the FD available again. 11721if test "$no_create" != yes; then 11722 ac_cs_success=: 11723 ac_config_status_args= 11724 test "$silent" = yes && 11725 ac_config_status_args="$ac_config_status_args --quiet" 11726 exec 5>/dev/null 11727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11728 exec 5>>config.log 11729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11730 # would make configure fail if this is the last instruction. 11731 $ac_cs_success || { (exit 1); exit 1; } 11732fi 11733 11734 11735#-------------------------------------------------------------------- 11736