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 expect 5.45. 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='expect' 575PACKAGE_TARNAME='expect' 576PACKAGE_VERSION='5.45' 577PACKAGE_STRING='expect 5.45' 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 695TCL_INCLUDES 696TCL_TOP_DIR_NATIVE 697TCL_THREADS 698SHARED_BUILD 699AR 700CELIB_DIR 701CFLAGS_DEBUG 702CFLAGS_OPTIMIZE 703CFLAGS_WARNING 704STLIB_LD 705SHLIB_LD 706SHLIB_LD_LIBS 707SHLIB_CFLAGS 708LD_LIBRARY_PATH_VAR 709CFLAGS_DEFAULT 710LDFLAGS_DEFAULT 711TCL_DBGX 712build 713build_cpu 714build_vendor 715build_os 716host 717host_cpu 718host_vendor 719host_os 720target 721target_cpu 722target_vendor 723target_os 724subdirs 725EXP_BUILD_LIB_SPEC 726EXP_CC_SEARCH_FLAGS 727SETUID 728SETPGRP_VOID 729DEFAULT_STTY_ARGS 730TCL_DL_LIBS 731TCL_CC_SEARCH_FLAGS 732PKG_SOURCES 733PKG_OBJECTS 734MAKE_LIB 735MAKE_SHARED_LIB 736MAKE_STATIC_LIB 737MAKE_STUB_LIB 738RANLIB_STUB 739VC_MANIFEST_EMBED_DLL 740VC_MANIFEST_EMBED_EXE 741TCLSH_PROG 742LIBOBJS 743LTLIBOBJS' 744ac_subst_files='' 745 ac_precious_vars='build_alias 746host_alias 747target_alias 748CC 749CFLAGS 750LDFLAGS 751LIBS 752CPPFLAGS 753CPP' 754ac_subdirs_all='testsuite' 755 756# Initialize some variables set by options. 757ac_init_help= 758ac_init_version=false 759# The variables have the same names as the options, with 760# dashes changed to underlines. 761cache_file=/dev/null 762exec_prefix=NONE 763no_create= 764no_recursion= 765prefix=NONE 766program_prefix=NONE 767program_suffix=NONE 768program_transform_name=s,x,x, 769silent= 770site= 771srcdir= 772verbose= 773x_includes=NONE 774x_libraries=NONE 775 776# Installation directory options. 777# These are left unexpanded so users can "make install exec_prefix=/foo" 778# and all the variables that are supposed to be based on exec_prefix 779# by default will actually change. 780# Use braces instead of parens because sh, perl, etc. also accept them. 781# (The list follows the same order as the GNU Coding Standards.) 782bindir='${exec_prefix}/bin' 783sbindir='${exec_prefix}/sbin' 784libexecdir='${exec_prefix}/libexec' 785datarootdir='${prefix}/share' 786datadir='${datarootdir}' 787sysconfdir='${prefix}/etc' 788sharedstatedir='${prefix}/com' 789localstatedir='${prefix}/var' 790includedir='${prefix}/include' 791oldincludedir='/usr/include' 792docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 793infodir='${datarootdir}/info' 794htmldir='${docdir}' 795dvidir='${docdir}' 796pdfdir='${docdir}' 797psdir='${docdir}' 798libdir='${exec_prefix}/lib' 799localedir='${datarootdir}/locale' 800mandir='${datarootdir}/man' 801 802ac_prev= 803ac_dashdash= 804for ac_option 805do 806 # If the previous option needs an argument, assign it. 807 if test -n "$ac_prev"; then 808 eval $ac_prev=\$ac_option 809 ac_prev= 810 continue 811 fi 812 813 case $ac_option in 814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 815 *) ac_optarg=yes ;; 816 esac 817 818 # Accept the important Cygnus configure options, so we can diagnose typos. 819 820 case $ac_dashdash$ac_option in 821 --) 822 ac_dashdash=yes ;; 823 824 -bindir | --bindir | --bindi | --bind | --bin | --bi) 825 ac_prev=bindir ;; 826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 827 bindir=$ac_optarg ;; 828 829 -build | --build | --buil | --bui | --bu) 830 ac_prev=build_alias ;; 831 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 832 build_alias=$ac_optarg ;; 833 834 -cache-file | --cache-file | --cache-fil | --cache-fi \ 835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 836 ac_prev=cache_file ;; 837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 839 cache_file=$ac_optarg ;; 840 841 --config-cache | -C) 842 cache_file=config.cache ;; 843 844 -datadir | --datadir | --datadi | --datad) 845 ac_prev=datadir ;; 846 -datadir=* | --datadir=* | --datadi=* | --datad=*) 847 datadir=$ac_optarg ;; 848 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 850 | --dataroo | --dataro | --datar) 851 ac_prev=datarootdir ;; 852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 854 datarootdir=$ac_optarg ;; 855 856 -disable-* | --disable-*) 857 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 861 { (exit 1); exit 1; }; } 862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 863 eval enable_$ac_feature=no ;; 864 865 -docdir | --docdir | --docdi | --doc | --do) 866 ac_prev=docdir ;; 867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 868 docdir=$ac_optarg ;; 869 870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 871 ac_prev=dvidir ;; 872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 873 dvidir=$ac_optarg ;; 874 875 -enable-* | --enable-*) 876 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 880 { (exit 1); exit 1; }; } 881 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 882 eval enable_$ac_feature=\$ac_optarg ;; 883 884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 886 | --exec | --exe | --ex) 887 ac_prev=exec_prefix ;; 888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 890 | --exec=* | --exe=* | --ex=*) 891 exec_prefix=$ac_optarg ;; 892 893 -gas | --gas | --ga | --g) 894 # Obsolete; use --with-gas. 895 with_gas=yes ;; 896 897 -help | --help | --hel | --he | -h) 898 ac_init_help=long ;; 899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 900 ac_init_help=recursive ;; 901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 902 ac_init_help=short ;; 903 904 -host | --host | --hos | --ho) 905 ac_prev=host_alias ;; 906 -host=* | --host=* | --hos=* | --ho=*) 907 host_alias=$ac_optarg ;; 908 909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 910 ac_prev=htmldir ;; 911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 912 | --ht=*) 913 htmldir=$ac_optarg ;; 914 915 -includedir | --includedir | --includedi | --included | --include \ 916 | --includ | --inclu | --incl | --inc) 917 ac_prev=includedir ;; 918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 919 | --includ=* | --inclu=* | --incl=* | --inc=*) 920 includedir=$ac_optarg ;; 921 922 -infodir | --infodir | --infodi | --infod | --info | --inf) 923 ac_prev=infodir ;; 924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 925 infodir=$ac_optarg ;; 926 927 -libdir | --libdir | --libdi | --libd) 928 ac_prev=libdir ;; 929 -libdir=* | --libdir=* | --libdi=* | --libd=*) 930 libdir=$ac_optarg ;; 931 932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 933 | --libexe | --libex | --libe) 934 ac_prev=libexecdir ;; 935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 936 | --libexe=* | --libex=* | --libe=*) 937 libexecdir=$ac_optarg ;; 938 939 -localedir | --localedir | --localedi | --localed | --locale) 940 ac_prev=localedir ;; 941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 942 localedir=$ac_optarg ;; 943 944 -localstatedir | --localstatedir | --localstatedi | --localstated \ 945 | --localstate | --localstat | --localsta | --localst | --locals) 946 ac_prev=localstatedir ;; 947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 949 localstatedir=$ac_optarg ;; 950 951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 952 ac_prev=mandir ;; 953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 954 mandir=$ac_optarg ;; 955 956 -nfp | --nfp | --nf) 957 # Obsolete; use --without-fp. 958 with_fp=no ;; 959 960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 961 | --no-cr | --no-c | -n) 962 no_create=yes ;; 963 964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 966 no_recursion=yes ;; 967 968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 970 | --oldin | --oldi | --old | --ol | --o) 971 ac_prev=oldincludedir ;; 972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 975 oldincludedir=$ac_optarg ;; 976 977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 978 ac_prev=prefix ;; 979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 980 prefix=$ac_optarg ;; 981 982 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 983 | --program-pre | --program-pr | --program-p) 984 ac_prev=program_prefix ;; 985 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 987 program_prefix=$ac_optarg ;; 988 989 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 990 | --program-suf | --program-su | --program-s) 991 ac_prev=program_suffix ;; 992 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 994 program_suffix=$ac_optarg ;; 995 996 -program-transform-name | --program-transform-name \ 997 | --program-transform-nam | --program-transform-na \ 998 | --program-transform-n | --program-transform- \ 999 | --program-transform | --program-transfor \ 1000 | --program-transfo | --program-transf \ 1001 | --program-trans | --program-tran \ 1002 | --progr-tra | --program-tr | --program-t) 1003 ac_prev=program_transform_name ;; 1004 -program-transform-name=* | --program-transform-name=* \ 1005 | --program-transform-nam=* | --program-transform-na=* \ 1006 | --program-transform-n=* | --program-transform-=* \ 1007 | --program-transform=* | --program-transfor=* \ 1008 | --program-transfo=* | --program-transf=* \ 1009 | --program-trans=* | --program-tran=* \ 1010 | --progr-tra=* | --program-tr=* | --program-t=*) 1011 program_transform_name=$ac_optarg ;; 1012 1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1014 ac_prev=pdfdir ;; 1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1016 pdfdir=$ac_optarg ;; 1017 1018 -psdir | --psdir | --psdi | --psd | --ps) 1019 ac_prev=psdir ;; 1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1021 psdir=$ac_optarg ;; 1022 1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1024 | -silent | --silent | --silen | --sile | --sil) 1025 silent=yes ;; 1026 1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1028 ac_prev=sbindir ;; 1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1030 | --sbi=* | --sb=*) 1031 sbindir=$ac_optarg ;; 1032 1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1035 | --sharedst | --shareds | --shared | --share | --shar \ 1036 | --sha | --sh) 1037 ac_prev=sharedstatedir ;; 1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1041 | --sha=* | --sh=*) 1042 sharedstatedir=$ac_optarg ;; 1043 1044 -site | --site | --sit) 1045 ac_prev=site ;; 1046 -site=* | --site=* | --sit=*) 1047 site=$ac_optarg ;; 1048 1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1050 ac_prev=srcdir ;; 1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1052 srcdir=$ac_optarg ;; 1053 1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1055 | --syscon | --sysco | --sysc | --sys | --sy) 1056 ac_prev=sysconfdir ;; 1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1059 sysconfdir=$ac_optarg ;; 1060 1061 -target | --target | --targe | --targ | --tar | --ta | --t) 1062 ac_prev=target_alias ;; 1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1064 target_alias=$ac_optarg ;; 1065 1066 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1067 verbose=yes ;; 1068 1069 -version | --version | --versio | --versi | --vers | -V) 1070 ac_init_version=: ;; 1071 1072 -with-* | --with-*) 1073 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1076 { echo "$as_me: error: invalid package name: $ac_package" >&2 1077 { (exit 1); exit 1; }; } 1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1079 eval with_$ac_package=\$ac_optarg ;; 1080 1081 -without-* | --without-*) 1082 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1085 { echo "$as_me: error: invalid package name: $ac_package" >&2 1086 { (exit 1); exit 1; }; } 1087 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1088 eval with_$ac_package=no ;; 1089 1090 --x) 1091 # Obsolete; use --with-x. 1092 with_x=yes ;; 1093 1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1095 | --x-incl | --x-inc | --x-in | --x-i) 1096 ac_prev=x_includes ;; 1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1099 x_includes=$ac_optarg ;; 1100 1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1103 ac_prev=x_libraries ;; 1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1106 x_libraries=$ac_optarg ;; 1107 1108 -*) { echo "$as_me: error: unrecognized option: $ac_option 1109Try \`$0 --help' for more information." >&2 1110 { (exit 1); exit 1; }; } 1111 ;; 1112 1113 *=*) 1114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1117 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1118 { (exit 1); exit 1; }; } 1119 eval $ac_envvar=\$ac_optarg 1120 export $ac_envvar ;; 1121 1122 *) 1123 # FIXME: should be removed in autoconf 3.0. 1124 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1126 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1127 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1128 ;; 1129 1130 esac 1131done 1132 1133if test -n "$ac_prev"; then 1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1135 { echo "$as_me: error: missing argument to $ac_option" >&2 1136 { (exit 1); exit 1; }; } 1137fi 1138 1139# Be sure to have absolute directory names. 1140for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1141 datadir sysconfdir sharedstatedir localstatedir includedir \ 1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1143 libdir localedir mandir 1144do 1145 eval ac_val=\$$ac_var 1146 case $ac_val in 1147 [\\/$]* | ?:[\\/]* ) continue;; 1148 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1149 esac 1150 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1151 { (exit 1); exit 1; }; } 1152done 1153 1154# There might be people who depend on the old broken behavior: `$host' 1155# used to hold the argument of --host etc. 1156# FIXME: To remove some day. 1157build=$build_alias 1158host=$host_alias 1159target=$target_alias 1160 1161# FIXME: To remove some day. 1162if test "x$host_alias" != x; then 1163 if test "x$build_alias" = x; then 1164 cross_compiling=maybe 1165 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1166 If a cross compiler is detected then cross compile mode will be used." >&2 1167 elif test "x$build_alias" != "x$host_alias"; then 1168 cross_compiling=yes 1169 fi 1170fi 1171 1172ac_tool_prefix= 1173test -n "$host_alias" && ac_tool_prefix=$host_alias- 1174 1175test "$silent" = yes && exec 6>/dev/null 1176 1177 1178ac_pwd=`pwd` && test -n "$ac_pwd" && 1179ac_ls_di=`ls -di .` && 1180ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1181 { echo "$as_me: error: Working directory cannot be determined" >&2 1182 { (exit 1); exit 1; }; } 1183test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1184 { echo "$as_me: error: pwd does not report name of working directory" >&2 1185 { (exit 1); exit 1; }; } 1186 1187 1188# Find the source files, if location was not specified. 1189if test -z "$srcdir"; then 1190 ac_srcdir_defaulted=yes 1191 # Try the directory containing this script, then the parent directory. 1192 ac_confdir=`$as_dirname -- "$0" || 1193$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1194 X"$0" : 'X\(//\)[^/]' \| \ 1195 X"$0" : 'X\(//\)$' \| \ 1196 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1197echo X"$0" | 1198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1199 s//\1/ 1200 q 1201 } 1202 /^X\(\/\/\)[^/].*/{ 1203 s//\1/ 1204 q 1205 } 1206 /^X\(\/\/\)$/{ 1207 s//\1/ 1208 q 1209 } 1210 /^X\(\/\).*/{ 1211 s//\1/ 1212 q 1213 } 1214 s/.*/./; q'` 1215 srcdir=$ac_confdir 1216 if test ! -r "$srcdir/$ac_unique_file"; then 1217 srcdir=.. 1218 fi 1219else 1220 ac_srcdir_defaulted=no 1221fi 1222if test ! -r "$srcdir/$ac_unique_file"; then 1223 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1224 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1225 { (exit 1); exit 1; }; } 1226fi 1227ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1228ac_abs_confdir=`( 1229 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1230 { (exit 1); exit 1; }; } 1231 pwd)` 1232# When building in place, set srcdir=. 1233if test "$ac_abs_confdir" = "$ac_pwd"; then 1234 srcdir=. 1235fi 1236# Remove unnecessary trailing slashes from srcdir. 1237# Double slashes in file names in object file debugging info 1238# mess up M-x gdb in Emacs. 1239case $srcdir in 1240*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1241esac 1242for ac_var in $ac_precious_vars; do 1243 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1244 eval ac_env_${ac_var}_value=\$${ac_var} 1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1246 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1247done 1248 1249# 1250# Report the --help message. 1251# 1252if test "$ac_init_help" = "long"; then 1253 # Omit some internal or obsolete options to make the list less imposing. 1254 # This message is too long to be a string in the A/UX 3.1 sh. 1255 cat <<_ACEOF 1256\`configure' configures expect 5.45 to adapt to many kinds of systems. 1257 1258Usage: $0 [OPTION]... [VAR=VALUE]... 1259 1260To assign environment variables (e.g., CC, CFLAGS...), specify them as 1261VAR=VALUE. See below for descriptions of some of the useful variables. 1262 1263Defaults for the options are specified in brackets. 1264 1265Configuration: 1266 -h, --help display this help and exit 1267 --help=short display options specific to this package 1268 --help=recursive display the short help of all the included packages 1269 -V, --version display version information and exit 1270 -q, --quiet, --silent do not print \`checking...' messages 1271 --cache-file=FILE cache test results in FILE [disabled] 1272 -C, --config-cache alias for \`--cache-file=config.cache' 1273 -n, --no-create do not create output files 1274 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1275 1276Installation directories: 1277 --prefix=PREFIX install architecture-independent files in PREFIX 1278 [$ac_default_prefix] 1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1280 [PREFIX] 1281 1282By default, \`make install' will install all the files in 1283\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1284an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1285for instance \`--prefix=\$HOME'. 1286 1287For better control, use the options below. 1288 1289Fine tuning of the installation directories: 1290 --bindir=DIR user executables [EPREFIX/bin] 1291 --sbindir=DIR system admin executables [EPREFIX/sbin] 1292 --libexecdir=DIR program executables [EPREFIX/libexec] 1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1296 --libdir=DIR object code libraries [EPREFIX/lib] 1297 --includedir=DIR C header files [PREFIX/include] 1298 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1301 --infodir=DIR info documentation [DATAROOTDIR/info] 1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1303 --mandir=DIR man documentation [DATAROOTDIR/man] 1304 --docdir=DIR documentation root [DATAROOTDIR/doc/expect] 1305 --htmldir=DIR html documentation [DOCDIR] 1306 --dvidir=DIR dvi documentation [DOCDIR] 1307 --pdfdir=DIR pdf documentation [DOCDIR] 1308 --psdir=DIR ps documentation [DOCDIR] 1309_ACEOF 1310 1311 cat <<\_ACEOF 1312 1313System types: 1314 --build=BUILD configure for building on BUILD [guessed] 1315 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1316 --target=TARGET configure for building compilers for TARGET [HOST] 1317_ACEOF 1318fi 1319 1320if test -n "$ac_init_help"; then 1321 case $ac_init_help in 1322 short | recursive ) echo "Configuration of expect 5.45:";; 1323 esac 1324 cat <<\_ACEOF 1325 1326Optional Features: 1327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1329 --enable-threads build with threads 1330 --enable-shared build and link with shared libraries (default: on) 1331 --enable-64bit enable 64bit support (default: off) 1332 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1333 --disable-rpath disable rpath support (default: on) 1334 --enable-wince enable Win/CE support (where applicable) 1335 --enable-symbols build with debugging symbols (default: off) 1336 1337Optional Packages: 1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1340 --with-tcl directory containing tcl configuration 1341 (tclConfig.sh) 1342 --with-tclinclude directory containing the public Tcl header files 1343 --with-celib=DIR use Windows/CE support library from DIR 1344 1345Some influential environment variables: 1346 CC C compiler command 1347 CFLAGS C compiler flags 1348 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1349 nonstandard directory <lib dir> 1350 LIBS libraries to pass to the linker, e.g. -l<library> 1351 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1352 you have headers in a nonstandard directory <include dir> 1353 CPP C preprocessor 1354 1355Use these variables to override the choices made by `configure' or to help 1356it to find libraries and programs with nonstandard names/locations. 1357 1358_ACEOF 1359ac_status=$? 1360fi 1361 1362if test "$ac_init_help" = "recursive"; then 1363 # If there are subdirs, report their specific --help. 1364 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1365 test -d "$ac_dir" || continue 1366 ac_builddir=. 1367 1368case "$ac_dir" in 1369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1370*) 1371 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1372 # A ".." for each directory in $ac_dir_suffix. 1373 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1374 case $ac_top_builddir_sub in 1375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1377 esac ;; 1378esac 1379ac_abs_top_builddir=$ac_pwd 1380ac_abs_builddir=$ac_pwd$ac_dir_suffix 1381# for backward compatibility: 1382ac_top_builddir=$ac_top_build_prefix 1383 1384case $srcdir in 1385 .) # We are building in place. 1386 ac_srcdir=. 1387 ac_top_srcdir=$ac_top_builddir_sub 1388 ac_abs_top_srcdir=$ac_pwd ;; 1389 [\\/]* | ?:[\\/]* ) # Absolute name. 1390 ac_srcdir=$srcdir$ac_dir_suffix; 1391 ac_top_srcdir=$srcdir 1392 ac_abs_top_srcdir=$srcdir ;; 1393 *) # Relative name. 1394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1395 ac_top_srcdir=$ac_top_build_prefix$srcdir 1396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1397esac 1398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1399 1400 cd "$ac_dir" || { ac_status=$?; continue; } 1401 # Check for guested configure. 1402 if test -f "$ac_srcdir/configure.gnu"; then 1403 echo && 1404 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1405 elif test -f "$ac_srcdir/configure"; then 1406 echo && 1407 $SHELL "$ac_srcdir/configure" --help=recursive 1408 else 1409 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1410 fi || ac_status=$? 1411 cd "$ac_pwd" || { ac_status=$?; break; } 1412 done 1413fi 1414 1415test -n "$ac_init_help" && exit $ac_status 1416if $ac_init_version; then 1417 cat <<\_ACEOF 1418expect configure 5.45 1419generated by GNU Autoconf 2.61 1420 1421Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14222002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1423This configure script is free software; the Free Software Foundation 1424gives unlimited permission to copy, distribute and modify it. 1425_ACEOF 1426 exit 1427fi 1428cat >config.log <<_ACEOF 1429This file contains any messages produced by compilers while 1430running configure, to aid debugging if configure makes a mistake. 1431 1432It was created by expect $as_me 5.45, which was 1433generated by GNU Autoconf 2.61. Invocation command line was 1434 1435 $ $0 $@ 1436 1437_ACEOF 1438exec 5>>config.log 1439{ 1440cat <<_ASUNAME 1441## --------- ## 1442## Platform. ## 1443## --------- ## 1444 1445hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1446uname -m = `(uname -m) 2>/dev/null || echo unknown` 1447uname -r = `(uname -r) 2>/dev/null || echo unknown` 1448uname -s = `(uname -s) 2>/dev/null || echo unknown` 1449uname -v = `(uname -v) 2>/dev/null || echo unknown` 1450 1451/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1452/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1453 1454/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1455/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1456/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1457/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1458/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1459/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1460/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1461 1462_ASUNAME 1463 1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1465for as_dir in $PATH 1466do 1467 IFS=$as_save_IFS 1468 test -z "$as_dir" && as_dir=. 1469 echo "PATH: $as_dir" 1470done 1471IFS=$as_save_IFS 1472 1473} >&5 1474 1475cat >&5 <<_ACEOF 1476 1477 1478## ----------- ## 1479## Core tests. ## 1480## ----------- ## 1481 1482_ACEOF 1483 1484 1485# Keep a trace of the command line. 1486# Strip out --no-create and --no-recursion so they do not pile up. 1487# Strip out --silent because we don't want to record it for future runs. 1488# Also quote any args containing shell meta-characters. 1489# Make two passes to allow for proper duplicate-argument suppression. 1490ac_configure_args= 1491ac_configure_args0= 1492ac_configure_args1= 1493ac_must_keep_next=false 1494for ac_pass in 1 2 1495do 1496 for ac_arg 1497 do 1498 case $ac_arg in 1499 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1501 | -silent | --silent | --silen | --sile | --sil) 1502 continue ;; 1503 *\'*) 1504 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1505 esac 1506 case $ac_pass in 1507 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1508 2) 1509 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1510 if test $ac_must_keep_next = true; then 1511 ac_must_keep_next=false # Got value, back to normal. 1512 else 1513 case $ac_arg in 1514 *=* | --config-cache | -C | -disable-* | --disable-* \ 1515 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1516 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1517 | -with-* | --with-* | -without-* | --without-* | --x) 1518 case "$ac_configure_args0 " in 1519 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1520 esac 1521 ;; 1522 -* ) ac_must_keep_next=true ;; 1523 esac 1524 fi 1525 ac_configure_args="$ac_configure_args '$ac_arg'" 1526 ;; 1527 esac 1528 done 1529done 1530$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1531$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1532 1533# When interrupted or exit'd, cleanup temporary files, and complete 1534# config.log. We remove comments because anyway the quotes in there 1535# would cause problems or look ugly. 1536# WARNING: Use '\'' to represent an apostrophe within the trap. 1537# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1538trap 'exit_status=$? 1539 # Save into config.log some information that might help in debugging. 1540 { 1541 echo 1542 1543 cat <<\_ASBOX 1544## ---------------- ## 1545## Cache variables. ## 1546## ---------------- ## 1547_ASBOX 1548 echo 1549 # The following way of writing the cache mishandles newlines in values, 1550( 1551 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1552 eval ac_val=\$$ac_var 1553 case $ac_val in #( 1554 *${as_nl}*) 1555 case $ac_var in #( 1556 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1557echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1558 esac 1559 case $ac_var in #( 1560 _ | IFS | as_nl) ;; #( 1561 *) $as_unset $ac_var ;; 1562 esac ;; 1563 esac 1564 done 1565 (set) 2>&1 | 1566 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1567 *${as_nl}ac_space=\ *) 1568 sed -n \ 1569 "s/'\''/'\''\\\\'\'''\''/g; 1570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1571 ;; #( 1572 *) 1573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1574 ;; 1575 esac | 1576 sort 1577) 1578 echo 1579 1580 cat <<\_ASBOX 1581## ----------------- ## 1582## Output variables. ## 1583## ----------------- ## 1584_ASBOX 1585 echo 1586 for ac_var in $ac_subst_vars 1587 do 1588 eval ac_val=\$$ac_var 1589 case $ac_val in 1590 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1591 esac 1592 echo "$ac_var='\''$ac_val'\''" 1593 done | sort 1594 echo 1595 1596 if test -n "$ac_subst_files"; then 1597 cat <<\_ASBOX 1598## ------------------- ## 1599## File substitutions. ## 1600## ------------------- ## 1601_ASBOX 1602 echo 1603 for ac_var in $ac_subst_files 1604 do 1605 eval ac_val=\$$ac_var 1606 case $ac_val in 1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1608 esac 1609 echo "$ac_var='\''$ac_val'\''" 1610 done | sort 1611 echo 1612 fi 1613 1614 if test -s confdefs.h; then 1615 cat <<\_ASBOX 1616## ----------- ## 1617## confdefs.h. ## 1618## ----------- ## 1619_ASBOX 1620 echo 1621 cat confdefs.h 1622 echo 1623 fi 1624 test "$ac_signal" != 0 && 1625 echo "$as_me: caught signal $ac_signal" 1626 echo "$as_me: exit $exit_status" 1627 } >&5 1628 rm -f core *.core core.conftest.* && 1629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1630 exit $exit_status 1631' 0 1632for ac_signal in 1 2 13 15; do 1633 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1634done 1635ac_signal=0 1636 1637# confdefs.h avoids OS command line length limits that DEFS can exceed. 1638rm -f -r conftest* confdefs.h 1639 1640# Predefined preprocessor variables. 1641 1642cat >>confdefs.h <<_ACEOF 1643#define PACKAGE_NAME "$PACKAGE_NAME" 1644_ACEOF 1645 1646 1647cat >>confdefs.h <<_ACEOF 1648#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1649_ACEOF 1650 1651 1652cat >>confdefs.h <<_ACEOF 1653#define PACKAGE_VERSION "$PACKAGE_VERSION" 1654_ACEOF 1655 1656 1657cat >>confdefs.h <<_ACEOF 1658#define PACKAGE_STRING "$PACKAGE_STRING" 1659_ACEOF 1660 1661 1662cat >>confdefs.h <<_ACEOF 1663#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1664_ACEOF 1665 1666 1667# Let the site file select an alternate cache file if it wants to. 1668# Prefer explicitly selected file to automatically selected ones. 1669if test -n "$CONFIG_SITE"; then 1670 set x "$CONFIG_SITE" 1671elif test "x$prefix" != xNONE; then 1672 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1673else 1674 set x "$ac_default_prefix/share/config.site" \ 1675 "$ac_default_prefix/etc/config.site" 1676fi 1677shift 1678for ac_site_file 1679do 1680 if test -r "$ac_site_file"; then 1681 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1682echo "$as_me: loading site script $ac_site_file" >&6;} 1683 sed 's/^/| /' "$ac_site_file" >&5 1684 . "$ac_site_file" 1685 fi 1686done 1687 1688if test -r "$cache_file"; then 1689 # Some versions of bash will fail to source /dev/null (special 1690 # files actually), so we avoid doing that. 1691 if test -f "$cache_file"; then 1692 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1693echo "$as_me: loading cache $cache_file" >&6;} 1694 case $cache_file in 1695 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1696 *) . "./$cache_file";; 1697 esac 1698 fi 1699else 1700 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1701echo "$as_me: creating cache $cache_file" >&6;} 1702 >$cache_file 1703fi 1704 1705# Check that the precious variables saved in the cache have kept the same 1706# value. 1707ac_cache_corrupted=false 1708for ac_var in $ac_precious_vars; do 1709 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1710 eval ac_new_set=\$ac_env_${ac_var}_set 1711 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1712 eval ac_new_val=\$ac_env_${ac_var}_value 1713 case $ac_old_set,$ac_new_set in 1714 set,) 1715 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1716echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1717 ac_cache_corrupted=: ;; 1718 ,set) 1719 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1720echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1721 ac_cache_corrupted=: ;; 1722 ,);; 1723 *) 1724 if test "x$ac_old_val" != "x$ac_new_val"; then 1725 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1726echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1727 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1728echo "$as_me: former value: $ac_old_val" >&2;} 1729 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1730echo "$as_me: current value: $ac_new_val" >&2;} 1731 ac_cache_corrupted=: 1732 fi;; 1733 esac 1734 # Pass precious variables to config.status. 1735 if test "$ac_new_set" = set; then 1736 case $ac_new_val in 1737 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1738 *) ac_arg=$ac_var=$ac_new_val ;; 1739 esac 1740 case " $ac_configure_args " in 1741 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1742 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1743 esac 1744 fi 1745done 1746if $ac_cache_corrupted; then 1747 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1748echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1749 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1750echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1751 { (exit 1); exit 1; }; } 1752fi 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778ac_ext=c 1779ac_cpp='$CPP $CPPFLAGS' 1780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1782ac_compiler_gnu=$ac_cv_c_compiler_gnu 1783 1784 1785 1786 1787 # TEA extensions pass this us the version of TEA they think they 1788 # are compatible with. 1789 TEA_VERSION="3.9" 1790 1791 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1792echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1793 if test x"${PACKAGE_NAME}" = x ; then 1794 { { echo "$as_me:$LINENO: error: 1795The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1796echo "$as_me: error: 1797The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1798 { (exit 1); exit 1; }; } 1799 fi 1800 if test x"3.9" = x ; then 1801 { { echo "$as_me:$LINENO: error: 1802TEA version not specified." >&5 1803echo "$as_me: error: 1804TEA version not specified." >&2;} 1805 { (exit 1); exit 1; }; } 1806 elif test "3.9" != "${TEA_VERSION}" ; then 1807 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1808echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1809 else 1810 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1811echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1812 fi 1813 case "`uname -s`" in 1814 *win32*|*WIN32*|*MINGW32_*) 1815 # Extract the first word of "cygpath", so it can be a program name with args. 1816set dummy cygpath; ac_word=$2 1817{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1819if test "${ac_cv_prog_CYGPATH+set}" = set; then 1820 echo $ECHO_N "(cached) $ECHO_C" >&6 1821else 1822 if test -n "$CYGPATH"; then 1823 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1824else 1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1826for as_dir in $PATH 1827do 1828 IFS=$as_save_IFS 1829 test -z "$as_dir" && as_dir=. 1830 for ac_exec_ext in '' $ac_executable_extensions; do 1831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1832 ac_cv_prog_CYGPATH="cygpath -w" 1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1834 break 2 1835 fi 1836done 1837done 1838IFS=$as_save_IFS 1839 1840 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1841fi 1842fi 1843CYGPATH=$ac_cv_prog_CYGPATH 1844if test -n "$CYGPATH"; then 1845 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1846echo "${ECHO_T}$CYGPATH" >&6; } 1847else 1848 { echo "$as_me:$LINENO: result: no" >&5 1849echo "${ECHO_T}no" >&6; } 1850fi 1851 1852 1853 EXEEXT=".exe" 1854 TEA_PLATFORM="windows" 1855 ;; 1856 *CYGWIN_*) 1857 CYGPATH=echo 1858 EXEEXT=".exe" 1859 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1860 ;; 1861 *) 1862 CYGPATH=echo 1863 EXEEXT="" 1864 TEA_PLATFORM="unix" 1865 ;; 1866 esac 1867 1868 # Check if exec_prefix is set. If not use fall back to prefix. 1869 # Note when adjusted, so that TEA_PREFIX can correct for this. 1870 # This is needed for recursive configures, since autoconf propagates 1871 # $prefix, but not $exec_prefix (doh!). 1872 if test x$exec_prefix = xNONE ; then 1873 exec_prefix_default=yes 1874 exec_prefix=$prefix 1875 fi 1876 1877 1878 1879 1880 # This package name must be replaced statically for AC_SUBST to work 1881 1882 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1883 1884 1885 # We AC_SUBST these here to ensure they are subst'ed, 1886 # in case the user doesn't call TEA_ADD_... 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896ac_aux_dir= 1897for ac_dir in tclconfig "$srcdir"/tclconfig; do 1898 if test -f "$ac_dir/install-sh"; then 1899 ac_aux_dir=$ac_dir 1900 ac_install_sh="$ac_aux_dir/install-sh -c" 1901 break 1902 elif test -f "$ac_dir/install.sh"; then 1903 ac_aux_dir=$ac_dir 1904 ac_install_sh="$ac_aux_dir/install.sh -c" 1905 break 1906 elif test -f "$ac_dir/shtool"; then 1907 ac_aux_dir=$ac_dir 1908 ac_install_sh="$ac_aux_dir/shtool install -c" 1909 break 1910 fi 1911done 1912if test -z "$ac_aux_dir"; then 1913 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1914echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1915 { (exit 1); exit 1; }; } 1916fi 1917 1918# These three variables are undocumented and unsupported, 1919# and are intended to be withdrawn in a future Autoconf release. 1920# They can cause serious problems if a builder's source tree is in a directory 1921# whose full name contains unusual characters. 1922ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1923ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1924ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1925 1926 1927 1928#-------------------------------------------------------------------- 1929# Configure script for package 'Expect'. 1930# TEA compliant. 1931#-------------------------------------------------------------------- 1932 1933#-------------------------------------------------------------------- 1934# Load the tclConfig.sh file 1935#-------------------------------------------------------------------- 1936 1937 1938 1939 # 1940 # Ok, lets find the tcl configuration 1941 # First, look for one uninstalled. 1942 # the alternative search directory is invoked by --with-tcl 1943 # 1944 1945 if test x"${no_tcl}" = x ; then 1946 # we reset no_tcl in case something fails here 1947 no_tcl=true 1948 1949# Check whether --with-tcl was given. 1950if test "${with_tcl+set}" = set; then 1951 withval=$with_tcl; with_tclconfig="${withval}" 1952fi 1953 1954 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1955echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1956 if test "${ac_cv_c_tclconfig+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958else 1959 1960 1961 # First check to see if --with-tcl was specified. 1962 if test x"${with_tclconfig}" != x ; then 1963 case "${with_tclconfig}" in 1964 */tclConfig.sh ) 1965 if test -f "${with_tclconfig}"; then 1966 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1967echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1968 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1969 fi ;; 1970 esac 1971 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1972 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1973 else 1974 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1975echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1976 { (exit 1); exit 1; }; } 1977 fi 1978 fi 1979 1980 # then check for a private Tcl installation 1981 if test x"${ac_cv_c_tclconfig}" = x ; then 1982 for i in \ 1983 ../tcl \ 1984 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1985 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1986 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1987 ../../tcl \ 1988 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1989 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1990 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1991 ../../../tcl \ 1992 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1993 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1994 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1995 if test "${TEA_PLATFORM}" = "windows" \ 1996 -a -f "$i/win/tclConfig.sh" ; then 1997 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1998 break 1999 fi 2000 if test -f "$i/unix/tclConfig.sh" ; then 2001 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2002 break 2003 fi 2004 done 2005 fi 2006 2007 # on Darwin, check in Framework installation locations 2008 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2009 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2010 `ls -d /Library/Frameworks 2>/dev/null` \ 2011 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2012 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2013 ; do 2014 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2015 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2016 break 2017 fi 2018 done 2019 fi 2020 2021 # TEA specific: on Windows, check in common installation locations 2022 if test "${TEA_PLATFORM}" = "windows" \ 2023 -a x"${ac_cv_c_tclconfig}" = x ; then 2024 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2025 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2026 ; do 2027 if test -f "$i/tclConfig.sh" ; then 2028 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2029 break 2030 fi 2031 done 2032 fi 2033 2034 # check in a few common install locations 2035 if test x"${ac_cv_c_tclconfig}" = x ; then 2036 for i in `ls -d ${libdir} 2>/dev/null` \ 2037 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2038 `ls -d ${prefix}/lib 2>/dev/null` \ 2039 `ls -d /usr/local/lib 2>/dev/null` \ 2040 `ls -d /usr/contrib/lib 2>/dev/null` \ 2041 `ls -d /usr/lib 2>/dev/null` \ 2042 `ls -d /usr/lib64 2>/dev/null` \ 2043 ; do 2044 if test -f "$i/tclConfig.sh" ; then 2045 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2046 break 2047 fi 2048 done 2049 fi 2050 2051 # check in a few other private locations 2052 if test x"${ac_cv_c_tclconfig}" = x ; then 2053 for i in \ 2054 ${srcdir}/../tcl \ 2055 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2056 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2057 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2058 if test "${TEA_PLATFORM}" = "windows" \ 2059 -a -f "$i/win/tclConfig.sh" ; then 2060 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2061 break 2062 fi 2063 if test -f "$i/unix/tclConfig.sh" ; then 2064 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2065 break 2066 fi 2067 done 2068 fi 2069 2070fi 2071 2072 2073 if test x"${ac_cv_c_tclconfig}" = x ; then 2074 TCL_BIN_DIR="# no Tcl configs found" 2075 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2076echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2077 { (exit 1); exit 1; }; } 2078 else 2079 no_tcl= 2080 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2081 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2082echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2083 fi 2084 fi 2085 2086 2087 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2088echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2089 2090 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2091 { echo "$as_me:$LINENO: result: loading" >&5 2092echo "${ECHO_T}loading" >&6; } 2093 . "${TCL_BIN_DIR}/tclConfig.sh" 2094 else 2095 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2096echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2097 fi 2098 2099 # eval is required to do the TCL_DBGX substitution 2100 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2101 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2102 2103 # If the TCL_BIN_DIR is the build directory (not the install directory), 2104 # then set the common variable name to the value of the build variables. 2105 # For example, the variable TCL_LIB_SPEC will be set to the value 2106 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2107 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2108 # installed and uninstalled version of Tcl. 2109 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2110 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2111 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2112 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2113 elif test "`uname -s`" = "Darwin"; then 2114 # If Tcl was built as a framework, attempt to use the libraries 2115 # from the framework at the given location so that linking works 2116 # against Tcl.framework installed in an arbitrary location. 2117 case ${TCL_DEFS} in 2118 *TCL_FRAMEWORK*) 2119 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2120 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2121 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2122 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2123 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2124 break 2125 fi 2126 done 2127 fi 2128 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2129 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2130 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2131 fi 2132 ;; 2133 esac 2134 fi 2135 2136 # eval is required to do the TCL_DBGX substitution 2137 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2138 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2139 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2140 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 case "`uname -s`" in 2156 *CYGWIN_*) 2157 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2158echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2159 case ${TCL_EXTRA_CFLAGS} in 2160 *-mwin32*|*-mno-cygwin*) 2161 TEA_PLATFORM="windows" 2162 CFLAGS="$CFLAGS -mwin32" 2163 { echo "$as_me:$LINENO: result: win32" >&5 2164echo "${ECHO_T}win32" >&6; } 2165 ;; 2166 *) 2167 TEA_PLATFORM="unix" 2168 { echo "$as_me:$LINENO: result: unix" >&5 2169echo "${ECHO_T}unix" >&6; } 2170 ;; 2171 esac 2172 EXEEXT=".exe" 2173 ;; 2174 *) 2175 ;; 2176 esac 2177 2178 # Do this here as we have fully defined TEA_PLATFORM now 2179 if test "${TEA_PLATFORM}" = "windows" ; then 2180 # The BUILD_$pkg is to define the correct extern storage class 2181 # handling when making this package 2182 2183cat >>confdefs.h <<_ACEOF 2184#define BUILD_${PACKAGE_NAME} 2185_ACEOF 2186 2187 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2188 fi 2189 2190 # TEA specific: 2191 2192 2193 2194 2195 2196 2197 2198 2199# expectk has been removed from the distribution as Tcl has supported 2200# dynamic extensions everywhere for a while. We still allow 'expect' 2201# to be built for the die-hard users, but expectk is just wish with 2202# package require Expect 2203if test "${with_tk+set}" = set ; then 2204 { echo "$as_me:$LINENO: WARNING: With Tk request ignored - use package require Tk & Expect" >&5 2205echo "$as_me: WARNING: With Tk request ignored - use package require Tk & Expect" >&2;} 2206fi 2207 2208#----------------------------------------------------------------------- 2209# Handle the --prefix=... option by defaulting to what Tcl gave. 2210# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2211#----------------------------------------------------------------------- 2212 2213 2214 if test "${prefix}" = "NONE"; then 2215 prefix_default=yes 2216 if test x"${TCL_PREFIX}" != x; then 2217 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2218echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2219 prefix=${TCL_PREFIX} 2220 else 2221 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2222echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2223 prefix=/usr/local 2224 fi 2225 fi 2226 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2227 -o x"${exec_prefix_default}" = x"yes" ; then 2228 if test x"${TCL_EXEC_PREFIX}" != x; then 2229 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2230echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2231 exec_prefix=${TCL_EXEC_PREFIX} 2232 else 2233 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2234echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2235 exec_prefix=$prefix 2236 fi 2237 fi 2238 2239 2240#----------------------------------------------------------------------- 2241# Standard compiler checks. 2242# This sets up CC by using the CC env var, or looks for gcc otherwise. 2243# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2244# the basic setup necessary to compile executables. 2245#----------------------------------------------------------------------- 2246 2247 2248 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2249 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2250 2251 # If the user did not set CFLAGS, set it now to keep 2252 # the AC_PROG_CC macro from adding "-g -O2". 2253 if test "${CFLAGS+set}" != "set" ; then 2254 CFLAGS="" 2255 fi 2256 2257 ac_ext=c 2258ac_cpp='$CPP $CPPFLAGS' 2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2261ac_compiler_gnu=$ac_cv_c_compiler_gnu 2262if test -n "$ac_tool_prefix"; then 2263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2264set dummy ${ac_tool_prefix}gcc; ac_word=$2 2265{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2267if test "${ac_cv_prog_CC+set}" = set; then 2268 echo $ECHO_N "(cached) $ECHO_C" >&6 2269else 2270 if test -n "$CC"; then 2271 ac_cv_prog_CC="$CC" # Let the user override the test. 2272else 2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2274for as_dir in $PATH 2275do 2276 IFS=$as_save_IFS 2277 test -z "$as_dir" && as_dir=. 2278 for ac_exec_ext in '' $ac_executable_extensions; do 2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2280 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2282 break 2 2283 fi 2284done 2285done 2286IFS=$as_save_IFS 2287 2288fi 2289fi 2290CC=$ac_cv_prog_CC 2291if test -n "$CC"; then 2292 { echo "$as_me:$LINENO: result: $CC" >&5 2293echo "${ECHO_T}$CC" >&6; } 2294else 2295 { echo "$as_me:$LINENO: result: no" >&5 2296echo "${ECHO_T}no" >&6; } 2297fi 2298 2299 2300fi 2301if test -z "$ac_cv_prog_CC"; then 2302 ac_ct_CC=$CC 2303 # Extract the first word of "gcc", so it can be a program name with args. 2304set dummy gcc; ac_word=$2 2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2308 echo $ECHO_N "(cached) $ECHO_C" >&6 2309else 2310 if test -n "$ac_ct_CC"; then 2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2312else 2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 for ac_exec_ext in '' $ac_executable_extensions; do 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2320 ac_cv_prog_ac_ct_CC="gcc" 2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2322 break 2 2323 fi 2324done 2325done 2326IFS=$as_save_IFS 2327 2328fi 2329fi 2330ac_ct_CC=$ac_cv_prog_ac_ct_CC 2331if test -n "$ac_ct_CC"; then 2332 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2333echo "${ECHO_T}$ac_ct_CC" >&6; } 2334else 2335 { echo "$as_me:$LINENO: result: no" >&5 2336echo "${ECHO_T}no" >&6; } 2337fi 2338 2339 if test "x$ac_ct_CC" = x; then 2340 CC="" 2341 else 2342 case $cross_compiling:$ac_tool_warned in 2343yes:) 2344{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2345whose name does not start with the host triplet. If you think this 2346configuration is useful to you, please write to autoconf@gnu.org." >&5 2347echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2348whose name does not start with the host triplet. If you think this 2349configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2350ac_tool_warned=yes ;; 2351esac 2352 CC=$ac_ct_CC 2353 fi 2354else 2355 CC="$ac_cv_prog_CC" 2356fi 2357 2358if test -z "$CC"; then 2359 if test -n "$ac_tool_prefix"; then 2360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2361set dummy ${ac_tool_prefix}cc; ac_word=$2 2362{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2364if test "${ac_cv_prog_CC+set}" = set; then 2365 echo $ECHO_N "(cached) $ECHO_C" >&6 2366else 2367 if test -n "$CC"; then 2368 ac_cv_prog_CC="$CC" # Let the user override the test. 2369else 2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2371for as_dir in $PATH 2372do 2373 IFS=$as_save_IFS 2374 test -z "$as_dir" && as_dir=. 2375 for ac_exec_ext in '' $ac_executable_extensions; do 2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2377 ac_cv_prog_CC="${ac_tool_prefix}cc" 2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2379 break 2 2380 fi 2381done 2382done 2383IFS=$as_save_IFS 2384 2385fi 2386fi 2387CC=$ac_cv_prog_CC 2388if test -n "$CC"; then 2389 { echo "$as_me:$LINENO: result: $CC" >&5 2390echo "${ECHO_T}$CC" >&6; } 2391else 2392 { echo "$as_me:$LINENO: result: no" >&5 2393echo "${ECHO_T}no" >&6; } 2394fi 2395 2396 2397 fi 2398fi 2399if test -z "$CC"; then 2400 # Extract the first word of "cc", so it can be a program name with args. 2401set dummy cc; ac_word=$2 2402{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2404if test "${ac_cv_prog_CC+set}" = set; then 2405 echo $ECHO_N "(cached) $ECHO_C" >&6 2406else 2407 if test -n "$CC"; then 2408 ac_cv_prog_CC="$CC" # Let the user override the test. 2409else 2410 ac_prog_rejected=no 2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 for ac_exec_ext in '' $ac_executable_extensions; do 2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2419 ac_prog_rejected=yes 2420 continue 2421 fi 2422 ac_cv_prog_CC="cc" 2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2424 break 2 2425 fi 2426done 2427done 2428IFS=$as_save_IFS 2429 2430if test $ac_prog_rejected = yes; then 2431 # We found a bogon in the path, so make sure we never use it. 2432 set dummy $ac_cv_prog_CC 2433 shift 2434 if test $# != 0; then 2435 # We chose a different compiler from the bogus one. 2436 # However, it has the same basename, so the bogon will be chosen 2437 # first if we set CC to just the basename; use the full file name. 2438 shift 2439 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2440 fi 2441fi 2442fi 2443fi 2444CC=$ac_cv_prog_CC 2445if test -n "$CC"; then 2446 { echo "$as_me:$LINENO: result: $CC" >&5 2447echo "${ECHO_T}$CC" >&6; } 2448else 2449 { echo "$as_me:$LINENO: result: no" >&5 2450echo "${ECHO_T}no" >&6; } 2451fi 2452 2453 2454fi 2455if test -z "$CC"; then 2456 if test -n "$ac_tool_prefix"; then 2457 for ac_prog in cl.exe 2458 do 2459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2461{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2463if test "${ac_cv_prog_CC+set}" = set; then 2464 echo $ECHO_N "(cached) $ECHO_C" >&6 2465else 2466 if test -n "$CC"; then 2467 ac_cv_prog_CC="$CC" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2476 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486CC=$ac_cv_prog_CC 2487if test -n "$CC"; then 2488 { echo "$as_me:$LINENO: result: $CC" >&5 2489echo "${ECHO_T}$CC" >&6; } 2490else 2491 { echo "$as_me:$LINENO: result: no" >&5 2492echo "${ECHO_T}no" >&6; } 2493fi 2494 2495 2496 test -n "$CC" && break 2497 done 2498fi 2499if test -z "$CC"; then 2500 ac_ct_CC=$CC 2501 for ac_prog in cl.exe 2502do 2503 # Extract the first word of "$ac_prog", so it can be a program name with args. 2504set dummy $ac_prog; ac_word=$2 2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2508 echo $ECHO_N "(cached) $ECHO_C" >&6 2509else 2510 if test -n "$ac_ct_CC"; then 2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2512else 2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 for ac_exec_ext in '' $ac_executable_extensions; do 2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2520 ac_cv_prog_ac_ct_CC="$ac_prog" 2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2522 break 2 2523 fi 2524done 2525done 2526IFS=$as_save_IFS 2527 2528fi 2529fi 2530ac_ct_CC=$ac_cv_prog_ac_ct_CC 2531if test -n "$ac_ct_CC"; then 2532 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2533echo "${ECHO_T}$ac_ct_CC" >&6; } 2534else 2535 { echo "$as_me:$LINENO: result: no" >&5 2536echo "${ECHO_T}no" >&6; } 2537fi 2538 2539 2540 test -n "$ac_ct_CC" && break 2541done 2542 2543 if test "x$ac_ct_CC" = x; then 2544 CC="" 2545 else 2546 case $cross_compiling:$ac_tool_warned in 2547yes:) 2548{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2549whose name does not start with the host triplet. If you think this 2550configuration is useful to you, please write to autoconf@gnu.org." >&5 2551echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2552whose name does not start with the host triplet. If you think this 2553configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2554ac_tool_warned=yes ;; 2555esac 2556 CC=$ac_ct_CC 2557 fi 2558fi 2559 2560fi 2561 2562 2563test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2564See \`config.log' for more details." >&5 2565echo "$as_me: error: no acceptable C compiler found in \$PATH 2566See \`config.log' for more details." >&2;} 2567 { (exit 1); exit 1; }; } 2568 2569# Provide some information about the compiler. 2570echo "$as_me:$LINENO: checking for C compiler version" >&5 2571ac_compiler=`set X $ac_compile; echo $2` 2572{ (ac_try="$ac_compiler --version >&5" 2573case "(($ac_try" in 2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2575 *) ac_try_echo=$ac_try;; 2576esac 2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2578 (eval "$ac_compiler --version >&5") 2>&5 2579 ac_status=$? 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } 2582{ (ac_try="$ac_compiler -v >&5" 2583case "(($ac_try" in 2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2585 *) ac_try_echo=$ac_try;; 2586esac 2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2588 (eval "$ac_compiler -v >&5") 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); } 2592{ (ac_try="$ac_compiler -V >&5" 2593case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596esac 2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2598 (eval "$ac_compiler -V >&5") 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); } 2602 2603cat >conftest.$ac_ext <<_ACEOF 2604/* confdefs.h. */ 2605_ACEOF 2606cat confdefs.h >>conftest.$ac_ext 2607cat >>conftest.$ac_ext <<_ACEOF 2608/* end confdefs.h. */ 2609 2610int 2611main () 2612{ 2613 2614 ; 2615 return 0; 2616} 2617_ACEOF 2618ac_clean_files_save=$ac_clean_files 2619ac_clean_files="$ac_clean_files a.out a.exe b.out" 2620# Try to create an executable without -o first, disregard a.out. 2621# It will help us diagnose broken compilers, and finding out an intuition 2622# of exeext. 2623{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2624echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2625ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2626# 2627# List of possible output files, starting from the most likely. 2628# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2629# only as a last resort. b.out is created by i960 compilers. 2630ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2631# 2632# The IRIX 6 linker writes into existing files which may not be 2633# executable, retaining their permissions. Remove them first so a 2634# subsequent execution test works. 2635ac_rmfiles= 2636for ac_file in $ac_files 2637do 2638 case $ac_file in 2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2640 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2641 esac 2642done 2643rm -f $ac_rmfiles 2644 2645if { (ac_try="$ac_link_default" 2646case "(($ac_try" in 2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2648 *) ac_try_echo=$ac_try;; 2649esac 2650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2651 (eval "$ac_link_default") 2>&5 2652 ac_status=$? 2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2654 (exit $ac_status); }; then 2655 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2656# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2657# in a Makefile. We should not override ac_cv_exeext if it was cached, 2658# so that the user can short-circuit this test for compilers unknown to 2659# Autoconf. 2660for ac_file in $ac_files '' 2661do 2662 test -f "$ac_file" || continue 2663 case $ac_file in 2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2665 ;; 2666 [ab].out ) 2667 # We found the default executable, but exeext='' is most 2668 # certainly right. 2669 break;; 2670 *.* ) 2671 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2672 then :; else 2673 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2674 fi 2675 # We set ac_cv_exeext here because the later test for it is not 2676 # safe: cross compilers may not add the suffix if given an `-o' 2677 # argument, so we may need to know it at that point already. 2678 # Even if this section looks crufty: it has the advantage of 2679 # actually working. 2680 break;; 2681 * ) 2682 break;; 2683 esac 2684done 2685test "$ac_cv_exeext" = no && ac_cv_exeext= 2686 2687else 2688 ac_file='' 2689fi 2690 2691{ echo "$as_me:$LINENO: result: $ac_file" >&5 2692echo "${ECHO_T}$ac_file" >&6; } 2693if test -z "$ac_file"; then 2694 echo "$as_me: failed program was:" >&5 2695sed 's/^/| /' conftest.$ac_ext >&5 2696 2697{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2698See \`config.log' for more details." >&5 2699echo "$as_me: error: C compiler cannot create executables 2700See \`config.log' for more details." >&2;} 2701 { (exit 77); exit 77; }; } 2702fi 2703 2704ac_exeext=$ac_cv_exeext 2705 2706# Check that the compiler produces executables we can run. If not, either 2707# the compiler is broken, or we cross compile. 2708{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2709echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2710# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2711# If not cross compiling, check that we can run a simple program. 2712if test "$cross_compiling" != yes; then 2713 if { ac_try='./$ac_file' 2714 { (case "(($ac_try" in 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2716 *) ac_try_echo=$ac_try;; 2717esac 2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2719 (eval "$ac_try") 2>&5 2720 ac_status=$? 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2722 (exit $ac_status); }; }; then 2723 cross_compiling=no 2724 else 2725 if test "$cross_compiling" = maybe; then 2726 cross_compiling=yes 2727 else 2728 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2729If you meant to cross compile, use \`--host'. 2730See \`config.log' for more details." >&5 2731echo "$as_me: error: cannot run C compiled programs. 2732If you meant to cross compile, use \`--host'. 2733See \`config.log' for more details." >&2;} 2734 { (exit 1); exit 1; }; } 2735 fi 2736 fi 2737fi 2738{ echo "$as_me:$LINENO: result: yes" >&5 2739echo "${ECHO_T}yes" >&6; } 2740 2741rm -f a.out a.exe conftest$ac_cv_exeext b.out 2742ac_clean_files=$ac_clean_files_save 2743# Check that the compiler produces executables we can run. If not, either 2744# the compiler is broken, or we cross compile. 2745{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2746echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2747{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2748echo "${ECHO_T}$cross_compiling" >&6; } 2749 2750{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2751echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2752if { (ac_try="$ac_link" 2753case "(($ac_try" in 2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2755 *) ac_try_echo=$ac_try;; 2756esac 2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2758 (eval "$ac_link") 2>&5 2759 ac_status=$? 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 (exit $ac_status); }; then 2762 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2763# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2764# work properly (i.e., refer to `conftest.exe'), while it won't with 2765# `rm'. 2766for ac_file in conftest.exe conftest conftest.*; do 2767 test -f "$ac_file" || continue 2768 case $ac_file in 2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2770 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2771 break;; 2772 * ) break;; 2773 esac 2774done 2775else 2776 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2777See \`config.log' for more details." >&5 2778echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2779See \`config.log' for more details." >&2;} 2780 { (exit 1); exit 1; }; } 2781fi 2782 2783rm -f conftest$ac_cv_exeext 2784{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2785echo "${ECHO_T}$ac_cv_exeext" >&6; } 2786 2787rm -f conftest.$ac_ext 2788EXEEXT=$ac_cv_exeext 2789ac_exeext=$EXEEXT 2790{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2791echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2792if test "${ac_cv_objext+set}" = set; then 2793 echo $ECHO_N "(cached) $ECHO_C" >&6 2794else 2795 cat >conftest.$ac_ext <<_ACEOF 2796/* confdefs.h. */ 2797_ACEOF 2798cat confdefs.h >>conftest.$ac_ext 2799cat >>conftest.$ac_ext <<_ACEOF 2800/* end confdefs.h. */ 2801 2802int 2803main () 2804{ 2805 2806 ; 2807 return 0; 2808} 2809_ACEOF 2810rm -f conftest.o conftest.obj 2811if { (ac_try="$ac_compile" 2812case "(($ac_try" in 2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2814 *) ac_try_echo=$ac_try;; 2815esac 2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2817 (eval "$ac_compile") 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; then 2821 for ac_file in conftest.o conftest.obj conftest.*; do 2822 test -f "$ac_file" || continue; 2823 case $ac_file in 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2825 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2826 break;; 2827 esac 2828done 2829else 2830 echo "$as_me: failed program was:" >&5 2831sed 's/^/| /' conftest.$ac_ext >&5 2832 2833{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2834See \`config.log' for more details." >&5 2835echo "$as_me: error: cannot compute suffix of object files: cannot compile 2836See \`config.log' for more details." >&2;} 2837 { (exit 1); exit 1; }; } 2838fi 2839 2840rm -f conftest.$ac_cv_objext conftest.$ac_ext 2841fi 2842{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2843echo "${ECHO_T}$ac_cv_objext" >&6; } 2844OBJEXT=$ac_cv_objext 2845ac_objext=$OBJEXT 2846{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2847echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2848if test "${ac_cv_c_compiler_gnu+set}" = set; then 2849 echo $ECHO_N "(cached) $ECHO_C" >&6 2850else 2851 cat >conftest.$ac_ext <<_ACEOF 2852/* confdefs.h. */ 2853_ACEOF 2854cat confdefs.h >>conftest.$ac_ext 2855cat >>conftest.$ac_ext <<_ACEOF 2856/* end confdefs.h. */ 2857 2858int 2859main () 2860{ 2861#ifndef __GNUC__ 2862 choke me 2863#endif 2864 2865 ; 2866 return 0; 2867} 2868_ACEOF 2869rm -f conftest.$ac_objext 2870if { (ac_try="$ac_compile" 2871case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874esac 2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2876 (eval "$ac_compile") 2>conftest.er1 2877 ac_status=$? 2878 grep -v '^ *+' conftest.er1 >conftest.err 2879 rm -f conftest.er1 2880 cat conftest.err >&5 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); } && { 2883 test -z "$ac_c_werror_flag" || 2884 test ! -s conftest.err 2885 } && test -s conftest.$ac_objext; then 2886 ac_compiler_gnu=yes 2887else 2888 echo "$as_me: failed program was:" >&5 2889sed 's/^/| /' conftest.$ac_ext >&5 2890 2891 ac_compiler_gnu=no 2892fi 2893 2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2895ac_cv_c_compiler_gnu=$ac_compiler_gnu 2896 2897fi 2898{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2899echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2900GCC=`test $ac_compiler_gnu = yes && echo yes` 2901ac_test_CFLAGS=${CFLAGS+set} 2902ac_save_CFLAGS=$CFLAGS 2903{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2904echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2905if test "${ac_cv_prog_cc_g+set}" = set; then 2906 echo $ECHO_N "(cached) $ECHO_C" >&6 2907else 2908 ac_save_c_werror_flag=$ac_c_werror_flag 2909 ac_c_werror_flag=yes 2910 ac_cv_prog_cc_g=no 2911 CFLAGS="-g" 2912 cat >conftest.$ac_ext <<_ACEOF 2913/* confdefs.h. */ 2914_ACEOF 2915cat confdefs.h >>conftest.$ac_ext 2916cat >>conftest.$ac_ext <<_ACEOF 2917/* end confdefs.h. */ 2918 2919int 2920main () 2921{ 2922 2923 ; 2924 return 0; 2925} 2926_ACEOF 2927rm -f conftest.$ac_objext 2928if { (ac_try="$ac_compile" 2929case "(($ac_try" in 2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2931 *) ac_try_echo=$ac_try;; 2932esac 2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2934 (eval "$ac_compile") 2>conftest.er1 2935 ac_status=$? 2936 grep -v '^ *+' conftest.er1 >conftest.err 2937 rm -f conftest.er1 2938 cat conftest.err >&5 2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2940 (exit $ac_status); } && { 2941 test -z "$ac_c_werror_flag" || 2942 test ! -s conftest.err 2943 } && test -s conftest.$ac_objext; then 2944 ac_cv_prog_cc_g=yes 2945else 2946 echo "$as_me: failed program was:" >&5 2947sed 's/^/| /' conftest.$ac_ext >&5 2948 2949 CFLAGS="" 2950 cat >conftest.$ac_ext <<_ACEOF 2951/* confdefs.h. */ 2952_ACEOF 2953cat confdefs.h >>conftest.$ac_ext 2954cat >>conftest.$ac_ext <<_ACEOF 2955/* end confdefs.h. */ 2956 2957int 2958main () 2959{ 2960 2961 ; 2962 return 0; 2963} 2964_ACEOF 2965rm -f conftest.$ac_objext 2966if { (ac_try="$ac_compile" 2967case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970esac 2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2972 (eval "$ac_compile") 2>conftest.er1 2973 ac_status=$? 2974 grep -v '^ *+' conftest.er1 >conftest.err 2975 rm -f conftest.er1 2976 cat conftest.err >&5 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } && { 2979 test -z "$ac_c_werror_flag" || 2980 test ! -s conftest.err 2981 } && test -s conftest.$ac_objext; then 2982 : 2983else 2984 echo "$as_me: failed program was:" >&5 2985sed 's/^/| /' conftest.$ac_ext >&5 2986 2987 ac_c_werror_flag=$ac_save_c_werror_flag 2988 CFLAGS="-g" 2989 cat >conftest.$ac_ext <<_ACEOF 2990/* confdefs.h. */ 2991_ACEOF 2992cat confdefs.h >>conftest.$ac_ext 2993cat >>conftest.$ac_ext <<_ACEOF 2994/* end confdefs.h. */ 2995 2996int 2997main () 2998{ 2999 3000 ; 3001 return 0; 3002} 3003_ACEOF 3004rm -f conftest.$ac_objext 3005if { (ac_try="$ac_compile" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_compile") 2>conftest.er1 3012 ac_status=$? 3013 grep -v '^ *+' conftest.er1 >conftest.err 3014 rm -f conftest.er1 3015 cat conftest.err >&5 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); } && { 3018 test -z "$ac_c_werror_flag" || 3019 test ! -s conftest.err 3020 } && test -s conftest.$ac_objext; then 3021 ac_cv_prog_cc_g=yes 3022else 3023 echo "$as_me: failed program was:" >&5 3024sed 's/^/| /' conftest.$ac_ext >&5 3025 3026 3027fi 3028 3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3030fi 3031 3032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3033fi 3034 3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3036 ac_c_werror_flag=$ac_save_c_werror_flag 3037fi 3038{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3039echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3040if test "$ac_test_CFLAGS" = set; then 3041 CFLAGS=$ac_save_CFLAGS 3042elif test $ac_cv_prog_cc_g = yes; then 3043 if test "$GCC" = yes; then 3044 CFLAGS="-g -O2" 3045 else 3046 CFLAGS="-g" 3047 fi 3048else 3049 if test "$GCC" = yes; then 3050 CFLAGS="-O2" 3051 else 3052 CFLAGS= 3053 fi 3054fi 3055{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3056echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3057if test "${ac_cv_prog_cc_c89+set}" = set; then 3058 echo $ECHO_N "(cached) $ECHO_C" >&6 3059else 3060 ac_cv_prog_cc_c89=no 3061ac_save_CC=$CC 3062cat >conftest.$ac_ext <<_ACEOF 3063/* confdefs.h. */ 3064_ACEOF 3065cat confdefs.h >>conftest.$ac_ext 3066cat >>conftest.$ac_ext <<_ACEOF 3067/* end confdefs.h. */ 3068#include <stdarg.h> 3069#include <stdio.h> 3070#include <sys/types.h> 3071#include <sys/stat.h> 3072/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3073struct buf { int x; }; 3074FILE * (*rcsopen) (struct buf *, struct stat *, int); 3075static char *e (p, i) 3076 char **p; 3077 int i; 3078{ 3079 return p[i]; 3080} 3081static char *f (char * (*g) (char **, int), char **p, ...) 3082{ 3083 char *s; 3084 va_list v; 3085 va_start (v,p); 3086 s = g (p, va_arg (v,int)); 3087 va_end (v); 3088 return s; 3089} 3090 3091/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3092 function prototypes and stuff, but not '\xHH' hex character constants. 3093 These don't provoke an error unfortunately, instead are silently treated 3094 as 'x'. The following induces an error, until -std is added to get 3095 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3096 array size at least. It's necessary to write '\x00'==0 to get something 3097 that's true only with -std. */ 3098int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3099 3100/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3101 inside strings and character constants. */ 3102#define FOO(x) 'x' 3103int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3104 3105int test (int i, double x); 3106struct s1 {int (*f) (int a);}; 3107struct s2 {int (*f) (double a);}; 3108int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3109int argc; 3110char **argv; 3111int 3112main () 3113{ 3114return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3115 ; 3116 return 0; 3117} 3118_ACEOF 3119for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3120 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3121do 3122 CC="$ac_save_CC $ac_arg" 3123 rm -f conftest.$ac_objext 3124if { (ac_try="$ac_compile" 3125case "(($ac_try" in 3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3127 *) ac_try_echo=$ac_try;; 3128esac 3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3130 (eval "$ac_compile") 2>conftest.er1 3131 ac_status=$? 3132 grep -v '^ *+' conftest.er1 >conftest.err 3133 rm -f conftest.er1 3134 cat conftest.err >&5 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); } && { 3137 test -z "$ac_c_werror_flag" || 3138 test ! -s conftest.err 3139 } && test -s conftest.$ac_objext; then 3140 ac_cv_prog_cc_c89=$ac_arg 3141else 3142 echo "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145 3146fi 3147 3148rm -f core conftest.err conftest.$ac_objext 3149 test "x$ac_cv_prog_cc_c89" != "xno" && break 3150done 3151rm -f conftest.$ac_ext 3152CC=$ac_save_CC 3153 3154fi 3155# AC_CACHE_VAL 3156case "x$ac_cv_prog_cc_c89" in 3157 x) 3158 { echo "$as_me:$LINENO: result: none needed" >&5 3159echo "${ECHO_T}none needed" >&6; } ;; 3160 xno) 3161 { echo "$as_me:$LINENO: result: unsupported" >&5 3162echo "${ECHO_T}unsupported" >&6; } ;; 3163 *) 3164 CC="$CC $ac_cv_prog_cc_c89" 3165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3166echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3167esac 3168 3169 3170ac_ext=c 3171ac_cpp='$CPP $CPPFLAGS' 3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3174ac_compiler_gnu=$ac_cv_c_compiler_gnu 3175 3176 ac_ext=c 3177ac_cpp='$CPP $CPPFLAGS' 3178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3180ac_compiler_gnu=$ac_cv_c_compiler_gnu 3181{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3182echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3183# On Suns, sometimes $CPP names a directory. 3184if test -n "$CPP" && test -d "$CPP"; then 3185 CPP= 3186fi 3187if test -z "$CPP"; then 3188 if test "${ac_cv_prog_CPP+set}" = set; then 3189 echo $ECHO_N "(cached) $ECHO_C" >&6 3190else 3191 # Double quotes because CPP needs to be expanded 3192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3193 do 3194 ac_preproc_ok=false 3195for ac_c_preproc_warn_flag in '' yes 3196do 3197 # Use a header file that comes with gcc, so configuring glibc 3198 # with a fresh cross-compiler works. 3199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3200 # <limits.h> exists even on freestanding compilers. 3201 # On the NeXT, cc -E runs the code through the compiler's parser, 3202 # not just through cpp. "Syntax error" is here to catch this case. 3203 cat >conftest.$ac_ext <<_ACEOF 3204/* confdefs.h. */ 3205_ACEOF 3206cat confdefs.h >>conftest.$ac_ext 3207cat >>conftest.$ac_ext <<_ACEOF 3208/* end confdefs.h. */ 3209#ifdef __STDC__ 3210# include <limits.h> 3211#else 3212# include <assert.h> 3213#endif 3214 Syntax error 3215_ACEOF 3216if { (ac_try="$ac_cpp conftest.$ac_ext" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3223 ac_status=$? 3224 grep -v '^ *+' conftest.er1 >conftest.err 3225 rm -f conftest.er1 3226 cat conftest.err >&5 3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3228 (exit $ac_status); } >/dev/null && { 3229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3230 test ! -s conftest.err 3231 }; then 3232 : 3233else 3234 echo "$as_me: failed program was:" >&5 3235sed 's/^/| /' conftest.$ac_ext >&5 3236 3237 # Broken: fails on valid input. 3238continue 3239fi 3240 3241rm -f conftest.err conftest.$ac_ext 3242 3243 # OK, works on sane cases. Now check whether nonexistent headers 3244 # can be detected and how. 3245 cat >conftest.$ac_ext <<_ACEOF 3246/* confdefs.h. */ 3247_ACEOF 3248cat confdefs.h >>conftest.$ac_ext 3249cat >>conftest.$ac_ext <<_ACEOF 3250/* end confdefs.h. */ 3251#include <ac_nonexistent.h> 3252_ACEOF 3253if { (ac_try="$ac_cpp conftest.$ac_ext" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3260 ac_status=$? 3261 grep -v '^ *+' conftest.er1 >conftest.err 3262 rm -f conftest.er1 3263 cat conftest.err >&5 3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); } >/dev/null && { 3266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3267 test ! -s conftest.err 3268 }; then 3269 # Broken: success on invalid input. 3270continue 3271else 3272 echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275 # Passes both tests. 3276ac_preproc_ok=: 3277break 3278fi 3279 3280rm -f conftest.err conftest.$ac_ext 3281 3282done 3283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3284rm -f conftest.err conftest.$ac_ext 3285if $ac_preproc_ok; then 3286 break 3287fi 3288 3289 done 3290 ac_cv_prog_CPP=$CPP 3291 3292fi 3293 CPP=$ac_cv_prog_CPP 3294else 3295 ac_cv_prog_CPP=$CPP 3296fi 3297{ echo "$as_me:$LINENO: result: $CPP" >&5 3298echo "${ECHO_T}$CPP" >&6; } 3299ac_preproc_ok=false 3300for ac_c_preproc_warn_flag in '' yes 3301do 3302 # Use a header file that comes with gcc, so configuring glibc 3303 # with a fresh cross-compiler works. 3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3305 # <limits.h> exists even on freestanding compilers. 3306 # On the NeXT, cc -E runs the code through the compiler's parser, 3307 # not just through cpp. "Syntax error" is here to catch this case. 3308 cat >conftest.$ac_ext <<_ACEOF 3309/* confdefs.h. */ 3310_ACEOF 3311cat confdefs.h >>conftest.$ac_ext 3312cat >>conftest.$ac_ext <<_ACEOF 3313/* end confdefs.h. */ 3314#ifdef __STDC__ 3315# include <limits.h> 3316#else 3317# include <assert.h> 3318#endif 3319 Syntax error 3320_ACEOF 3321if { (ac_try="$ac_cpp conftest.$ac_ext" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } >/dev/null && { 3334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3335 test ! -s conftest.err 3336 }; then 3337 : 3338else 3339 echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 # Broken: fails on valid input. 3343continue 3344fi 3345 3346rm -f conftest.err conftest.$ac_ext 3347 3348 # OK, works on sane cases. Now check whether nonexistent headers 3349 # can be detected and how. 3350 cat >conftest.$ac_ext <<_ACEOF 3351/* confdefs.h. */ 3352_ACEOF 3353cat confdefs.h >>conftest.$ac_ext 3354cat >>conftest.$ac_ext <<_ACEOF 3355/* end confdefs.h. */ 3356#include <ac_nonexistent.h> 3357_ACEOF 3358if { (ac_try="$ac_cpp conftest.$ac_ext" 3359case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362esac 3363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3365 ac_status=$? 3366 grep -v '^ *+' conftest.er1 >conftest.err 3367 rm -f conftest.er1 3368 cat conftest.err >&5 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); } >/dev/null && { 3371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3372 test ! -s conftest.err 3373 }; then 3374 # Broken: success on invalid input. 3375continue 3376else 3377 echo "$as_me: failed program was:" >&5 3378sed 's/^/| /' conftest.$ac_ext >&5 3379 3380 # Passes both tests. 3381ac_preproc_ok=: 3382break 3383fi 3384 3385rm -f conftest.err conftest.$ac_ext 3386 3387done 3388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3389rm -f conftest.err conftest.$ac_ext 3390if $ac_preproc_ok; then 3391 : 3392else 3393 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3394See \`config.log' for more details." >&5 3395echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3396See \`config.log' for more details." >&2;} 3397 { (exit 1); exit 1; }; } 3398fi 3399 3400ac_ext=c 3401ac_cpp='$CPP $CPPFLAGS' 3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3404ac_compiler_gnu=$ac_cv_c_compiler_gnu 3405 3406 3407 # Find a good install program. We prefer a C program (faster), 3408# so one script is as good as another. But avoid the broken or 3409# incompatible versions: 3410# SysV /etc/install, /usr/sbin/install 3411# SunOS /usr/etc/install 3412# IRIX /sbin/install 3413# AIX /bin/install 3414# AmigaOS /C/install, which installs bootblocks on floppy discs 3415# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3416# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3417# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3418# OS/2's system install, which has a completely different semantic 3419# ./install, which can be erroneously created by make from ./install.sh. 3420{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3421echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3422if test -z "$INSTALL"; then 3423if test "${ac_cv_path_install+set}" = set; then 3424 echo $ECHO_N "(cached) $ECHO_C" >&6 3425else 3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427for as_dir in $PATH 3428do 3429 IFS=$as_save_IFS 3430 test -z "$as_dir" && as_dir=. 3431 # Account for people who put trailing slashes in PATH elements. 3432case $as_dir/ in 3433 ./ | .// | /cC/* | \ 3434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3435 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3436 /usr/ucb/* ) ;; 3437 *) 3438 # OSF1 and SCO ODT 3.0 have their own names for install. 3439 # Don't use installbsd from OSF since it installs stuff as root 3440 # by default. 3441 for ac_prog in ginstall scoinst install; do 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3444 if test $ac_prog = install && 3445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3446 # AIX install. It has an incompatible calling convention. 3447 : 3448 elif test $ac_prog = install && 3449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3450 # program-specific install script used by HP pwplus--don't use. 3451 : 3452 else 3453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3454 break 3 3455 fi 3456 fi 3457 done 3458 done 3459 ;; 3460esac 3461done 3462IFS=$as_save_IFS 3463 3464 3465fi 3466 if test "${ac_cv_path_install+set}" = set; then 3467 INSTALL=$ac_cv_path_install 3468 else 3469 # As a last resort, use the slow shell script. Don't cache a 3470 # value for INSTALL within a source directory, because that will 3471 # break other packages using the cache if that directory is 3472 # removed, or if the value is a relative name. 3473 INSTALL=$ac_install_sh 3474 fi 3475fi 3476{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3477echo "${ECHO_T}$INSTALL" >&6; } 3478 3479# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3480# It thinks the first close brace ends the variable substitution. 3481test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3482 3483test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3484 3485test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3486 3487 3488 #-------------------------------------------------------------------- 3489 # Checks to see if the make program sets the $MAKE variable. 3490 #-------------------------------------------------------------------- 3491 3492 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3493echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3494set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3495if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3496 echo $ECHO_N "(cached) $ECHO_C" >&6 3497else 3498 cat >conftest.make <<\_ACEOF 3499SHELL = /bin/sh 3500all: 3501 @echo '@@@%%%=$(MAKE)=@@@%%%' 3502_ACEOF 3503# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3504case `${MAKE-make} -f conftest.make 2>/dev/null` in 3505 *@@@%%%=?*=@@@%%%*) 3506 eval ac_cv_prog_make_${ac_make}_set=yes;; 3507 *) 3508 eval ac_cv_prog_make_${ac_make}_set=no;; 3509esac 3510rm -f conftest.make 3511fi 3512if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3513 { echo "$as_me:$LINENO: result: yes" >&5 3514echo "${ECHO_T}yes" >&6; } 3515 SET_MAKE= 3516else 3517 { echo "$as_me:$LINENO: result: no" >&5 3518echo "${ECHO_T}no" >&6; } 3519 SET_MAKE="MAKE=${MAKE-make}" 3520fi 3521 3522 3523 #-------------------------------------------------------------------- 3524 # Find ranlib 3525 #-------------------------------------------------------------------- 3526 3527 if test -n "$ac_tool_prefix"; then 3528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3529set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3532if test "${ac_cv_prog_RANLIB+set}" = set; then 3533 echo $ECHO_N "(cached) $ECHO_C" >&6 3534else 3535 if test -n "$RANLIB"; then 3536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3537else 3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539for as_dir in $PATH 3540do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 for ac_exec_ext in '' $ac_executable_extensions; do 3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3547 break 2 3548 fi 3549done 3550done 3551IFS=$as_save_IFS 3552 3553fi 3554fi 3555RANLIB=$ac_cv_prog_RANLIB 3556if test -n "$RANLIB"; then 3557 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3558echo "${ECHO_T}$RANLIB" >&6; } 3559else 3560 { echo "$as_me:$LINENO: result: no" >&5 3561echo "${ECHO_T}no" >&6; } 3562fi 3563 3564 3565fi 3566if test -z "$ac_cv_prog_RANLIB"; then 3567 ac_ct_RANLIB=$RANLIB 3568 # Extract the first word of "ranlib", so it can be a program name with args. 3569set dummy ranlib; ac_word=$2 3570{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3572if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3573 echo $ECHO_N "(cached) $ECHO_C" >&6 3574else 3575 if test -n "$ac_ct_RANLIB"; then 3576 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3577else 3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3579for as_dir in $PATH 3580do 3581 IFS=$as_save_IFS 3582 test -z "$as_dir" && as_dir=. 3583 for ac_exec_ext in '' $ac_executable_extensions; do 3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3585 ac_cv_prog_ac_ct_RANLIB="ranlib" 3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3587 break 2 3588 fi 3589done 3590done 3591IFS=$as_save_IFS 3592 3593fi 3594fi 3595ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3596if test -n "$ac_ct_RANLIB"; then 3597 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3598echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3599else 3600 { echo "$as_me:$LINENO: result: no" >&5 3601echo "${ECHO_T}no" >&6; } 3602fi 3603 3604 if test "x$ac_ct_RANLIB" = x; then 3605 RANLIB=":" 3606 else 3607 case $cross_compiling:$ac_tool_warned in 3608yes:) 3609{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3610whose name does not start with the host triplet. If you think this 3611configuration is useful to you, please write to autoconf@gnu.org." >&5 3612echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3613whose name does not start with the host triplet. If you think this 3614configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3615ac_tool_warned=yes ;; 3616esac 3617 RANLIB=$ac_ct_RANLIB 3618 fi 3619else 3620 RANLIB="$ac_cv_prog_RANLIB" 3621fi 3622 3623 3624 #-------------------------------------------------------------------- 3625 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3626 #-------------------------------------------------------------------- 3627 3628 3629 3630 3631 3632 3633{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3634echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3635if test "${ac_cv_path_GREP+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637else 3638 # Extract the first word of "grep ggrep" to use in msg output 3639if test -z "$GREP"; then 3640set dummy grep ggrep; ac_prog_name=$2 3641if test "${ac_cv_path_GREP+set}" = set; then 3642 echo $ECHO_N "(cached) $ECHO_C" >&6 3643else 3644 ac_path_GREP_found=false 3645# Loop through the user's path and test for each of PROGNAME-LIST 3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3648do 3649 IFS=$as_save_IFS 3650 test -z "$as_dir" && as_dir=. 3651 for ac_prog in grep ggrep; do 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3654 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3655 # Check for GNU ac_path_GREP and select it if it is found. 3656 # Check for GNU $ac_path_GREP 3657case `"$ac_path_GREP" --version 2>&1` in 3658*GNU*) 3659 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3660*) 3661 ac_count=0 3662 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3663 while : 3664 do 3665 cat "conftest.in" "conftest.in" >"conftest.tmp" 3666 mv "conftest.tmp" "conftest.in" 3667 cp "conftest.in" "conftest.nl" 3668 echo 'GREP' >> "conftest.nl" 3669 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3671 ac_count=`expr $ac_count + 1` 3672 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3673 # Best one so far, save it but keep looking for a better one 3674 ac_cv_path_GREP="$ac_path_GREP" 3675 ac_path_GREP_max=$ac_count 3676 fi 3677 # 10*(2^10) chars as input seems more than enough 3678 test $ac_count -gt 10 && break 3679 done 3680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3681esac 3682 3683 3684 $ac_path_GREP_found && break 3 3685 done 3686done 3687 3688done 3689IFS=$as_save_IFS 3690 3691 3692fi 3693 3694GREP="$ac_cv_path_GREP" 3695if test -z "$GREP"; then 3696 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3697echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3698 { (exit 1); exit 1; }; } 3699fi 3700 3701else 3702 ac_cv_path_GREP=$GREP 3703fi 3704 3705 3706fi 3707{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3708echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3709 GREP="$ac_cv_path_GREP" 3710 3711 3712{ echo "$as_me:$LINENO: checking for egrep" >&5 3713echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3714if test "${ac_cv_path_EGREP+set}" = set; then 3715 echo $ECHO_N "(cached) $ECHO_C" >&6 3716else 3717 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3718 then ac_cv_path_EGREP="$GREP -E" 3719 else 3720 # Extract the first word of "egrep" to use in msg output 3721if test -z "$EGREP"; then 3722set dummy egrep; ac_prog_name=$2 3723if test "${ac_cv_path_EGREP+set}" = set; then 3724 echo $ECHO_N "(cached) $ECHO_C" >&6 3725else 3726 ac_path_EGREP_found=false 3727# Loop through the user's path and test for each of PROGNAME-LIST 3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 for ac_prog in egrep; do 3734 for ac_exec_ext in '' $ac_executable_extensions; do 3735 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3736 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3737 # Check for GNU ac_path_EGREP and select it if it is found. 3738 # Check for GNU $ac_path_EGREP 3739case `"$ac_path_EGREP" --version 2>&1` in 3740*GNU*) 3741 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3742*) 3743 ac_count=0 3744 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3745 while : 3746 do 3747 cat "conftest.in" "conftest.in" >"conftest.tmp" 3748 mv "conftest.tmp" "conftest.in" 3749 cp "conftest.in" "conftest.nl" 3750 echo 'EGREP' >> "conftest.nl" 3751 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3753 ac_count=`expr $ac_count + 1` 3754 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3755 # Best one so far, save it but keep looking for a better one 3756 ac_cv_path_EGREP="$ac_path_EGREP" 3757 ac_path_EGREP_max=$ac_count 3758 fi 3759 # 10*(2^10) chars as input seems more than enough 3760 test $ac_count -gt 10 && break 3761 done 3762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3763esac 3764 3765 3766 $ac_path_EGREP_found && break 3 3767 done 3768done 3769 3770done 3771IFS=$as_save_IFS 3772 3773 3774fi 3775 3776EGREP="$ac_cv_path_EGREP" 3777if test -z "$EGREP"; then 3778 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3779echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3780 { (exit 1); exit 1; }; } 3781fi 3782 3783else 3784 ac_cv_path_EGREP=$EGREP 3785fi 3786 3787 3788 fi 3789fi 3790{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3791echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3792 EGREP="$ac_cv_path_EGREP" 3793 3794 3795{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3796echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3797if test "${ac_cv_header_stdc+set}" = set; then 3798 echo $ECHO_N "(cached) $ECHO_C" >&6 3799else 3800 cat >conftest.$ac_ext <<_ACEOF 3801/* confdefs.h. */ 3802_ACEOF 3803cat confdefs.h >>conftest.$ac_ext 3804cat >>conftest.$ac_ext <<_ACEOF 3805/* end confdefs.h. */ 3806#include <stdlib.h> 3807#include <stdarg.h> 3808#include <string.h> 3809#include <float.h> 3810 3811int 3812main () 3813{ 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819rm -f conftest.$ac_objext 3820if { (ac_try="$ac_compile" 3821case "(($ac_try" in 3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3823 *) ac_try_echo=$ac_try;; 3824esac 3825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3826 (eval "$ac_compile") 2>conftest.er1 3827 ac_status=$? 3828 grep -v '^ *+' conftest.er1 >conftest.err 3829 rm -f conftest.er1 3830 cat conftest.err >&5 3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3832 (exit $ac_status); } && { 3833 test -z "$ac_c_werror_flag" || 3834 test ! -s conftest.err 3835 } && test -s conftest.$ac_objext; then 3836 ac_cv_header_stdc=yes 3837else 3838 echo "$as_me: failed program was:" >&5 3839sed 's/^/| /' conftest.$ac_ext >&5 3840 3841 ac_cv_header_stdc=no 3842fi 3843 3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3845 3846if test $ac_cv_header_stdc = yes; then 3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3848 cat >conftest.$ac_ext <<_ACEOF 3849/* confdefs.h. */ 3850_ACEOF 3851cat confdefs.h >>conftest.$ac_ext 3852cat >>conftest.$ac_ext <<_ACEOF 3853/* end confdefs.h. */ 3854#include <string.h> 3855 3856_ACEOF 3857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3858 $EGREP "memchr" >/dev/null 2>&1; then 3859 : 3860else 3861 ac_cv_header_stdc=no 3862fi 3863rm -f -r conftest* 3864 3865fi 3866 3867if test $ac_cv_header_stdc = yes; then 3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3869 cat >conftest.$ac_ext <<_ACEOF 3870/* confdefs.h. */ 3871_ACEOF 3872cat confdefs.h >>conftest.$ac_ext 3873cat >>conftest.$ac_ext <<_ACEOF 3874/* end confdefs.h. */ 3875#include <stdlib.h> 3876 3877_ACEOF 3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3879 $EGREP "free" >/dev/null 2>&1; then 3880 : 3881else 3882 ac_cv_header_stdc=no 3883fi 3884rm -f -r conftest* 3885 3886fi 3887 3888if test $ac_cv_header_stdc = yes; then 3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3890 if test "$cross_compiling" = yes; then 3891 : 3892else 3893 cat >conftest.$ac_ext <<_ACEOF 3894/* confdefs.h. */ 3895_ACEOF 3896cat confdefs.h >>conftest.$ac_ext 3897cat >>conftest.$ac_ext <<_ACEOF 3898/* end confdefs.h. */ 3899#include <ctype.h> 3900#include <stdlib.h> 3901#if ((' ' & 0x0FF) == 0x020) 3902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3904#else 3905# define ISLOWER(c) \ 3906 (('a' <= (c) && (c) <= 'i') \ 3907 || ('j' <= (c) && (c) <= 'r') \ 3908 || ('s' <= (c) && (c) <= 'z')) 3909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3910#endif 3911 3912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3913int 3914main () 3915{ 3916 int i; 3917 for (i = 0; i < 256; i++) 3918 if (XOR (islower (i), ISLOWER (i)) 3919 || toupper (i) != TOUPPER (i)) 3920 return 2; 3921 return 0; 3922} 3923_ACEOF 3924rm -f conftest$ac_exeext 3925if { (ac_try="$ac_link" 3926case "(($ac_try" in 3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3928 *) ac_try_echo=$ac_try;; 3929esac 3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3931 (eval "$ac_link") 2>&5 3932 ac_status=$? 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3935 { (case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938esac 3939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3940 (eval "$ac_try") 2>&5 3941 ac_status=$? 3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3943 (exit $ac_status); }; }; then 3944 : 3945else 3946 echo "$as_me: program exited with status $ac_status" >&5 3947echo "$as_me: failed program was:" >&5 3948sed 's/^/| /' conftest.$ac_ext >&5 3949 3950( exit $ac_status ) 3951ac_cv_header_stdc=no 3952fi 3953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3954fi 3955 3956 3957fi 3958fi 3959{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3960echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3961if test $ac_cv_header_stdc = yes; then 3962 3963cat >>confdefs.h <<\_ACEOF 3964#define STDC_HEADERS 1 3965_ACEOF 3966 3967fi 3968 3969# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3980 inttypes.h stdint.h unistd.h 3981do 3982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3983{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 cat >conftest.$ac_ext <<_ACEOF 3989/* confdefs.h. */ 3990_ACEOF 3991cat confdefs.h >>conftest.$ac_ext 3992cat >>conftest.$ac_ext <<_ACEOF 3993/* end confdefs.h. */ 3994$ac_includes_default 3995 3996#include <$ac_header> 3997_ACEOF 3998rm -f conftest.$ac_objext 3999if { (ac_try="$ac_compile" 4000case "(($ac_try" in 4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4002 *) ac_try_echo=$ac_try;; 4003esac 4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4005 (eval "$ac_compile") 2>conftest.er1 4006 ac_status=$? 4007 grep -v '^ *+' conftest.er1 >conftest.err 4008 rm -f conftest.er1 4009 cat conftest.err >&5 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 (exit $ac_status); } && { 4012 test -z "$ac_c_werror_flag" || 4013 test ! -s conftest.err 4014 } && test -s conftest.$ac_objext; then 4015 eval "$as_ac_Header=yes" 4016else 4017 echo "$as_me: failed program was:" >&5 4018sed 's/^/| /' conftest.$ac_ext >&5 4019 4020 eval "$as_ac_Header=no" 4021fi 4022 4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4024fi 4025ac_res=`eval echo '${'$as_ac_Header'}'` 4026 { echo "$as_me:$LINENO: result: $ac_res" >&5 4027echo "${ECHO_T}$ac_res" >&6; } 4028if test `eval echo '${'$as_ac_Header'}'` = yes; then 4029 cat >>confdefs.h <<_ACEOF 4030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4031_ACEOF 4032 4033fi 4034 4035done 4036 4037 4038 4039 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4040 4041 4042 #------------------------------------------------------------------------ 4043 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4044 # It makes compiling go faster. (This is only a performance feature.) 4045 #------------------------------------------------------------------------ 4046 4047 if test -z "$no_pipe" -a -n "$GCC"; then 4048 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4049echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4050if test "${tcl_cv_cc_pipe+set}" = set; then 4051 echo $ECHO_N "(cached) $ECHO_C" >&6 4052else 4053 4054 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4055 cat >conftest.$ac_ext <<_ACEOF 4056/* confdefs.h. */ 4057_ACEOF 4058cat confdefs.h >>conftest.$ac_ext 4059cat >>conftest.$ac_ext <<_ACEOF 4060/* end confdefs.h. */ 4061 4062int 4063main () 4064{ 4065 4066 ; 4067 return 0; 4068} 4069_ACEOF 4070rm -f conftest.$ac_objext 4071if { (ac_try="$ac_compile" 4072case "(($ac_try" in 4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4074 *) ac_try_echo=$ac_try;; 4075esac 4076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4077 (eval "$ac_compile") 2>conftest.er1 4078 ac_status=$? 4079 grep -v '^ *+' conftest.er1 >conftest.err 4080 rm -f conftest.er1 4081 cat conftest.err >&5 4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4083 (exit $ac_status); } && { 4084 test -z "$ac_c_werror_flag" || 4085 test ! -s conftest.err 4086 } && test -s conftest.$ac_objext; then 4087 tcl_cv_cc_pipe=yes 4088else 4089 echo "$as_me: failed program was:" >&5 4090sed 's/^/| /' conftest.$ac_ext >&5 4091 4092 tcl_cv_cc_pipe=no 4093fi 4094 4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4096 CFLAGS=$hold_cflags 4097fi 4098{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4099echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4100 if test $tcl_cv_cc_pipe = yes; then 4101 CFLAGS="$CFLAGS -pipe" 4102 fi 4103 fi 4104 4105 #-------------------------------------------------------------------- 4106 # Common compiler flag setup 4107 #-------------------------------------------------------------------- 4108 4109 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4110echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4111if test "${ac_cv_c_bigendian+set}" = set; then 4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4113else 4114 # See if sys/param.h defines the BYTE_ORDER macro. 4115cat >conftest.$ac_ext <<_ACEOF 4116/* confdefs.h. */ 4117_ACEOF 4118cat confdefs.h >>conftest.$ac_ext 4119cat >>conftest.$ac_ext <<_ACEOF 4120/* end confdefs.h. */ 4121#include <sys/types.h> 4122#include <sys/param.h> 4123 4124int 4125main () 4126{ 4127#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4128 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4129 bogus endian macros 4130#endif 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136rm -f conftest.$ac_objext 4137if { (ac_try="$ac_compile" 4138case "(($ac_try" in 4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4140 *) ac_try_echo=$ac_try;; 4141esac 4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4143 (eval "$ac_compile") 2>conftest.er1 4144 ac_status=$? 4145 grep -v '^ *+' conftest.er1 >conftest.err 4146 rm -f conftest.er1 4147 cat conftest.err >&5 4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4149 (exit $ac_status); } && { 4150 test -z "$ac_c_werror_flag" || 4151 test ! -s conftest.err 4152 } && test -s conftest.$ac_objext; then 4153 # It does; now see whether it defined to BIG_ENDIAN or not. 4154cat >conftest.$ac_ext <<_ACEOF 4155/* confdefs.h. */ 4156_ACEOF 4157cat confdefs.h >>conftest.$ac_ext 4158cat >>conftest.$ac_ext <<_ACEOF 4159/* end confdefs.h. */ 4160#include <sys/types.h> 4161#include <sys/param.h> 4162 4163int 4164main () 4165{ 4166#if BYTE_ORDER != BIG_ENDIAN 4167 not big endian 4168#endif 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174rm -f conftest.$ac_objext 4175if { (ac_try="$ac_compile" 4176case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4181 (eval "$ac_compile") 2>conftest.er1 4182 ac_status=$? 4183 grep -v '^ *+' conftest.er1 >conftest.err 4184 rm -f conftest.er1 4185 cat conftest.err >&5 4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4187 (exit $ac_status); } && { 4188 test -z "$ac_c_werror_flag" || 4189 test ! -s conftest.err 4190 } && test -s conftest.$ac_objext; then 4191 ac_cv_c_bigendian=yes 4192else 4193 echo "$as_me: failed program was:" >&5 4194sed 's/^/| /' conftest.$ac_ext >&5 4195 4196 ac_cv_c_bigendian=no 4197fi 4198 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200else 4201 echo "$as_me: failed program was:" >&5 4202sed 's/^/| /' conftest.$ac_ext >&5 4203 4204 # It does not; compile a test program. 4205if test "$cross_compiling" = yes; then 4206 # try to guess the endianness by grepping values into an object file 4207 ac_cv_c_bigendian=unknown 4208 cat >conftest.$ac_ext <<_ACEOF 4209/* confdefs.h. */ 4210_ACEOF 4211cat confdefs.h >>conftest.$ac_ext 4212cat >>conftest.$ac_ext <<_ACEOF 4213/* end confdefs.h. */ 4214short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4215short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4216void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4217short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4218short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4219void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4220int 4221main () 4222{ 4223 _ascii (); _ebcdic (); 4224 ; 4225 return 0; 4226} 4227_ACEOF 4228rm -f conftest.$ac_objext 4229if { (ac_try="$ac_compile" 4230case "(($ac_try" in 4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4232 *) ac_try_echo=$ac_try;; 4233esac 4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4235 (eval "$ac_compile") 2>conftest.er1 4236 ac_status=$? 4237 grep -v '^ *+' conftest.er1 >conftest.err 4238 rm -f conftest.er1 4239 cat conftest.err >&5 4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4241 (exit $ac_status); } && { 4242 test -z "$ac_c_werror_flag" || 4243 test ! -s conftest.err 4244 } && test -s conftest.$ac_objext; then 4245 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4246 ac_cv_c_bigendian=yes 4247fi 4248if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4249 if test "$ac_cv_c_bigendian" = unknown; then 4250 ac_cv_c_bigendian=no 4251 else 4252 # finding both strings is unlikely to happen, but who knows? 4253 ac_cv_c_bigendian=unknown 4254 fi 4255fi 4256else 4257 echo "$as_me: failed program was:" >&5 4258sed 's/^/| /' conftest.$ac_ext >&5 4259 4260 4261fi 4262 4263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4264else 4265 cat >conftest.$ac_ext <<_ACEOF 4266/* confdefs.h. */ 4267_ACEOF 4268cat confdefs.h >>conftest.$ac_ext 4269cat >>conftest.$ac_ext <<_ACEOF 4270/* end confdefs.h. */ 4271$ac_includes_default 4272int 4273main () 4274{ 4275 4276 /* Are we little or big endian? From Harbison&Steele. */ 4277 union 4278 { 4279 long int l; 4280 char c[sizeof (long int)]; 4281 } u; 4282 u.l = 1; 4283 return u.c[sizeof (long int) - 1] == 1; 4284 4285 ; 4286 return 0; 4287} 4288_ACEOF 4289rm -f conftest$ac_exeext 4290if { (ac_try="$ac_link" 4291case "(($ac_try" in 4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4293 *) ac_try_echo=$ac_try;; 4294esac 4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4296 (eval "$ac_link") 2>&5 4297 ac_status=$? 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4300 { (case "(($ac_try" in 4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4302 *) ac_try_echo=$ac_try;; 4303esac 4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4305 (eval "$ac_try") 2>&5 4306 ac_status=$? 4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4308 (exit $ac_status); }; }; then 4309 ac_cv_c_bigendian=no 4310else 4311 echo "$as_me: program exited with status $ac_status" >&5 4312echo "$as_me: failed program was:" >&5 4313sed 's/^/| /' conftest.$ac_ext >&5 4314 4315( exit $ac_status ) 4316ac_cv_c_bigendian=yes 4317fi 4318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4319fi 4320 4321 4322fi 4323 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325fi 4326{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4327echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4328case $ac_cv_c_bigendian in 4329 yes) 4330 4331cat >>confdefs.h <<\_ACEOF 4332#define WORDS_BIGENDIAN 1 4333_ACEOF 4334 ;; 4335 no) 4336 ;; 4337 *) 4338 { { echo "$as_me:$LINENO: error: unknown endianness 4339presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4340echo "$as_me: error: unknown endianness 4341presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4342 { (exit 1); exit 1; }; } ;; 4343esac 4344 4345 if test "${TEA_PLATFORM}" = "unix" ; then 4346 4347 #-------------------------------------------------------------------- 4348 # On a few very rare systems, all of the libm.a stuff is 4349 # already in libc.a. Set compiler flags accordingly. 4350 # Also, Linux requires the "ieee" library for math to work 4351 # right (and it must appear before "-lm"). 4352 #-------------------------------------------------------------------- 4353 4354 { echo "$as_me:$LINENO: checking for sin" >&5 4355echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4356if test "${ac_cv_func_sin+set}" = set; then 4357 echo $ECHO_N "(cached) $ECHO_C" >&6 4358else 4359 cat >conftest.$ac_ext <<_ACEOF 4360/* confdefs.h. */ 4361_ACEOF 4362cat confdefs.h >>conftest.$ac_ext 4363cat >>conftest.$ac_ext <<_ACEOF 4364/* end confdefs.h. */ 4365/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4366 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4367#define sin innocuous_sin 4368 4369/* System header to define __stub macros and hopefully few prototypes, 4370 which can conflict with char sin (); below. 4371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4372 <limits.h> exists even on freestanding compilers. */ 4373 4374#ifdef __STDC__ 4375# include <limits.h> 4376#else 4377# include <assert.h> 4378#endif 4379 4380#undef sin 4381 4382/* Override any GCC internal prototype to avoid an error. 4383 Use char because int might match the return type of a GCC 4384 builtin and then its argument prototype would still apply. */ 4385#ifdef __cplusplus 4386extern "C" 4387#endif 4388char sin (); 4389/* The GNU C library defines this for functions which it implements 4390 to always fail with ENOSYS. Some functions are actually named 4391 something starting with __ and the normal name is an alias. */ 4392#if defined __stub_sin || defined __stub___sin 4393choke me 4394#endif 4395 4396int 4397main () 4398{ 4399return sin (); 4400 ; 4401 return 0; 4402} 4403_ACEOF 4404rm -f conftest.$ac_objext conftest$ac_exeext 4405if { (ac_try="$ac_link" 4406case "(($ac_try" in 4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4408 *) ac_try_echo=$ac_try;; 4409esac 4410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4411 (eval "$ac_link") 2>conftest.er1 4412 ac_status=$? 4413 grep -v '^ *+' conftest.er1 >conftest.err 4414 rm -f conftest.er1 4415 cat conftest.err >&5 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } && { 4418 test -z "$ac_c_werror_flag" || 4419 test ! -s conftest.err 4420 } && test -s conftest$ac_exeext && 4421 $as_test_x conftest$ac_exeext; then 4422 ac_cv_func_sin=yes 4423else 4424 echo "$as_me: failed program was:" >&5 4425sed 's/^/| /' conftest.$ac_ext >&5 4426 4427 ac_cv_func_sin=no 4428fi 4429 4430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4431 conftest$ac_exeext conftest.$ac_ext 4432fi 4433{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4434echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4435if test $ac_cv_func_sin = yes; then 4436 MATH_LIBS="" 4437else 4438 MATH_LIBS="-lm" 4439fi 4440 4441 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4442echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4443if test "${ac_cv_lib_ieee_main+set}" = set; then 4444 echo $ECHO_N "(cached) $ECHO_C" >&6 4445else 4446 ac_check_lib_save_LIBS=$LIBS 4447LIBS="-lieee $LIBS" 4448cat >conftest.$ac_ext <<_ACEOF 4449/* confdefs.h. */ 4450_ACEOF 4451cat confdefs.h >>conftest.$ac_ext 4452cat >>conftest.$ac_ext <<_ACEOF 4453/* end confdefs.h. */ 4454 4455 4456int 4457main () 4458{ 4459return main (); 4460 ; 4461 return 0; 4462} 4463_ACEOF 4464rm -f conftest.$ac_objext conftest$ac_exeext 4465if { (ac_try="$ac_link" 4466case "(($ac_try" in 4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4468 *) ac_try_echo=$ac_try;; 4469esac 4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4471 (eval "$ac_link") 2>conftest.er1 4472 ac_status=$? 4473 grep -v '^ *+' conftest.er1 >conftest.err 4474 rm -f conftest.er1 4475 cat conftest.err >&5 4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4477 (exit $ac_status); } && { 4478 test -z "$ac_c_werror_flag" || 4479 test ! -s conftest.err 4480 } && test -s conftest$ac_exeext && 4481 $as_test_x conftest$ac_exeext; then 4482 ac_cv_lib_ieee_main=yes 4483else 4484 echo "$as_me: failed program was:" >&5 4485sed 's/^/| /' conftest.$ac_ext >&5 4486 4487 ac_cv_lib_ieee_main=no 4488fi 4489 4490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4491 conftest$ac_exeext conftest.$ac_ext 4492LIBS=$ac_check_lib_save_LIBS 4493fi 4494{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4495echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4496if test $ac_cv_lib_ieee_main = yes; then 4497 MATH_LIBS="-lieee $MATH_LIBS" 4498fi 4499 4500 4501 #-------------------------------------------------------------------- 4502 # Interactive UNIX requires -linet instead of -lsocket, plus it 4503 # needs net/errno.h to define the socket-related error codes. 4504 #-------------------------------------------------------------------- 4505 4506 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4507echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4508if test "${ac_cv_lib_inet_main+set}" = set; then 4509 echo $ECHO_N "(cached) $ECHO_C" >&6 4510else 4511 ac_check_lib_save_LIBS=$LIBS 4512LIBS="-linet $LIBS" 4513cat >conftest.$ac_ext <<_ACEOF 4514/* confdefs.h. */ 4515_ACEOF 4516cat confdefs.h >>conftest.$ac_ext 4517cat >>conftest.$ac_ext <<_ACEOF 4518/* end confdefs.h. */ 4519 4520 4521int 4522main () 4523{ 4524return main (); 4525 ; 4526 return 0; 4527} 4528_ACEOF 4529rm -f conftest.$ac_objext conftest$ac_exeext 4530if { (ac_try="$ac_link" 4531case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4536 (eval "$ac_link") 2>conftest.er1 4537 ac_status=$? 4538 grep -v '^ *+' conftest.er1 >conftest.err 4539 rm -f conftest.er1 4540 cat conftest.err >&5 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4542 (exit $ac_status); } && { 4543 test -z "$ac_c_werror_flag" || 4544 test ! -s conftest.err 4545 } && test -s conftest$ac_exeext && 4546 $as_test_x conftest$ac_exeext; then 4547 ac_cv_lib_inet_main=yes 4548else 4549 echo "$as_me: failed program was:" >&5 4550sed 's/^/| /' conftest.$ac_ext >&5 4551 4552 ac_cv_lib_inet_main=no 4553fi 4554 4555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4556 conftest$ac_exeext conftest.$ac_ext 4557LIBS=$ac_check_lib_save_LIBS 4558fi 4559{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4560echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4561if test $ac_cv_lib_inet_main = yes; then 4562 LIBS="$LIBS -linet" 4563fi 4564 4565 if test "${ac_cv_header_net_errno_h+set}" = set; then 4566 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4567echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4568if test "${ac_cv_header_net_errno_h+set}" = set; then 4569 echo $ECHO_N "(cached) $ECHO_C" >&6 4570fi 4571{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4572echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4573else 4574 # Is the header compilable? 4575{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4576echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4577cat >conftest.$ac_ext <<_ACEOF 4578/* confdefs.h. */ 4579_ACEOF 4580cat confdefs.h >>conftest.$ac_ext 4581cat >>conftest.$ac_ext <<_ACEOF 4582/* end confdefs.h. */ 4583$ac_includes_default 4584#include <net/errno.h> 4585_ACEOF 4586rm -f conftest.$ac_objext 4587if { (ac_try="$ac_compile" 4588case "(($ac_try" in 4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4590 *) ac_try_echo=$ac_try;; 4591esac 4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4593 (eval "$ac_compile") 2>conftest.er1 4594 ac_status=$? 4595 grep -v '^ *+' conftest.er1 >conftest.err 4596 rm -f conftest.er1 4597 cat conftest.err >&5 4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4599 (exit $ac_status); } && { 4600 test -z "$ac_c_werror_flag" || 4601 test ! -s conftest.err 4602 } && test -s conftest.$ac_objext; then 4603 ac_header_compiler=yes 4604else 4605 echo "$as_me: failed program was:" >&5 4606sed 's/^/| /' conftest.$ac_ext >&5 4607 4608 ac_header_compiler=no 4609fi 4610 4611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4613echo "${ECHO_T}$ac_header_compiler" >&6; } 4614 4615# Is the header present? 4616{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4617echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4618cat >conftest.$ac_ext <<_ACEOF 4619/* confdefs.h. */ 4620_ACEOF 4621cat confdefs.h >>conftest.$ac_ext 4622cat >>conftest.$ac_ext <<_ACEOF 4623/* end confdefs.h. */ 4624#include <net/errno.h> 4625_ACEOF 4626if { (ac_try="$ac_cpp conftest.$ac_ext" 4627case "(($ac_try" in 4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4629 *) ac_try_echo=$ac_try;; 4630esac 4631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4633 ac_status=$? 4634 grep -v '^ *+' conftest.er1 >conftest.err 4635 rm -f conftest.er1 4636 cat conftest.err >&5 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); } >/dev/null && { 4639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4640 test ! -s conftest.err 4641 }; then 4642 ac_header_preproc=yes 4643else 4644 echo "$as_me: failed program was:" >&5 4645sed 's/^/| /' conftest.$ac_ext >&5 4646 4647 ac_header_preproc=no 4648fi 4649 4650rm -f conftest.err conftest.$ac_ext 4651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4652echo "${ECHO_T}$ac_header_preproc" >&6; } 4653 4654# So? What about this header? 4655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4656 yes:no: ) 4657 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4658echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4659 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4660echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4661 ac_header_preproc=yes 4662 ;; 4663 no:yes:* ) 4664 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4665echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4666 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4667echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4668 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4669echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4670 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4671echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4672 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4673echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4674 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4675echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4676 4677 ;; 4678esac 4679{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4680echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4681if test "${ac_cv_header_net_errno_h+set}" = set; then 4682 echo $ECHO_N "(cached) $ECHO_C" >&6 4683else 4684 ac_cv_header_net_errno_h=$ac_header_preproc 4685fi 4686{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4687echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4688 4689fi 4690if test $ac_cv_header_net_errno_h = yes; then 4691 4692 4693cat >>confdefs.h <<\_ACEOF 4694#define HAVE_NET_ERRNO_H 1 4695_ACEOF 4696 4697fi 4698 4699 4700 4701 #-------------------------------------------------------------------- 4702 # Check for the existence of the -lsocket and -lnsl libraries. 4703 # The order here is important, so that they end up in the right 4704 # order in the command line generated by make. Here are some 4705 # special considerations: 4706 # 1. Use "connect" and "accept" to check for -lsocket, and 4707 # "gethostbyname" to check for -lnsl. 4708 # 2. Use each function name only once: can't redo a check because 4709 # autoconf caches the results of the last check and won't redo it. 4710 # 3. Use -lnsl and -lsocket only if they supply procedures that 4711 # aren't already present in the normal libraries. This is because 4712 # IRIX 5.2 has libraries, but they aren't needed and they're 4713 # bogus: they goof up name resolution if used. 4714 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4715 # To get around this problem, check for both libraries together 4716 # if -lsocket doesn't work by itself. 4717 #-------------------------------------------------------------------- 4718 4719 tcl_checkBoth=0 4720 { echo "$as_me:$LINENO: checking for connect" >&5 4721echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4722if test "${ac_cv_func_connect+set}" = set; then 4723 echo $ECHO_N "(cached) $ECHO_C" >&6 4724else 4725 cat >conftest.$ac_ext <<_ACEOF 4726/* confdefs.h. */ 4727_ACEOF 4728cat confdefs.h >>conftest.$ac_ext 4729cat >>conftest.$ac_ext <<_ACEOF 4730/* end confdefs.h. */ 4731/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4733#define connect innocuous_connect 4734 4735/* System header to define __stub macros and hopefully few prototypes, 4736 which can conflict with char connect (); below. 4737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4738 <limits.h> exists even on freestanding compilers. */ 4739 4740#ifdef __STDC__ 4741# include <limits.h> 4742#else 4743# include <assert.h> 4744#endif 4745 4746#undef connect 4747 4748/* Override any GCC internal prototype to avoid an error. 4749 Use char because int might match the return type of a GCC 4750 builtin and then its argument prototype would still apply. */ 4751#ifdef __cplusplus 4752extern "C" 4753#endif 4754char connect (); 4755/* The GNU C library defines this for functions which it implements 4756 to always fail with ENOSYS. Some functions are actually named 4757 something starting with __ and the normal name is an alias. */ 4758#if defined __stub_connect || defined __stub___connect 4759choke me 4760#endif 4761 4762int 4763main () 4764{ 4765return connect (); 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770rm -f conftest.$ac_objext conftest$ac_exeext 4771if { (ac_try="$ac_link" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_link") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && { 4784 test -z "$ac_c_werror_flag" || 4785 test ! -s conftest.err 4786 } && test -s conftest$ac_exeext && 4787 $as_test_x conftest$ac_exeext; then 4788 ac_cv_func_connect=yes 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793 ac_cv_func_connect=no 4794fi 4795 4796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4797 conftest$ac_exeext conftest.$ac_ext 4798fi 4799{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4800echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4801if test $ac_cv_func_connect = yes; then 4802 tcl_checkSocket=0 4803else 4804 tcl_checkSocket=1 4805fi 4806 4807 if test "$tcl_checkSocket" = 1; then 4808 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4809echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4810if test "${ac_cv_func_setsockopt+set}" = set; then 4811 echo $ECHO_N "(cached) $ECHO_C" >&6 4812else 4813 cat >conftest.$ac_ext <<_ACEOF 4814/* confdefs.h. */ 4815_ACEOF 4816cat confdefs.h >>conftest.$ac_ext 4817cat >>conftest.$ac_ext <<_ACEOF 4818/* end confdefs.h. */ 4819/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4820 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4821#define setsockopt innocuous_setsockopt 4822 4823/* System header to define __stub macros and hopefully few prototypes, 4824 which can conflict with char setsockopt (); below. 4825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4826 <limits.h> exists even on freestanding compilers. */ 4827 4828#ifdef __STDC__ 4829# include <limits.h> 4830#else 4831# include <assert.h> 4832#endif 4833 4834#undef setsockopt 4835 4836/* Override any GCC internal prototype to avoid an error. 4837 Use char because int might match the return type of a GCC 4838 builtin and then its argument prototype would still apply. */ 4839#ifdef __cplusplus 4840extern "C" 4841#endif 4842char setsockopt (); 4843/* The GNU C library defines this for functions which it implements 4844 to always fail with ENOSYS. Some functions are actually named 4845 something starting with __ and the normal name is an alias. */ 4846#if defined __stub_setsockopt || defined __stub___setsockopt 4847choke me 4848#endif 4849 4850int 4851main () 4852{ 4853return setsockopt (); 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858rm -f conftest.$ac_objext conftest$ac_exeext 4859if { (ac_try="$ac_link" 4860case "(($ac_try" in 4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4862 *) ac_try_echo=$ac_try;; 4863esac 4864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4865 (eval "$ac_link") 2>conftest.er1 4866 ac_status=$? 4867 grep -v '^ *+' conftest.er1 >conftest.err 4868 rm -f conftest.er1 4869 cat conftest.err >&5 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); } && { 4872 test -z "$ac_c_werror_flag" || 4873 test ! -s conftest.err 4874 } && test -s conftest$ac_exeext && 4875 $as_test_x conftest$ac_exeext; then 4876 ac_cv_func_setsockopt=yes 4877else 4878 echo "$as_me: failed program was:" >&5 4879sed 's/^/| /' conftest.$ac_ext >&5 4880 4881 ac_cv_func_setsockopt=no 4882fi 4883 4884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4885 conftest$ac_exeext conftest.$ac_ext 4886fi 4887{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4888echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4889if test $ac_cv_func_setsockopt = yes; then 4890 : 4891else 4892 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4893echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4894if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 ac_check_lib_save_LIBS=$LIBS 4898LIBS="-lsocket $LIBS" 4899cat >conftest.$ac_ext <<_ACEOF 4900/* confdefs.h. */ 4901_ACEOF 4902cat confdefs.h >>conftest.$ac_ext 4903cat >>conftest.$ac_ext <<_ACEOF 4904/* end confdefs.h. */ 4905 4906/* Override any GCC internal prototype to avoid an error. 4907 Use char because int might match the return type of a GCC 4908 builtin and then its argument prototype would still apply. */ 4909#ifdef __cplusplus 4910extern "C" 4911#endif 4912char setsockopt (); 4913int 4914main () 4915{ 4916return setsockopt (); 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921rm -f conftest.$ac_objext conftest$ac_exeext 4922if { (ac_try="$ac_link" 4923case "(($ac_try" in 4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4925 *) ac_try_echo=$ac_try;; 4926esac 4927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4928 (eval "$ac_link") 2>conftest.er1 4929 ac_status=$? 4930 grep -v '^ *+' conftest.er1 >conftest.err 4931 rm -f conftest.er1 4932 cat conftest.err >&5 4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 (exit $ac_status); } && { 4935 test -z "$ac_c_werror_flag" || 4936 test ! -s conftest.err 4937 } && test -s conftest$ac_exeext && 4938 $as_test_x conftest$ac_exeext; then 4939 ac_cv_lib_socket_setsockopt=yes 4940else 4941 echo "$as_me: failed program was:" >&5 4942sed 's/^/| /' conftest.$ac_ext >&5 4943 4944 ac_cv_lib_socket_setsockopt=no 4945fi 4946 4947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4948 conftest$ac_exeext conftest.$ac_ext 4949LIBS=$ac_check_lib_save_LIBS 4950fi 4951{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4952echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4953if test $ac_cv_lib_socket_setsockopt = yes; then 4954 LIBS="$LIBS -lsocket" 4955else 4956 tcl_checkBoth=1 4957fi 4958 4959fi 4960 4961 fi 4962 if test "$tcl_checkBoth" = 1; then 4963 tk_oldLibs=$LIBS 4964 LIBS="$LIBS -lsocket -lnsl" 4965 { echo "$as_me:$LINENO: checking for accept" >&5 4966echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4967if test "${ac_cv_func_accept+set}" = set; then 4968 echo $ECHO_N "(cached) $ECHO_C" >&6 4969else 4970 cat >conftest.$ac_ext <<_ACEOF 4971/* confdefs.h. */ 4972_ACEOF 4973cat confdefs.h >>conftest.$ac_ext 4974cat >>conftest.$ac_ext <<_ACEOF 4975/* end confdefs.h. */ 4976/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4977 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4978#define accept innocuous_accept 4979 4980/* System header to define __stub macros and hopefully few prototypes, 4981 which can conflict with char accept (); below. 4982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4983 <limits.h> exists even on freestanding compilers. */ 4984 4985#ifdef __STDC__ 4986# include <limits.h> 4987#else 4988# include <assert.h> 4989#endif 4990 4991#undef accept 4992 4993/* Override any GCC internal prototype to avoid an error. 4994 Use char because int might match the return type of a GCC 4995 builtin and then its argument prototype would still apply. */ 4996#ifdef __cplusplus 4997extern "C" 4998#endif 4999char accept (); 5000/* The GNU C library defines this for functions which it implements 5001 to always fail with ENOSYS. Some functions are actually named 5002 something starting with __ and the normal name is an alias. */ 5003#if defined __stub_accept || defined __stub___accept 5004choke me 5005#endif 5006 5007int 5008main () 5009{ 5010return accept (); 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015rm -f conftest.$ac_objext conftest$ac_exeext 5016if { (ac_try="$ac_link" 5017case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5022 (eval "$ac_link") 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && { 5029 test -z "$ac_c_werror_flag" || 5030 test ! -s conftest.err 5031 } && test -s conftest$ac_exeext && 5032 $as_test_x conftest$ac_exeext; then 5033 ac_cv_func_accept=yes 5034else 5035 echo "$as_me: failed program was:" >&5 5036sed 's/^/| /' conftest.$ac_ext >&5 5037 5038 ac_cv_func_accept=no 5039fi 5040 5041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5042 conftest$ac_exeext conftest.$ac_ext 5043fi 5044{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5045echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5046if test $ac_cv_func_accept = yes; then 5047 tcl_checkNsl=0 5048else 5049 LIBS=$tk_oldLibs 5050fi 5051 5052 fi 5053 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5054echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5055if test "${ac_cv_func_gethostbyname+set}" = set; then 5056 echo $ECHO_N "(cached) $ECHO_C" >&6 5057else 5058 cat >conftest.$ac_ext <<_ACEOF 5059/* confdefs.h. */ 5060_ACEOF 5061cat confdefs.h >>conftest.$ac_ext 5062cat >>conftest.$ac_ext <<_ACEOF 5063/* end confdefs.h. */ 5064/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5065 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5066#define gethostbyname innocuous_gethostbyname 5067 5068/* System header to define __stub macros and hopefully few prototypes, 5069 which can conflict with char gethostbyname (); below. 5070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5071 <limits.h> exists even on freestanding compilers. */ 5072 5073#ifdef __STDC__ 5074# include <limits.h> 5075#else 5076# include <assert.h> 5077#endif 5078 5079#undef gethostbyname 5080 5081/* Override any GCC internal prototype to avoid an error. 5082 Use char because int might match the return type of a GCC 5083 builtin and then its argument prototype would still apply. */ 5084#ifdef __cplusplus 5085extern "C" 5086#endif 5087char gethostbyname (); 5088/* The GNU C library defines this for functions which it implements 5089 to always fail with ENOSYS. Some functions are actually named 5090 something starting with __ and the normal name is an alias. */ 5091#if defined __stub_gethostbyname || defined __stub___gethostbyname 5092choke me 5093#endif 5094 5095int 5096main () 5097{ 5098return gethostbyname (); 5099 ; 5100 return 0; 5101} 5102_ACEOF 5103rm -f conftest.$ac_objext conftest$ac_exeext 5104if { (ac_try="$ac_link" 5105case "(($ac_try" in 5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5107 *) ac_try_echo=$ac_try;; 5108esac 5109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5110 (eval "$ac_link") 2>conftest.er1 5111 ac_status=$? 5112 grep -v '^ *+' conftest.er1 >conftest.err 5113 rm -f conftest.er1 5114 cat conftest.err >&5 5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5116 (exit $ac_status); } && { 5117 test -z "$ac_c_werror_flag" || 5118 test ! -s conftest.err 5119 } && test -s conftest$ac_exeext && 5120 $as_test_x conftest$ac_exeext; then 5121 ac_cv_func_gethostbyname=yes 5122else 5123 echo "$as_me: failed program was:" >&5 5124sed 's/^/| /' conftest.$ac_ext >&5 5125 5126 ac_cv_func_gethostbyname=no 5127fi 5128 5129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5130 conftest$ac_exeext conftest.$ac_ext 5131fi 5132{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5133echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5134if test $ac_cv_func_gethostbyname = yes; then 5135 : 5136else 5137 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5138echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5139if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5140 echo $ECHO_N "(cached) $ECHO_C" >&6 5141else 5142 ac_check_lib_save_LIBS=$LIBS 5143LIBS="-lnsl $LIBS" 5144cat >conftest.$ac_ext <<_ACEOF 5145/* confdefs.h. */ 5146_ACEOF 5147cat confdefs.h >>conftest.$ac_ext 5148cat >>conftest.$ac_ext <<_ACEOF 5149/* end confdefs.h. */ 5150 5151/* Override any GCC internal prototype to avoid an error. 5152 Use char because int might match the return type of a GCC 5153 builtin and then its argument prototype would still apply. */ 5154#ifdef __cplusplus 5155extern "C" 5156#endif 5157char gethostbyname (); 5158int 5159main () 5160{ 5161return gethostbyname (); 5162 ; 5163 return 0; 5164} 5165_ACEOF 5166rm -f conftest.$ac_objext conftest$ac_exeext 5167if { (ac_try="$ac_link" 5168case "(($ac_try" in 5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5170 *) ac_try_echo=$ac_try;; 5171esac 5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5173 (eval "$ac_link") 2>conftest.er1 5174 ac_status=$? 5175 grep -v '^ *+' conftest.er1 >conftest.err 5176 rm -f conftest.er1 5177 cat conftest.err >&5 5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5179 (exit $ac_status); } && { 5180 test -z "$ac_c_werror_flag" || 5181 test ! -s conftest.err 5182 } && test -s conftest$ac_exeext && 5183 $as_test_x conftest$ac_exeext; then 5184 ac_cv_lib_nsl_gethostbyname=yes 5185else 5186 echo "$as_me: failed program was:" >&5 5187sed 's/^/| /' conftest.$ac_ext >&5 5188 5189 ac_cv_lib_nsl_gethostbyname=no 5190fi 5191 5192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5193 conftest$ac_exeext conftest.$ac_ext 5194LIBS=$ac_check_lib_save_LIBS 5195fi 5196{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5197echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5198if test $ac_cv_lib_nsl_gethostbyname = yes; then 5199 LIBS="$LIBS -lnsl" 5200fi 5201 5202fi 5203 5204 5205 # TEA specific: Don't perform the eval of the libraries here because 5206 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5207 5208 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5209 5210 5211 5212 5213 { echo "$as_me:$LINENO: checking dirent.h" >&5 5214echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5215if test "${tcl_cv_dirent_h+set}" = set; then 5216 echo $ECHO_N "(cached) $ECHO_C" >&6 5217else 5218 5219 cat >conftest.$ac_ext <<_ACEOF 5220/* confdefs.h. */ 5221_ACEOF 5222cat confdefs.h >>conftest.$ac_ext 5223cat >>conftest.$ac_ext <<_ACEOF 5224/* end confdefs.h. */ 5225#include <sys/types.h> 5226#include <dirent.h> 5227int 5228main () 5229{ 5230 5231#ifndef _POSIX_SOURCE 5232# ifdef __Lynx__ 5233 /* 5234 * Generate compilation error to make the test fail: Lynx headers 5235 * are only valid if really in the POSIX environment. 5236 */ 5237 5238 missing_procedure(); 5239# endif 5240#endif 5241DIR *d; 5242struct dirent *entryPtr; 5243char *p; 5244d = opendir("foobar"); 5245entryPtr = readdir(d); 5246p = entryPtr->d_name; 5247closedir(d); 5248 5249 ; 5250 return 0; 5251} 5252_ACEOF 5253rm -f conftest.$ac_objext conftest$ac_exeext 5254if { (ac_try="$ac_link" 5255case "(($ac_try" in 5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5257 *) ac_try_echo=$ac_try;; 5258esac 5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5260 (eval "$ac_link") 2>conftest.er1 5261 ac_status=$? 5262 grep -v '^ *+' conftest.er1 >conftest.err 5263 rm -f conftest.er1 5264 cat conftest.err >&5 5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 (exit $ac_status); } && { 5267 test -z "$ac_c_werror_flag" || 5268 test ! -s conftest.err 5269 } && test -s conftest$ac_exeext && 5270 $as_test_x conftest$ac_exeext; then 5271 tcl_cv_dirent_h=yes 5272else 5273 echo "$as_me: failed program was:" >&5 5274sed 's/^/| /' conftest.$ac_ext >&5 5275 5276 tcl_cv_dirent_h=no 5277fi 5278 5279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5280 conftest$ac_exeext conftest.$ac_ext 5281fi 5282{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5283echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5284 5285 if test $tcl_cv_dirent_h = no; then 5286 5287cat >>confdefs.h <<\_ACEOF 5288#define NO_DIRENT_H 1 5289_ACEOF 5290 5291 fi 5292 5293 # TEA specific: 5294 if test "${ac_cv_header_errno_h+set}" = set; then 5295 { echo "$as_me:$LINENO: checking for errno.h" >&5 5296echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5297if test "${ac_cv_header_errno_h+set}" = set; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299fi 5300{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5301echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5302else 5303 # Is the header compilable? 5304{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5305echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5306cat >conftest.$ac_ext <<_ACEOF 5307/* confdefs.h. */ 5308_ACEOF 5309cat confdefs.h >>conftest.$ac_ext 5310cat >>conftest.$ac_ext <<_ACEOF 5311/* end confdefs.h. */ 5312$ac_includes_default 5313#include <errno.h> 5314_ACEOF 5315rm -f conftest.$ac_objext 5316if { (ac_try="$ac_compile" 5317case "(($ac_try" in 5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5319 *) ac_try_echo=$ac_try;; 5320esac 5321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5322 (eval "$ac_compile") 2>conftest.er1 5323 ac_status=$? 5324 grep -v '^ *+' conftest.er1 >conftest.err 5325 rm -f conftest.er1 5326 cat conftest.err >&5 5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5328 (exit $ac_status); } && { 5329 test -z "$ac_c_werror_flag" || 5330 test ! -s conftest.err 5331 } && test -s conftest.$ac_objext; then 5332 ac_header_compiler=yes 5333else 5334 echo "$as_me: failed program was:" >&5 5335sed 's/^/| /' conftest.$ac_ext >&5 5336 5337 ac_header_compiler=no 5338fi 5339 5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5341{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5342echo "${ECHO_T}$ac_header_compiler" >&6; } 5343 5344# Is the header present? 5345{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5346echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5347cat >conftest.$ac_ext <<_ACEOF 5348/* confdefs.h. */ 5349_ACEOF 5350cat confdefs.h >>conftest.$ac_ext 5351cat >>conftest.$ac_ext <<_ACEOF 5352/* end confdefs.h. */ 5353#include <errno.h> 5354_ACEOF 5355if { (ac_try="$ac_cpp conftest.$ac_ext" 5356case "(($ac_try" in 5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5358 *) ac_try_echo=$ac_try;; 5359esac 5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5362 ac_status=$? 5363 grep -v '^ *+' conftest.er1 >conftest.err 5364 rm -f conftest.er1 5365 cat conftest.err >&5 5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5367 (exit $ac_status); } >/dev/null && { 5368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5369 test ! -s conftest.err 5370 }; then 5371 ac_header_preproc=yes 5372else 5373 echo "$as_me: failed program was:" >&5 5374sed 's/^/| /' conftest.$ac_ext >&5 5375 5376 ac_header_preproc=no 5377fi 5378 5379rm -f conftest.err conftest.$ac_ext 5380{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5381echo "${ECHO_T}$ac_header_preproc" >&6; } 5382 5383# So? What about this header? 5384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5385 yes:no: ) 5386 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5387echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5388 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5389echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5390 ac_header_preproc=yes 5391 ;; 5392 no:yes:* ) 5393 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5394echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5395 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5396echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5397 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5398echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5399 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5400echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5401 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5402echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5403 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5404echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5405 5406 ;; 5407esac 5408{ echo "$as_me:$LINENO: checking for errno.h" >&5 5409echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5410if test "${ac_cv_header_errno_h+set}" = set; then 5411 echo $ECHO_N "(cached) $ECHO_C" >&6 5412else 5413 ac_cv_header_errno_h=$ac_header_preproc 5414fi 5415{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5416echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5417 5418fi 5419if test $ac_cv_header_errno_h = yes; then 5420 : 5421else 5422 5423cat >>confdefs.h <<\_ACEOF 5424#define NO_ERRNO_H 1 5425_ACEOF 5426 5427fi 5428 5429 5430 if test "${ac_cv_header_float_h+set}" = set; then 5431 { echo "$as_me:$LINENO: checking for float.h" >&5 5432echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5433if test "${ac_cv_header_float_h+set}" = set; then 5434 echo $ECHO_N "(cached) $ECHO_C" >&6 5435fi 5436{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5437echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5438else 5439 # Is the header compilable? 5440{ echo "$as_me:$LINENO: checking float.h usability" >&5 5441echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5442cat >conftest.$ac_ext <<_ACEOF 5443/* confdefs.h. */ 5444_ACEOF 5445cat confdefs.h >>conftest.$ac_ext 5446cat >>conftest.$ac_ext <<_ACEOF 5447/* end confdefs.h. */ 5448$ac_includes_default 5449#include <float.h> 5450_ACEOF 5451rm -f conftest.$ac_objext 5452if { (ac_try="$ac_compile" 5453case "(($ac_try" in 5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5455 *) ac_try_echo=$ac_try;; 5456esac 5457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5458 (eval "$ac_compile") 2>conftest.er1 5459 ac_status=$? 5460 grep -v '^ *+' conftest.er1 >conftest.err 5461 rm -f conftest.er1 5462 cat conftest.err >&5 5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); } && { 5465 test -z "$ac_c_werror_flag" || 5466 test ! -s conftest.err 5467 } && test -s conftest.$ac_objext; then 5468 ac_header_compiler=yes 5469else 5470 echo "$as_me: failed program was:" >&5 5471sed 's/^/| /' conftest.$ac_ext >&5 5472 5473 ac_header_compiler=no 5474fi 5475 5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5477{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5478echo "${ECHO_T}$ac_header_compiler" >&6; } 5479 5480# Is the header present? 5481{ echo "$as_me:$LINENO: checking float.h presence" >&5 5482echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5483cat >conftest.$ac_ext <<_ACEOF 5484/* confdefs.h. */ 5485_ACEOF 5486cat confdefs.h >>conftest.$ac_ext 5487cat >>conftest.$ac_ext <<_ACEOF 5488/* end confdefs.h. */ 5489#include <float.h> 5490_ACEOF 5491if { (ac_try="$ac_cpp conftest.$ac_ext" 5492case "(($ac_try" in 5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5494 *) ac_try_echo=$ac_try;; 5495esac 5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5498 ac_status=$? 5499 grep -v '^ *+' conftest.er1 >conftest.err 5500 rm -f conftest.er1 5501 cat conftest.err >&5 5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5503 (exit $ac_status); } >/dev/null && { 5504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5505 test ! -s conftest.err 5506 }; then 5507 ac_header_preproc=yes 5508else 5509 echo "$as_me: failed program was:" >&5 5510sed 's/^/| /' conftest.$ac_ext >&5 5511 5512 ac_header_preproc=no 5513fi 5514 5515rm -f conftest.err conftest.$ac_ext 5516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5517echo "${ECHO_T}$ac_header_preproc" >&6; } 5518 5519# So? What about this header? 5520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5521 yes:no: ) 5522 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5523echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5524 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5525echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5526 ac_header_preproc=yes 5527 ;; 5528 no:yes:* ) 5529 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5530echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5531 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5532echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5533 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5534echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5535 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5536echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5537 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5538echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5539 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5540echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5541 5542 ;; 5543esac 5544{ echo "$as_me:$LINENO: checking for float.h" >&5 5545echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5546if test "${ac_cv_header_float_h+set}" = set; then 5547 echo $ECHO_N "(cached) $ECHO_C" >&6 5548else 5549 ac_cv_header_float_h=$ac_header_preproc 5550fi 5551{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5552echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5553 5554fi 5555if test $ac_cv_header_float_h = yes; then 5556 : 5557else 5558 5559cat >>confdefs.h <<\_ACEOF 5560#define NO_FLOAT_H 1 5561_ACEOF 5562 5563fi 5564 5565 5566 if test "${ac_cv_header_values_h+set}" = set; then 5567 { echo "$as_me:$LINENO: checking for values.h" >&5 5568echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5569if test "${ac_cv_header_values_h+set}" = set; then 5570 echo $ECHO_N "(cached) $ECHO_C" >&6 5571fi 5572{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5573echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5574else 5575 # Is the header compilable? 5576{ echo "$as_me:$LINENO: checking values.h usability" >&5 5577echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5578cat >conftest.$ac_ext <<_ACEOF 5579/* confdefs.h. */ 5580_ACEOF 5581cat confdefs.h >>conftest.$ac_ext 5582cat >>conftest.$ac_ext <<_ACEOF 5583/* end confdefs.h. */ 5584$ac_includes_default 5585#include <values.h> 5586_ACEOF 5587rm -f conftest.$ac_objext 5588if { (ac_try="$ac_compile" 5589case "(($ac_try" in 5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5591 *) ac_try_echo=$ac_try;; 5592esac 5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5594 (eval "$ac_compile") 2>conftest.er1 5595 ac_status=$? 5596 grep -v '^ *+' conftest.er1 >conftest.err 5597 rm -f conftest.er1 5598 cat conftest.err >&5 5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5600 (exit $ac_status); } && { 5601 test -z "$ac_c_werror_flag" || 5602 test ! -s conftest.err 5603 } && test -s conftest.$ac_objext; then 5604 ac_header_compiler=yes 5605else 5606 echo "$as_me: failed program was:" >&5 5607sed 's/^/| /' conftest.$ac_ext >&5 5608 5609 ac_header_compiler=no 5610fi 5611 5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5613{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5614echo "${ECHO_T}$ac_header_compiler" >&6; } 5615 5616# Is the header present? 5617{ echo "$as_me:$LINENO: checking values.h presence" >&5 5618echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5619cat >conftest.$ac_ext <<_ACEOF 5620/* confdefs.h. */ 5621_ACEOF 5622cat confdefs.h >>conftest.$ac_ext 5623cat >>conftest.$ac_ext <<_ACEOF 5624/* end confdefs.h. */ 5625#include <values.h> 5626_ACEOF 5627if { (ac_try="$ac_cpp conftest.$ac_ext" 5628case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5634 ac_status=$? 5635 grep -v '^ *+' conftest.er1 >conftest.err 5636 rm -f conftest.er1 5637 cat conftest.err >&5 5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5639 (exit $ac_status); } >/dev/null && { 5640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5641 test ! -s conftest.err 5642 }; then 5643 ac_header_preproc=yes 5644else 5645 echo "$as_me: failed program was:" >&5 5646sed 's/^/| /' conftest.$ac_ext >&5 5647 5648 ac_header_preproc=no 5649fi 5650 5651rm -f conftest.err conftest.$ac_ext 5652{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5653echo "${ECHO_T}$ac_header_preproc" >&6; } 5654 5655# So? What about this header? 5656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5657 yes:no: ) 5658 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5659echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5660 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5661echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5662 ac_header_preproc=yes 5663 ;; 5664 no:yes:* ) 5665 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5666echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5667 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5668echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5669 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5670echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5671 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5672echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5673 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5674echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5675 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5676echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5677 5678 ;; 5679esac 5680{ echo "$as_me:$LINENO: checking for values.h" >&5 5681echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5682if test "${ac_cv_header_values_h+set}" = set; then 5683 echo $ECHO_N "(cached) $ECHO_C" >&6 5684else 5685 ac_cv_header_values_h=$ac_header_preproc 5686fi 5687{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5688echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5689 5690fi 5691if test $ac_cv_header_values_h = yes; then 5692 : 5693else 5694 5695cat >>confdefs.h <<\_ACEOF 5696#define NO_VALUES_H 1 5697_ACEOF 5698 5699fi 5700 5701 5702 if test "${ac_cv_header_limits_h+set}" = set; then 5703 { echo "$as_me:$LINENO: checking for limits.h" >&5 5704echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5705if test "${ac_cv_header_limits_h+set}" = set; then 5706 echo $ECHO_N "(cached) $ECHO_C" >&6 5707fi 5708{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5709echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5710else 5711 # Is the header compilable? 5712{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5713echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5714cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720$ac_includes_default 5721#include <limits.h> 5722_ACEOF 5723rm -f conftest.$ac_objext 5724if { (ac_try="$ac_compile" 5725case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_compile") 2>conftest.er1 5731 ac_status=$? 5732 grep -v '^ *+' conftest.er1 >conftest.err 5733 rm -f conftest.er1 5734 cat conftest.err >&5 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } && { 5737 test -z "$ac_c_werror_flag" || 5738 test ! -s conftest.err 5739 } && test -s conftest.$ac_objext; then 5740 ac_header_compiler=yes 5741else 5742 echo "$as_me: failed program was:" >&5 5743sed 's/^/| /' conftest.$ac_ext >&5 5744 5745 ac_header_compiler=no 5746fi 5747 5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5750echo "${ECHO_T}$ac_header_compiler" >&6; } 5751 5752# Is the header present? 5753{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5754echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5755cat >conftest.$ac_ext <<_ACEOF 5756/* confdefs.h. */ 5757_ACEOF 5758cat confdefs.h >>conftest.$ac_ext 5759cat >>conftest.$ac_ext <<_ACEOF 5760/* end confdefs.h. */ 5761#include <limits.h> 5762_ACEOF 5763if { (ac_try="$ac_cpp conftest.$ac_ext" 5764case "(($ac_try" in 5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5766 *) ac_try_echo=$ac_try;; 5767esac 5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5770 ac_status=$? 5771 grep -v '^ *+' conftest.er1 >conftest.err 5772 rm -f conftest.er1 5773 cat conftest.err >&5 5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5775 (exit $ac_status); } >/dev/null && { 5776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5777 test ! -s conftest.err 5778 }; then 5779 ac_header_preproc=yes 5780else 5781 echo "$as_me: failed program was:" >&5 5782sed 's/^/| /' conftest.$ac_ext >&5 5783 5784 ac_header_preproc=no 5785fi 5786 5787rm -f conftest.err conftest.$ac_ext 5788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5789echo "${ECHO_T}$ac_header_preproc" >&6; } 5790 5791# So? What about this header? 5792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5793 yes:no: ) 5794 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5795echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5796 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5797echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5798 ac_header_preproc=yes 5799 ;; 5800 no:yes:* ) 5801 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5802echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5803 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5804echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5805 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5806echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5807 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5808echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5809 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5810echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5811 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5812echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5813 5814 ;; 5815esac 5816{ echo "$as_me:$LINENO: checking for limits.h" >&5 5817echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5818if test "${ac_cv_header_limits_h+set}" = set; then 5819 echo $ECHO_N "(cached) $ECHO_C" >&6 5820else 5821 ac_cv_header_limits_h=$ac_header_preproc 5822fi 5823{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5824echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5825 5826fi 5827if test $ac_cv_header_limits_h = yes; then 5828 5829cat >>confdefs.h <<\_ACEOF 5830#define HAVE_LIMITS_H 1 5831_ACEOF 5832 5833else 5834 5835cat >>confdefs.h <<\_ACEOF 5836#define NO_LIMITS_H 1 5837_ACEOF 5838 5839fi 5840 5841 5842 if test "${ac_cv_header_stdlib_h+set}" = set; then 5843 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5844echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5845if test "${ac_cv_header_stdlib_h+set}" = set; then 5846 echo $ECHO_N "(cached) $ECHO_C" >&6 5847fi 5848{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5849echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5850else 5851 # Is the header compilable? 5852{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5853echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5854cat >conftest.$ac_ext <<_ACEOF 5855/* confdefs.h. */ 5856_ACEOF 5857cat confdefs.h >>conftest.$ac_ext 5858cat >>conftest.$ac_ext <<_ACEOF 5859/* end confdefs.h. */ 5860$ac_includes_default 5861#include <stdlib.h> 5862_ACEOF 5863rm -f conftest.$ac_objext 5864if { (ac_try="$ac_compile" 5865case "(($ac_try" in 5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5867 *) ac_try_echo=$ac_try;; 5868esac 5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5870 (eval "$ac_compile") 2>conftest.er1 5871 ac_status=$? 5872 grep -v '^ *+' conftest.er1 >conftest.err 5873 rm -f conftest.er1 5874 cat conftest.err >&5 5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5876 (exit $ac_status); } && { 5877 test -z "$ac_c_werror_flag" || 5878 test ! -s conftest.err 5879 } && test -s conftest.$ac_objext; then 5880 ac_header_compiler=yes 5881else 5882 echo "$as_me: failed program was:" >&5 5883sed 's/^/| /' conftest.$ac_ext >&5 5884 5885 ac_header_compiler=no 5886fi 5887 5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5890echo "${ECHO_T}$ac_header_compiler" >&6; } 5891 5892# Is the header present? 5893{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5894echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5895cat >conftest.$ac_ext <<_ACEOF 5896/* confdefs.h. */ 5897_ACEOF 5898cat confdefs.h >>conftest.$ac_ext 5899cat >>conftest.$ac_ext <<_ACEOF 5900/* end confdefs.h. */ 5901#include <stdlib.h> 5902_ACEOF 5903if { (ac_try="$ac_cpp conftest.$ac_ext" 5904case "(($ac_try" in 5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5906 *) ac_try_echo=$ac_try;; 5907esac 5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5910 ac_status=$? 5911 grep -v '^ *+' conftest.er1 >conftest.err 5912 rm -f conftest.er1 5913 cat conftest.err >&5 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } >/dev/null && { 5916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5917 test ! -s conftest.err 5918 }; then 5919 ac_header_preproc=yes 5920else 5921 echo "$as_me: failed program was:" >&5 5922sed 's/^/| /' conftest.$ac_ext >&5 5923 5924 ac_header_preproc=no 5925fi 5926 5927rm -f conftest.err conftest.$ac_ext 5928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5929echo "${ECHO_T}$ac_header_preproc" >&6; } 5930 5931# So? What about this header? 5932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5933 yes:no: ) 5934 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5935echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5936 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5937echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5938 ac_header_preproc=yes 5939 ;; 5940 no:yes:* ) 5941 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5942echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5943 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5944echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5945 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5946echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5947 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5948echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5949 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5950echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5951 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5952echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5953 5954 ;; 5955esac 5956{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5957echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5958if test "${ac_cv_header_stdlib_h+set}" = set; then 5959 echo $ECHO_N "(cached) $ECHO_C" >&6 5960else 5961 ac_cv_header_stdlib_h=$ac_header_preproc 5962fi 5963{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5964echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5965 5966fi 5967if test $ac_cv_header_stdlib_h = yes; then 5968 tcl_ok=1 5969else 5970 tcl_ok=0 5971fi 5972 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 "strtol" >/dev/null 2>&1; then 5985 : 5986else 5987 tcl_ok=0 5988fi 5989rm -f -r conftest* 5990 5991 cat >conftest.$ac_ext <<_ACEOF 5992/* confdefs.h. */ 5993_ACEOF 5994cat confdefs.h >>conftest.$ac_ext 5995cat >>conftest.$ac_ext <<_ACEOF 5996/* end confdefs.h. */ 5997#include <stdlib.h> 5998 5999_ACEOF 6000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6001 $EGREP "strtoul" >/dev/null 2>&1; then 6002 : 6003else 6004 tcl_ok=0 6005fi 6006rm -f -r conftest* 6007 6008 cat >conftest.$ac_ext <<_ACEOF 6009/* confdefs.h. */ 6010_ACEOF 6011cat confdefs.h >>conftest.$ac_ext 6012cat >>conftest.$ac_ext <<_ACEOF 6013/* end confdefs.h. */ 6014#include <stdlib.h> 6015 6016_ACEOF 6017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6018 $EGREP "strtod" >/dev/null 2>&1; then 6019 : 6020else 6021 tcl_ok=0 6022fi 6023rm -f -r conftest* 6024 6025 if test $tcl_ok = 0; then 6026 6027cat >>confdefs.h <<\_ACEOF 6028#define NO_STDLIB_H 1 6029_ACEOF 6030 6031 fi 6032 if test "${ac_cv_header_string_h+set}" = set; then 6033 { echo "$as_me:$LINENO: checking for string.h" >&5 6034echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6035if test "${ac_cv_header_string_h+set}" = set; then 6036 echo $ECHO_N "(cached) $ECHO_C" >&6 6037fi 6038{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6039echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6040else 6041 # Is the header compilable? 6042{ echo "$as_me:$LINENO: checking string.h usability" >&5 6043echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6044cat >conftest.$ac_ext <<_ACEOF 6045/* confdefs.h. */ 6046_ACEOF 6047cat confdefs.h >>conftest.$ac_ext 6048cat >>conftest.$ac_ext <<_ACEOF 6049/* end confdefs.h. */ 6050$ac_includes_default 6051#include <string.h> 6052_ACEOF 6053rm -f conftest.$ac_objext 6054if { (ac_try="$ac_compile" 6055case "(($ac_try" in 6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6057 *) ac_try_echo=$ac_try;; 6058esac 6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6060 (eval "$ac_compile") 2>conftest.er1 6061 ac_status=$? 6062 grep -v '^ *+' conftest.er1 >conftest.err 6063 rm -f conftest.er1 6064 cat conftest.err >&5 6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6066 (exit $ac_status); } && { 6067 test -z "$ac_c_werror_flag" || 6068 test ! -s conftest.err 6069 } && test -s conftest.$ac_objext; then 6070 ac_header_compiler=yes 6071else 6072 echo "$as_me: failed program was:" >&5 6073sed 's/^/| /' conftest.$ac_ext >&5 6074 6075 ac_header_compiler=no 6076fi 6077 6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6079{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6080echo "${ECHO_T}$ac_header_compiler" >&6; } 6081 6082# Is the header present? 6083{ echo "$as_me:$LINENO: checking string.h presence" >&5 6084echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6085cat >conftest.$ac_ext <<_ACEOF 6086/* confdefs.h. */ 6087_ACEOF 6088cat confdefs.h >>conftest.$ac_ext 6089cat >>conftest.$ac_ext <<_ACEOF 6090/* end confdefs.h. */ 6091#include <string.h> 6092_ACEOF 6093if { (ac_try="$ac_cpp conftest.$ac_ext" 6094case "(($ac_try" in 6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6096 *) ac_try_echo=$ac_try;; 6097esac 6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6100 ac_status=$? 6101 grep -v '^ *+' conftest.er1 >conftest.err 6102 rm -f conftest.er1 6103 cat conftest.err >&5 6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6105 (exit $ac_status); } >/dev/null && { 6106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6107 test ! -s conftest.err 6108 }; then 6109 ac_header_preproc=yes 6110else 6111 echo "$as_me: failed program was:" >&5 6112sed 's/^/| /' conftest.$ac_ext >&5 6113 6114 ac_header_preproc=no 6115fi 6116 6117rm -f conftest.err conftest.$ac_ext 6118{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6119echo "${ECHO_T}$ac_header_preproc" >&6; } 6120 6121# So? What about this header? 6122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6123 yes:no: ) 6124 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6125echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6126 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6127echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6128 ac_header_preproc=yes 6129 ;; 6130 no:yes:* ) 6131 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6132echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6133 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6134echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6135 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6136echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6137 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6138echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6139 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6140echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6141 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6142echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6143 6144 ;; 6145esac 6146{ echo "$as_me:$LINENO: checking for string.h" >&5 6147echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6148if test "${ac_cv_header_string_h+set}" = set; then 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 6150else 6151 ac_cv_header_string_h=$ac_header_preproc 6152fi 6153{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6154echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6155 6156fi 6157if test $ac_cv_header_string_h = yes; then 6158 tcl_ok=1 6159else 6160 tcl_ok=0 6161fi 6162 6163 6164 cat >conftest.$ac_ext <<_ACEOF 6165/* confdefs.h. */ 6166_ACEOF 6167cat confdefs.h >>conftest.$ac_ext 6168cat >>conftest.$ac_ext <<_ACEOF 6169/* end confdefs.h. */ 6170#include <string.h> 6171 6172_ACEOF 6173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6174 $EGREP "strstr" >/dev/null 2>&1; then 6175 : 6176else 6177 tcl_ok=0 6178fi 6179rm -f -r conftest* 6180 6181 cat >conftest.$ac_ext <<_ACEOF 6182/* confdefs.h. */ 6183_ACEOF 6184cat confdefs.h >>conftest.$ac_ext 6185cat >>conftest.$ac_ext <<_ACEOF 6186/* end confdefs.h. */ 6187#include <string.h> 6188 6189_ACEOF 6190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6191 $EGREP "strerror" >/dev/null 2>&1; then 6192 : 6193else 6194 tcl_ok=0 6195fi 6196rm -f -r conftest* 6197 6198 6199 # See also memmove check below for a place where NO_STRING_H can be 6200 # set and why. 6201 6202 if test $tcl_ok = 0; then 6203 6204cat >>confdefs.h <<\_ACEOF 6205#define NO_STRING_H 1 6206_ACEOF 6207 6208 fi 6209 6210 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6211 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6212echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6213if test "${ac_cv_header_sys_wait_h+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215fi 6216{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6217echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6218else 6219 # Is the header compilable? 6220{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6221echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6222cat >conftest.$ac_ext <<_ACEOF 6223/* confdefs.h. */ 6224_ACEOF 6225cat confdefs.h >>conftest.$ac_ext 6226cat >>conftest.$ac_ext <<_ACEOF 6227/* end confdefs.h. */ 6228$ac_includes_default 6229#include <sys/wait.h> 6230_ACEOF 6231rm -f conftest.$ac_objext 6232if { (ac_try="$ac_compile" 6233case "(($ac_try" in 6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6235 *) ac_try_echo=$ac_try;; 6236esac 6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6238 (eval "$ac_compile") 2>conftest.er1 6239 ac_status=$? 6240 grep -v '^ *+' conftest.er1 >conftest.err 6241 rm -f conftest.er1 6242 cat conftest.err >&5 6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); } && { 6245 test -z "$ac_c_werror_flag" || 6246 test ! -s conftest.err 6247 } && test -s conftest.$ac_objext; then 6248 ac_header_compiler=yes 6249else 6250 echo "$as_me: failed program was:" >&5 6251sed 's/^/| /' conftest.$ac_ext >&5 6252 6253 ac_header_compiler=no 6254fi 6255 6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6257{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6258echo "${ECHO_T}$ac_header_compiler" >&6; } 6259 6260# Is the header present? 6261{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6262echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6263cat >conftest.$ac_ext <<_ACEOF 6264/* confdefs.h. */ 6265_ACEOF 6266cat confdefs.h >>conftest.$ac_ext 6267cat >>conftest.$ac_ext <<_ACEOF 6268/* end confdefs.h. */ 6269#include <sys/wait.h> 6270_ACEOF 6271if { (ac_try="$ac_cpp conftest.$ac_ext" 6272case "(($ac_try" in 6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6274 *) ac_try_echo=$ac_try;; 6275esac 6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6278 ac_status=$? 6279 grep -v '^ *+' conftest.er1 >conftest.err 6280 rm -f conftest.er1 6281 cat conftest.err >&5 6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6283 (exit $ac_status); } >/dev/null && { 6284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6285 test ! -s conftest.err 6286 }; then 6287 ac_header_preproc=yes 6288else 6289 echo "$as_me: failed program was:" >&5 6290sed 's/^/| /' conftest.$ac_ext >&5 6291 6292 ac_header_preproc=no 6293fi 6294 6295rm -f conftest.err conftest.$ac_ext 6296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6297echo "${ECHO_T}$ac_header_preproc" >&6; } 6298 6299# So? What about this header? 6300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6301 yes:no: ) 6302 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6303echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6304 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6305echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6306 ac_header_preproc=yes 6307 ;; 6308 no:yes:* ) 6309 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6310echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6311 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6312echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6313 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6314echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6315 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6316echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6317 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6318echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6319 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6320echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6321 6322 ;; 6323esac 6324{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6325echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6326if test "${ac_cv_header_sys_wait_h+set}" = set; then 6327 echo $ECHO_N "(cached) $ECHO_C" >&6 6328else 6329 ac_cv_header_sys_wait_h=$ac_header_preproc 6330fi 6331{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6332echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6333 6334fi 6335if test $ac_cv_header_sys_wait_h = yes; then 6336 : 6337else 6338 6339cat >>confdefs.h <<\_ACEOF 6340#define NO_SYS_WAIT_H 1 6341_ACEOF 6342 6343fi 6344 6345 6346 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6347 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6348echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6349if test "${ac_cv_header_dlfcn_h+set}" = set; then 6350 echo $ECHO_N "(cached) $ECHO_C" >&6 6351fi 6352{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6353echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6354else 6355 # Is the header compilable? 6356{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6357echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6358cat >conftest.$ac_ext <<_ACEOF 6359/* confdefs.h. */ 6360_ACEOF 6361cat confdefs.h >>conftest.$ac_ext 6362cat >>conftest.$ac_ext <<_ACEOF 6363/* end confdefs.h. */ 6364$ac_includes_default 6365#include <dlfcn.h> 6366_ACEOF 6367rm -f conftest.$ac_objext 6368if { (ac_try="$ac_compile" 6369case "(($ac_try" in 6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6371 *) ac_try_echo=$ac_try;; 6372esac 6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6374 (eval "$ac_compile") 2>conftest.er1 6375 ac_status=$? 6376 grep -v '^ *+' conftest.er1 >conftest.err 6377 rm -f conftest.er1 6378 cat conftest.err >&5 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } && { 6381 test -z "$ac_c_werror_flag" || 6382 test ! -s conftest.err 6383 } && test -s conftest.$ac_objext; then 6384 ac_header_compiler=yes 6385else 6386 echo "$as_me: failed program was:" >&5 6387sed 's/^/| /' conftest.$ac_ext >&5 6388 6389 ac_header_compiler=no 6390fi 6391 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6394echo "${ECHO_T}$ac_header_compiler" >&6; } 6395 6396# Is the header present? 6397{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6398echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6399cat >conftest.$ac_ext <<_ACEOF 6400/* confdefs.h. */ 6401_ACEOF 6402cat confdefs.h >>conftest.$ac_ext 6403cat >>conftest.$ac_ext <<_ACEOF 6404/* end confdefs.h. */ 6405#include <dlfcn.h> 6406_ACEOF 6407if { (ac_try="$ac_cpp conftest.$ac_ext" 6408case "(($ac_try" in 6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6410 *) ac_try_echo=$ac_try;; 6411esac 6412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6414 ac_status=$? 6415 grep -v '^ *+' conftest.er1 >conftest.err 6416 rm -f conftest.er1 6417 cat conftest.err >&5 6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6419 (exit $ac_status); } >/dev/null && { 6420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6421 test ! -s conftest.err 6422 }; then 6423 ac_header_preproc=yes 6424else 6425 echo "$as_me: failed program was:" >&5 6426sed 's/^/| /' conftest.$ac_ext >&5 6427 6428 ac_header_preproc=no 6429fi 6430 6431rm -f conftest.err conftest.$ac_ext 6432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6433echo "${ECHO_T}$ac_header_preproc" >&6; } 6434 6435# So? What about this header? 6436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6437 yes:no: ) 6438 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6439echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6440 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6441echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6442 ac_header_preproc=yes 6443 ;; 6444 no:yes:* ) 6445 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6446echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6447 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6448echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6449 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6450echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6451 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6452echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6453 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6454echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6455 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6456echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6457 6458 ;; 6459esac 6460{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6461echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6462if test "${ac_cv_header_dlfcn_h+set}" = set; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464else 6465 ac_cv_header_dlfcn_h=$ac_header_preproc 6466fi 6467{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6468echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6469 6470fi 6471if test $ac_cv_header_dlfcn_h = yes; then 6472 : 6473else 6474 6475cat >>confdefs.h <<\_ACEOF 6476#define NO_DLFCN_H 1 6477_ACEOF 6478 6479fi 6480 6481 6482 6483 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6484 6485for ac_header in sys/param.h 6486do 6487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6489 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6492 echo $ECHO_N "(cached) $ECHO_C" >&6 6493fi 6494ac_res=`eval echo '${'$as_ac_Header'}'` 6495 { echo "$as_me:$LINENO: result: $ac_res" >&5 6496echo "${ECHO_T}$ac_res" >&6; } 6497else 6498 # Is the header compilable? 6499{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6501cat >conftest.$ac_ext <<_ACEOF 6502/* confdefs.h. */ 6503_ACEOF 6504cat confdefs.h >>conftest.$ac_ext 6505cat >>conftest.$ac_ext <<_ACEOF 6506/* end confdefs.h. */ 6507$ac_includes_default 6508#include <$ac_header> 6509_ACEOF 6510rm -f conftest.$ac_objext 6511if { (ac_try="$ac_compile" 6512case "(($ac_try" in 6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6514 *) ac_try_echo=$ac_try;; 6515esac 6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6517 (eval "$ac_compile") 2>conftest.er1 6518 ac_status=$? 6519 grep -v '^ *+' conftest.er1 >conftest.err 6520 rm -f conftest.er1 6521 cat conftest.err >&5 6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6523 (exit $ac_status); } && { 6524 test -z "$ac_c_werror_flag" || 6525 test ! -s conftest.err 6526 } && test -s conftest.$ac_objext; then 6527 ac_header_compiler=yes 6528else 6529 echo "$as_me: failed program was:" >&5 6530sed 's/^/| /' conftest.$ac_ext >&5 6531 6532 ac_header_compiler=no 6533fi 6534 6535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6536{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6537echo "${ECHO_T}$ac_header_compiler" >&6; } 6538 6539# Is the header present? 6540{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6541echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6542cat >conftest.$ac_ext <<_ACEOF 6543/* confdefs.h. */ 6544_ACEOF 6545cat confdefs.h >>conftest.$ac_ext 6546cat >>conftest.$ac_ext <<_ACEOF 6547/* end confdefs.h. */ 6548#include <$ac_header> 6549_ACEOF 6550if { (ac_try="$ac_cpp conftest.$ac_ext" 6551case "(($ac_try" in 6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6553 *) ac_try_echo=$ac_try;; 6554esac 6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6557 ac_status=$? 6558 grep -v '^ *+' conftest.er1 >conftest.err 6559 rm -f conftest.er1 6560 cat conftest.err >&5 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); } >/dev/null && { 6563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6564 test ! -s conftest.err 6565 }; then 6566 ac_header_preproc=yes 6567else 6568 echo "$as_me: failed program was:" >&5 6569sed 's/^/| /' conftest.$ac_ext >&5 6570 6571 ac_header_preproc=no 6572fi 6573 6574rm -f conftest.err conftest.$ac_ext 6575{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6576echo "${ECHO_T}$ac_header_preproc" >&6; } 6577 6578# So? What about this header? 6579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6580 yes:no: ) 6581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6585 ac_header_preproc=yes 6586 ;; 6587 no:yes:* ) 6588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6600 6601 ;; 6602esac 6603{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6606 echo $ECHO_N "(cached) $ECHO_C" >&6 6607else 6608 eval "$as_ac_Header=\$ac_header_preproc" 6609fi 6610ac_res=`eval echo '${'$as_ac_Header'}'` 6611 { echo "$as_me:$LINENO: result: $ac_res" >&5 6612echo "${ECHO_T}$ac_res" >&6; } 6613 6614fi 6615if test `eval echo '${'$as_ac_Header'}'` = yes; then 6616 cat >>confdefs.h <<_ACEOF 6617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6618_ACEOF 6619 6620fi 6621 6622done 6623 6624 6625 # Let the user call this, because if it triggers, they will 6626 # need a compat/strtod.c that is correct. Users can also 6627 # use Tcl_GetDouble(FromObj) instead. 6628 #TEA_BUGGY_STRTOD 6629 fi 6630 6631 6632#-------------------------------------------------------------------- 6633# __CHANGE__ 6634# Choose which headers you need. Extension authors should try very 6635# hard to only rely on the Tcl public header files. Internal headers 6636# contain private data structures and are subject to change without 6637# notice. 6638# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6639#-------------------------------------------------------------------- 6640 6641#TEA_PUBLIC_TCL_HEADERS 6642 6643 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6644echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6645 6646 6647# Check whether --with-tclinclude was given. 6648if test "${with_tclinclude+set}" = set; then 6649 withval=$with_tclinclude; with_tclinclude=${withval} 6650fi 6651 6652 6653 if test "${ac_cv_c_tclh+set}" = set; then 6654 echo $ECHO_N "(cached) $ECHO_C" >&6 6655else 6656 6657 # Use the value from --with-tclinclude, if it was given 6658 6659 if test x"${with_tclinclude}" != x ; then 6660 if test -f "${with_tclinclude}/tcl.h" ; then 6661 ac_cv_c_tclh=${with_tclinclude} 6662 else 6663 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6664echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6665 { (exit 1); exit 1; }; } 6666 fi 6667 else 6668 list="" 6669 if test "`uname -s`" = "Darwin"; then 6670 # If Tcl was built as a framework, attempt to use 6671 # the framework's Headers directory 6672 case ${TCL_DEFS} in 6673 *TCL_FRAMEWORK*) 6674 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6675 ;; 6676 esac 6677 fi 6678 6679 # Look in the source dir only if Tcl is not installed, 6680 # and in that situation, look there before installed locations. 6681 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6682 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6683 fi 6684 6685 # Check order: pkg --prefix location, Tcl's --prefix location, 6686 # relative to directory of tclConfig.sh. 6687 6688 eval "temp_includedir=${includedir}" 6689 list="$list \ 6690 `ls -d ${temp_includedir} 2>/dev/null` \ 6691 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6692 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6693 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6694 list="$list /usr/local/include /usr/include" 6695 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6696 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6697 list="$list `ls -d ${d} 2>/dev/null`" 6698 fi 6699 fi 6700 for i in $list ; do 6701 if test -f "$i/tcl.h" ; then 6702 ac_cv_c_tclh=$i 6703 break 6704 fi 6705 done 6706 fi 6707 6708fi 6709 6710 6711 # Print a message based on how we determined the include path 6712 6713 if test x"${ac_cv_c_tclh}" = x ; then 6714 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6715echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6716 { (exit 1); exit 1; }; } 6717 else 6718 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6719echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6720 fi 6721 6722 # Convert to a native path and substitute into the output files. 6723 6724 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6725 6726 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6727 6728 6729 6730 6731 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 6732 6733 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6734echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 6735 6736 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6737 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6738 6739 # Check to see if tcl<Plat>Port.h isn't already with the public headers 6740 # Don't look for tclInt.h because that resides with tcl.h in the core 6741 # sources, but the <plat>Port headers are in a different directory 6742 if test "${TEA_PLATFORM}" = "windows" -a \ 6743 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 6744 result="private headers found with public headers" 6745 elif test "${TEA_PLATFORM}" = "unix" -a \ 6746 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 6747 result="private headers found with public headers" 6748 else 6749 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6750 if test "${TEA_PLATFORM}" = "windows"; then 6751 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6752 else 6753 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6754 fi 6755 # Overwrite the previous TCL_INCLUDES as this should capture both 6756 # public and private headers in the same set. 6757 # We want to ensure these are substituted so as not to require 6758 # any *_NATIVE vars be defined in the Makefile 6759 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6760 if test "`uname -s`" = "Darwin"; then 6761 # If Tcl was built as a framework, attempt to use 6762 # the framework's Headers and PrivateHeaders directories 6763 case ${TCL_DEFS} in 6764 *TCL_FRAMEWORK*) 6765 if test -d "${TCL_BIN_DIR}/Headers" -a \ 6766 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6767 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 6768 else 6769 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 6770 fi 6771 ;; 6772 esac 6773 result="Using ${TCL_INCLUDES}" 6774 else 6775 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6776 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6777echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6778 { (exit 1); exit 1; }; } 6779 fi 6780 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 6781 fi 6782 fi 6783 6784 6785 6786 6787 { echo "$as_me:$LINENO: result: ${result}" >&5 6788echo "${ECHO_T}${result}" >&6; } 6789 6790 6791#-------------------------------------------------------------------- 6792# You can add more files to clean if your extension creates any extra 6793# files by extending CLEANFILES. 6794# Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure 6795# and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var. 6796# 6797# A few miscellaneous platform-specific items: 6798# TEA_ADD_* any platform specific compiler/build info here. 6799#-------------------------------------------------------------------- 6800 6801 6802 CLEANFILES="$CLEANFILES pkgIndex.tcl" 6803 6804 6805#-------------------------------------------------------------------- 6806# Check whether --enable-threads or --disable-threads was given. 6807# So far only Tcl responds to this one. 6808# 6809# Hook for when threading is supported in Expect. The --enable-threads 6810# flag currently has no effect. 6811#------------------------------------------------------------------------ 6812 6813 6814 # Check whether --enable-threads was given. 6815if test "${enable_threads+set}" = set; then 6816 enableval=$enable_threads; tcl_ok=$enableval 6817else 6818 tcl_ok=yes 6819fi 6820 6821 6822 if test "${enable_threads+set}" = set; then 6823 enableval="$enable_threads" 6824 tcl_ok=$enableval 6825 else 6826 tcl_ok=yes 6827 fi 6828 6829 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6830 TCL_THREADS=1 6831 6832 if test "${TEA_PLATFORM}" != "windows" ; then 6833 # We are always OK on Windows, so check what this platform wants: 6834 6835 # USE_THREAD_ALLOC tells us to try the special thread-based 6836 # allocator that significantly reduces lock contention 6837 6838cat >>confdefs.h <<\_ACEOF 6839#define USE_THREAD_ALLOC 1 6840_ACEOF 6841 6842 6843cat >>confdefs.h <<\_ACEOF 6844#define _REENTRANT 1 6845_ACEOF 6846 6847 if test "`uname -s`" = "SunOS" ; then 6848 6849cat >>confdefs.h <<\_ACEOF 6850#define _POSIX_PTHREAD_SEMANTICS 1 6851_ACEOF 6852 6853 fi 6854 6855cat >>confdefs.h <<\_ACEOF 6856#define _THREAD_SAFE 1 6857_ACEOF 6858 6859 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6860echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6861if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6862 echo $ECHO_N "(cached) $ECHO_C" >&6 6863else 6864 ac_check_lib_save_LIBS=$LIBS 6865LIBS="-lpthread $LIBS" 6866cat >conftest.$ac_ext <<_ACEOF 6867/* confdefs.h. */ 6868_ACEOF 6869cat confdefs.h >>conftest.$ac_ext 6870cat >>conftest.$ac_ext <<_ACEOF 6871/* end confdefs.h. */ 6872 6873/* Override any GCC internal prototype to avoid an error. 6874 Use char because int might match the return type of a GCC 6875 builtin and then its argument prototype would still apply. */ 6876#ifdef __cplusplus 6877extern "C" 6878#endif 6879char pthread_mutex_init (); 6880int 6881main () 6882{ 6883return pthread_mutex_init (); 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888rm -f conftest.$ac_objext conftest$ac_exeext 6889if { (ac_try="$ac_link" 6890case "(($ac_try" in 6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6892 *) ac_try_echo=$ac_try;; 6893esac 6894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6895 (eval "$ac_link") 2>conftest.er1 6896 ac_status=$? 6897 grep -v '^ *+' conftest.er1 >conftest.err 6898 rm -f conftest.er1 6899 cat conftest.err >&5 6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6901 (exit $ac_status); } && { 6902 test -z "$ac_c_werror_flag" || 6903 test ! -s conftest.err 6904 } && test -s conftest$ac_exeext && 6905 $as_test_x conftest$ac_exeext; then 6906 ac_cv_lib_pthread_pthread_mutex_init=yes 6907else 6908 echo "$as_me: failed program was:" >&5 6909sed 's/^/| /' conftest.$ac_ext >&5 6910 6911 ac_cv_lib_pthread_pthread_mutex_init=no 6912fi 6913 6914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6915 conftest$ac_exeext conftest.$ac_ext 6916LIBS=$ac_check_lib_save_LIBS 6917fi 6918{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 6919echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 6920if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 6921 tcl_ok=yes 6922else 6923 tcl_ok=no 6924fi 6925 6926 if test "$tcl_ok" = "no"; then 6927 # Check a little harder for __pthread_mutex_init in the same 6928 # library, as some systems hide it there until pthread.h is 6929 # defined. We could alternatively do an AC_TRY_COMPILE with 6930 # pthread.h, but that will work with libpthread really doesn't 6931 # exist, like AIX 4.2. [Bug: 4359] 6932 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 6933echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6934if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 6935 echo $ECHO_N "(cached) $ECHO_C" >&6 6936else 6937 ac_check_lib_save_LIBS=$LIBS 6938LIBS="-lpthread $LIBS" 6939cat >conftest.$ac_ext <<_ACEOF 6940/* confdefs.h. */ 6941_ACEOF 6942cat confdefs.h >>conftest.$ac_ext 6943cat >>conftest.$ac_ext <<_ACEOF 6944/* end confdefs.h. */ 6945 6946/* Override any GCC internal prototype to avoid an error. 6947 Use char because int might match the return type of a GCC 6948 builtin and then its argument prototype would still apply. */ 6949#ifdef __cplusplus 6950extern "C" 6951#endif 6952char __pthread_mutex_init (); 6953int 6954main () 6955{ 6956return __pthread_mutex_init (); 6957 ; 6958 return 0; 6959} 6960_ACEOF 6961rm -f conftest.$ac_objext conftest$ac_exeext 6962if { (ac_try="$ac_link" 6963case "(($ac_try" in 6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6965 *) ac_try_echo=$ac_try;; 6966esac 6967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6968 (eval "$ac_link") 2>conftest.er1 6969 ac_status=$? 6970 grep -v '^ *+' conftest.er1 >conftest.err 6971 rm -f conftest.er1 6972 cat conftest.err >&5 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); } && { 6975 test -z "$ac_c_werror_flag" || 6976 test ! -s conftest.err 6977 } && test -s conftest$ac_exeext && 6978 $as_test_x conftest$ac_exeext; then 6979 ac_cv_lib_pthread___pthread_mutex_init=yes 6980else 6981 echo "$as_me: failed program was:" >&5 6982sed 's/^/| /' conftest.$ac_ext >&5 6983 6984 ac_cv_lib_pthread___pthread_mutex_init=no 6985fi 6986 6987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6988 conftest$ac_exeext conftest.$ac_ext 6989LIBS=$ac_check_lib_save_LIBS 6990fi 6991{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 6992echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 6993if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 6994 tcl_ok=yes 6995else 6996 tcl_ok=no 6997fi 6998 6999 fi 7000 7001 if test "$tcl_ok" = "yes"; then 7002 # The space is needed 7003 THREADS_LIBS=" -lpthread" 7004 else 7005 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7006echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7007if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7008 echo $ECHO_N "(cached) $ECHO_C" >&6 7009else 7010 ac_check_lib_save_LIBS=$LIBS 7011LIBS="-lpthreads $LIBS" 7012cat >conftest.$ac_ext <<_ACEOF 7013/* confdefs.h. */ 7014_ACEOF 7015cat confdefs.h >>conftest.$ac_ext 7016cat >>conftest.$ac_ext <<_ACEOF 7017/* end confdefs.h. */ 7018 7019/* Override any GCC internal prototype to avoid an error. 7020 Use char because int might match the return type of a GCC 7021 builtin and then its argument prototype would still apply. */ 7022#ifdef __cplusplus 7023extern "C" 7024#endif 7025char pthread_mutex_init (); 7026int 7027main () 7028{ 7029return pthread_mutex_init (); 7030 ; 7031 return 0; 7032} 7033_ACEOF 7034rm -f conftest.$ac_objext conftest$ac_exeext 7035if { (ac_try="$ac_link" 7036case "(($ac_try" in 7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7038 *) ac_try_echo=$ac_try;; 7039esac 7040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7041 (eval "$ac_link") 2>conftest.er1 7042 ac_status=$? 7043 grep -v '^ *+' conftest.er1 >conftest.err 7044 rm -f conftest.er1 7045 cat conftest.err >&5 7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7047 (exit $ac_status); } && { 7048 test -z "$ac_c_werror_flag" || 7049 test ! -s conftest.err 7050 } && test -s conftest$ac_exeext && 7051 $as_test_x conftest$ac_exeext; then 7052 ac_cv_lib_pthreads_pthread_mutex_init=yes 7053else 7054 echo "$as_me: failed program was:" >&5 7055sed 's/^/| /' conftest.$ac_ext >&5 7056 7057 ac_cv_lib_pthreads_pthread_mutex_init=no 7058fi 7059 7060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7061 conftest$ac_exeext conftest.$ac_ext 7062LIBS=$ac_check_lib_save_LIBS 7063fi 7064{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7065echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7066if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7067 tcl_ok=yes 7068else 7069 tcl_ok=no 7070fi 7071 7072 if test "$tcl_ok" = "yes"; then 7073 # The space is needed 7074 THREADS_LIBS=" -lpthreads" 7075 else 7076 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7077echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7078if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7079 echo $ECHO_N "(cached) $ECHO_C" >&6 7080else 7081 ac_check_lib_save_LIBS=$LIBS 7082LIBS="-lc $LIBS" 7083cat >conftest.$ac_ext <<_ACEOF 7084/* confdefs.h. */ 7085_ACEOF 7086cat confdefs.h >>conftest.$ac_ext 7087cat >>conftest.$ac_ext <<_ACEOF 7088/* end confdefs.h. */ 7089 7090/* Override any GCC internal prototype to avoid an error. 7091 Use char because int might match the return type of a GCC 7092 builtin and then its argument prototype would still apply. */ 7093#ifdef __cplusplus 7094extern "C" 7095#endif 7096char pthread_mutex_init (); 7097int 7098main () 7099{ 7100return pthread_mutex_init (); 7101 ; 7102 return 0; 7103} 7104_ACEOF 7105rm -f conftest.$ac_objext conftest$ac_exeext 7106if { (ac_try="$ac_link" 7107case "(($ac_try" in 7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7109 *) ac_try_echo=$ac_try;; 7110esac 7111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7112 (eval "$ac_link") 2>conftest.er1 7113 ac_status=$? 7114 grep -v '^ *+' conftest.er1 >conftest.err 7115 rm -f conftest.er1 7116 cat conftest.err >&5 7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7118 (exit $ac_status); } && { 7119 test -z "$ac_c_werror_flag" || 7120 test ! -s conftest.err 7121 } && test -s conftest$ac_exeext && 7122 $as_test_x conftest$ac_exeext; then 7123 ac_cv_lib_c_pthread_mutex_init=yes 7124else 7125 echo "$as_me: failed program was:" >&5 7126sed 's/^/| /' conftest.$ac_ext >&5 7127 7128 ac_cv_lib_c_pthread_mutex_init=no 7129fi 7130 7131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7132 conftest$ac_exeext conftest.$ac_ext 7133LIBS=$ac_check_lib_save_LIBS 7134fi 7135{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7136echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7137if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7138 tcl_ok=yes 7139else 7140 tcl_ok=no 7141fi 7142 7143 if test "$tcl_ok" = "no"; then 7144 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7145echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7146if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7147 echo $ECHO_N "(cached) $ECHO_C" >&6 7148else 7149 ac_check_lib_save_LIBS=$LIBS 7150LIBS="-lc_r $LIBS" 7151cat >conftest.$ac_ext <<_ACEOF 7152/* confdefs.h. */ 7153_ACEOF 7154cat confdefs.h >>conftest.$ac_ext 7155cat >>conftest.$ac_ext <<_ACEOF 7156/* end confdefs.h. */ 7157 7158/* Override any GCC internal prototype to avoid an error. 7159 Use char because int might match the return type of a GCC 7160 builtin and then its argument prototype would still apply. */ 7161#ifdef __cplusplus 7162extern "C" 7163#endif 7164char pthread_mutex_init (); 7165int 7166main () 7167{ 7168return pthread_mutex_init (); 7169 ; 7170 return 0; 7171} 7172_ACEOF 7173rm -f conftest.$ac_objext conftest$ac_exeext 7174if { (ac_try="$ac_link" 7175case "(($ac_try" in 7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7177 *) ac_try_echo=$ac_try;; 7178esac 7179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7180 (eval "$ac_link") 2>conftest.er1 7181 ac_status=$? 7182 grep -v '^ *+' conftest.er1 >conftest.err 7183 rm -f conftest.er1 7184 cat conftest.err >&5 7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7186 (exit $ac_status); } && { 7187 test -z "$ac_c_werror_flag" || 7188 test ! -s conftest.err 7189 } && test -s conftest$ac_exeext && 7190 $as_test_x conftest$ac_exeext; then 7191 ac_cv_lib_c_r_pthread_mutex_init=yes 7192else 7193 echo "$as_me: failed program was:" >&5 7194sed 's/^/| /' conftest.$ac_ext >&5 7195 7196 ac_cv_lib_c_r_pthread_mutex_init=no 7197fi 7198 7199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7200 conftest$ac_exeext conftest.$ac_ext 7201LIBS=$ac_check_lib_save_LIBS 7202fi 7203{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7204echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7205if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7206 tcl_ok=yes 7207else 7208 tcl_ok=no 7209fi 7210 7211 if test "$tcl_ok" = "yes"; then 7212 # The space is needed 7213 THREADS_LIBS=" -pthread" 7214 else 7215 TCL_THREADS=0 7216 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7217echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7218 fi 7219 fi 7220 fi 7221 fi 7222 fi 7223 else 7224 TCL_THREADS=0 7225 fi 7226 # Do checking message here to not mess up interleaved configure output 7227 { echo "$as_me:$LINENO: checking for building with threads" >&5 7228echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7229 if test "${TCL_THREADS}" = 1; then 7230 7231cat >>confdefs.h <<\_ACEOF 7232#define TCL_THREADS 1 7233_ACEOF 7234 7235 { echo "$as_me:$LINENO: result: yes (default)" >&5 7236echo "${ECHO_T}yes (default)" >&6; } 7237 else 7238 { echo "$as_me:$LINENO: result: no" >&5 7239echo "${ECHO_T}no" >&6; } 7240 fi 7241 # TCL_THREADS sanity checking. See if our request for building with 7242 # threads is the same as the way Tcl was built. If not, warn the user. 7243 case ${TCL_DEFS} in 7244 *THREADS=1*) 7245 if test "${TCL_THREADS}" = "0"; then 7246 { echo "$as_me:$LINENO: WARNING: 7247 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7248 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7249echo "$as_me: WARNING: 7250 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7251 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7252 fi 7253 ;; 7254 *) 7255 if test "${TCL_THREADS}" = "1"; then 7256 { echo "$as_me:$LINENO: WARNING: 7257 --enable-threads requested, but building against a Tcl that is NOT 7258 thread-enabled. This is an OK configuration that will also run in 7259 a thread-enabled core." >&5 7260echo "$as_me: WARNING: 7261 --enable-threads requested, but building against a Tcl that is NOT 7262 thread-enabled. This is an OK configuration that will also run in 7263 a thread-enabled core." >&2;} 7264 fi 7265 ;; 7266 esac 7267 7268 7269 7270#-------------------------------------------------------------------- 7271# The statement below defines a collection of symbols related to 7272# building as a shared library instead of a static library. 7273#-------------------------------------------------------------------- 7274 7275 7276 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7277echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7278 # Check whether --enable-shared was given. 7279if test "${enable_shared+set}" = set; then 7280 enableval=$enable_shared; tcl_ok=$enableval 7281else 7282 tcl_ok=yes 7283fi 7284 7285 7286 if test "${enable_shared+set}" = set; then 7287 enableval="$enable_shared" 7288 tcl_ok=$enableval 7289 else 7290 tcl_ok=yes 7291 fi 7292 7293 if test "$tcl_ok" = "yes" ; then 7294 { echo "$as_me:$LINENO: result: shared" >&5 7295echo "${ECHO_T}shared" >&6; } 7296 SHARED_BUILD=1 7297 else 7298 { echo "$as_me:$LINENO: result: static" >&5 7299echo "${ECHO_T}static" >&6; } 7300 SHARED_BUILD=0 7301 7302cat >>confdefs.h <<\_ACEOF 7303#define STATIC_BUILD 1 7304_ACEOF 7305 7306 fi 7307 7308 7309 7310#-------------------------------------------------------------------- 7311# This macro figures out what flags to use with the compiler/linker 7312# when building shared/static debug/optimized objects. This information 7313# can be taken from the tclConfig.sh file, but this figures it all out. 7314#-------------------------------------------------------------------- 7315 7316 7317 7318 7319 # Step 0.a: Enable 64 bit support? 7320 7321 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7322echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7323 # Check whether --enable-64bit was given. 7324if test "${enable_64bit+set}" = set; then 7325 enableval=$enable_64bit; do64bit=$enableval 7326else 7327 do64bit=no 7328fi 7329 7330 { echo "$as_me:$LINENO: result: $do64bit" >&5 7331echo "${ECHO_T}$do64bit" >&6; } 7332 7333 # Step 0.b: Enable Solaris 64 bit VIS support? 7334 7335 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7336echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7337 # Check whether --enable-64bit-vis was given. 7338if test "${enable_64bit_vis+set}" = set; then 7339 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7340else 7341 do64bitVIS=no 7342fi 7343 7344 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7345echo "${ECHO_T}$do64bitVIS" >&6; } 7346 # Force 64bit on with VIS 7347 if test "$do64bitVIS" = "yes"; then 7348 do64bit=yes 7349fi 7350 7351 7352 # Step 0.c: Check if visibility support is available. Do this here so 7353 # that platform specific alternatives can be used below if this fails. 7354 7355 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7356echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7357if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7358 echo $ECHO_N "(cached) $ECHO_C" >&6 7359else 7360 7361 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7362 cat >conftest.$ac_ext <<_ACEOF 7363/* confdefs.h. */ 7364_ACEOF 7365cat confdefs.h >>conftest.$ac_ext 7366cat >>conftest.$ac_ext <<_ACEOF 7367/* end confdefs.h. */ 7368 7369 extern __attribute__((__visibility__("hidden"))) void f(void); 7370 void f(void) {} 7371int 7372main () 7373{ 7374f(); 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379rm -f conftest.$ac_objext conftest$ac_exeext 7380if { (ac_try="$ac_link" 7381case "(($ac_try" in 7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7383 *) ac_try_echo=$ac_try;; 7384esac 7385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7386 (eval "$ac_link") 2>conftest.er1 7387 ac_status=$? 7388 grep -v '^ *+' conftest.er1 >conftest.err 7389 rm -f conftest.er1 7390 cat conftest.err >&5 7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7392 (exit $ac_status); } && { 7393 test -z "$ac_c_werror_flag" || 7394 test ! -s conftest.err 7395 } && test -s conftest$ac_exeext && 7396 $as_test_x conftest$ac_exeext; then 7397 tcl_cv_cc_visibility_hidden=yes 7398else 7399 echo "$as_me: failed program was:" >&5 7400sed 's/^/| /' conftest.$ac_ext >&5 7401 7402 tcl_cv_cc_visibility_hidden=no 7403fi 7404 7405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7406 conftest$ac_exeext conftest.$ac_ext 7407 CFLAGS=$hold_cflags 7408fi 7409{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7410echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7411 if test $tcl_cv_cc_visibility_hidden = yes; then 7412 7413 7414cat >>confdefs.h <<\_ACEOF 7415#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7416_ACEOF 7417 7418 7419fi 7420 7421 7422 # Step 0.d: Disable -rpath support? 7423 7424 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7425echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7426 # Check whether --enable-rpath was given. 7427if test "${enable_rpath+set}" = set; then 7428 enableval=$enable_rpath; doRpath=$enableval 7429else 7430 doRpath=yes 7431fi 7432 7433 { echo "$as_me:$LINENO: result: $doRpath" >&5 7434echo "${ECHO_T}$doRpath" >&6; } 7435 7436 # TEA specific: Cross-compiling options for Windows/CE builds? 7437 7438 if test "${TEA_PLATFORM}" = windows; then 7439 7440 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7441echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7442 # Check whether --enable-wince was given. 7443if test "${enable_wince+set}" = set; then 7444 enableval=$enable_wince; doWince=$enableval 7445else 7446 doWince=no 7447fi 7448 7449 { echo "$as_me:$LINENO: result: $doWince" >&5 7450echo "${ECHO_T}$doWince" >&6; } 7451 7452fi 7453 7454 7455 # Set the variable "system" to hold the name and version number 7456 # for the system. 7457 7458 7459 { echo "$as_me:$LINENO: checking system version" >&5 7460echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7461if test "${tcl_cv_sys_version+set}" = set; then 7462 echo $ECHO_N "(cached) $ECHO_C" >&6 7463else 7464 7465 # TEA specific: 7466 if test "${TEA_PLATFORM}" = "windows" ; then 7467 tcl_cv_sys_version=windows 7468 else 7469 tcl_cv_sys_version=`uname -s`-`uname -r` 7470 if test "$?" -ne 0 ; then 7471 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7472echo "$as_me: WARNING: can't find uname command" >&2;} 7473 tcl_cv_sys_version=unknown 7474 else 7475 if test "`uname -s`" = "AIX" ; then 7476 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7477 fi 7478 fi 7479 fi 7480 7481fi 7482{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7483echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7484 system=$tcl_cv_sys_version 7485 7486 7487 # Require ranlib early so we can override it in special cases below. 7488 7489 7490 7491 # Set configuration options based on system name and version. 7492 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7493 # "windows" case and removed some core-only vars. 7494 7495 do64bit_ok=no 7496 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7497 SHLIB_LD_LIBS='${LIBS}' 7498 # When ld needs options to work in 64-bit mode, put them in 7499 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7500 # is disabled by the user. [Bug 1016796] 7501 LDFLAGS_ARCH="" 7502 UNSHARED_LIB_SUFFIX="" 7503 # TEA specific: use PACKAGE_VERSION instead of VERSION 7504 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7505 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7506 TCL_LIB_VERSIONS_OK=ok 7507 CFLAGS_DEBUG=-g 7508 CFLAGS_OPTIMIZE=-O 7509 if test "$GCC" = yes; then 7510 7511 # TEA specific: 7512 CFLAGS_OPTIMIZE=-O2 7513 CFLAGS_WARNING="-Wall" 7514 7515else 7516 CFLAGS_WARNING="" 7517fi 7518 7519 # Extract the first word of "ar", so it can be a program name with args. 7520set dummy ar; ac_word=$2 7521{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7523if test "${ac_cv_prog_AR+set}" = set; then 7524 echo $ECHO_N "(cached) $ECHO_C" >&6 7525else 7526 if test -n "$AR"; then 7527 ac_cv_prog_AR="$AR" # Let the user override the test. 7528else 7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7530for as_dir in $PATH 7531do 7532 IFS=$as_save_IFS 7533 test -z "$as_dir" && as_dir=. 7534 for ac_exec_ext in '' $ac_executable_extensions; do 7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7536 ac_cv_prog_AR="ar" 7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7538 break 2 7539 fi 7540done 7541done 7542IFS=$as_save_IFS 7543 7544fi 7545fi 7546AR=$ac_cv_prog_AR 7547if test -n "$AR"; then 7548 { echo "$as_me:$LINENO: result: $AR" >&5 7549echo "${ECHO_T}$AR" >&6; } 7550else 7551 { echo "$as_me:$LINENO: result: no" >&5 7552echo "${ECHO_T}no" >&6; } 7553fi 7554 7555 7556 STLIB_LD='${AR} cr' 7557 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7558 if test "x$SHLIB_VERSION" = x; then 7559 SHLIB_VERSION="1.0" 7560fi 7561 7562 case $system in 7563 # TEA specific: 7564 windows) 7565 # This is a 2-stage check to make sure we have the 64-bit SDK 7566 # We have to know where the SDK is installed. 7567 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7568 # MACHINE is IX86 for LINK, but this is used by the manifest, 7569 # which requires x86|amd64|ia64. 7570 MACHINE="X86" 7571 if test "$do64bit" != "no" ; then 7572 if test "x${MSSDK}x" = "xx" ; then 7573 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7574 fi 7575 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7576 PATH64="" 7577 case "$do64bit" in 7578 amd64|x64|yes) 7579 MACHINE="AMD64" ; # default to AMD64 64-bit build 7580 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7581 ;; 7582 ia64) 7583 MACHINE="IA64" 7584 PATH64="${MSSDK}/Bin/Win64" 7585 ;; 7586 esac 7587 if test ! -d "${PATH64}" ; then 7588 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7589echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7590 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7591echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7592 do64bit="no" 7593 else 7594 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7595echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7596 do64bit_ok="yes" 7597 fi 7598 fi 7599 7600 if test "$doWince" != "no" ; then 7601 if test "$do64bit" != "no" ; then 7602 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7603echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7604 { (exit 1); exit 1; }; } 7605 fi 7606 if test "$GCC" = "yes" ; then 7607 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7608echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7609 { (exit 1); exit 1; }; } 7610 fi 7611 7612 # First, look for one uninstalled. 7613 # the alternative search directory is invoked by --with-celib 7614 7615 if test x"${no_celib}" = x ; then 7616 # we reset no_celib in case something fails here 7617 no_celib=true 7618 7619# Check whether --with-celib was given. 7620if test "${with_celib+set}" = set; then 7621 withval=$with_celib; with_celibconfig=${withval} 7622fi 7623 7624 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7625echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7626 if test "${ac_cv_c_celibconfig+set}" = set; then 7627 echo $ECHO_N "(cached) $ECHO_C" >&6 7628else 7629 7630 # First check to see if --with-celibconfig was specified. 7631 if test x"${with_celibconfig}" != x ; then 7632 if test -d "${with_celibconfig}/inc" ; then 7633 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7634 else 7635 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7636echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7637 { (exit 1); exit 1; }; } 7638 fi 7639 fi 7640 7641 # then check for a celib library 7642 if test x"${ac_cv_c_celibconfig}" = x ; then 7643 for i in \ 7644 ../celib-palm-3.0 \ 7645 ../celib \ 7646 ../../celib-palm-3.0 \ 7647 ../../celib \ 7648 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7649 ${srcdir}/../celib-palm-3.0 \ 7650 ${srcdir}/../celib \ 7651 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7652 ; do 7653 if test -d "$i/inc" ; then 7654 ac_cv_c_celibconfig=`(cd $i; pwd)` 7655 break 7656 fi 7657 done 7658 fi 7659 7660fi 7661 7662 if test x"${ac_cv_c_celibconfig}" = x ; then 7663 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7664echo "$as_me: error: Cannot find celib support library directory" >&2;} 7665 { (exit 1); exit 1; }; } 7666 else 7667 no_celib= 7668 CELIB_DIR=${ac_cv_c_celibconfig} 7669 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7670 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7671echo "${ECHO_T}found $CELIB_DIR" >&6; } 7672 fi 7673 fi 7674 7675 # Set defaults for common evc4/PPC2003 setup 7676 # Currently Tcl requires 300+, possibly 420+ for sockets 7677 CEVERSION=420; # could be 211 300 301 400 420 ... 7678 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7679 ARCH=ARM; # could be ARM MIPS X86EM ... 7680 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7681 if test "$doWince" != "yes"; then 7682 # If !yes then the user specified something 7683 # Reset ARCH to allow user to skip specifying it 7684 ARCH= 7685 eval `echo $doWince | awk -F, '{ \ 7686 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7687 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7688 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7689 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7690 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7691 }'` 7692 if test "x${ARCH}" = "x" ; then 7693 ARCH=$TARGETCPU; 7694 fi 7695 fi 7696 OSVERSION=WCE$CEVERSION; 7697 if test "x${WCEROOT}" = "x" ; then 7698 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7699 if test ! -d "${WCEROOT}" ; then 7700 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7701 fi 7702 fi 7703 if test "x${SDKROOT}" = "x" ; then 7704 SDKROOT="C:/Program Files/Windows CE Tools" 7705 if test ! -d "${SDKROOT}" ; then 7706 SDKROOT="C:/Windows CE Tools" 7707 fi 7708 fi 7709 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7710 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7711 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7712 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7713 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7714echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7715 { (exit 1); exit 1; }; } 7716 doWince="no" 7717 else 7718 # We could PATH_NOSPACE these, but that's not important, 7719 # as long as we quote them when used. 7720 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7721 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7722 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7723 fi 7724 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7725 fi 7726 fi 7727 7728 if test "$GCC" != "yes" ; then 7729 if test "${SHARED_BUILD}" = "0" ; then 7730 runtime=-MT 7731 else 7732 runtime=-MD 7733 fi 7734 7735 if test "$do64bit" != "no" ; then 7736 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7737 CC="\"${PATH64}/cl.exe\"" 7738 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7739 RC="\"${MSSDK}/bin/rc.exe\"" 7740 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7741 LINKBIN="\"${PATH64}/link.exe\"" 7742 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7743 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7744 # Avoid 'unresolved external symbol __security_cookie' 7745 # errors, c.f. http://support.microsoft.com/?id=894573 7746 7747 vars="bufferoverflowU.lib" 7748 for i in $vars; do 7749 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7750 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7751 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7752 fi 7753 PKG_LIBS="$PKG_LIBS $i" 7754 done 7755 7756 7757 elif test "$doWince" != "no" ; then 7758 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7759 if test "${TARGETCPU}" = "X86"; then 7760 CC="\"${CEBINROOT}/cl.exe\"" 7761 else 7762 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7763 fi 7764 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7765 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7766 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7767 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7768 if test "${SHARED_BUILD}" = "1" ; then 7769 # Static CE builds require static celib as well 7770 defs="${defs} _DLL" 7771 fi 7772 for i in $defs ; do 7773 7774cat >>confdefs.h <<_ACEOF 7775#define $i 1 7776_ACEOF 7777 7778 done 7779 7780cat >>confdefs.h <<_ACEOF 7781#define _WIN32_WCE $CEVERSION 7782_ACEOF 7783 7784 7785cat >>confdefs.h <<_ACEOF 7786#define UNDER_CE $CEVERSION 7787_ACEOF 7788 7789 CFLAGS_DEBUG="-nologo -Zi -Od" 7790 CFLAGS_OPTIMIZE="-nologo -Ox" 7791 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7792 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7793 LINKBIN="\"${CEBINROOT}/link.exe\"" 7794 7795 else 7796 RC="rc" 7797 lflags="-nologo" 7798 LINKBIN="link" 7799 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7800 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7801 fi 7802 fi 7803 7804 if test "$GCC" = "yes"; then 7805 # mingw gcc mode 7806 RC="windres" 7807 CFLAGS_DEBUG="-g" 7808 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7809 SHLIB_LD="$CC -shared" 7810 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7811 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7812 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7813 else 7814 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7815 # link -lib only works when -lib is the first arg 7816 STLIB_LD="${LINKBIN} -lib ${lflags}" 7817 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7818 PATHTYPE=-w 7819 # For information on what debugtype is most useful, see: 7820 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7821 # and also 7822 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7823 # This essentially turns it all on. 7824 LDFLAGS_DEBUG="-debug -debugtype:cv" 7825 LDFLAGS_OPTIMIZE="-release" 7826 if test "$doWince" != "no" ; then 7827 LDFLAGS_CONSOLE="-link ${lflags}" 7828 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7829 else 7830 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7831 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7832 fi 7833 fi 7834 7835 SHLIB_SUFFIX=".dll" 7836 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7837 7838 TCL_LIB_VERSIONS_OK=nodots 7839 ;; 7840 AIX-*) 7841 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7842 7843 # AIX requires the _r compiler when gcc isn't being used 7844 case "${CC}" in 7845 *_r|*_r\ *) 7846 # ok ... 7847 ;; 7848 *) 7849 # Make sure only first arg gets _r 7850 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7851 ;; 7852 esac 7853 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7854echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7855 7856fi 7857 7858 LIBS="$LIBS -lc" 7859 SHLIB_CFLAGS="" 7860 SHLIB_SUFFIX=".so" 7861 7862 LD_LIBRARY_PATH_VAR="LIBPATH" 7863 7864 # Check to enable 64-bit flags for compiler/linker 7865 if test "$do64bit" = yes; then 7866 7867 if test "$GCC" = yes; then 7868 7869 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7870echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7871 7872else 7873 7874 do64bit_ok=yes 7875 CFLAGS="$CFLAGS -q64" 7876 LDFLAGS_ARCH="-q64" 7877 RANLIB="${RANLIB} -X64" 7878 AR="${AR} -X64" 7879 SHLIB_LD_FLAGS="-b64" 7880 7881fi 7882 7883 7884fi 7885 7886 7887 if test "`uname -m`" = ia64; then 7888 7889 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7890 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7891 if test "$GCC" = yes; then 7892 7893 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7894 7895else 7896 7897 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7898 7899fi 7900 7901 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7902 7903else 7904 7905 if test "$GCC" = yes; then 7906 7907 SHLIB_LD='${CC} -shared -Wl,-bexpall' 7908 7909else 7910 7911 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 7912 LDFLAGS="$LDFLAGS -brtl" 7913 7914fi 7915 7916 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 7917 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7918 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7919 7920fi 7921 7922 ;; 7923 BeOS*) 7924 SHLIB_CFLAGS="-fPIC" 7925 SHLIB_LD='${CC} -nostart' 7926 SHLIB_SUFFIX=".so" 7927 7928 #----------------------------------------------------------- 7929 # Check for inet_ntoa in -lbind, for BeOS (which also needs 7930 # -lsocket, even if the network functions are in -lnet which 7931 # is always linked to, for compatibility. 7932 #----------------------------------------------------------- 7933 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 7934echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 7935if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 7936 echo $ECHO_N "(cached) $ECHO_C" >&6 7937else 7938 ac_check_lib_save_LIBS=$LIBS 7939LIBS="-lbind $LIBS" 7940cat >conftest.$ac_ext <<_ACEOF 7941/* confdefs.h. */ 7942_ACEOF 7943cat confdefs.h >>conftest.$ac_ext 7944cat >>conftest.$ac_ext <<_ACEOF 7945/* end confdefs.h. */ 7946 7947/* Override any GCC internal prototype to avoid an error. 7948 Use char because int might match the return type of a GCC 7949 builtin and then its argument prototype would still apply. */ 7950#ifdef __cplusplus 7951extern "C" 7952#endif 7953char inet_ntoa (); 7954int 7955main () 7956{ 7957return inet_ntoa (); 7958 ; 7959 return 0; 7960} 7961_ACEOF 7962rm -f conftest.$ac_objext conftest$ac_exeext 7963if { (ac_try="$ac_link" 7964case "(($ac_try" in 7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7966 *) ac_try_echo=$ac_try;; 7967esac 7968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7969 (eval "$ac_link") 2>conftest.er1 7970 ac_status=$? 7971 grep -v '^ *+' conftest.er1 >conftest.err 7972 rm -f conftest.er1 7973 cat conftest.err >&5 7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7975 (exit $ac_status); } && { 7976 test -z "$ac_c_werror_flag" || 7977 test ! -s conftest.err 7978 } && test -s conftest$ac_exeext && 7979 $as_test_x conftest$ac_exeext; then 7980 ac_cv_lib_bind_inet_ntoa=yes 7981else 7982 echo "$as_me: failed program was:" >&5 7983sed 's/^/| /' conftest.$ac_ext >&5 7984 7985 ac_cv_lib_bind_inet_ntoa=no 7986fi 7987 7988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7989 conftest$ac_exeext conftest.$ac_ext 7990LIBS=$ac_check_lib_save_LIBS 7991fi 7992{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 7993echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 7994if test $ac_cv_lib_bind_inet_ntoa = yes; then 7995 LIBS="$LIBS -lbind -lsocket" 7996fi 7997 7998 ;; 7999 BSD/OS-4.*) 8000 SHLIB_CFLAGS="-export-dynamic -fPIC" 8001 SHLIB_LD='${CC} -shared' 8002 SHLIB_SUFFIX=".so" 8003 LDFLAGS="$LDFLAGS -export-dynamic" 8004 CC_SEARCH_FLAGS="" 8005 LD_SEARCH_FLAGS="" 8006 ;; 8007 CYGWIN_*) 8008 SHLIB_CFLAGS="" 8009 SHLIB_LD='${CC} -shared' 8010 SHLIB_SUFFIX=".dll" 8011 EXE_SUFFIX=".exe" 8012 CC_SEARCH_FLAGS="" 8013 LD_SEARCH_FLAGS="" 8014 ;; 8015 Haiku*) 8016 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8017 SHLIB_CFLAGS="-fPIC" 8018 SHLIB_SUFFIX=".so" 8019 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8020 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8021echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8022if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8023 echo $ECHO_N "(cached) $ECHO_C" >&6 8024else 8025 ac_check_lib_save_LIBS=$LIBS 8026LIBS="-lnetwork $LIBS" 8027cat >conftest.$ac_ext <<_ACEOF 8028/* confdefs.h. */ 8029_ACEOF 8030cat confdefs.h >>conftest.$ac_ext 8031cat >>conftest.$ac_ext <<_ACEOF 8032/* end confdefs.h. */ 8033 8034/* Override any GCC internal prototype to avoid an error. 8035 Use char because int might match the return type of a GCC 8036 builtin and then its argument prototype would still apply. */ 8037#ifdef __cplusplus 8038extern "C" 8039#endif 8040char inet_ntoa (); 8041int 8042main () 8043{ 8044return inet_ntoa (); 8045 ; 8046 return 0; 8047} 8048_ACEOF 8049rm -f conftest.$ac_objext conftest$ac_exeext 8050if { (ac_try="$ac_link" 8051case "(($ac_try" in 8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8053 *) ac_try_echo=$ac_try;; 8054esac 8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8056 (eval "$ac_link") 2>conftest.er1 8057 ac_status=$? 8058 grep -v '^ *+' conftest.er1 >conftest.err 8059 rm -f conftest.er1 8060 cat conftest.err >&5 8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8062 (exit $ac_status); } && { 8063 test -z "$ac_c_werror_flag" || 8064 test ! -s conftest.err 8065 } && test -s conftest$ac_exeext && 8066 $as_test_x conftest$ac_exeext; then 8067 ac_cv_lib_network_inet_ntoa=yes 8068else 8069 echo "$as_me: failed program was:" >&5 8070sed 's/^/| /' conftest.$ac_ext >&5 8071 8072 ac_cv_lib_network_inet_ntoa=no 8073fi 8074 8075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8076 conftest$ac_exeext conftest.$ac_ext 8077LIBS=$ac_check_lib_save_LIBS 8078fi 8079{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8080echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8081if test $ac_cv_lib_network_inet_ntoa = yes; then 8082 LIBS="$LIBS -lnetwork" 8083fi 8084 8085 ;; 8086 HP-UX-*.11.*) 8087 # Use updated header definitions where possible 8088 8089cat >>confdefs.h <<\_ACEOF 8090#define _XOPEN_SOURCE_EXTENDED 1 8091_ACEOF 8092 8093 # TEA specific: Needed by Tcl, but not most extensions 8094 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8095 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8096 8097 if test "`uname -m`" = ia64; then 8098 8099 SHLIB_SUFFIX=".so" 8100 # Use newer C++ library for C++ extensions 8101 #if test "$GCC" != "yes" ; then 8102 # CPPFLAGS="-AA" 8103 #fi 8104 8105else 8106 8107 SHLIB_SUFFIX=".sl" 8108 8109fi 8110 8111 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8112echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8113if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8114 echo $ECHO_N "(cached) $ECHO_C" >&6 8115else 8116 ac_check_lib_save_LIBS=$LIBS 8117LIBS="-ldld $LIBS" 8118cat >conftest.$ac_ext <<_ACEOF 8119/* confdefs.h. */ 8120_ACEOF 8121cat confdefs.h >>conftest.$ac_ext 8122cat >>conftest.$ac_ext <<_ACEOF 8123/* end confdefs.h. */ 8124 8125/* Override any GCC internal prototype to avoid an error. 8126 Use char because int might match the return type of a GCC 8127 builtin and then its argument prototype would still apply. */ 8128#ifdef __cplusplus 8129extern "C" 8130#endif 8131char shl_load (); 8132int 8133main () 8134{ 8135return shl_load (); 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140rm -f conftest.$ac_objext conftest$ac_exeext 8141if { (ac_try="$ac_link" 8142case "(($ac_try" in 8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8144 *) ac_try_echo=$ac_try;; 8145esac 8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8147 (eval "$ac_link") 2>conftest.er1 8148 ac_status=$? 8149 grep -v '^ *+' conftest.er1 >conftest.err 8150 rm -f conftest.er1 8151 cat conftest.err >&5 8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8153 (exit $ac_status); } && { 8154 test -z "$ac_c_werror_flag" || 8155 test ! -s conftest.err 8156 } && test -s conftest$ac_exeext && 8157 $as_test_x conftest$ac_exeext; then 8158 ac_cv_lib_dld_shl_load=yes 8159else 8160 echo "$as_me: failed program was:" >&5 8161sed 's/^/| /' conftest.$ac_ext >&5 8162 8163 ac_cv_lib_dld_shl_load=no 8164fi 8165 8166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8167 conftest$ac_exeext conftest.$ac_ext 8168LIBS=$ac_check_lib_save_LIBS 8169fi 8170{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8171echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8172if test $ac_cv_lib_dld_shl_load = yes; then 8173 tcl_ok=yes 8174else 8175 tcl_ok=no 8176fi 8177 8178 if test "$tcl_ok" = yes; then 8179 8180 LDFLAGS="$LDFLAGS -E" 8181 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8182 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8183 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8184 8185fi 8186 8187 if test "$GCC" = yes; then 8188 8189 SHLIB_LD='${CC} -shared' 8190 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8191 8192else 8193 8194 CFLAGS="$CFLAGS -z" 8195 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8196 #CFLAGS="$CFLAGS +DAportable" 8197 SHLIB_CFLAGS="+z" 8198 SHLIB_LD="ld -b" 8199 8200fi 8201 8202 8203 # Check to enable 64-bit flags for compiler/linker 8204 if test "$do64bit" = "yes"; then 8205 8206 if test "$GCC" = yes; then 8207 8208 case `${CC} -dumpmachine` in 8209 hppa64*) 8210 # 64-bit gcc in use. Fix flags for GNU ld. 8211 do64bit_ok=yes 8212 SHLIB_LD='${CC} -shared' 8213 if test $doRpath = yes; then 8214 8215 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8216fi 8217 8218 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8219 ;; 8220 *) 8221 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8222echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8223 ;; 8224 esac 8225 8226else 8227 8228 do64bit_ok=yes 8229 CFLAGS="$CFLAGS +DD64" 8230 LDFLAGS_ARCH="+DD64" 8231 8232fi 8233 8234 8235fi 8236 ;; 8237 IRIX-6.*) 8238 SHLIB_CFLAGS="" 8239 SHLIB_LD="ld -n32 -shared -rdata_shared" 8240 SHLIB_SUFFIX=".so" 8241 if test $doRpath = yes; then 8242 8243 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8244 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8245fi 8246 8247 if test "$GCC" = yes; then 8248 8249 CFLAGS="$CFLAGS -mabi=n32" 8250 LDFLAGS="$LDFLAGS -mabi=n32" 8251 8252else 8253 8254 case $system in 8255 IRIX-6.3) 8256 # Use to build 6.2 compatible binaries on 6.3. 8257 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8258 ;; 8259 *) 8260 CFLAGS="$CFLAGS -n32" 8261 ;; 8262 esac 8263 LDFLAGS="$LDFLAGS -n32" 8264 8265fi 8266 8267 ;; 8268 IRIX64-6.*) 8269 SHLIB_CFLAGS="" 8270 SHLIB_LD="ld -n32 -shared -rdata_shared" 8271 SHLIB_SUFFIX=".so" 8272 if test $doRpath = yes; then 8273 8274 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8275 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8276fi 8277 8278 8279 # Check to enable 64-bit flags for compiler/linker 8280 8281 if test "$do64bit" = yes; then 8282 8283 if test "$GCC" = yes; then 8284 8285 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8286echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8287 8288else 8289 8290 do64bit_ok=yes 8291 SHLIB_LD="ld -64 -shared -rdata_shared" 8292 CFLAGS="$CFLAGS -64" 8293 LDFLAGS_ARCH="-64" 8294 8295fi 8296 8297 8298fi 8299 8300 ;; 8301 Linux*) 8302 SHLIB_CFLAGS="-fPIC" 8303 SHLIB_SUFFIX=".so" 8304 8305 # TEA specific: 8306 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8307 8308 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8309 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8310 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8311 if test $doRpath = yes; then 8312 8313 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8314fi 8315 8316 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8317 if test "`uname -m`" = "alpha"; then 8318 CFLAGS="$CFLAGS -mieee" 8319fi 8320 8321 if test $do64bit = yes; then 8322 8323 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8324echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8325if test "${tcl_cv_cc_m64+set}" = set; then 8326 echo $ECHO_N "(cached) $ECHO_C" >&6 8327else 8328 8329 hold_cflags=$CFLAGS 8330 CFLAGS="$CFLAGS -m64" 8331 cat >conftest.$ac_ext <<_ACEOF 8332/* confdefs.h. */ 8333_ACEOF 8334cat confdefs.h >>conftest.$ac_ext 8335cat >>conftest.$ac_ext <<_ACEOF 8336/* end confdefs.h. */ 8337 8338int 8339main () 8340{ 8341 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346rm -f conftest.$ac_objext conftest$ac_exeext 8347if { (ac_try="$ac_link" 8348case "(($ac_try" in 8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8350 *) ac_try_echo=$ac_try;; 8351esac 8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8353 (eval "$ac_link") 2>conftest.er1 8354 ac_status=$? 8355 grep -v '^ *+' conftest.er1 >conftest.err 8356 rm -f conftest.er1 8357 cat conftest.err >&5 8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8359 (exit $ac_status); } && { 8360 test -z "$ac_c_werror_flag" || 8361 test ! -s conftest.err 8362 } && test -s conftest$ac_exeext && 8363 $as_test_x conftest$ac_exeext; then 8364 tcl_cv_cc_m64=yes 8365else 8366 echo "$as_me: failed program was:" >&5 8367sed 's/^/| /' conftest.$ac_ext >&5 8368 8369 tcl_cv_cc_m64=no 8370fi 8371 8372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8373 conftest$ac_exeext conftest.$ac_ext 8374 CFLAGS=$hold_cflags 8375fi 8376{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8377echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8378 if test $tcl_cv_cc_m64 = yes; then 8379 8380 CFLAGS="$CFLAGS -m64" 8381 do64bit_ok=yes 8382 8383fi 8384 8385 8386fi 8387 8388 8389 # The combo of gcc + glibc has a bug related to inlining of 8390 # functions like strtod(). The -fno-builtin flag should address 8391 # this problem but it does not work. The -fno-inline flag is kind 8392 # of overkill but it works. Disable inlining only when one of the 8393 # files in compat/*.c is being linked in. 8394 8395 if test x"${USE_COMPAT}" != x; then 8396 CFLAGS="$CFLAGS -fno-inline" 8397fi 8398 8399 8400 ;; 8401 GNU*) 8402 SHLIB_CFLAGS="-fPIC" 8403 SHLIB_SUFFIX=".so" 8404 8405 SHLIB_LD='${CC} -shared' 8406 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8407 CC_SEARCH_FLAGS="" 8408 LD_SEARCH_FLAGS="" 8409 if test "`uname -m`" = "alpha"; then 8410 CFLAGS="$CFLAGS -mieee" 8411fi 8412 8413 ;; 8414 Lynx*) 8415 SHLIB_CFLAGS="-fPIC" 8416 SHLIB_SUFFIX=".so" 8417 CFLAGS_OPTIMIZE=-02 8418 SHLIB_LD='${CC} -shared' 8419 LD_FLAGS="-Wl,--export-dynamic" 8420 if test $doRpath = yes; then 8421 8422 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8423 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8424fi 8425 8426 ;; 8427 OpenBSD-*) 8428 SHLIB_CFLAGS="-fPIC" 8429 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8430 SHLIB_SUFFIX=".so" 8431 if test $doRpath = yes; then 8432 8433 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8434fi 8435 8436 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8437 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8438 { echo "$as_me:$LINENO: checking for ELF" >&5 8439echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8440if test "${tcl_cv_ld_elf+set}" = set; then 8441 echo $ECHO_N "(cached) $ECHO_C" >&6 8442else 8443 8444 cat >conftest.$ac_ext <<_ACEOF 8445/* confdefs.h. */ 8446_ACEOF 8447cat confdefs.h >>conftest.$ac_ext 8448cat >>conftest.$ac_ext <<_ACEOF 8449/* end confdefs.h. */ 8450 8451#ifdef __ELF__ 8452 yes 8453#endif 8454 8455_ACEOF 8456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8457 $EGREP "yes" >/dev/null 2>&1; then 8458 tcl_cv_ld_elf=yes 8459else 8460 tcl_cv_ld_elf=no 8461fi 8462rm -f -r conftest* 8463 8464fi 8465{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8466echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8467 if test $tcl_cv_ld_elf = yes; then 8468 8469 LDFLAGS=-Wl,-export-dynamic 8470 8471else 8472 LDFLAGS="" 8473fi 8474 8475 if test "${TCL_THREADS}" = "1"; then 8476 8477 # OpenBSD builds and links with -pthread, never -lpthread. 8478 LIBS=`echo $LIBS | sed s/-lpthread//` 8479 CFLAGS="$CFLAGS -pthread" 8480 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8481 8482fi 8483 8484 # OpenBSD doesn't do version numbers with dots. 8485 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8486 TCL_LIB_VERSIONS_OK=nodots 8487 ;; 8488 NetBSD-*|FreeBSD-[3-4].*) 8489 # FreeBSD 3.* and greater have ELF. 8490 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8491 SHLIB_CFLAGS="-fPIC" 8492 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8493 SHLIB_SUFFIX=".so" 8494 LDFLAGS="$LDFLAGS -export-dynamic" 8495 if test $doRpath = yes; then 8496 8497 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8498fi 8499 8500 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8501 if test "${TCL_THREADS}" = "1"; then 8502 8503 # The -pthread needs to go in the CFLAGS, not LIBS 8504 LIBS=`echo $LIBS | sed s/-pthread//` 8505 CFLAGS="$CFLAGS -pthread" 8506 LDFLAGS="$LDFLAGS -pthread" 8507 8508fi 8509 8510 case $system in 8511 FreeBSD-3.*) 8512 # FreeBSD-3 doesn't handle version numbers with dots. 8513 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8514 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8515 TCL_LIB_VERSIONS_OK=nodots 8516 ;; 8517 esac 8518 ;; 8519 FreeBSD-*) 8520 # This configuration from FreeBSD Ports. 8521 SHLIB_CFLAGS="-fPIC" 8522 SHLIB_LD="${CC} -shared" 8523 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8524 SHLIB_SUFFIX=".so" 8525 LDFLAGS="" 8526 if test $doRpath = yes; then 8527 8528 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8529 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8530fi 8531 8532 if test "${TCL_THREADS}" = "1"; then 8533 8534 # The -pthread needs to go in the LDFLAGS, not LIBS 8535 LIBS=`echo $LIBS | sed s/-pthread//` 8536 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8537 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8538fi 8539 8540 # Version numbers are dot-stripped by system policy. 8541 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8542 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8543 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8544 TCL_LIB_VERSIONS_OK=nodots 8545 ;; 8546 Darwin-*) 8547 CFLAGS_OPTIMIZE="-Os" 8548 SHLIB_CFLAGS="-fno-common" 8549 # To avoid discrepancies between what headers configure sees during 8550 # preprocessing tests and compiling tests, move any -isysroot and 8551 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8552 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8553 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8554 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8555 CFLAGS="`echo " ${CFLAGS}" | \ 8556 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8557 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8558 if test $do64bit = yes; then 8559 8560 case `arch` in 8561 ppc) 8562 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8563echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8564if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8565 echo $ECHO_N "(cached) $ECHO_C" >&6 8566else 8567 8568 hold_cflags=$CFLAGS 8569 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8570 cat >conftest.$ac_ext <<_ACEOF 8571/* confdefs.h. */ 8572_ACEOF 8573cat confdefs.h >>conftest.$ac_ext 8574cat >>conftest.$ac_ext <<_ACEOF 8575/* end confdefs.h. */ 8576 8577int 8578main () 8579{ 8580 8581 ; 8582 return 0; 8583} 8584_ACEOF 8585rm -f conftest.$ac_objext conftest$ac_exeext 8586if { (ac_try="$ac_link" 8587case "(($ac_try" in 8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8589 *) ac_try_echo=$ac_try;; 8590esac 8591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8592 (eval "$ac_link") 2>conftest.er1 8593 ac_status=$? 8594 grep -v '^ *+' conftest.er1 >conftest.err 8595 rm -f conftest.er1 8596 cat conftest.err >&5 8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8598 (exit $ac_status); } && { 8599 test -z "$ac_c_werror_flag" || 8600 test ! -s conftest.err 8601 } && test -s conftest$ac_exeext && 8602 $as_test_x conftest$ac_exeext; then 8603 tcl_cv_cc_arch_ppc64=yes 8604else 8605 echo "$as_me: failed program was:" >&5 8606sed 's/^/| /' conftest.$ac_ext >&5 8607 8608 tcl_cv_cc_arch_ppc64=no 8609fi 8610 8611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8612 conftest$ac_exeext conftest.$ac_ext 8613 CFLAGS=$hold_cflags 8614fi 8615{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8616echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8617 if test $tcl_cv_cc_arch_ppc64 = yes; then 8618 8619 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8620 do64bit_ok=yes 8621 8622fi 8623;; 8624 i386) 8625 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8626echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8627if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8628 echo $ECHO_N "(cached) $ECHO_C" >&6 8629else 8630 8631 hold_cflags=$CFLAGS 8632 CFLAGS="$CFLAGS -arch x86_64" 8633 cat >conftest.$ac_ext <<_ACEOF 8634/* confdefs.h. */ 8635_ACEOF 8636cat confdefs.h >>conftest.$ac_ext 8637cat >>conftest.$ac_ext <<_ACEOF 8638/* end confdefs.h. */ 8639 8640int 8641main () 8642{ 8643 8644 ; 8645 return 0; 8646} 8647_ACEOF 8648rm -f conftest.$ac_objext conftest$ac_exeext 8649if { (ac_try="$ac_link" 8650case "(($ac_try" in 8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8652 *) ac_try_echo=$ac_try;; 8653esac 8654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8655 (eval "$ac_link") 2>conftest.er1 8656 ac_status=$? 8657 grep -v '^ *+' conftest.er1 >conftest.err 8658 rm -f conftest.er1 8659 cat conftest.err >&5 8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8661 (exit $ac_status); } && { 8662 test -z "$ac_c_werror_flag" || 8663 test ! -s conftest.err 8664 } && test -s conftest$ac_exeext && 8665 $as_test_x conftest$ac_exeext; then 8666 tcl_cv_cc_arch_x86_64=yes 8667else 8668 echo "$as_me: failed program was:" >&5 8669sed 's/^/| /' conftest.$ac_ext >&5 8670 8671 tcl_cv_cc_arch_x86_64=no 8672fi 8673 8674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8675 conftest$ac_exeext conftest.$ac_ext 8676 CFLAGS=$hold_cflags 8677fi 8678{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8679echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8680 if test $tcl_cv_cc_arch_x86_64 = yes; then 8681 8682 CFLAGS="$CFLAGS -arch x86_64" 8683 do64bit_ok=yes 8684 8685fi 8686;; 8687 *) 8688 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8689echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8690 esac 8691 8692else 8693 8694 # Check for combined 32-bit and 64-bit fat build 8695 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8696 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8697 8698 fat_32_64=yes 8699fi 8700 8701 8702fi 8703 8704 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8705 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8706 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8707echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8708if test "${tcl_cv_ld_single_module+set}" = set; then 8709 echo $ECHO_N "(cached) $ECHO_C" >&6 8710else 8711 8712 hold_ldflags=$LDFLAGS 8713 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8714 cat >conftest.$ac_ext <<_ACEOF 8715/* confdefs.h. */ 8716_ACEOF 8717cat confdefs.h >>conftest.$ac_ext 8718cat >>conftest.$ac_ext <<_ACEOF 8719/* end confdefs.h. */ 8720 8721int 8722main () 8723{ 8724int i; 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729rm -f conftest.$ac_objext conftest$ac_exeext 8730if { (ac_try="$ac_link" 8731case "(($ac_try" in 8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8733 *) ac_try_echo=$ac_try;; 8734esac 8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8736 (eval "$ac_link") 2>conftest.er1 8737 ac_status=$? 8738 grep -v '^ *+' conftest.er1 >conftest.err 8739 rm -f conftest.er1 8740 cat conftest.err >&5 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 (exit $ac_status); } && { 8743 test -z "$ac_c_werror_flag" || 8744 test ! -s conftest.err 8745 } && test -s conftest$ac_exeext && 8746 $as_test_x conftest$ac_exeext; then 8747 tcl_cv_ld_single_module=yes 8748else 8749 echo "$as_me: failed program was:" >&5 8750sed 's/^/| /' conftest.$ac_ext >&5 8751 8752 tcl_cv_ld_single_module=no 8753fi 8754 8755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8756 conftest$ac_exeext conftest.$ac_ext 8757 LDFLAGS=$hold_ldflags 8758fi 8759{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8760echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8761 if test $tcl_cv_ld_single_module = yes; then 8762 8763 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8764 8765fi 8766 8767 # TEA specific: link shlib with current and compatiblity version flags 8768 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8769 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8770 SHLIB_SUFFIX=".dylib" 8771 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8772 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8773 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8774 8775 LDFLAGS="$LDFLAGS -prebind" 8776fi 8777 8778 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8779 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8780echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8781if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8782 echo $ECHO_N "(cached) $ECHO_C" >&6 8783else 8784 8785 hold_ldflags=$LDFLAGS 8786 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8787 cat >conftest.$ac_ext <<_ACEOF 8788/* confdefs.h. */ 8789_ACEOF 8790cat confdefs.h >>conftest.$ac_ext 8791cat >>conftest.$ac_ext <<_ACEOF 8792/* end confdefs.h. */ 8793 8794int 8795main () 8796{ 8797int i; 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802rm -f conftest.$ac_objext conftest$ac_exeext 8803if { (ac_try="$ac_link" 8804case "(($ac_try" in 8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8806 *) ac_try_echo=$ac_try;; 8807esac 8808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8809 (eval "$ac_link") 2>conftest.er1 8810 ac_status=$? 8811 grep -v '^ *+' conftest.er1 >conftest.err 8812 rm -f conftest.er1 8813 cat conftest.err >&5 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 (exit $ac_status); } && { 8816 test -z "$ac_c_werror_flag" || 8817 test ! -s conftest.err 8818 } && test -s conftest$ac_exeext && 8819 $as_test_x conftest$ac_exeext; then 8820 tcl_cv_ld_search_paths_first=yes 8821else 8822 echo "$as_me: failed program was:" >&5 8823sed 's/^/| /' conftest.$ac_ext >&5 8824 8825 tcl_cv_ld_search_paths_first=no 8826fi 8827 8828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8829 conftest$ac_exeext conftest.$ac_ext 8830 LDFLAGS=$hold_ldflags 8831fi 8832{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8833echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8834 if test $tcl_cv_ld_search_paths_first = yes; then 8835 8836 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8837 8838fi 8839 8840 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8841 8842 8843cat >>confdefs.h <<\_ACEOF 8844#define MODULE_SCOPE __private_extern__ 8845_ACEOF 8846 8847 tcl_cv_cc_visibility_hidden=yes 8848 8849fi 8850 8851 CC_SEARCH_FLAGS="" 8852 LD_SEARCH_FLAGS="" 8853 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8854 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8855 # extensions, verify that 64-bit build is possible. 8856 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8857 8858 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8859 8860 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8861echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8862if test "${tcl_cv_lib_x11_64+set}" = set; then 8863 echo $ECHO_N "(cached) $ECHO_C" >&6 8864else 8865 8866 for v in CFLAGS CPPFLAGS LDFLAGS; do 8867 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8868 done 8869 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8870 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8871 cat >conftest.$ac_ext <<_ACEOF 8872/* confdefs.h. */ 8873_ACEOF 8874cat confdefs.h >>conftest.$ac_ext 8875cat >>conftest.$ac_ext <<_ACEOF 8876/* end confdefs.h. */ 8877#include <X11/Xlib.h> 8878int 8879main () 8880{ 8881XrmInitialize(); 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886rm -f conftest.$ac_objext conftest$ac_exeext 8887if { (ac_try="$ac_link" 8888case "(($ac_try" in 8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8890 *) ac_try_echo=$ac_try;; 8891esac 8892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8893 (eval "$ac_link") 2>conftest.er1 8894 ac_status=$? 8895 grep -v '^ *+' conftest.er1 >conftest.err 8896 rm -f conftest.er1 8897 cat conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); } && { 8900 test -z "$ac_c_werror_flag" || 8901 test ! -s conftest.err 8902 } && test -s conftest$ac_exeext && 8903 $as_test_x conftest$ac_exeext; then 8904 tcl_cv_lib_x11_64=yes 8905else 8906 echo "$as_me: failed program was:" >&5 8907sed 's/^/| /' conftest.$ac_ext >&5 8908 8909 tcl_cv_lib_x11_64=no 8910fi 8911 8912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8913 conftest$ac_exeext conftest.$ac_ext 8914 for v in CFLAGS CPPFLAGS LDFLAGS; do 8915 eval $v'="$hold_'$v'"' 8916 done 8917fi 8918{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 8919echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 8920 8921fi 8922 8923 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 8924 8925 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 8926echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 8927if test "${tcl_cv_lib_tk_64+set}" = set; then 8928 echo $ECHO_N "(cached) $ECHO_C" >&6 8929else 8930 8931 for v in CFLAGS CPPFLAGS LDFLAGS; do 8932 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8933 done 8934 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 8935 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 8936 cat >conftest.$ac_ext <<_ACEOF 8937/* confdefs.h. */ 8938_ACEOF 8939cat confdefs.h >>conftest.$ac_ext 8940cat >>conftest.$ac_ext <<_ACEOF 8941/* end confdefs.h. */ 8942#include <tk.h> 8943int 8944main () 8945{ 8946Tk_InitStubs(NULL, "", 0); 8947 ; 8948 return 0; 8949} 8950_ACEOF 8951rm -f conftest.$ac_objext conftest$ac_exeext 8952if { (ac_try="$ac_link" 8953case "(($ac_try" in 8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8955 *) ac_try_echo=$ac_try;; 8956esac 8957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8958 (eval "$ac_link") 2>conftest.er1 8959 ac_status=$? 8960 grep -v '^ *+' conftest.er1 >conftest.err 8961 rm -f conftest.er1 8962 cat conftest.err >&5 8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8964 (exit $ac_status); } && { 8965 test -z "$ac_c_werror_flag" || 8966 test ! -s conftest.err 8967 } && test -s conftest$ac_exeext && 8968 $as_test_x conftest$ac_exeext; then 8969 tcl_cv_lib_tk_64=yes 8970else 8971 echo "$as_me: failed program was:" >&5 8972sed 's/^/| /' conftest.$ac_ext >&5 8973 8974 tcl_cv_lib_tk_64=no 8975fi 8976 8977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8978 conftest$ac_exeext conftest.$ac_ext 8979 for v in CFLAGS CPPFLAGS LDFLAGS; do 8980 eval $v'="$hold_'$v'"' 8981 done 8982fi 8983{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 8984echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 8985 8986fi 8987 8988 # remove 64-bit arch flags from CFLAGS et al. if configuration 8989 # does not support 64-bit. 8990 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 8991 8992 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 8993echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 8994 for v in CFLAGS CPPFLAGS LDFLAGS; do 8995 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 8996 done 8997fi 8998 8999 9000fi 9001 9002 ;; 9003 OS/390-*) 9004 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9005 9006cat >>confdefs.h <<\_ACEOF 9007#define _OE_SOCKETS 1 9008_ACEOF 9009 9010 ;; 9011 OSF1-V*) 9012 # Digital OSF/1 9013 SHLIB_CFLAGS="" 9014 if test "$SHARED_BUILD" = 1; then 9015 9016 SHLIB_LD='ld -shared -expect_unresolved "*"' 9017 9018else 9019 9020 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9021 9022fi 9023 9024 SHLIB_SUFFIX=".so" 9025 if test $doRpath = yes; then 9026 9027 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9028 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9029fi 9030 9031 if test "$GCC" = yes; then 9032 CFLAGS="$CFLAGS -mieee" 9033else 9034 9035 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9036fi 9037 9038 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9039 if test "${TCL_THREADS}" = 1; then 9040 9041 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9042 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9043 LIBS=`echo $LIBS | sed s/-lpthreads//` 9044 if test "$GCC" = yes; then 9045 9046 LIBS="$LIBS -lpthread -lmach -lexc" 9047 9048else 9049 9050 CFLAGS="$CFLAGS -pthread" 9051 LDFLAGS="$LDFLAGS -pthread" 9052 9053fi 9054 9055 9056fi 9057 9058 ;; 9059 QNX-6*) 9060 # QNX RTP 9061 # This may work for all QNX, but it was only reported for v6. 9062 SHLIB_CFLAGS="-fPIC" 9063 SHLIB_LD="ld -Bshareable -x" 9064 SHLIB_LD_LIBS="" 9065 SHLIB_SUFFIX=".so" 9066 CC_SEARCH_FLAGS="" 9067 LD_SEARCH_FLAGS="" 9068 ;; 9069 SCO_SV-3.2*) 9070 if test "$GCC" = yes; then 9071 9072 SHLIB_CFLAGS="-fPIC -melf" 9073 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9074 9075else 9076 9077 SHLIB_CFLAGS="-Kpic -belf" 9078 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9079 9080fi 9081 9082 SHLIB_LD="ld -G" 9083 SHLIB_LD_LIBS="" 9084 SHLIB_SUFFIX=".so" 9085 CC_SEARCH_FLAGS="" 9086 LD_SEARCH_FLAGS="" 9087 ;; 9088 SunOS-5.[0-6]) 9089 # Careful to not let 5.10+ fall into this case 9090 9091 # Note: If _REENTRANT isn't defined, then Solaris 9092 # won't define thread-safe library routines. 9093 9094 9095cat >>confdefs.h <<\_ACEOF 9096#define _REENTRANT 1 9097_ACEOF 9098 9099 9100cat >>confdefs.h <<\_ACEOF 9101#define _POSIX_PTHREAD_SEMANTICS 1 9102_ACEOF 9103 9104 9105 SHLIB_CFLAGS="-KPIC" 9106 SHLIB_SUFFIX=".so" 9107 if test "$GCC" = yes; then 9108 9109 SHLIB_LD='${CC} -shared' 9110 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9111 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9112 9113else 9114 9115 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9116 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9117 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9118 9119fi 9120 9121 ;; 9122 SunOS-5*) 9123 # Note: If _REENTRANT isn't defined, then Solaris 9124 # won't define thread-safe library routines. 9125 9126 9127cat >>confdefs.h <<\_ACEOF 9128#define _REENTRANT 1 9129_ACEOF 9130 9131 9132cat >>confdefs.h <<\_ACEOF 9133#define _POSIX_PTHREAD_SEMANTICS 1 9134_ACEOF 9135 9136 9137 SHLIB_CFLAGS="-KPIC" 9138 9139 # Check to enable 64-bit flags for compiler/linker 9140 if test "$do64bit" = yes; then 9141 9142 arch=`isainfo` 9143 if test "$arch" = "sparcv9 sparc"; then 9144 9145 if test "$GCC" = yes; then 9146 9147 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9148 9149 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9150echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9151 9152else 9153 9154 do64bit_ok=yes 9155 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9156 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9157 SHLIB_CFLAGS="-fPIC" 9158 9159fi 9160 9161 9162else 9163 9164 do64bit_ok=yes 9165 if test "$do64bitVIS" = yes; then 9166 9167 CFLAGS="$CFLAGS -xarch=v9a" 9168 LDFLAGS_ARCH="-xarch=v9a" 9169 9170else 9171 9172 CFLAGS="$CFLAGS -xarch=v9" 9173 LDFLAGS_ARCH="-xarch=v9" 9174 9175fi 9176 9177 # Solaris 64 uses this as well 9178 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9179 9180fi 9181 9182 9183else 9184 if test "$arch" = "amd64 i386"; then 9185 9186 if test "$GCC" = yes; then 9187 9188 case $system in 9189 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9190 do64bit_ok=yes 9191 CFLAGS="$CFLAGS -m64" 9192 LDFLAGS="$LDFLAGS -m64";; 9193 *) 9194 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9195echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9196 esac 9197 9198else 9199 9200 do64bit_ok=yes 9201 case $system in 9202 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9203 CFLAGS="$CFLAGS -m64" 9204 LDFLAGS="$LDFLAGS -m64";; 9205 *) 9206 CFLAGS="$CFLAGS -xarch=amd64" 9207 LDFLAGS="$LDFLAGS -xarch=amd64";; 9208 esac 9209 9210fi 9211 9212 9213else 9214 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9215echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9216fi 9217 9218fi 9219 9220 9221fi 9222 9223 9224 SHLIB_SUFFIX=".so" 9225 if test "$GCC" = yes; then 9226 9227 SHLIB_LD='${CC} -shared' 9228 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9229 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9230 if test "$do64bit_ok" = yes; then 9231 9232 if test "$arch" = "sparcv9 sparc"; then 9233 9234 # We need to specify -static-libgcc or we need to 9235 # add the path to the sparv9 libgcc. 9236 # JH: static-libgcc is necessary for core Tcl, but may 9237 # not be necessary for extensions. 9238 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9239 # for finding sparcv9 libgcc, get the regular libgcc 9240 # path, remove so name and append 'sparcv9' 9241 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9242 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9243 9244else 9245 if test "$arch" = "amd64 i386"; then 9246 9247 # JH: static-libgcc is necessary for core Tcl, but may 9248 # not be necessary for extensions. 9249 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9250 9251fi 9252 9253fi 9254 9255 9256fi 9257 9258 9259else 9260 9261 case $system in 9262 SunOS-5.[1-9][0-9]*) 9263 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9264 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9265 *) 9266 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9267 esac 9268 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9269 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9270 9271fi 9272 9273 ;; 9274 esac 9275 9276 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9277 9278 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9279echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9280 9281fi 9282 9283 9284 9285 9286 # Add in the arch flags late to ensure it wasn't removed. 9287 # Not necessary in TEA, but this is aligned with core 9288 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9289 9290 # If we're running gcc, then change the C flags for compiling shared 9291 # libraries to the right flags for gcc, instead of those for the 9292 # standard manufacturer compiler. 9293 9294 if test "$GCC" = yes; then 9295 9296 case $system in 9297 AIX-*) ;; 9298 BSD/OS*) ;; 9299 CYGWIN_*) ;; 9300 IRIX*) ;; 9301 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9302 Darwin-*) ;; 9303 SCO_SV-3.2*) ;; 9304 windows) ;; 9305 *) SHLIB_CFLAGS="-fPIC" ;; 9306 esac 9307fi 9308 9309 9310 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9311 9312 9313cat >>confdefs.h <<\_ACEOF 9314#define MODULE_SCOPE extern 9315_ACEOF 9316 9317 9318cat >>confdefs.h <<\_ACEOF 9319#define NO_VIZ 9320_ACEOF 9321 9322 9323fi 9324 9325 9326 if test "$SHARED_LIB_SUFFIX" = ""; then 9327 9328 # TEA specific: use PACKAGE_VERSION instead of VERSION 9329 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9330fi 9331 9332 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9333 9334 # TEA specific: use PACKAGE_VERSION instead of VERSION 9335 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9336fi 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 # These must be called after we do the basic CFLAGS checks and 9352 # verify any possible 64-bit or similar switches are necessary 9353 9354 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9355echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9356 tcl_flags="" 9357 9358 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9359 echo $ECHO_N "(cached) $ECHO_C" >&6 9360else 9361 cat >conftest.$ac_ext <<_ACEOF 9362/* confdefs.h. */ 9363_ACEOF 9364cat confdefs.h >>conftest.$ac_ext 9365cat >>conftest.$ac_ext <<_ACEOF 9366/* end confdefs.h. */ 9367#include <stdlib.h> 9368int 9369main () 9370{ 9371char *p = (char *)strtoll; char *q = (char *)strtoull; 9372 ; 9373 return 0; 9374} 9375_ACEOF 9376rm -f conftest.$ac_objext 9377if { (ac_try="$ac_compile" 9378case "(($ac_try" in 9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9380 *) ac_try_echo=$ac_try;; 9381esac 9382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9383 (eval "$ac_compile") 2>conftest.er1 9384 ac_status=$? 9385 grep -v '^ *+' conftest.er1 >conftest.err 9386 rm -f conftest.er1 9387 cat conftest.err >&5 9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9389 (exit $ac_status); } && { 9390 test -z "$ac_c_werror_flag" || 9391 test ! -s conftest.err 9392 } && test -s conftest.$ac_objext; then 9393 tcl_cv_flag__isoc99_source=no 9394else 9395 echo "$as_me: failed program was:" >&5 9396sed 's/^/| /' conftest.$ac_ext >&5 9397 9398 cat >conftest.$ac_ext <<_ACEOF 9399/* confdefs.h. */ 9400_ACEOF 9401cat confdefs.h >>conftest.$ac_ext 9402cat >>conftest.$ac_ext <<_ACEOF 9403/* end confdefs.h. */ 9404#define _ISOC99_SOURCE 1 9405#include <stdlib.h> 9406int 9407main () 9408{ 9409char *p = (char *)strtoll; char *q = (char *)strtoull; 9410 ; 9411 return 0; 9412} 9413_ACEOF 9414rm -f conftest.$ac_objext 9415if { (ac_try="$ac_compile" 9416case "(($ac_try" in 9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9418 *) ac_try_echo=$ac_try;; 9419esac 9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9421 (eval "$ac_compile") 2>conftest.er1 9422 ac_status=$? 9423 grep -v '^ *+' conftest.er1 >conftest.err 9424 rm -f conftest.er1 9425 cat conftest.err >&5 9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9427 (exit $ac_status); } && { 9428 test -z "$ac_c_werror_flag" || 9429 test ! -s conftest.err 9430 } && test -s conftest.$ac_objext; then 9431 tcl_cv_flag__isoc99_source=yes 9432else 9433 echo "$as_me: failed program was:" >&5 9434sed 's/^/| /' conftest.$ac_ext >&5 9435 9436 tcl_cv_flag__isoc99_source=no 9437fi 9438 9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440fi 9441 9442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9443fi 9444 9445 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9446 9447cat >>confdefs.h <<\_ACEOF 9448#define _ISOC99_SOURCE 1 9449_ACEOF 9450 9451 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9452 fi 9453 9454 9455 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9456 echo $ECHO_N "(cached) $ECHO_C" >&6 9457else 9458 cat >conftest.$ac_ext <<_ACEOF 9459/* confdefs.h. */ 9460_ACEOF 9461cat confdefs.h >>conftest.$ac_ext 9462cat >>conftest.$ac_ext <<_ACEOF 9463/* end confdefs.h. */ 9464#include <sys/stat.h> 9465int 9466main () 9467{ 9468struct stat64 buf; int i = stat64("/", &buf); 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473rm -f conftest.$ac_objext 9474if { (ac_try="$ac_compile" 9475case "(($ac_try" in 9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9477 *) ac_try_echo=$ac_try;; 9478esac 9479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9480 (eval "$ac_compile") 2>conftest.er1 9481 ac_status=$? 9482 grep -v '^ *+' conftest.er1 >conftest.err 9483 rm -f conftest.er1 9484 cat conftest.err >&5 9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9486 (exit $ac_status); } && { 9487 test -z "$ac_c_werror_flag" || 9488 test ! -s conftest.err 9489 } && test -s conftest.$ac_objext; then 9490 tcl_cv_flag__largefile64_source=no 9491else 9492 echo "$as_me: failed program was:" >&5 9493sed 's/^/| /' conftest.$ac_ext >&5 9494 9495 cat >conftest.$ac_ext <<_ACEOF 9496/* confdefs.h. */ 9497_ACEOF 9498cat confdefs.h >>conftest.$ac_ext 9499cat >>conftest.$ac_ext <<_ACEOF 9500/* end confdefs.h. */ 9501#define _LARGEFILE64_SOURCE 1 9502#include <sys/stat.h> 9503int 9504main () 9505{ 9506struct stat64 buf; int i = stat64("/", &buf); 9507 ; 9508 return 0; 9509} 9510_ACEOF 9511rm -f conftest.$ac_objext 9512if { (ac_try="$ac_compile" 9513case "(($ac_try" in 9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9515 *) ac_try_echo=$ac_try;; 9516esac 9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9518 (eval "$ac_compile") 2>conftest.er1 9519 ac_status=$? 9520 grep -v '^ *+' conftest.er1 >conftest.err 9521 rm -f conftest.er1 9522 cat conftest.err >&5 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 (exit $ac_status); } && { 9525 test -z "$ac_c_werror_flag" || 9526 test ! -s conftest.err 9527 } && test -s conftest.$ac_objext; then 9528 tcl_cv_flag__largefile64_source=yes 9529else 9530 echo "$as_me: failed program was:" >&5 9531sed 's/^/| /' conftest.$ac_ext >&5 9532 9533 tcl_cv_flag__largefile64_source=no 9534fi 9535 9536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9537fi 9538 9539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9540fi 9541 9542 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9543 9544cat >>confdefs.h <<\_ACEOF 9545#define _LARGEFILE64_SOURCE 1 9546_ACEOF 9547 9548 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9549 fi 9550 9551 9552 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9553 echo $ECHO_N "(cached) $ECHO_C" >&6 9554else 9555 cat >conftest.$ac_ext <<_ACEOF 9556/* confdefs.h. */ 9557_ACEOF 9558cat confdefs.h >>conftest.$ac_ext 9559cat >>conftest.$ac_ext <<_ACEOF 9560/* end confdefs.h. */ 9561#include <sys/stat.h> 9562int 9563main () 9564{ 9565char *p = (char *)open64; 9566 ; 9567 return 0; 9568} 9569_ACEOF 9570rm -f conftest.$ac_objext 9571if { (ac_try="$ac_compile" 9572case "(($ac_try" in 9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9574 *) ac_try_echo=$ac_try;; 9575esac 9576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9577 (eval "$ac_compile") 2>conftest.er1 9578 ac_status=$? 9579 grep -v '^ *+' conftest.er1 >conftest.err 9580 rm -f conftest.er1 9581 cat conftest.err >&5 9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9583 (exit $ac_status); } && { 9584 test -z "$ac_c_werror_flag" || 9585 test ! -s conftest.err 9586 } && test -s conftest.$ac_objext; then 9587 tcl_cv_flag__largefile_source64=no 9588else 9589 echo "$as_me: failed program was:" >&5 9590sed 's/^/| /' conftest.$ac_ext >&5 9591 9592 cat >conftest.$ac_ext <<_ACEOF 9593/* confdefs.h. */ 9594_ACEOF 9595cat confdefs.h >>conftest.$ac_ext 9596cat >>conftest.$ac_ext <<_ACEOF 9597/* end confdefs.h. */ 9598#define _LARGEFILE_SOURCE64 1 9599#include <sys/stat.h> 9600int 9601main () 9602{ 9603char *p = (char *)open64; 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608rm -f conftest.$ac_objext 9609if { (ac_try="$ac_compile" 9610case "(($ac_try" in 9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9612 *) ac_try_echo=$ac_try;; 9613esac 9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9615 (eval "$ac_compile") 2>conftest.er1 9616 ac_status=$? 9617 grep -v '^ *+' conftest.er1 >conftest.err 9618 rm -f conftest.er1 9619 cat conftest.err >&5 9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 (exit $ac_status); } && { 9622 test -z "$ac_c_werror_flag" || 9623 test ! -s conftest.err 9624 } && test -s conftest.$ac_objext; then 9625 tcl_cv_flag__largefile_source64=yes 9626else 9627 echo "$as_me: failed program was:" >&5 9628sed 's/^/| /' conftest.$ac_ext >&5 9629 9630 tcl_cv_flag__largefile_source64=no 9631fi 9632 9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9634fi 9635 9636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9637fi 9638 9639 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9640 9641cat >>confdefs.h <<\_ACEOF 9642#define _LARGEFILE_SOURCE64 1 9643_ACEOF 9644 9645 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9646 fi 9647 9648 if test "x${tcl_flags}" = "x" ; then 9649 { echo "$as_me:$LINENO: result: none" >&5 9650echo "${ECHO_T}none" >&6; } 9651 else 9652 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9653echo "${ECHO_T}${tcl_flags}" >&6; } 9654 fi 9655 9656 9657 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9658echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9659 if test "${tcl_cv_type_64bit+set}" = set; then 9660 echo $ECHO_N "(cached) $ECHO_C" >&6 9661else 9662 9663 tcl_cv_type_64bit=none 9664 # See if the compiler knows natively about __int64 9665 cat >conftest.$ac_ext <<_ACEOF 9666/* confdefs.h. */ 9667_ACEOF 9668cat confdefs.h >>conftest.$ac_ext 9669cat >>conftest.$ac_ext <<_ACEOF 9670/* end confdefs.h. */ 9671 9672int 9673main () 9674{ 9675__int64 value = (__int64) 0; 9676 ; 9677 return 0; 9678} 9679_ACEOF 9680rm -f conftest.$ac_objext 9681if { (ac_try="$ac_compile" 9682case "(($ac_try" in 9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9684 *) ac_try_echo=$ac_try;; 9685esac 9686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9687 (eval "$ac_compile") 2>conftest.er1 9688 ac_status=$? 9689 grep -v '^ *+' conftest.er1 >conftest.err 9690 rm -f conftest.er1 9691 cat conftest.err >&5 9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9693 (exit $ac_status); } && { 9694 test -z "$ac_c_werror_flag" || 9695 test ! -s conftest.err 9696 } && test -s conftest.$ac_objext; then 9697 tcl_type_64bit=__int64 9698else 9699 echo "$as_me: failed program was:" >&5 9700sed 's/^/| /' conftest.$ac_ext >&5 9701 9702 tcl_type_64bit="long long" 9703fi 9704 9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9706 # See if we should use long anyway Note that we substitute in the 9707 # type that is our current guess for a 64-bit type inside this check 9708 # program, so it should be modified only carefully... 9709 cat >conftest.$ac_ext <<_ACEOF 9710/* confdefs.h. */ 9711_ACEOF 9712cat confdefs.h >>conftest.$ac_ext 9713cat >>conftest.$ac_ext <<_ACEOF 9714/* end confdefs.h. */ 9715 9716int 9717main () 9718{ 9719switch (0) { 9720 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9721 } 9722 ; 9723 return 0; 9724} 9725_ACEOF 9726rm -f conftest.$ac_objext 9727if { (ac_try="$ac_compile" 9728case "(($ac_try" in 9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9730 *) ac_try_echo=$ac_try;; 9731esac 9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9733 (eval "$ac_compile") 2>conftest.er1 9734 ac_status=$? 9735 grep -v '^ *+' conftest.er1 >conftest.err 9736 rm -f conftest.er1 9737 cat conftest.err >&5 9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9739 (exit $ac_status); } && { 9740 test -z "$ac_c_werror_flag" || 9741 test ! -s conftest.err 9742 } && test -s conftest.$ac_objext; then 9743 tcl_cv_type_64bit=${tcl_type_64bit} 9744else 9745 echo "$as_me: failed program was:" >&5 9746sed 's/^/| /' conftest.$ac_ext >&5 9747 9748 9749fi 9750 9751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9752fi 9753 9754 if test "${tcl_cv_type_64bit}" = none ; then 9755 9756cat >>confdefs.h <<\_ACEOF 9757#define TCL_WIDE_INT_IS_LONG 1 9758_ACEOF 9759 9760 { echo "$as_me:$LINENO: result: using long" >&5 9761echo "${ECHO_T}using long" >&6; } 9762 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9763 -a "${TEA_PLATFORM}" = "windows" ; then 9764 # TEA specific: We actually want to use the default tcl.h checks in 9765 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9766 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9767echo "${ECHO_T}using Tcl header defaults" >&6; } 9768 else 9769 9770cat >>confdefs.h <<_ACEOF 9771#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9772_ACEOF 9773 9774 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9775echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9776 9777 # Now check for auxiliary declarations 9778 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9779echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9780if test "${tcl_cv_struct_dirent64+set}" = set; then 9781 echo $ECHO_N "(cached) $ECHO_C" >&6 9782else 9783 9784 cat >conftest.$ac_ext <<_ACEOF 9785/* confdefs.h. */ 9786_ACEOF 9787cat confdefs.h >>conftest.$ac_ext 9788cat >>conftest.$ac_ext <<_ACEOF 9789/* end confdefs.h. */ 9790#include <sys/types.h> 9791#include <sys/dirent.h> 9792int 9793main () 9794{ 9795struct dirent64 p; 9796 ; 9797 return 0; 9798} 9799_ACEOF 9800rm -f conftest.$ac_objext 9801if { (ac_try="$ac_compile" 9802case "(($ac_try" in 9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9804 *) ac_try_echo=$ac_try;; 9805esac 9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9807 (eval "$ac_compile") 2>conftest.er1 9808 ac_status=$? 9809 grep -v '^ *+' conftest.er1 >conftest.err 9810 rm -f conftest.er1 9811 cat conftest.err >&5 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); } && { 9814 test -z "$ac_c_werror_flag" || 9815 test ! -s conftest.err 9816 } && test -s conftest.$ac_objext; then 9817 tcl_cv_struct_dirent64=yes 9818else 9819 echo "$as_me: failed program was:" >&5 9820sed 's/^/| /' conftest.$ac_ext >&5 9821 9822 tcl_cv_struct_dirent64=no 9823fi 9824 9825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9826fi 9827{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9828echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9829 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9830 9831cat >>confdefs.h <<\_ACEOF 9832#define HAVE_STRUCT_DIRENT64 1 9833_ACEOF 9834 9835 fi 9836 9837 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9838echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9839if test "${tcl_cv_struct_stat64+set}" = set; then 9840 echo $ECHO_N "(cached) $ECHO_C" >&6 9841else 9842 9843 cat >conftest.$ac_ext <<_ACEOF 9844/* confdefs.h. */ 9845_ACEOF 9846cat confdefs.h >>conftest.$ac_ext 9847cat >>conftest.$ac_ext <<_ACEOF 9848/* end confdefs.h. */ 9849#include <sys/stat.h> 9850int 9851main () 9852{ 9853struct stat64 p; 9854 9855 ; 9856 return 0; 9857} 9858_ACEOF 9859rm -f conftest.$ac_objext 9860if { (ac_try="$ac_compile" 9861case "(($ac_try" in 9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9863 *) ac_try_echo=$ac_try;; 9864esac 9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9866 (eval "$ac_compile") 2>conftest.er1 9867 ac_status=$? 9868 grep -v '^ *+' conftest.er1 >conftest.err 9869 rm -f conftest.er1 9870 cat conftest.err >&5 9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9872 (exit $ac_status); } && { 9873 test -z "$ac_c_werror_flag" || 9874 test ! -s conftest.err 9875 } && test -s conftest.$ac_objext; then 9876 tcl_cv_struct_stat64=yes 9877else 9878 echo "$as_me: failed program was:" >&5 9879sed 's/^/| /' conftest.$ac_ext >&5 9880 9881 tcl_cv_struct_stat64=no 9882fi 9883 9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9885fi 9886{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9887echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 9888 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9889 9890cat >>confdefs.h <<\_ACEOF 9891#define HAVE_STRUCT_STAT64 1 9892_ACEOF 9893 9894 fi 9895 9896 9897 9898for ac_func in open64 lseek64 9899do 9900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9901{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9904 echo $ECHO_N "(cached) $ECHO_C" >&6 9905else 9906 cat >conftest.$ac_ext <<_ACEOF 9907/* confdefs.h. */ 9908_ACEOF 9909cat confdefs.h >>conftest.$ac_ext 9910cat >>conftest.$ac_ext <<_ACEOF 9911/* end confdefs.h. */ 9912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9914#define $ac_func innocuous_$ac_func 9915 9916/* System header to define __stub macros and hopefully few prototypes, 9917 which can conflict with char $ac_func (); below. 9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9919 <limits.h> exists even on freestanding compilers. */ 9920 9921#ifdef __STDC__ 9922# include <limits.h> 9923#else 9924# include <assert.h> 9925#endif 9926 9927#undef $ac_func 9928 9929/* Override any GCC internal prototype to avoid an error. 9930 Use char because int might match the return type of a GCC 9931 builtin and then its argument prototype would still apply. */ 9932#ifdef __cplusplus 9933extern "C" 9934#endif 9935char $ac_func (); 9936/* The GNU C library defines this for functions which it implements 9937 to always fail with ENOSYS. Some functions are actually named 9938 something starting with __ and the normal name is an alias. */ 9939#if defined __stub_$ac_func || defined __stub___$ac_func 9940choke me 9941#endif 9942 9943int 9944main () 9945{ 9946return $ac_func (); 9947 ; 9948 return 0; 9949} 9950_ACEOF 9951rm -f conftest.$ac_objext conftest$ac_exeext 9952if { (ac_try="$ac_link" 9953case "(($ac_try" in 9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9955 *) ac_try_echo=$ac_try;; 9956esac 9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9958 (eval "$ac_link") 2>conftest.er1 9959 ac_status=$? 9960 grep -v '^ *+' conftest.er1 >conftest.err 9961 rm -f conftest.er1 9962 cat conftest.err >&5 9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9964 (exit $ac_status); } && { 9965 test -z "$ac_c_werror_flag" || 9966 test ! -s conftest.err 9967 } && test -s conftest$ac_exeext && 9968 $as_test_x conftest$ac_exeext; then 9969 eval "$as_ac_var=yes" 9970else 9971 echo "$as_me: failed program was:" >&5 9972sed 's/^/| /' conftest.$ac_ext >&5 9973 9974 eval "$as_ac_var=no" 9975fi 9976 9977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9978 conftest$ac_exeext conftest.$ac_ext 9979fi 9980ac_res=`eval echo '${'$as_ac_var'}'` 9981 { echo "$as_me:$LINENO: result: $ac_res" >&5 9982echo "${ECHO_T}$ac_res" >&6; } 9983if test `eval echo '${'$as_ac_var'}'` = yes; then 9984 cat >>confdefs.h <<_ACEOF 9985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9986_ACEOF 9987 9988fi 9989done 9990 9991 { echo "$as_me:$LINENO: checking for off64_t" >&5 9992echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 9993 if test "${tcl_cv_type_off64_t+set}" = set; then 9994 echo $ECHO_N "(cached) $ECHO_C" >&6 9995else 9996 9997 cat >conftest.$ac_ext <<_ACEOF 9998/* confdefs.h. */ 9999_ACEOF 10000cat confdefs.h >>conftest.$ac_ext 10001cat >>conftest.$ac_ext <<_ACEOF 10002/* end confdefs.h. */ 10003#include <sys/types.h> 10004int 10005main () 10006{ 10007off64_t offset; 10008 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013rm -f conftest.$ac_objext 10014if { (ac_try="$ac_compile" 10015case "(($ac_try" in 10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10017 *) ac_try_echo=$ac_try;; 10018esac 10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10020 (eval "$ac_compile") 2>conftest.er1 10021 ac_status=$? 10022 grep -v '^ *+' conftest.er1 >conftest.err 10023 rm -f conftest.er1 10024 cat conftest.err >&5 10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10026 (exit $ac_status); } && { 10027 test -z "$ac_c_werror_flag" || 10028 test ! -s conftest.err 10029 } && test -s conftest.$ac_objext; then 10030 tcl_cv_type_off64_t=yes 10031else 10032 echo "$as_me: failed program was:" >&5 10033sed 's/^/| /' conftest.$ac_ext >&5 10034 10035 tcl_cv_type_off64_t=no 10036fi 10037 10038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10039fi 10040 10041 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10042 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10043 test "x${ac_cv_func_open64}" = "xyes" ; then 10044 10045cat >>confdefs.h <<\_ACEOF 10046#define HAVE_TYPE_OFF64_T 1 10047_ACEOF 10048 10049 { echo "$as_me:$LINENO: result: yes" >&5 10050echo "${ECHO_T}yes" >&6; } 10051 else 10052 { echo "$as_me:$LINENO: result: no" >&5 10053echo "${ECHO_T}no" >&6; } 10054 fi 10055 fi 10056 10057 10058 10059#-------------------------------------------------------------------- 10060# Set the default compiler switches based on the --enable-symbols option. 10061#-------------------------------------------------------------------- 10062 10063 10064 10065 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10066echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10067 # Check whether --enable-symbols was given. 10068if test "${enable_symbols+set}" = set; then 10069 enableval=$enable_symbols; tcl_ok=$enableval 10070else 10071 tcl_ok=no 10072fi 10073 10074 DBGX="" 10075 if test "$tcl_ok" = "no"; then 10076 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10077 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10078 { echo "$as_me:$LINENO: result: no" >&5 10079echo "${ECHO_T}no" >&6; } 10080 else 10081 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10082 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10083 if test "$tcl_ok" = "yes"; then 10084 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10085echo "${ECHO_T}yes (standard debugging)" >&6; } 10086 fi 10087 fi 10088 # TEA specific: 10089 if test "${TEA_PLATFORM}" != "windows" ; then 10090 LDFLAGS_DEFAULT="${LDFLAGS}" 10091 fi 10092 10093 10094 10095 10096 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10097 10098cat >>confdefs.h <<\_ACEOF 10099#define TCL_MEM_DEBUG 1 10100_ACEOF 10101 10102 fi 10103 10104 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10105 if test "$tcl_ok" = "all"; then 10106 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10107echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10108 else 10109 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10110echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10111 fi 10112 fi 10113 10114 10115#-------------------------------------------------------------------- 10116# Everyone should be linking against the Tcl stub library. If you 10117# can't for some reason, remove this definition. If you aren't using 10118# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10119# link against the non-stubbed Tcl library. 10120#-------------------------------------------------------------------- 10121 10122cat >>confdefs.h <<\_ACEOF 10123#define USE_TCL_STUBS 1 10124_ACEOF 10125 10126 10127cat >>confdefs.h <<\_ACEOF 10128#define USE_TCL_STUBS 1 10129_ACEOF 10130 10131 10132#------------------------------------------------------------------------- 10133# Check for system header files. 10134#------------------------------------------------------------------------- 10135 10136if test "${ac_cv_header_sys_select_h+set}" = set; then 10137 { echo "$as_me:$LINENO: checking for sys/select.h" >&5 10138echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 10139if test "${ac_cv_header_sys_select_h+set}" = set; then 10140 echo $ECHO_N "(cached) $ECHO_C" >&6 10141fi 10142{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 10143echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 10144else 10145 # Is the header compilable? 10146{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5 10147echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; } 10148cat >conftest.$ac_ext <<_ACEOF 10149/* confdefs.h. */ 10150_ACEOF 10151cat confdefs.h >>conftest.$ac_ext 10152cat >>conftest.$ac_ext <<_ACEOF 10153/* end confdefs.h. */ 10154$ac_includes_default 10155#include <sys/select.h> 10156_ACEOF 10157rm -f conftest.$ac_objext 10158if { (ac_try="$ac_compile" 10159case "(($ac_try" in 10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10161 *) ac_try_echo=$ac_try;; 10162esac 10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10164 (eval "$ac_compile") 2>conftest.er1 10165 ac_status=$? 10166 grep -v '^ *+' conftest.er1 >conftest.err 10167 rm -f conftest.er1 10168 cat conftest.err >&5 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10170 (exit $ac_status); } && { 10171 test -z "$ac_c_werror_flag" || 10172 test ! -s conftest.err 10173 } && test -s conftest.$ac_objext; then 10174 ac_header_compiler=yes 10175else 10176 echo "$as_me: failed program was:" >&5 10177sed 's/^/| /' conftest.$ac_ext >&5 10178 10179 ac_header_compiler=no 10180fi 10181 10182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10183{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10184echo "${ECHO_T}$ac_header_compiler" >&6; } 10185 10186# Is the header present? 10187{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5 10188echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; } 10189cat >conftest.$ac_ext <<_ACEOF 10190/* confdefs.h. */ 10191_ACEOF 10192cat confdefs.h >>conftest.$ac_ext 10193cat >>conftest.$ac_ext <<_ACEOF 10194/* end confdefs.h. */ 10195#include <sys/select.h> 10196_ACEOF 10197if { (ac_try="$ac_cpp conftest.$ac_ext" 10198case "(($ac_try" in 10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10200 *) ac_try_echo=$ac_try;; 10201esac 10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10204 ac_status=$? 10205 grep -v '^ *+' conftest.er1 >conftest.err 10206 rm -f conftest.er1 10207 cat conftest.err >&5 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 (exit $ac_status); } >/dev/null && { 10210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10211 test ! -s conftest.err 10212 }; then 10213 ac_header_preproc=yes 10214else 10215 echo "$as_me: failed program was:" >&5 10216sed 's/^/| /' conftest.$ac_ext >&5 10217 10218 ac_header_preproc=no 10219fi 10220 10221rm -f conftest.err conftest.$ac_ext 10222{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10223echo "${ECHO_T}$ac_header_preproc" >&6; } 10224 10225# So? What about this header? 10226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10227 yes:no: ) 10228 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 10229echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10230 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 10231echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} 10232 ac_header_preproc=yes 10233 ;; 10234 no:yes:* ) 10235 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 10236echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} 10237 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 10238echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} 10239 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 10240echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} 10241 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 10242echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} 10243 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 10244echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} 10245 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 10246echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} 10247 10248 ;; 10249esac 10250{ echo "$as_me:$LINENO: checking for sys/select.h" >&5 10251echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; } 10252if test "${ac_cv_header_sys_select_h+set}" = set; then 10253 echo $ECHO_N "(cached) $ECHO_C" >&6 10254else 10255 ac_cv_header_sys_select_h=$ac_header_preproc 10256fi 10257{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 10258echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; } 10259 10260fi 10261if test $ac_cv_header_sys_select_h = yes; then 10262 cat >>confdefs.h <<\_ACEOF 10263#define HAVE_SYS_SELECT_H 1 10264_ACEOF 10265 10266fi 10267 10268 10269if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 10270 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 10271echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; } 10272if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 10273 echo $ECHO_N "(cached) $ECHO_C" >&6 10274fi 10275{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 10276echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } 10277else 10278 # Is the header compilable? 10279{ echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 10280echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; } 10281cat >conftest.$ac_ext <<_ACEOF 10282/* confdefs.h. */ 10283_ACEOF 10284cat confdefs.h >>conftest.$ac_ext 10285cat >>conftest.$ac_ext <<_ACEOF 10286/* end confdefs.h. */ 10287$ac_includes_default 10288#include <sys/sysmacros.h> 10289_ACEOF 10290rm -f conftest.$ac_objext 10291if { (ac_try="$ac_compile" 10292case "(($ac_try" in 10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10294 *) ac_try_echo=$ac_try;; 10295esac 10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10297 (eval "$ac_compile") 2>conftest.er1 10298 ac_status=$? 10299 grep -v '^ *+' conftest.er1 >conftest.err 10300 rm -f conftest.er1 10301 cat conftest.err >&5 10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && { 10304 test -z "$ac_c_werror_flag" || 10305 test ! -s conftest.err 10306 } && test -s conftest.$ac_objext; then 10307 ac_header_compiler=yes 10308else 10309 echo "$as_me: failed program was:" >&5 10310sed 's/^/| /' conftest.$ac_ext >&5 10311 10312 ac_header_compiler=no 10313fi 10314 10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10316{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10317echo "${ECHO_T}$ac_header_compiler" >&6; } 10318 10319# Is the header present? 10320{ echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 10321echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; } 10322cat >conftest.$ac_ext <<_ACEOF 10323/* confdefs.h. */ 10324_ACEOF 10325cat confdefs.h >>conftest.$ac_ext 10326cat >>conftest.$ac_ext <<_ACEOF 10327/* end confdefs.h. */ 10328#include <sys/sysmacros.h> 10329_ACEOF 10330if { (ac_try="$ac_cpp conftest.$ac_ext" 10331case "(($ac_try" in 10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10333 *) ac_try_echo=$ac_try;; 10334esac 10335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10337 ac_status=$? 10338 grep -v '^ *+' conftest.er1 >conftest.err 10339 rm -f conftest.er1 10340 cat conftest.err >&5 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10342 (exit $ac_status); } >/dev/null && { 10343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10344 test ! -s conftest.err 10345 }; then 10346 ac_header_preproc=yes 10347else 10348 echo "$as_me: failed program was:" >&5 10349sed 's/^/| /' conftest.$ac_ext >&5 10350 10351 ac_header_preproc=no 10352fi 10353 10354rm -f conftest.err conftest.$ac_ext 10355{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10356echo "${ECHO_T}$ac_header_preproc" >&6; } 10357 10358# So? What about this header? 10359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10360 yes:no: ) 10361 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 10362echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10363 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 10364echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} 10365 ac_header_preproc=yes 10366 ;; 10367 no:yes:* ) 10368 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 10369echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} 10370 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 10371echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} 10372 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 10373echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} 10374 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 10375echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} 10376 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 10377echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} 10378 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 10379echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} 10380 10381 ;; 10382esac 10383{ echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 10384echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; } 10385if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 10386 echo $ECHO_N "(cached) $ECHO_C" >&6 10387else 10388 ac_cv_header_sys_sysmacros_h=$ac_header_preproc 10389fi 10390{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 10391echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; } 10392 10393fi 10394if test $ac_cv_header_sys_sysmacros_h = yes; then 10395 cat >>confdefs.h <<\_ACEOF 10396#define HAVE_SYSMACROS_H 1 10397_ACEOF 10398 10399fi 10400 10401 10402 10403# Oddly, some systems have stdarg but don't support prototypes 10404# Tcl avoids the whole issue by not using stdarg on UNIX at all! 10405 10406 10407if test "${ac_cv_header_varargs_h+set}" = set; then 10408 { echo "$as_me:$LINENO: checking for varargs.h" >&5 10409echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6; } 10410if test "${ac_cv_header_varargs_h+set}" = set; then 10411 echo $ECHO_N "(cached) $ECHO_C" >&6 10412fi 10413{ echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5 10414echo "${ECHO_T}$ac_cv_header_varargs_h" >&6; } 10415else 10416 # Is the header compilable? 10417{ echo "$as_me:$LINENO: checking varargs.h usability" >&5 10418echo $ECHO_N "checking varargs.h usability... $ECHO_C" >&6; } 10419cat >conftest.$ac_ext <<_ACEOF 10420/* confdefs.h. */ 10421_ACEOF 10422cat confdefs.h >>conftest.$ac_ext 10423cat >>conftest.$ac_ext <<_ACEOF 10424/* end confdefs.h. */ 10425$ac_includes_default 10426#include <varargs.h> 10427_ACEOF 10428rm -f conftest.$ac_objext 10429if { (ac_try="$ac_compile" 10430case "(($ac_try" in 10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10432 *) ac_try_echo=$ac_try;; 10433esac 10434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10435 (eval "$ac_compile") 2>conftest.er1 10436 ac_status=$? 10437 grep -v '^ *+' conftest.er1 >conftest.err 10438 rm -f conftest.er1 10439 cat conftest.err >&5 10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10441 (exit $ac_status); } && { 10442 test -z "$ac_c_werror_flag" || 10443 test ! -s conftest.err 10444 } && test -s conftest.$ac_objext; then 10445 ac_header_compiler=yes 10446else 10447 echo "$as_me: failed program was:" >&5 10448sed 's/^/| /' conftest.$ac_ext >&5 10449 10450 ac_header_compiler=no 10451fi 10452 10453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10455echo "${ECHO_T}$ac_header_compiler" >&6; } 10456 10457# Is the header present? 10458{ echo "$as_me:$LINENO: checking varargs.h presence" >&5 10459echo $ECHO_N "checking varargs.h presence... $ECHO_C" >&6; } 10460cat >conftest.$ac_ext <<_ACEOF 10461/* confdefs.h. */ 10462_ACEOF 10463cat confdefs.h >>conftest.$ac_ext 10464cat >>conftest.$ac_ext <<_ACEOF 10465/* end confdefs.h. */ 10466#include <varargs.h> 10467_ACEOF 10468if { (ac_try="$ac_cpp conftest.$ac_ext" 10469case "(($ac_try" in 10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10471 *) ac_try_echo=$ac_try;; 10472esac 10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10475 ac_status=$? 10476 grep -v '^ *+' conftest.er1 >conftest.err 10477 rm -f conftest.er1 10478 cat conftest.err >&5 10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10480 (exit $ac_status); } >/dev/null && { 10481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10482 test ! -s conftest.err 10483 }; then 10484 ac_header_preproc=yes 10485else 10486 echo "$as_me: failed program was:" >&5 10487sed 's/^/| /' conftest.$ac_ext >&5 10488 10489 ac_header_preproc=no 10490fi 10491 10492rm -f conftest.err conftest.$ac_ext 10493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10494echo "${ECHO_T}$ac_header_preproc" >&6; } 10495 10496# So? What about this header? 10497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10498 yes:no: ) 10499 { echo "$as_me:$LINENO: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&5 10500echo "$as_me: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10501 { echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the compiler's result" >&5 10502echo "$as_me: WARNING: varargs.h: proceeding with the compiler's result" >&2;} 10503 ac_header_preproc=yes 10504 ;; 10505 no:yes:* ) 10506 { echo "$as_me:$LINENO: WARNING: varargs.h: present but cannot be compiled" >&5 10507echo "$as_me: WARNING: varargs.h: present but cannot be compiled" >&2;} 10508 { echo "$as_me:$LINENO: WARNING: varargs.h: check for missing prerequisite headers?" >&5 10509echo "$as_me: WARNING: varargs.h: check for missing prerequisite headers?" >&2;} 10510 { echo "$as_me:$LINENO: WARNING: varargs.h: see the Autoconf documentation" >&5 10511echo "$as_me: WARNING: varargs.h: see the Autoconf documentation" >&2;} 10512 { echo "$as_me:$LINENO: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&5 10513echo "$as_me: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&2;} 10514 { echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the preprocessor's result" >&5 10515echo "$as_me: WARNING: varargs.h: proceeding with the preprocessor's result" >&2;} 10516 { echo "$as_me:$LINENO: WARNING: varargs.h: in the future, the compiler will take precedence" >&5 10517echo "$as_me: WARNING: varargs.h: in the future, the compiler will take precedence" >&2;} 10518 10519 ;; 10520esac 10521{ echo "$as_me:$LINENO: checking for varargs.h" >&5 10522echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6; } 10523if test "${ac_cv_header_varargs_h+set}" = set; then 10524 echo $ECHO_N "(cached) $ECHO_C" >&6 10525else 10526 ac_cv_header_varargs_h=$ac_header_preproc 10527fi 10528{ echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5 10529echo "${ECHO_T}$ac_cv_header_varargs_h" >&6; } 10530 10531fi 10532if test $ac_cv_header_varargs_h = yes; then 10533 cat >>confdefs.h <<\_ACEOF 10534#define HAVE_VARARGS_H 1 10535_ACEOF 10536 10537fi 10538 10539 10540 10541# If no stropts.h, then the svr4 implementation is broken. 10542# At least it is on my Debian "potato" system. - Rob Savoye 10543 10544if test "${ac_cv_header_sys_stropts_h+set}" = set; then 10545 { echo "$as_me:$LINENO: checking for sys/stropts.h" >&5 10546echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6; } 10547if test "${ac_cv_header_sys_stropts_h+set}" = set; then 10548 echo $ECHO_N "(cached) $ECHO_C" >&6 10549fi 10550{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5 10551echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6; } 10552else 10553 # Is the header compilable? 10554{ echo "$as_me:$LINENO: checking sys/stropts.h usability" >&5 10555echo $ECHO_N "checking sys/stropts.h usability... $ECHO_C" >&6; } 10556cat >conftest.$ac_ext <<_ACEOF 10557/* confdefs.h. */ 10558_ACEOF 10559cat confdefs.h >>conftest.$ac_ext 10560cat >>conftest.$ac_ext <<_ACEOF 10561/* end confdefs.h. */ 10562$ac_includes_default 10563#include <sys/stropts.h> 10564_ACEOF 10565rm -f conftest.$ac_objext 10566if { (ac_try="$ac_compile" 10567case "(($ac_try" in 10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10569 *) ac_try_echo=$ac_try;; 10570esac 10571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10572 (eval "$ac_compile") 2>conftest.er1 10573 ac_status=$? 10574 grep -v '^ *+' conftest.er1 >conftest.err 10575 rm -f conftest.er1 10576 cat conftest.err >&5 10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10578 (exit $ac_status); } && { 10579 test -z "$ac_c_werror_flag" || 10580 test ! -s conftest.err 10581 } && test -s conftest.$ac_objext; then 10582 ac_header_compiler=yes 10583else 10584 echo "$as_me: failed program was:" >&5 10585sed 's/^/| /' conftest.$ac_ext >&5 10586 10587 ac_header_compiler=no 10588fi 10589 10590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10591{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10592echo "${ECHO_T}$ac_header_compiler" >&6; } 10593 10594# Is the header present? 10595{ echo "$as_me:$LINENO: checking sys/stropts.h presence" >&5 10596echo $ECHO_N "checking sys/stropts.h presence... $ECHO_C" >&6; } 10597cat >conftest.$ac_ext <<_ACEOF 10598/* confdefs.h. */ 10599_ACEOF 10600cat confdefs.h >>conftest.$ac_ext 10601cat >>conftest.$ac_ext <<_ACEOF 10602/* end confdefs.h. */ 10603#include <sys/stropts.h> 10604_ACEOF 10605if { (ac_try="$ac_cpp conftest.$ac_ext" 10606case "(($ac_try" in 10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10608 *) ac_try_echo=$ac_try;; 10609esac 10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10612 ac_status=$? 10613 grep -v '^ *+' conftest.er1 >conftest.err 10614 rm -f conftest.er1 10615 cat conftest.err >&5 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); } >/dev/null && { 10618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10619 test ! -s conftest.err 10620 }; then 10621 ac_header_preproc=yes 10622else 10623 echo "$as_me: failed program was:" >&5 10624sed 's/^/| /' conftest.$ac_ext >&5 10625 10626 ac_header_preproc=no 10627fi 10628 10629rm -f conftest.err conftest.$ac_ext 10630{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10631echo "${ECHO_T}$ac_header_preproc" >&6; } 10632 10633# So? What about this header? 10634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10635 yes:no: ) 10636 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&5 10637echo "$as_me: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10638 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the compiler's result" >&5 10639echo "$as_me: WARNING: sys/stropts.h: proceeding with the compiler's result" >&2;} 10640 ac_header_preproc=yes 10641 ;; 10642 no:yes:* ) 10643 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: present but cannot be compiled" >&5 10644echo "$as_me: WARNING: sys/stropts.h: present but cannot be compiled" >&2;} 10645 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: check for missing prerequisite headers?" >&5 10646echo "$as_me: WARNING: sys/stropts.h: check for missing prerequisite headers?" >&2;} 10647 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: see the Autoconf documentation" >&5 10648echo "$as_me: WARNING: sys/stropts.h: see the Autoconf documentation" >&2;} 10649 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: section \"Present But Cannot Be Compiled\"" >&5 10650echo "$as_me: WARNING: sys/stropts.h: section \"Present But Cannot Be Compiled\"" >&2;} 10651 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&5 10652echo "$as_me: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&2;} 10653 { echo "$as_me:$LINENO: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&5 10654echo "$as_me: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&2;} 10655 10656 ;; 10657esac 10658{ echo "$as_me:$LINENO: checking for sys/stropts.h" >&5 10659echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6; } 10660if test "${ac_cv_header_sys_stropts_h+set}" = set; then 10661 echo $ECHO_N "(cached) $ECHO_C" >&6 10662else 10663 ac_cv_header_sys_stropts_h=$ac_header_preproc 10664fi 10665{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5 10666echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6; } 10667 10668fi 10669if test $ac_cv_header_sys_stropts_h = yes; then 10670 cat >>confdefs.h <<\_ACEOF 10671#define HAVE_STROPTS_H 1 10672_ACEOF 10673 10674else 10675 svr4_ptys_broken=1 10676fi 10677 10678 10679if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then 10680 { echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5 10681echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6; } 10682if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then 10683 echo $ECHO_N "(cached) $ECHO_C" >&6 10684fi 10685{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5 10686echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6; } 10687else 10688 # Is the header compilable? 10689{ echo "$as_me:$LINENO: checking sys/sysconfig.h usability" >&5 10690echo $ECHO_N "checking sys/sysconfig.h usability... $ECHO_C" >&6; } 10691cat >conftest.$ac_ext <<_ACEOF 10692/* confdefs.h. */ 10693_ACEOF 10694cat confdefs.h >>conftest.$ac_ext 10695cat >>conftest.$ac_ext <<_ACEOF 10696/* end confdefs.h. */ 10697$ac_includes_default 10698#include <sys/sysconfig.h> 10699_ACEOF 10700rm -f conftest.$ac_objext 10701if { (ac_try="$ac_compile" 10702case "(($ac_try" in 10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10704 *) ac_try_echo=$ac_try;; 10705esac 10706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10707 (eval "$ac_compile") 2>conftest.er1 10708 ac_status=$? 10709 grep -v '^ *+' conftest.er1 >conftest.err 10710 rm -f conftest.er1 10711 cat conftest.err >&5 10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10713 (exit $ac_status); } && { 10714 test -z "$ac_c_werror_flag" || 10715 test ! -s conftest.err 10716 } && test -s conftest.$ac_objext; then 10717 ac_header_compiler=yes 10718else 10719 echo "$as_me: failed program was:" >&5 10720sed 's/^/| /' conftest.$ac_ext >&5 10721 10722 ac_header_compiler=no 10723fi 10724 10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10727echo "${ECHO_T}$ac_header_compiler" >&6; } 10728 10729# Is the header present? 10730{ echo "$as_me:$LINENO: checking sys/sysconfig.h presence" >&5 10731echo $ECHO_N "checking sys/sysconfig.h presence... $ECHO_C" >&6; } 10732cat >conftest.$ac_ext <<_ACEOF 10733/* confdefs.h. */ 10734_ACEOF 10735cat confdefs.h >>conftest.$ac_ext 10736cat >>conftest.$ac_ext <<_ACEOF 10737/* end confdefs.h. */ 10738#include <sys/sysconfig.h> 10739_ACEOF 10740if { (ac_try="$ac_cpp conftest.$ac_ext" 10741case "(($ac_try" in 10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10743 *) ac_try_echo=$ac_try;; 10744esac 10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10747 ac_status=$? 10748 grep -v '^ *+' conftest.er1 >conftest.err 10749 rm -f conftest.er1 10750 cat conftest.err >&5 10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10752 (exit $ac_status); } >/dev/null && { 10753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10754 test ! -s conftest.err 10755 }; then 10756 ac_header_preproc=yes 10757else 10758 echo "$as_me: failed program was:" >&5 10759sed 's/^/| /' conftest.$ac_ext >&5 10760 10761 ac_header_preproc=no 10762fi 10763 10764rm -f conftest.err conftest.$ac_ext 10765{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10766echo "${ECHO_T}$ac_header_preproc" >&6; } 10767 10768# So? What about this header? 10769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10770 yes:no: ) 10771 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 10772echo "$as_me: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10773 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&5 10774echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&2;} 10775 ac_header_preproc=yes 10776 ;; 10777 no:yes:* ) 10778 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: present but cannot be compiled" >&5 10779echo "$as_me: WARNING: sys/sysconfig.h: present but cannot be compiled" >&2;} 10780 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: check for missing prerequisite headers?" >&5 10781echo "$as_me: WARNING: sys/sysconfig.h: check for missing prerequisite headers?" >&2;} 10782 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&5 10783echo "$as_me: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&2;} 10784 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: section \"Present But Cannot Be Compiled\"" >&5 10785echo "$as_me: WARNING: sys/sysconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 10786 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&5 10787echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&2;} 10788 { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&5 10789echo "$as_me: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&2;} 10790 10791 ;; 10792esac 10793{ echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5 10794echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6; } 10795if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then 10796 echo $ECHO_N "(cached) $ECHO_C" >&6 10797else 10798 ac_cv_header_sys_sysconfig_h=$ac_header_preproc 10799fi 10800{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5 10801echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6; } 10802 10803fi 10804if test $ac_cv_header_sys_sysconfig_h = yes; then 10805 cat >>confdefs.h <<\_ACEOF 10806#define HAVE_SYSCONF_H 1 10807_ACEOF 10808 10809fi 10810 10811 10812if test "${ac_cv_header_sys_fcntl_h+set}" = set; then 10813 { echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5 10814echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6; } 10815if test "${ac_cv_header_sys_fcntl_h+set}" = set; then 10816 echo $ECHO_N "(cached) $ECHO_C" >&6 10817fi 10818{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5 10819echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6; } 10820else 10821 # Is the header compilable? 10822{ echo "$as_me:$LINENO: checking sys/fcntl.h usability" >&5 10823echo $ECHO_N "checking sys/fcntl.h usability... $ECHO_C" >&6; } 10824cat >conftest.$ac_ext <<_ACEOF 10825/* confdefs.h. */ 10826_ACEOF 10827cat confdefs.h >>conftest.$ac_ext 10828cat >>conftest.$ac_ext <<_ACEOF 10829/* end confdefs.h. */ 10830$ac_includes_default 10831#include <sys/fcntl.h> 10832_ACEOF 10833rm -f conftest.$ac_objext 10834if { (ac_try="$ac_compile" 10835case "(($ac_try" in 10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10837 *) ac_try_echo=$ac_try;; 10838esac 10839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10840 (eval "$ac_compile") 2>conftest.er1 10841 ac_status=$? 10842 grep -v '^ *+' conftest.er1 >conftest.err 10843 rm -f conftest.er1 10844 cat conftest.err >&5 10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10846 (exit $ac_status); } && { 10847 test -z "$ac_c_werror_flag" || 10848 test ! -s conftest.err 10849 } && test -s conftest.$ac_objext; then 10850 ac_header_compiler=yes 10851else 10852 echo "$as_me: failed program was:" >&5 10853sed 's/^/| /' conftest.$ac_ext >&5 10854 10855 ac_header_compiler=no 10856fi 10857 10858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10860echo "${ECHO_T}$ac_header_compiler" >&6; } 10861 10862# Is the header present? 10863{ echo "$as_me:$LINENO: checking sys/fcntl.h presence" >&5 10864echo $ECHO_N "checking sys/fcntl.h presence... $ECHO_C" >&6; } 10865cat >conftest.$ac_ext <<_ACEOF 10866/* confdefs.h. */ 10867_ACEOF 10868cat confdefs.h >>conftest.$ac_ext 10869cat >>conftest.$ac_ext <<_ACEOF 10870/* end confdefs.h. */ 10871#include <sys/fcntl.h> 10872_ACEOF 10873if { (ac_try="$ac_cpp conftest.$ac_ext" 10874case "(($ac_try" in 10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10876 *) ac_try_echo=$ac_try;; 10877esac 10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10880 ac_status=$? 10881 grep -v '^ *+' conftest.er1 >conftest.err 10882 rm -f conftest.er1 10883 cat conftest.err >&5 10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10885 (exit $ac_status); } >/dev/null && { 10886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10887 test ! -s conftest.err 10888 }; then 10889 ac_header_preproc=yes 10890else 10891 echo "$as_me: failed program was:" >&5 10892sed 's/^/| /' conftest.$ac_ext >&5 10893 10894 ac_header_preproc=no 10895fi 10896 10897rm -f conftest.err conftest.$ac_ext 10898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10899echo "${ECHO_T}$ac_header_preproc" >&6; } 10900 10901# So? What about this header? 10902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10903 yes:no: ) 10904 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 10905echo "$as_me: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10906 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&5 10907echo "$as_me: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&2;} 10908 ac_header_preproc=yes 10909 ;; 10910 no:yes:* ) 10911 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: present but cannot be compiled" >&5 10912echo "$as_me: WARNING: sys/fcntl.h: present but cannot be compiled" >&2;} 10913 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: check for missing prerequisite headers?" >&5 10914echo "$as_me: WARNING: sys/fcntl.h: check for missing prerequisite headers?" >&2;} 10915 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: see the Autoconf documentation" >&5 10916echo "$as_me: WARNING: sys/fcntl.h: see the Autoconf documentation" >&2;} 10917 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 10918echo "$as_me: WARNING: sys/fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} 10919 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&5 10920echo "$as_me: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&2;} 10921 { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&5 10922echo "$as_me: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&2;} 10923 10924 ;; 10925esac 10926{ echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5 10927echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6; } 10928if test "${ac_cv_header_sys_fcntl_h+set}" = set; then 10929 echo $ECHO_N "(cached) $ECHO_C" >&6 10930else 10931 ac_cv_header_sys_fcntl_h=$ac_header_preproc 10932fi 10933{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5 10934echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6; } 10935 10936fi 10937if test $ac_cv_header_sys_fcntl_h = yes; then 10938 cat >>confdefs.h <<\_ACEOF 10939#define HAVE_SYS_FCNTL_H 1 10940_ACEOF 10941 10942fi 10943 10944 10945if test "${ac_cv_header_sys_ptem_h+set}" = set; then 10946 { echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 10947echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6; } 10948if test "${ac_cv_header_sys_ptem_h+set}" = set; then 10949 echo $ECHO_N "(cached) $ECHO_C" >&6 10950fi 10951{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 10952echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6; } 10953else 10954 # Is the header compilable? 10955{ echo "$as_me:$LINENO: checking sys/ptem.h usability" >&5 10956echo $ECHO_N "checking sys/ptem.h usability... $ECHO_C" >&6; } 10957cat >conftest.$ac_ext <<_ACEOF 10958/* confdefs.h. */ 10959_ACEOF 10960cat confdefs.h >>conftest.$ac_ext 10961cat >>conftest.$ac_ext <<_ACEOF 10962/* end confdefs.h. */ 10963$ac_includes_default 10964#include <sys/ptem.h> 10965_ACEOF 10966rm -f conftest.$ac_objext 10967if { (ac_try="$ac_compile" 10968case "(($ac_try" in 10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10970 *) ac_try_echo=$ac_try;; 10971esac 10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10973 (eval "$ac_compile") 2>conftest.er1 10974 ac_status=$? 10975 grep -v '^ *+' conftest.er1 >conftest.err 10976 rm -f conftest.er1 10977 cat conftest.err >&5 10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10979 (exit $ac_status); } && { 10980 test -z "$ac_c_werror_flag" || 10981 test ! -s conftest.err 10982 } && test -s conftest.$ac_objext; then 10983 ac_header_compiler=yes 10984else 10985 echo "$as_me: failed program was:" >&5 10986sed 's/^/| /' conftest.$ac_ext >&5 10987 10988 ac_header_compiler=no 10989fi 10990 10991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10993echo "${ECHO_T}$ac_header_compiler" >&6; } 10994 10995# Is the header present? 10996{ echo "$as_me:$LINENO: checking sys/ptem.h presence" >&5 10997echo $ECHO_N "checking sys/ptem.h presence... $ECHO_C" >&6; } 10998cat >conftest.$ac_ext <<_ACEOF 10999/* confdefs.h. */ 11000_ACEOF 11001cat confdefs.h >>conftest.$ac_ext 11002cat >>conftest.$ac_ext <<_ACEOF 11003/* end confdefs.h. */ 11004#include <sys/ptem.h> 11005_ACEOF 11006if { (ac_try="$ac_cpp conftest.$ac_ext" 11007case "(($ac_try" in 11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11009 *) ac_try_echo=$ac_try;; 11010esac 11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11013 ac_status=$? 11014 grep -v '^ *+' conftest.er1 >conftest.err 11015 rm -f conftest.er1 11016 cat conftest.err >&5 11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11018 (exit $ac_status); } >/dev/null && { 11019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11020 test ! -s conftest.err 11021 }; then 11022 ac_header_preproc=yes 11023else 11024 echo "$as_me: failed program was:" >&5 11025sed 's/^/| /' conftest.$ac_ext >&5 11026 11027 ac_header_preproc=no 11028fi 11029 11030rm -f conftest.err conftest.$ac_ext 11031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11032echo "${ECHO_T}$ac_header_preproc" >&6; } 11033 11034# So? What about this header? 11035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11036 yes:no: ) 11037 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&5 11038echo "$as_me: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11039 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the compiler's result" >&5 11040echo "$as_me: WARNING: sys/ptem.h: proceeding with the compiler's result" >&2;} 11041 ac_header_preproc=yes 11042 ;; 11043 no:yes:* ) 11044 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: present but cannot be compiled" >&5 11045echo "$as_me: WARNING: sys/ptem.h: present but cannot be compiled" >&2;} 11046 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: check for missing prerequisite headers?" >&5 11047echo "$as_me: WARNING: sys/ptem.h: check for missing prerequisite headers?" >&2;} 11048 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: see the Autoconf documentation" >&5 11049echo "$as_me: WARNING: sys/ptem.h: see the Autoconf documentation" >&2;} 11050 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: section \"Present But Cannot Be Compiled\"" >&5 11051echo "$as_me: WARNING: sys/ptem.h: section \"Present But Cannot Be Compiled\"" >&2;} 11052 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&5 11053echo "$as_me: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&2;} 11054 { echo "$as_me:$LINENO: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&5 11055echo "$as_me: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&2;} 11056 11057 ;; 11058esac 11059{ echo "$as_me:$LINENO: checking for sys/ptem.h" >&5 11060echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6; } 11061if test "${ac_cv_header_sys_ptem_h+set}" = set; then 11062 echo $ECHO_N "(cached) $ECHO_C" >&6 11063else 11064 ac_cv_header_sys_ptem_h=$ac_header_preproc 11065fi 11066{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5 11067echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6; } 11068 11069fi 11070if test $ac_cv_header_sys_ptem_h = yes; then 11071 cat >>confdefs.h <<\_ACEOF 11072#define HAVE_SYS_PTEM_H 1 11073_ACEOF 11074 11075fi 11076 11077 11078if test "${ac_cv_header_sys_strredir_h+set}" = set; then 11079 { echo "$as_me:$LINENO: checking for sys/strredir.h" >&5 11080echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6; } 11081if test "${ac_cv_header_sys_strredir_h+set}" = set; then 11082 echo $ECHO_N "(cached) $ECHO_C" >&6 11083fi 11084{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5 11085echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6; } 11086else 11087 # Is the header compilable? 11088{ echo "$as_me:$LINENO: checking sys/strredir.h usability" >&5 11089echo $ECHO_N "checking sys/strredir.h usability... $ECHO_C" >&6; } 11090cat >conftest.$ac_ext <<_ACEOF 11091/* confdefs.h. */ 11092_ACEOF 11093cat confdefs.h >>conftest.$ac_ext 11094cat >>conftest.$ac_ext <<_ACEOF 11095/* end confdefs.h. */ 11096$ac_includes_default 11097#include <sys/strredir.h> 11098_ACEOF 11099rm -f conftest.$ac_objext 11100if { (ac_try="$ac_compile" 11101case "(($ac_try" in 11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11103 *) ac_try_echo=$ac_try;; 11104esac 11105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11106 (eval "$ac_compile") 2>conftest.er1 11107 ac_status=$? 11108 grep -v '^ *+' conftest.er1 >conftest.err 11109 rm -f conftest.er1 11110 cat conftest.err >&5 11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11112 (exit $ac_status); } && { 11113 test -z "$ac_c_werror_flag" || 11114 test ! -s conftest.err 11115 } && test -s conftest.$ac_objext; then 11116 ac_header_compiler=yes 11117else 11118 echo "$as_me: failed program was:" >&5 11119sed 's/^/| /' conftest.$ac_ext >&5 11120 11121 ac_header_compiler=no 11122fi 11123 11124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11125{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11126echo "${ECHO_T}$ac_header_compiler" >&6; } 11127 11128# Is the header present? 11129{ echo "$as_me:$LINENO: checking sys/strredir.h presence" >&5 11130echo $ECHO_N "checking sys/strredir.h presence... $ECHO_C" >&6; } 11131cat >conftest.$ac_ext <<_ACEOF 11132/* confdefs.h. */ 11133_ACEOF 11134cat confdefs.h >>conftest.$ac_ext 11135cat >>conftest.$ac_ext <<_ACEOF 11136/* end confdefs.h. */ 11137#include <sys/strredir.h> 11138_ACEOF 11139if { (ac_try="$ac_cpp conftest.$ac_ext" 11140case "(($ac_try" in 11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11142 *) ac_try_echo=$ac_try;; 11143esac 11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11146 ac_status=$? 11147 grep -v '^ *+' conftest.er1 >conftest.err 11148 rm -f conftest.er1 11149 cat conftest.err >&5 11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11151 (exit $ac_status); } >/dev/null && { 11152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11153 test ! -s conftest.err 11154 }; then 11155 ac_header_preproc=yes 11156else 11157 echo "$as_me: failed program was:" >&5 11158sed 's/^/| /' conftest.$ac_ext >&5 11159 11160 ac_header_preproc=no 11161fi 11162 11163rm -f conftest.err conftest.$ac_ext 11164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11165echo "${ECHO_T}$ac_header_preproc" >&6; } 11166 11167# So? What about this header? 11168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11169 yes:no: ) 11170 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&5 11171echo "$as_me: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11172 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the compiler's result" >&5 11173echo "$as_me: WARNING: sys/strredir.h: proceeding with the compiler's result" >&2;} 11174 ac_header_preproc=yes 11175 ;; 11176 no:yes:* ) 11177 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: present but cannot be compiled" >&5 11178echo "$as_me: WARNING: sys/strredir.h: present but cannot be compiled" >&2;} 11179 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: check for missing prerequisite headers?" >&5 11180echo "$as_me: WARNING: sys/strredir.h: check for missing prerequisite headers?" >&2;} 11181 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: see the Autoconf documentation" >&5 11182echo "$as_me: WARNING: sys/strredir.h: see the Autoconf documentation" >&2;} 11183 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: section \"Present But Cannot Be Compiled\"" >&5 11184echo "$as_me: WARNING: sys/strredir.h: section \"Present But Cannot Be Compiled\"" >&2;} 11185 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&5 11186echo "$as_me: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&2;} 11187 { echo "$as_me:$LINENO: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&5 11188echo "$as_me: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&2;} 11189 11190 ;; 11191esac 11192{ echo "$as_me:$LINENO: checking for sys/strredir.h" >&5 11193echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6; } 11194if test "${ac_cv_header_sys_strredir_h+set}" = set; then 11195 echo $ECHO_N "(cached) $ECHO_C" >&6 11196else 11197 ac_cv_header_sys_strredir_h=$ac_header_preproc 11198fi 11199{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5 11200echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6; } 11201 11202fi 11203if test $ac_cv_header_sys_strredir_h = yes; then 11204 cat >>confdefs.h <<\_ACEOF 11205#define HAVE_STRREDIR_H 1 11206_ACEOF 11207 11208fi 11209 11210 11211if test "${ac_cv_header_sys_strpty_h+set}" = set; then 11212 { echo "$as_me:$LINENO: checking for sys/strpty.h" >&5 11213echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6; } 11214if test "${ac_cv_header_sys_strpty_h+set}" = set; then 11215 echo $ECHO_N "(cached) $ECHO_C" >&6 11216fi 11217{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5 11218echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6; } 11219else 11220 # Is the header compilable? 11221{ echo "$as_me:$LINENO: checking sys/strpty.h usability" >&5 11222echo $ECHO_N "checking sys/strpty.h usability... $ECHO_C" >&6; } 11223cat >conftest.$ac_ext <<_ACEOF 11224/* confdefs.h. */ 11225_ACEOF 11226cat confdefs.h >>conftest.$ac_ext 11227cat >>conftest.$ac_ext <<_ACEOF 11228/* end confdefs.h. */ 11229$ac_includes_default 11230#include <sys/strpty.h> 11231_ACEOF 11232rm -f conftest.$ac_objext 11233if { (ac_try="$ac_compile" 11234case "(($ac_try" in 11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11236 *) ac_try_echo=$ac_try;; 11237esac 11238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11239 (eval "$ac_compile") 2>conftest.er1 11240 ac_status=$? 11241 grep -v '^ *+' conftest.er1 >conftest.err 11242 rm -f conftest.er1 11243 cat conftest.err >&5 11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11245 (exit $ac_status); } && { 11246 test -z "$ac_c_werror_flag" || 11247 test ! -s conftest.err 11248 } && test -s conftest.$ac_objext; then 11249 ac_header_compiler=yes 11250else 11251 echo "$as_me: failed program was:" >&5 11252sed 's/^/| /' conftest.$ac_ext >&5 11253 11254 ac_header_compiler=no 11255fi 11256 11257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11259echo "${ECHO_T}$ac_header_compiler" >&6; } 11260 11261# Is the header present? 11262{ echo "$as_me:$LINENO: checking sys/strpty.h presence" >&5 11263echo $ECHO_N "checking sys/strpty.h presence... $ECHO_C" >&6; } 11264cat >conftest.$ac_ext <<_ACEOF 11265/* confdefs.h. */ 11266_ACEOF 11267cat confdefs.h >>conftest.$ac_ext 11268cat >>conftest.$ac_ext <<_ACEOF 11269/* end confdefs.h. */ 11270#include <sys/strpty.h> 11271_ACEOF 11272if { (ac_try="$ac_cpp conftest.$ac_ext" 11273case "(($ac_try" in 11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11275 *) ac_try_echo=$ac_try;; 11276esac 11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11279 ac_status=$? 11280 grep -v '^ *+' conftest.er1 >conftest.err 11281 rm -f conftest.er1 11282 cat conftest.err >&5 11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11284 (exit $ac_status); } >/dev/null && { 11285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11286 test ! -s conftest.err 11287 }; then 11288 ac_header_preproc=yes 11289else 11290 echo "$as_me: failed program was:" >&5 11291sed 's/^/| /' conftest.$ac_ext >&5 11292 11293 ac_header_preproc=no 11294fi 11295 11296rm -f conftest.err conftest.$ac_ext 11297{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11298echo "${ECHO_T}$ac_header_preproc" >&6; } 11299 11300# So? What about this header? 11301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11302 yes:no: ) 11303 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&5 11304echo "$as_me: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11305 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the compiler's result" >&5 11306echo "$as_me: WARNING: sys/strpty.h: proceeding with the compiler's result" >&2;} 11307 ac_header_preproc=yes 11308 ;; 11309 no:yes:* ) 11310 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: present but cannot be compiled" >&5 11311echo "$as_me: WARNING: sys/strpty.h: present but cannot be compiled" >&2;} 11312 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: check for missing prerequisite headers?" >&5 11313echo "$as_me: WARNING: sys/strpty.h: check for missing prerequisite headers?" >&2;} 11314 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: see the Autoconf documentation" >&5 11315echo "$as_me: WARNING: sys/strpty.h: see the Autoconf documentation" >&2;} 11316 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: section \"Present But Cannot Be Compiled\"" >&5 11317echo "$as_me: WARNING: sys/strpty.h: section \"Present But Cannot Be Compiled\"" >&2;} 11318 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&5 11319echo "$as_me: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&2;} 11320 { echo "$as_me:$LINENO: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&5 11321echo "$as_me: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&2;} 11322 11323 ;; 11324esac 11325{ echo "$as_me:$LINENO: checking for sys/strpty.h" >&5 11326echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6; } 11327if test "${ac_cv_header_sys_strpty_h+set}" = set; then 11328 echo $ECHO_N "(cached) $ECHO_C" >&6 11329else 11330 ac_cv_header_sys_strpty_h=$ac_header_preproc 11331fi 11332{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5 11333echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6; } 11334 11335fi 11336if test $ac_cv_header_sys_strpty_h = yes; then 11337 cat >>confdefs.h <<\_ACEOF 11338#define HAVE_STRPTY_H 1 11339_ACEOF 11340 11341fi 11342 11343 11344 11345{ echo "$as_me:$LINENO: checking for sys/bsdtypes.h" >&5 11346echo $ECHO_N "checking for sys/bsdtypes.h... $ECHO_C" >&6; } 11347if test "ISC_${ISC}" = "ISC_1" ; then 11348 { echo "$as_me:$LINENO: result: yes" >&5 11349echo "${ECHO_T}yes" >&6; } 11350 # if on ISC 1, we need <sys/bsdtypes.h> to get FD_SET macros 11351 11352for ac_header in sys/bsdtypes.h 11353do 11354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11356 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11359 echo $ECHO_N "(cached) $ECHO_C" >&6 11360fi 11361ac_res=`eval echo '${'$as_ac_Header'}'` 11362 { echo "$as_me:$LINENO: result: $ac_res" >&5 11363echo "${ECHO_T}$ac_res" >&6; } 11364else 11365 # Is the header compilable? 11366{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11368cat >conftest.$ac_ext <<_ACEOF 11369/* confdefs.h. */ 11370_ACEOF 11371cat confdefs.h >>conftest.$ac_ext 11372cat >>conftest.$ac_ext <<_ACEOF 11373/* end confdefs.h. */ 11374$ac_includes_default 11375#include <$ac_header> 11376_ACEOF 11377rm -f conftest.$ac_objext 11378if { (ac_try="$ac_compile" 11379case "(($ac_try" in 11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11381 *) ac_try_echo=$ac_try;; 11382esac 11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11384 (eval "$ac_compile") 2>conftest.er1 11385 ac_status=$? 11386 grep -v '^ *+' conftest.er1 >conftest.err 11387 rm -f conftest.er1 11388 cat conftest.err >&5 11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11390 (exit $ac_status); } && { 11391 test -z "$ac_c_werror_flag" || 11392 test ! -s conftest.err 11393 } && test -s conftest.$ac_objext; then 11394 ac_header_compiler=yes 11395else 11396 echo "$as_me: failed program was:" >&5 11397sed 's/^/| /' conftest.$ac_ext >&5 11398 11399 ac_header_compiler=no 11400fi 11401 11402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11403{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11404echo "${ECHO_T}$ac_header_compiler" >&6; } 11405 11406# Is the header present? 11407{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11409cat >conftest.$ac_ext <<_ACEOF 11410/* confdefs.h. */ 11411_ACEOF 11412cat confdefs.h >>conftest.$ac_ext 11413cat >>conftest.$ac_ext <<_ACEOF 11414/* end confdefs.h. */ 11415#include <$ac_header> 11416_ACEOF 11417if { (ac_try="$ac_cpp conftest.$ac_ext" 11418case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421esac 11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11424 ac_status=$? 11425 grep -v '^ *+' conftest.er1 >conftest.err 11426 rm -f conftest.er1 11427 cat conftest.err >&5 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); } >/dev/null && { 11430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11431 test ! -s conftest.err 11432 }; then 11433 ac_header_preproc=yes 11434else 11435 echo "$as_me: failed program was:" >&5 11436sed 's/^/| /' conftest.$ac_ext >&5 11437 11438 ac_header_preproc=no 11439fi 11440 11441rm -f conftest.err conftest.$ac_ext 11442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11443echo "${ECHO_T}$ac_header_preproc" >&6; } 11444 11445# So? What about this header? 11446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11447 yes:no: ) 11448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11452 ac_header_preproc=yes 11453 ;; 11454 no:yes:* ) 11455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11467 11468 ;; 11469esac 11470{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11473 echo $ECHO_N "(cached) $ECHO_C" >&6 11474else 11475 eval "$as_ac_Header=\$ac_header_preproc" 11476fi 11477ac_res=`eval echo '${'$as_ac_Header'}'` 11478 { echo "$as_me:$LINENO: result: $ac_res" >&5 11479echo "${ECHO_T}$ac_res" >&6; } 11480 11481fi 11482if test `eval echo '${'$as_ac_Header'}'` = yes; then 11483 cat >>confdefs.h <<_ACEOF 11484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11485_ACEOF 11486 11487fi 11488 11489done 11490 11491else 11492 { echo "$as_me:$LINENO: result: no" >&5 11493echo "${ECHO_T}no" >&6; } 11494fi 11495 11496#------------------------------------------------------------------------- 11497# What type do signals return? 11498#------------------------------------------------------------------------- 11499 11500{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 11501echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 11502if test "${ac_cv_type_signal+set}" = set; then 11503 echo $ECHO_N "(cached) $ECHO_C" >&6 11504else 11505 cat >conftest.$ac_ext <<_ACEOF 11506/* confdefs.h. */ 11507_ACEOF 11508cat confdefs.h >>conftest.$ac_ext 11509cat >>conftest.$ac_ext <<_ACEOF 11510/* end confdefs.h. */ 11511#include <sys/types.h> 11512#include <signal.h> 11513 11514int 11515main () 11516{ 11517return *(signal (0, 0)) (0) == 1; 11518 ; 11519 return 0; 11520} 11521_ACEOF 11522rm -f conftest.$ac_objext 11523if { (ac_try="$ac_compile" 11524case "(($ac_try" in 11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11526 *) ac_try_echo=$ac_try;; 11527esac 11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11529 (eval "$ac_compile") 2>conftest.er1 11530 ac_status=$? 11531 grep -v '^ *+' conftest.er1 >conftest.err 11532 rm -f conftest.er1 11533 cat conftest.err >&5 11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11535 (exit $ac_status); } && { 11536 test -z "$ac_c_werror_flag" || 11537 test ! -s conftest.err 11538 } && test -s conftest.$ac_objext; then 11539 ac_cv_type_signal=int 11540else 11541 echo "$as_me: failed program was:" >&5 11542sed 's/^/| /' conftest.$ac_ext >&5 11543 11544 ac_cv_type_signal=void 11545fi 11546 11547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11548fi 11549{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 11550echo "${ECHO_T}$ac_cv_type_signal" >&6; } 11551 11552cat >>confdefs.h <<_ACEOF 11553#define RETSIGTYPE $ac_cv_type_signal 11554_ACEOF 11555 11556 11557 11558#------------------------------------------------------------------------- 11559# Find out all about time handling differences. 11560#------------------------------------------------------------------------- 11561 11562{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 11563echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 11564if test "${ac_cv_struct_tm+set}" = set; then 11565 echo $ECHO_N "(cached) $ECHO_C" >&6 11566else 11567 cat >conftest.$ac_ext <<_ACEOF 11568/* confdefs.h. */ 11569_ACEOF 11570cat confdefs.h >>conftest.$ac_ext 11571cat >>conftest.$ac_ext <<_ACEOF 11572/* end confdefs.h. */ 11573#include <sys/types.h> 11574#include <time.h> 11575 11576int 11577main () 11578{ 11579struct tm tm; 11580 int *p = &tm.tm_sec; 11581 return !p; 11582 ; 11583 return 0; 11584} 11585_ACEOF 11586rm -f conftest.$ac_objext 11587if { (ac_try="$ac_compile" 11588case "(($ac_try" in 11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11590 *) ac_try_echo=$ac_try;; 11591esac 11592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11593 (eval "$ac_compile") 2>conftest.er1 11594 ac_status=$? 11595 grep -v '^ *+' conftest.er1 >conftest.err 11596 rm -f conftest.er1 11597 cat conftest.err >&5 11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11599 (exit $ac_status); } && { 11600 test -z "$ac_c_werror_flag" || 11601 test ! -s conftest.err 11602 } && test -s conftest.$ac_objext; then 11603 ac_cv_struct_tm=time.h 11604else 11605 echo "$as_me: failed program was:" >&5 11606sed 's/^/| /' conftest.$ac_ext >&5 11607 11608 ac_cv_struct_tm=sys/time.h 11609fi 11610 11611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11612fi 11613{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 11614echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 11615if test $ac_cv_struct_tm = sys/time.h; then 11616 11617cat >>confdefs.h <<\_ACEOF 11618#define TM_IN_SYS_TIME 1 11619_ACEOF 11620 11621fi 11622 11623 11624 11625for ac_header in sys/time.h 11626do 11627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11632 echo $ECHO_N "(cached) $ECHO_C" >&6 11633fi 11634ac_res=`eval echo '${'$as_ac_Header'}'` 11635 { echo "$as_me:$LINENO: result: $ac_res" >&5 11636echo "${ECHO_T}$ac_res" >&6; } 11637else 11638 # Is the header compilable? 11639{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11641cat >conftest.$ac_ext <<_ACEOF 11642/* confdefs.h. */ 11643_ACEOF 11644cat confdefs.h >>conftest.$ac_ext 11645cat >>conftest.$ac_ext <<_ACEOF 11646/* end confdefs.h. */ 11647$ac_includes_default 11648#include <$ac_header> 11649_ACEOF 11650rm -f conftest.$ac_objext 11651if { (ac_try="$ac_compile" 11652case "(($ac_try" in 11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11654 *) ac_try_echo=$ac_try;; 11655esac 11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11657 (eval "$ac_compile") 2>conftest.er1 11658 ac_status=$? 11659 grep -v '^ *+' conftest.er1 >conftest.err 11660 rm -f conftest.er1 11661 cat conftest.err >&5 11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11663 (exit $ac_status); } && { 11664 test -z "$ac_c_werror_flag" || 11665 test ! -s conftest.err 11666 } && test -s conftest.$ac_objext; then 11667 ac_header_compiler=yes 11668else 11669 echo "$as_me: failed program was:" >&5 11670sed 's/^/| /' conftest.$ac_ext >&5 11671 11672 ac_header_compiler=no 11673fi 11674 11675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11676{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11677echo "${ECHO_T}$ac_header_compiler" >&6; } 11678 11679# Is the header present? 11680{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11682cat >conftest.$ac_ext <<_ACEOF 11683/* confdefs.h. */ 11684_ACEOF 11685cat confdefs.h >>conftest.$ac_ext 11686cat >>conftest.$ac_ext <<_ACEOF 11687/* end confdefs.h. */ 11688#include <$ac_header> 11689_ACEOF 11690if { (ac_try="$ac_cpp conftest.$ac_ext" 11691case "(($ac_try" in 11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11693 *) ac_try_echo=$ac_try;; 11694esac 11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11697 ac_status=$? 11698 grep -v '^ *+' conftest.er1 >conftest.err 11699 rm -f conftest.er1 11700 cat conftest.err >&5 11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11702 (exit $ac_status); } >/dev/null && { 11703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11704 test ! -s conftest.err 11705 }; then 11706 ac_header_preproc=yes 11707else 11708 echo "$as_me: failed program was:" >&5 11709sed 's/^/| /' conftest.$ac_ext >&5 11710 11711 ac_header_preproc=no 11712fi 11713 11714rm -f conftest.err conftest.$ac_ext 11715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11716echo "${ECHO_T}$ac_header_preproc" >&6; } 11717 11718# So? What about this header? 11719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11720 yes:no: ) 11721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11725 ac_header_preproc=yes 11726 ;; 11727 no:yes:* ) 11728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11740 11741 ;; 11742esac 11743{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11746 echo $ECHO_N "(cached) $ECHO_C" >&6 11747else 11748 eval "$as_ac_Header=\$ac_header_preproc" 11749fi 11750ac_res=`eval echo '${'$as_ac_Header'}'` 11751 { echo "$as_me:$LINENO: result: $ac_res" >&5 11752echo "${ECHO_T}$ac_res" >&6; } 11753 11754fi 11755if test `eval echo '${'$as_ac_Header'}'` = yes; then 11756 cat >>confdefs.h <<_ACEOF 11757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11758_ACEOF 11759 11760fi 11761 11762done 11763 11764 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 11765echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 11766if test "${ac_cv_header_time+set}" = set; then 11767 echo $ECHO_N "(cached) $ECHO_C" >&6 11768else 11769 cat >conftest.$ac_ext <<_ACEOF 11770/* confdefs.h. */ 11771_ACEOF 11772cat confdefs.h >>conftest.$ac_ext 11773cat >>conftest.$ac_ext <<_ACEOF 11774/* end confdefs.h. */ 11775#include <sys/types.h> 11776#include <sys/time.h> 11777#include <time.h> 11778 11779int 11780main () 11781{ 11782if ((struct tm *) 0) 11783return 0; 11784 ; 11785 return 0; 11786} 11787_ACEOF 11788rm -f conftest.$ac_objext 11789if { (ac_try="$ac_compile" 11790case "(($ac_try" in 11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11792 *) ac_try_echo=$ac_try;; 11793esac 11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11795 (eval "$ac_compile") 2>conftest.er1 11796 ac_status=$? 11797 grep -v '^ *+' conftest.er1 >conftest.err 11798 rm -f conftest.er1 11799 cat conftest.err >&5 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); } && { 11802 test -z "$ac_c_werror_flag" || 11803 test ! -s conftest.err 11804 } && test -s conftest.$ac_objext; then 11805 ac_cv_header_time=yes 11806else 11807 echo "$as_me: failed program was:" >&5 11808sed 's/^/| /' conftest.$ac_ext >&5 11809 11810 ac_cv_header_time=no 11811fi 11812 11813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11814fi 11815{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 11816echo "${ECHO_T}$ac_cv_header_time" >&6; } 11817if test $ac_cv_header_time = yes; then 11818 11819cat >>confdefs.h <<\_ACEOF 11820#define TIME_WITH_SYS_TIME 1 11821_ACEOF 11822 11823fi 11824 11825 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 11826echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } 11827if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 11828 echo $ECHO_N "(cached) $ECHO_C" >&6 11829else 11830 cat >conftest.$ac_ext <<_ACEOF 11831/* confdefs.h. */ 11832_ACEOF 11833cat confdefs.h >>conftest.$ac_ext 11834cat >>conftest.$ac_ext <<_ACEOF 11835/* end confdefs.h. */ 11836#include <sys/types.h> 11837#include <$ac_cv_struct_tm> 11838 11839 11840int 11841main () 11842{ 11843static struct tm ac_aggr; 11844if (ac_aggr.tm_zone) 11845return 0; 11846 ; 11847 return 0; 11848} 11849_ACEOF 11850rm -f conftest.$ac_objext 11851if { (ac_try="$ac_compile" 11852case "(($ac_try" in 11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11854 *) ac_try_echo=$ac_try;; 11855esac 11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11857 (eval "$ac_compile") 2>conftest.er1 11858 ac_status=$? 11859 grep -v '^ *+' conftest.er1 >conftest.err 11860 rm -f conftest.er1 11861 cat conftest.err >&5 11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11863 (exit $ac_status); } && { 11864 test -z "$ac_c_werror_flag" || 11865 test ! -s conftest.err 11866 } && test -s conftest.$ac_objext; then 11867 ac_cv_member_struct_tm_tm_zone=yes 11868else 11869 echo "$as_me: failed program was:" >&5 11870sed 's/^/| /' conftest.$ac_ext >&5 11871 11872 cat >conftest.$ac_ext <<_ACEOF 11873/* confdefs.h. */ 11874_ACEOF 11875cat confdefs.h >>conftest.$ac_ext 11876cat >>conftest.$ac_ext <<_ACEOF 11877/* end confdefs.h. */ 11878#include <sys/types.h> 11879#include <$ac_cv_struct_tm> 11880 11881 11882int 11883main () 11884{ 11885static struct tm ac_aggr; 11886if (sizeof ac_aggr.tm_zone) 11887return 0; 11888 ; 11889 return 0; 11890} 11891_ACEOF 11892rm -f conftest.$ac_objext 11893if { (ac_try="$ac_compile" 11894case "(($ac_try" in 11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11896 *) ac_try_echo=$ac_try;; 11897esac 11898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11899 (eval "$ac_compile") 2>conftest.er1 11900 ac_status=$? 11901 grep -v '^ *+' conftest.er1 >conftest.err 11902 rm -f conftest.er1 11903 cat conftest.err >&5 11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11905 (exit $ac_status); } && { 11906 test -z "$ac_c_werror_flag" || 11907 test ! -s conftest.err 11908 } && test -s conftest.$ac_objext; then 11909 ac_cv_member_struct_tm_tm_zone=yes 11910else 11911 echo "$as_me: failed program was:" >&5 11912sed 's/^/| /' conftest.$ac_ext >&5 11913 11914 ac_cv_member_struct_tm_tm_zone=no 11915fi 11916 11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11918fi 11919 11920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11921fi 11922{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 11923echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } 11924if test $ac_cv_member_struct_tm_tm_zone = yes; then 11925 11926cat >>confdefs.h <<_ACEOF 11927#define HAVE_STRUCT_TM_TM_ZONE 1 11928_ACEOF 11929 11930 11931fi 11932 11933if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 11934 11935cat >>confdefs.h <<\_ACEOF 11936#define HAVE_TM_ZONE 1 11937_ACEOF 11938 11939else 11940 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 11941echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } 11942if test "${ac_cv_have_decl_tzname+set}" = set; then 11943 echo $ECHO_N "(cached) $ECHO_C" >&6 11944else 11945 cat >conftest.$ac_ext <<_ACEOF 11946/* confdefs.h. */ 11947_ACEOF 11948cat confdefs.h >>conftest.$ac_ext 11949cat >>conftest.$ac_ext <<_ACEOF 11950/* end confdefs.h. */ 11951#include <time.h> 11952 11953int 11954main () 11955{ 11956#ifndef tzname 11957 (void) tzname; 11958#endif 11959 11960 ; 11961 return 0; 11962} 11963_ACEOF 11964rm -f conftest.$ac_objext 11965if { (ac_try="$ac_compile" 11966case "(($ac_try" in 11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11968 *) ac_try_echo=$ac_try;; 11969esac 11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11971 (eval "$ac_compile") 2>conftest.er1 11972 ac_status=$? 11973 grep -v '^ *+' conftest.er1 >conftest.err 11974 rm -f conftest.er1 11975 cat conftest.err >&5 11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11977 (exit $ac_status); } && { 11978 test -z "$ac_c_werror_flag" || 11979 test ! -s conftest.err 11980 } && test -s conftest.$ac_objext; then 11981 ac_cv_have_decl_tzname=yes 11982else 11983 echo "$as_me: failed program was:" >&5 11984sed 's/^/| /' conftest.$ac_ext >&5 11985 11986 ac_cv_have_decl_tzname=no 11987fi 11988 11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11990fi 11991{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 11992echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } 11993if test $ac_cv_have_decl_tzname = yes; then 11994 11995cat >>confdefs.h <<_ACEOF 11996#define HAVE_DECL_TZNAME 1 11997_ACEOF 11998 11999 12000else 12001 cat >>confdefs.h <<_ACEOF 12002#define HAVE_DECL_TZNAME 0 12003_ACEOF 12004 12005 12006fi 12007 12008 12009 { echo "$as_me:$LINENO: checking for tzname" >&5 12010echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } 12011if test "${ac_cv_var_tzname+set}" = set; then 12012 echo $ECHO_N "(cached) $ECHO_C" >&6 12013else 12014 cat >conftest.$ac_ext <<_ACEOF 12015/* confdefs.h. */ 12016_ACEOF 12017cat confdefs.h >>conftest.$ac_ext 12018cat >>conftest.$ac_ext <<_ACEOF 12019/* end confdefs.h. */ 12020#include <time.h> 12021#if !HAVE_DECL_TZNAME 12022extern char *tzname[]; 12023#endif 12024 12025int 12026main () 12027{ 12028return tzname[0][0]; 12029 ; 12030 return 0; 12031} 12032_ACEOF 12033rm -f conftest.$ac_objext conftest$ac_exeext 12034if { (ac_try="$ac_link" 12035case "(($ac_try" in 12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12037 *) ac_try_echo=$ac_try;; 12038esac 12039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12040 (eval "$ac_link") 2>conftest.er1 12041 ac_status=$? 12042 grep -v '^ *+' conftest.er1 >conftest.err 12043 rm -f conftest.er1 12044 cat conftest.err >&5 12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12046 (exit $ac_status); } && { 12047 test -z "$ac_c_werror_flag" || 12048 test ! -s conftest.err 12049 } && test -s conftest$ac_exeext && 12050 $as_test_x conftest$ac_exeext; then 12051 ac_cv_var_tzname=yes 12052else 12053 echo "$as_me: failed program was:" >&5 12054sed 's/^/| /' conftest.$ac_ext >&5 12055 12056 ac_cv_var_tzname=no 12057fi 12058 12059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12060 conftest$ac_exeext conftest.$ac_ext 12061fi 12062{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 12063echo "${ECHO_T}$ac_cv_var_tzname" >&6; } 12064 if test $ac_cv_var_tzname = yes; then 12065 12066cat >>confdefs.h <<\_ACEOF 12067#define HAVE_TZNAME 1 12068_ACEOF 12069 12070 fi 12071fi 12072 12073 12074 12075 12076for ac_func in gmtime_r localtime_r 12077do 12078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12079{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12082 echo $ECHO_N "(cached) $ECHO_C" >&6 12083else 12084 cat >conftest.$ac_ext <<_ACEOF 12085/* confdefs.h. */ 12086_ACEOF 12087cat confdefs.h >>conftest.$ac_ext 12088cat >>conftest.$ac_ext <<_ACEOF 12089/* end confdefs.h. */ 12090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12092#define $ac_func innocuous_$ac_func 12093 12094/* System header to define __stub macros and hopefully few prototypes, 12095 which can conflict with char $ac_func (); below. 12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12097 <limits.h> exists even on freestanding compilers. */ 12098 12099#ifdef __STDC__ 12100# include <limits.h> 12101#else 12102# include <assert.h> 12103#endif 12104 12105#undef $ac_func 12106 12107/* Override any GCC internal prototype to avoid an error. 12108 Use char because int might match the return type of a GCC 12109 builtin and then its argument prototype would still apply. */ 12110#ifdef __cplusplus 12111extern "C" 12112#endif 12113char $ac_func (); 12114/* The GNU C library defines this for functions which it implements 12115 to always fail with ENOSYS. Some functions are actually named 12116 something starting with __ and the normal name is an alias. */ 12117#if defined __stub_$ac_func || defined __stub___$ac_func 12118choke me 12119#endif 12120 12121int 12122main () 12123{ 12124return $ac_func (); 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129rm -f conftest.$ac_objext conftest$ac_exeext 12130if { (ac_try="$ac_link" 12131case "(($ac_try" in 12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12133 *) ac_try_echo=$ac_try;; 12134esac 12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12136 (eval "$ac_link") 2>conftest.er1 12137 ac_status=$? 12138 grep -v '^ *+' conftest.er1 >conftest.err 12139 rm -f conftest.er1 12140 cat conftest.err >&5 12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12142 (exit $ac_status); } && { 12143 test -z "$ac_c_werror_flag" || 12144 test ! -s conftest.err 12145 } && test -s conftest$ac_exeext && 12146 $as_test_x conftest$ac_exeext; then 12147 eval "$as_ac_var=yes" 12148else 12149 echo "$as_me: failed program was:" >&5 12150sed 's/^/| /' conftest.$ac_ext >&5 12151 12152 eval "$as_ac_var=no" 12153fi 12154 12155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12156 conftest$ac_exeext conftest.$ac_ext 12157fi 12158ac_res=`eval echo '${'$as_ac_var'}'` 12159 { echo "$as_me:$LINENO: result: $ac_res" >&5 12160echo "${ECHO_T}$ac_res" >&6; } 12161if test `eval echo '${'$as_ac_var'}'` = yes; then 12162 cat >>confdefs.h <<_ACEOF 12163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12164_ACEOF 12165 12166fi 12167done 12168 12169 12170 { echo "$as_me:$LINENO: checking tm_tzadj in struct tm" >&5 12171echo $ECHO_N "checking tm_tzadj in struct tm... $ECHO_C" >&6; } 12172if test "${tcl_cv_member_tm_tzadj+set}" = set; then 12173 echo $ECHO_N "(cached) $ECHO_C" >&6 12174else 12175 12176 cat >conftest.$ac_ext <<_ACEOF 12177/* confdefs.h. */ 12178_ACEOF 12179cat confdefs.h >>conftest.$ac_ext 12180cat >>conftest.$ac_ext <<_ACEOF 12181/* end confdefs.h. */ 12182#include <time.h> 12183int 12184main () 12185{ 12186struct tm tm; tm.tm_tzadj; 12187 ; 12188 return 0; 12189} 12190_ACEOF 12191rm -f conftest.$ac_objext 12192if { (ac_try="$ac_compile" 12193case "(($ac_try" in 12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12195 *) ac_try_echo=$ac_try;; 12196esac 12197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12198 (eval "$ac_compile") 2>conftest.er1 12199 ac_status=$? 12200 grep -v '^ *+' conftest.er1 >conftest.err 12201 rm -f conftest.er1 12202 cat conftest.err >&5 12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12204 (exit $ac_status); } && { 12205 test -z "$ac_c_werror_flag" || 12206 test ! -s conftest.err 12207 } && test -s conftest.$ac_objext; then 12208 tcl_cv_member_tm_tzadj=yes 12209else 12210 echo "$as_me: failed program was:" >&5 12211sed 's/^/| /' conftest.$ac_ext >&5 12212 12213 tcl_cv_member_tm_tzadj=no 12214fi 12215 12216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12217fi 12218{ echo "$as_me:$LINENO: result: $tcl_cv_member_tm_tzadj" >&5 12219echo "${ECHO_T}$tcl_cv_member_tm_tzadj" >&6; } 12220 if test $tcl_cv_member_tm_tzadj = yes ; then 12221 12222cat >>confdefs.h <<\_ACEOF 12223#define HAVE_TM_TZADJ 1 12224_ACEOF 12225 12226 fi 12227 12228 { echo "$as_me:$LINENO: checking tm_gmtoff in struct tm" >&5 12229echo $ECHO_N "checking tm_gmtoff in struct tm... $ECHO_C" >&6; } 12230if test "${tcl_cv_member_tm_gmtoff+set}" = set; then 12231 echo $ECHO_N "(cached) $ECHO_C" >&6 12232else 12233 12234 cat >conftest.$ac_ext <<_ACEOF 12235/* confdefs.h. */ 12236_ACEOF 12237cat confdefs.h >>conftest.$ac_ext 12238cat >>conftest.$ac_ext <<_ACEOF 12239/* end confdefs.h. */ 12240#include <time.h> 12241int 12242main () 12243{ 12244struct tm tm; tm.tm_gmtoff; 12245 ; 12246 return 0; 12247} 12248_ACEOF 12249rm -f conftest.$ac_objext 12250if { (ac_try="$ac_compile" 12251case "(($ac_try" in 12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12253 *) ac_try_echo=$ac_try;; 12254esac 12255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12256 (eval "$ac_compile") 2>conftest.er1 12257 ac_status=$? 12258 grep -v '^ *+' conftest.er1 >conftest.err 12259 rm -f conftest.er1 12260 cat conftest.err >&5 12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12262 (exit $ac_status); } && { 12263 test -z "$ac_c_werror_flag" || 12264 test ! -s conftest.err 12265 } && test -s conftest.$ac_objext; then 12266 tcl_cv_member_tm_gmtoff=yes 12267else 12268 echo "$as_me: failed program was:" >&5 12269sed 's/^/| /' conftest.$ac_ext >&5 12270 12271 tcl_cv_member_tm_gmtoff=no 12272fi 12273 12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12275fi 12276{ echo "$as_me:$LINENO: result: $tcl_cv_member_tm_gmtoff" >&5 12277echo "${ECHO_T}$tcl_cv_member_tm_gmtoff" >&6; } 12278 if test $tcl_cv_member_tm_gmtoff = yes ; then 12279 12280cat >>confdefs.h <<\_ACEOF 12281#define HAVE_TM_GMTOFF 1 12282_ACEOF 12283 12284 fi 12285 12286 # 12287 # Its important to include time.h in this check, as some systems 12288 # (like convex) have timezone functions, etc. 12289 # 12290 { echo "$as_me:$LINENO: checking long timezone variable" >&5 12291echo $ECHO_N "checking long timezone variable... $ECHO_C" >&6; } 12292if test "${tcl_cv_timezone_long+set}" = set; then 12293 echo $ECHO_N "(cached) $ECHO_C" >&6 12294else 12295 12296 cat >conftest.$ac_ext <<_ACEOF 12297/* confdefs.h. */ 12298_ACEOF 12299cat confdefs.h >>conftest.$ac_ext 12300cat >>conftest.$ac_ext <<_ACEOF 12301/* end confdefs.h. */ 12302#include <time.h> 12303int 12304main () 12305{ 12306extern long timezone; 12307 timezone += 1; 12308 exit (0); 12309 ; 12310 return 0; 12311} 12312_ACEOF 12313rm -f conftest.$ac_objext 12314if { (ac_try="$ac_compile" 12315case "(($ac_try" in 12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12317 *) ac_try_echo=$ac_try;; 12318esac 12319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12320 (eval "$ac_compile") 2>conftest.er1 12321 ac_status=$? 12322 grep -v '^ *+' conftest.er1 >conftest.err 12323 rm -f conftest.er1 12324 cat conftest.err >&5 12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12326 (exit $ac_status); } && { 12327 test -z "$ac_c_werror_flag" || 12328 test ! -s conftest.err 12329 } && test -s conftest.$ac_objext; then 12330 tcl_cv_timezone_long=yes 12331else 12332 echo "$as_me: failed program was:" >&5 12333sed 's/^/| /' conftest.$ac_ext >&5 12334 12335 tcl_cv_timezone_long=no 12336fi 12337 12338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12339fi 12340{ echo "$as_me:$LINENO: result: $tcl_cv_timezone_long" >&5 12341echo "${ECHO_T}$tcl_cv_timezone_long" >&6; } 12342 if test $tcl_cv_timezone_long = yes ; then 12343 12344cat >>confdefs.h <<\_ACEOF 12345#define HAVE_TIMEZONE_VAR 1 12346_ACEOF 12347 12348 else 12349 # 12350 # On some systems (eg IRIX 6.2), timezone is a time_t and not a long. 12351 # 12352 { echo "$as_me:$LINENO: checking time_t timezone variable" >&5 12353echo $ECHO_N "checking time_t timezone variable... $ECHO_C" >&6; } 12354if test "${tcl_cv_timezone_time+set}" = set; then 12355 echo $ECHO_N "(cached) $ECHO_C" >&6 12356else 12357 12358 cat >conftest.$ac_ext <<_ACEOF 12359/* confdefs.h. */ 12360_ACEOF 12361cat confdefs.h >>conftest.$ac_ext 12362cat >>conftest.$ac_ext <<_ACEOF 12363/* end confdefs.h. */ 12364#include <time.h> 12365int 12366main () 12367{ 12368extern time_t timezone; 12369 timezone += 1; 12370 exit (0); 12371 ; 12372 return 0; 12373} 12374_ACEOF 12375rm -f conftest.$ac_objext 12376if { (ac_try="$ac_compile" 12377case "(($ac_try" in 12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12379 *) ac_try_echo=$ac_try;; 12380esac 12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12382 (eval "$ac_compile") 2>conftest.er1 12383 ac_status=$? 12384 grep -v '^ *+' conftest.er1 >conftest.err 12385 rm -f conftest.er1 12386 cat conftest.err >&5 12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12388 (exit $ac_status); } && { 12389 test -z "$ac_c_werror_flag" || 12390 test ! -s conftest.err 12391 } && test -s conftest.$ac_objext; then 12392 tcl_cv_timezone_time=yes 12393else 12394 echo "$as_me: failed program was:" >&5 12395sed 's/^/| /' conftest.$ac_ext >&5 12396 12397 tcl_cv_timezone_time=no 12398fi 12399 12400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12401fi 12402{ echo "$as_me:$LINENO: result: $tcl_cv_timezone_time" >&5 12403echo "${ECHO_T}$tcl_cv_timezone_time" >&6; } 12404 if test $tcl_cv_timezone_time = yes ; then 12405 12406cat >>confdefs.h <<\_ACEOF 12407#define HAVE_TIMEZONE_VAR 1 12408_ACEOF 12409 12410 fi 12411 fi 12412 12413 12414#-------------------------------------------------------------------- 12415# The check below checks whether <sys/wait.h> defines the type 12416# "union wait" correctly. It's needed because of weirdness in 12417# HP-UX where "union wait" is defined in both the BSD and SYS-V 12418# environments. Checking the usability of WIFEXITED seems to do 12419# the trick. 12420#-------------------------------------------------------------------- 12421 12422{ echo "$as_me:$LINENO: checking union wait" >&5 12423echo $ECHO_N "checking union wait... $ECHO_C" >&6; } 12424if test "${tcl_cv_union_wait+set}" = set; then 12425 echo $ECHO_N "(cached) $ECHO_C" >&6 12426else 12427 cat >conftest.$ac_ext <<_ACEOF 12428/* confdefs.h. */ 12429_ACEOF 12430cat confdefs.h >>conftest.$ac_ext 12431cat >>conftest.$ac_ext <<_ACEOF 12432/* end confdefs.h. */ 12433#include <sys/types.h> 12434#include <sys/wait.h> 12435int 12436main () 12437{ 12438 12439union wait x; 12440WIFEXITED(x); /* Generates compiler error if WIFEXITED uses an int. */ 12441 12442 ; 12443 return 0; 12444} 12445_ACEOF 12446rm -f conftest.$ac_objext conftest$ac_exeext 12447if { (ac_try="$ac_link" 12448case "(($ac_try" in 12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12450 *) ac_try_echo=$ac_try;; 12451esac 12452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12453 (eval "$ac_link") 2>conftest.er1 12454 ac_status=$? 12455 grep -v '^ *+' conftest.er1 >conftest.err 12456 rm -f conftest.er1 12457 cat conftest.err >&5 12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12459 (exit $ac_status); } && { 12460 test -z "$ac_c_werror_flag" || 12461 test ! -s conftest.err 12462 } && test -s conftest$ac_exeext && 12463 $as_test_x conftest$ac_exeext; then 12464 tcl_cv_union_wait=yes 12465else 12466 echo "$as_me: failed program was:" >&5 12467sed 's/^/| /' conftest.$ac_ext >&5 12468 12469 tcl_cv_union_wait=no 12470fi 12471 12472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12473 conftest$ac_exeext conftest.$ac_ext 12474fi 12475 12476{ echo "$as_me:$LINENO: result: $tcl_cv_union_wait" >&5 12477echo "${ECHO_T}$tcl_cv_union_wait" >&6; } 12478if test $tcl_cv_union_wait = no; then 12479 cat >>confdefs.h <<\_ACEOF 12480#define NO_UNION_WAIT 1 12481_ACEOF 12482 12483fi 12484 12485###################################################################### 12486# required by Sequent ptx2 12487 12488{ echo "$as_me:$LINENO: checking for gethostname" >&5 12489echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; } 12490if test "${ac_cv_func_gethostname+set}" = set; then 12491 echo $ECHO_N "(cached) $ECHO_C" >&6 12492else 12493 cat >conftest.$ac_ext <<_ACEOF 12494/* confdefs.h. */ 12495_ACEOF 12496cat confdefs.h >>conftest.$ac_ext 12497cat >>conftest.$ac_ext <<_ACEOF 12498/* end confdefs.h. */ 12499/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname. 12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12501#define gethostname innocuous_gethostname 12502 12503/* System header to define __stub macros and hopefully few prototypes, 12504 which can conflict with char gethostname (); below. 12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12506 <limits.h> exists even on freestanding compilers. */ 12507 12508#ifdef __STDC__ 12509# include <limits.h> 12510#else 12511# include <assert.h> 12512#endif 12513 12514#undef gethostname 12515 12516/* Override any GCC internal prototype to avoid an error. 12517 Use char because int might match the return type of a GCC 12518 builtin and then its argument prototype would still apply. */ 12519#ifdef __cplusplus 12520extern "C" 12521#endif 12522char gethostname (); 12523/* The GNU C library defines this for functions which it implements 12524 to always fail with ENOSYS. Some functions are actually named 12525 something starting with __ and the normal name is an alias. */ 12526#if defined __stub_gethostname || defined __stub___gethostname 12527choke me 12528#endif 12529 12530int 12531main () 12532{ 12533return gethostname (); 12534 ; 12535 return 0; 12536} 12537_ACEOF 12538rm -f conftest.$ac_objext conftest$ac_exeext 12539if { (ac_try="$ac_link" 12540case "(($ac_try" in 12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12542 *) ac_try_echo=$ac_try;; 12543esac 12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12545 (eval "$ac_link") 2>conftest.er1 12546 ac_status=$? 12547 grep -v '^ *+' conftest.er1 >conftest.err 12548 rm -f conftest.er1 12549 cat conftest.err >&5 12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12551 (exit $ac_status); } && { 12552 test -z "$ac_c_werror_flag" || 12553 test ! -s conftest.err 12554 } && test -s conftest$ac_exeext && 12555 $as_test_x conftest$ac_exeext; then 12556 ac_cv_func_gethostname=yes 12557else 12558 echo "$as_me: failed program was:" >&5 12559sed 's/^/| /' conftest.$ac_ext >&5 12560 12561 ac_cv_func_gethostname=no 12562fi 12563 12564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12565 conftest$ac_exeext conftest.$ac_ext 12566fi 12567{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5 12568echo "${ECHO_T}$ac_cv_func_gethostname" >&6; } 12569if test $ac_cv_func_gethostname = yes; then 12570 gethostname=1 12571else 12572 gethostname=0 12573fi 12574 12575if test $gethostname -eq 0 ; then 12576 { echo "$as_me:$LINENO: checking for gethostname in -linet" >&5 12577echo $ECHO_N "checking for gethostname in -linet... $ECHO_C" >&6; } 12578if test "${ac_cv_lib_inet_gethostname+set}" = set; then 12579 echo $ECHO_N "(cached) $ECHO_C" >&6 12580else 12581 ac_check_lib_save_LIBS=$LIBS 12582LIBS="-linet $LIBS" 12583cat >conftest.$ac_ext <<_ACEOF 12584/* confdefs.h. */ 12585_ACEOF 12586cat confdefs.h >>conftest.$ac_ext 12587cat >>conftest.$ac_ext <<_ACEOF 12588/* end confdefs.h. */ 12589 12590/* Override any GCC internal prototype to avoid an error. 12591 Use char because int might match the return type of a GCC 12592 builtin and then its argument prototype would still apply. */ 12593#ifdef __cplusplus 12594extern "C" 12595#endif 12596char gethostname (); 12597int 12598main () 12599{ 12600return gethostname (); 12601 ; 12602 return 0; 12603} 12604_ACEOF 12605rm -f conftest.$ac_objext conftest$ac_exeext 12606if { (ac_try="$ac_link" 12607case "(($ac_try" in 12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12609 *) ac_try_echo=$ac_try;; 12610esac 12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12612 (eval "$ac_link") 2>conftest.er1 12613 ac_status=$? 12614 grep -v '^ *+' conftest.er1 >conftest.err 12615 rm -f conftest.er1 12616 cat conftest.err >&5 12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12618 (exit $ac_status); } && { 12619 test -z "$ac_c_werror_flag" || 12620 test ! -s conftest.err 12621 } && test -s conftest$ac_exeext && 12622 $as_test_x conftest$ac_exeext; then 12623 ac_cv_lib_inet_gethostname=yes 12624else 12625 echo "$as_me: failed program was:" >&5 12626sed 's/^/| /' conftest.$ac_ext >&5 12627 12628 ac_cv_lib_inet_gethostname=no 12629fi 12630 12631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12632 conftest$ac_exeext conftest.$ac_ext 12633LIBS=$ac_check_lib_save_LIBS 12634fi 12635{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_gethostname" >&5 12636echo "${ECHO_T}$ac_cv_lib_inet_gethostname" >&6; } 12637if test $ac_cv_lib_inet_gethostname = yes; then 12638 LIBS="$LIBS -linet" 12639fi 12640 12641fi 12642 12643###################################################################### 12644# required by Fischman's ISC 4.0 12645 12646{ echo "$as_me:$LINENO: checking for socket" >&5 12647echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 12648if test "${ac_cv_func_socket+set}" = set; then 12649 echo $ECHO_N "(cached) $ECHO_C" >&6 12650else 12651 cat >conftest.$ac_ext <<_ACEOF 12652/* confdefs.h. */ 12653_ACEOF 12654cat confdefs.h >>conftest.$ac_ext 12655cat >>conftest.$ac_ext <<_ACEOF 12656/* end confdefs.h. */ 12657/* Define socket to an innocuous variant, in case <limits.h> declares socket. 12658 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12659#define socket innocuous_socket 12660 12661/* System header to define __stub macros and hopefully few prototypes, 12662 which can conflict with char socket (); below. 12663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12664 <limits.h> exists even on freestanding compilers. */ 12665 12666#ifdef __STDC__ 12667# include <limits.h> 12668#else 12669# include <assert.h> 12670#endif 12671 12672#undef socket 12673 12674/* Override any GCC internal prototype to avoid an error. 12675 Use char because int might match the return type of a GCC 12676 builtin and then its argument prototype would still apply. */ 12677#ifdef __cplusplus 12678extern "C" 12679#endif 12680char socket (); 12681/* The GNU C library defines this for functions which it implements 12682 to always fail with ENOSYS. Some functions are actually named 12683 something starting with __ and the normal name is an alias. */ 12684#if defined __stub_socket || defined __stub___socket 12685choke me 12686#endif 12687 12688int 12689main () 12690{ 12691return socket (); 12692 ; 12693 return 0; 12694} 12695_ACEOF 12696rm -f conftest.$ac_objext conftest$ac_exeext 12697if { (ac_try="$ac_link" 12698case "(($ac_try" in 12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12700 *) ac_try_echo=$ac_try;; 12701esac 12702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12703 (eval "$ac_link") 2>conftest.er1 12704 ac_status=$? 12705 grep -v '^ *+' conftest.er1 >conftest.err 12706 rm -f conftest.er1 12707 cat conftest.err >&5 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); } && { 12710 test -z "$ac_c_werror_flag" || 12711 test ! -s conftest.err 12712 } && test -s conftest$ac_exeext && 12713 $as_test_x conftest$ac_exeext; then 12714 ac_cv_func_socket=yes 12715else 12716 echo "$as_me: failed program was:" >&5 12717sed 's/^/| /' conftest.$ac_ext >&5 12718 12719 ac_cv_func_socket=no 12720fi 12721 12722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12723 conftest$ac_exeext conftest.$ac_ext 12724fi 12725{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 12726echo "${ECHO_T}$ac_cv_func_socket" >&6; } 12727if test $ac_cv_func_socket = yes; then 12728 socket=1 12729else 12730 socket=0 12731fi 12732 12733if test $socket -eq 0 ; then 12734 { echo "$as_me:$LINENO: checking for socket in -linet" >&5 12735echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; } 12736if test "${ac_cv_lib_inet_socket+set}" = set; then 12737 echo $ECHO_N "(cached) $ECHO_C" >&6 12738else 12739 ac_check_lib_save_LIBS=$LIBS 12740LIBS="-linet $LIBS" 12741cat >conftest.$ac_ext <<_ACEOF 12742/* confdefs.h. */ 12743_ACEOF 12744cat confdefs.h >>conftest.$ac_ext 12745cat >>conftest.$ac_ext <<_ACEOF 12746/* end confdefs.h. */ 12747 12748/* Override any GCC internal prototype to avoid an error. 12749 Use char because int might match the return type of a GCC 12750 builtin and then its argument prototype would still apply. */ 12751#ifdef __cplusplus 12752extern "C" 12753#endif 12754char socket (); 12755int 12756main () 12757{ 12758return socket (); 12759 ; 12760 return 0; 12761} 12762_ACEOF 12763rm -f conftest.$ac_objext conftest$ac_exeext 12764if { (ac_try="$ac_link" 12765case "(($ac_try" in 12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12767 *) ac_try_echo=$ac_try;; 12768esac 12769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12770 (eval "$ac_link") 2>conftest.er1 12771 ac_status=$? 12772 grep -v '^ *+' conftest.er1 >conftest.err 12773 rm -f conftest.er1 12774 cat conftest.err >&5 12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12776 (exit $ac_status); } && { 12777 test -z "$ac_c_werror_flag" || 12778 test ! -s conftest.err 12779 } && test -s conftest$ac_exeext && 12780 $as_test_x conftest$ac_exeext; then 12781 ac_cv_lib_inet_socket=yes 12782else 12783 echo "$as_me: failed program was:" >&5 12784sed 's/^/| /' conftest.$ac_ext >&5 12785 12786 ac_cv_lib_inet_socket=no 12787fi 12788 12789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12790 conftest$ac_exeext conftest.$ac_ext 12791LIBS=$ac_check_lib_save_LIBS 12792fi 12793{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5 12794echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; } 12795if test $ac_cv_lib_inet_socket = yes; then 12796 LIBS="$LIBS -linet" 12797fi 12798 12799fi 12800 12801###################################################################### 12802 12803{ echo "$as_me:$LINENO: checking for select" >&5 12804echo $ECHO_N "checking for select... $ECHO_C" >&6; } 12805if test "${ac_cv_func_select+set}" = set; then 12806 echo $ECHO_N "(cached) $ECHO_C" >&6 12807else 12808 cat >conftest.$ac_ext <<_ACEOF 12809/* confdefs.h. */ 12810_ACEOF 12811cat confdefs.h >>conftest.$ac_ext 12812cat >>conftest.$ac_ext <<_ACEOF 12813/* end confdefs.h. */ 12814/* Define select to an innocuous variant, in case <limits.h> declares select. 12815 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12816#define select innocuous_select 12817 12818/* System header to define __stub macros and hopefully few prototypes, 12819 which can conflict with char select (); below. 12820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12821 <limits.h> exists even on freestanding compilers. */ 12822 12823#ifdef __STDC__ 12824# include <limits.h> 12825#else 12826# include <assert.h> 12827#endif 12828 12829#undef select 12830 12831/* Override any GCC internal prototype to avoid an error. 12832 Use char because int might match the return type of a GCC 12833 builtin and then its argument prototype would still apply. */ 12834#ifdef __cplusplus 12835extern "C" 12836#endif 12837char select (); 12838/* The GNU C library defines this for functions which it implements 12839 to always fail with ENOSYS. Some functions are actually named 12840 something starting with __ and the normal name is an alias. */ 12841#if defined __stub_select || defined __stub___select 12842choke me 12843#endif 12844 12845int 12846main () 12847{ 12848return select (); 12849 ; 12850 return 0; 12851} 12852_ACEOF 12853rm -f conftest.$ac_objext conftest$ac_exeext 12854if { (ac_try="$ac_link" 12855case "(($ac_try" in 12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12857 *) ac_try_echo=$ac_try;; 12858esac 12859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12860 (eval "$ac_link") 2>conftest.er1 12861 ac_status=$? 12862 grep -v '^ *+' conftest.er1 >conftest.err 12863 rm -f conftest.er1 12864 cat conftest.err >&5 12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12866 (exit $ac_status); } && { 12867 test -z "$ac_c_werror_flag" || 12868 test ! -s conftest.err 12869 } && test -s conftest$ac_exeext && 12870 $as_test_x conftest$ac_exeext; then 12871 ac_cv_func_select=yes 12872else 12873 echo "$as_me: failed program was:" >&5 12874sed 's/^/| /' conftest.$ac_ext >&5 12875 12876 ac_cv_func_select=no 12877fi 12878 12879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12880 conftest$ac_exeext conftest.$ac_ext 12881fi 12882{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 12883echo "${ECHO_T}$ac_cv_func_select" >&6; } 12884if test $ac_cv_func_select = yes; then 12885 select=1 12886else 12887 select=0 12888fi 12889 12890if test $select -eq 0 ; then 12891 { echo "$as_me:$LINENO: checking for select in -linet" >&5 12892echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6; } 12893if test "${ac_cv_lib_inet_select+set}" = set; then 12894 echo $ECHO_N "(cached) $ECHO_C" >&6 12895else 12896 ac_check_lib_save_LIBS=$LIBS 12897LIBS="-linet $LIBS" 12898cat >conftest.$ac_ext <<_ACEOF 12899/* confdefs.h. */ 12900_ACEOF 12901cat confdefs.h >>conftest.$ac_ext 12902cat >>conftest.$ac_ext <<_ACEOF 12903/* end confdefs.h. */ 12904 12905/* Override any GCC internal prototype to avoid an error. 12906 Use char because int might match the return type of a GCC 12907 builtin and then its argument prototype would still apply. */ 12908#ifdef __cplusplus 12909extern "C" 12910#endif 12911char select (); 12912int 12913main () 12914{ 12915return select (); 12916 ; 12917 return 0; 12918} 12919_ACEOF 12920rm -f conftest.$ac_objext conftest$ac_exeext 12921if { (ac_try="$ac_link" 12922case "(($ac_try" in 12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12924 *) ac_try_echo=$ac_try;; 12925esac 12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12927 (eval "$ac_link") 2>conftest.er1 12928 ac_status=$? 12929 grep -v '^ *+' conftest.er1 >conftest.err 12930 rm -f conftest.er1 12931 cat conftest.err >&5 12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12933 (exit $ac_status); } && { 12934 test -z "$ac_c_werror_flag" || 12935 test ! -s conftest.err 12936 } && test -s conftest$ac_exeext && 12937 $as_test_x conftest$ac_exeext; then 12938 ac_cv_lib_inet_select=yes 12939else 12940 echo "$as_me: failed program was:" >&5 12941sed 's/^/| /' conftest.$ac_ext >&5 12942 12943 ac_cv_lib_inet_select=no 12944fi 12945 12946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12947 conftest$ac_exeext conftest.$ac_ext 12948LIBS=$ac_check_lib_save_LIBS 12949fi 12950{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5 12951echo "${ECHO_T}$ac_cv_lib_inet_select" >&6; } 12952if test $ac_cv_lib_inet_select = yes; then 12953 LIBS="$LIBS -linet" 12954fi 12955 12956fi 12957 12958###################################################################### 12959 12960{ echo "$as_me:$LINENO: checking for getpseudotty" >&5 12961echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6; } 12962if test "${ac_cv_func_getpseudotty+set}" = set; then 12963 echo $ECHO_N "(cached) $ECHO_C" >&6 12964else 12965 cat >conftest.$ac_ext <<_ACEOF 12966/* confdefs.h. */ 12967_ACEOF 12968cat confdefs.h >>conftest.$ac_ext 12969cat >>conftest.$ac_ext <<_ACEOF 12970/* end confdefs.h. */ 12971/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty. 12972 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12973#define getpseudotty innocuous_getpseudotty 12974 12975/* System header to define __stub macros and hopefully few prototypes, 12976 which can conflict with char getpseudotty (); below. 12977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12978 <limits.h> exists even on freestanding compilers. */ 12979 12980#ifdef __STDC__ 12981# include <limits.h> 12982#else 12983# include <assert.h> 12984#endif 12985 12986#undef getpseudotty 12987 12988/* Override any GCC internal prototype to avoid an error. 12989 Use char because int might match the return type of a GCC 12990 builtin and then its argument prototype would still apply. */ 12991#ifdef __cplusplus 12992extern "C" 12993#endif 12994char getpseudotty (); 12995/* The GNU C library defines this for functions which it implements 12996 to always fail with ENOSYS. Some functions are actually named 12997 something starting with __ and the normal name is an alias. */ 12998#if defined __stub_getpseudotty || defined __stub___getpseudotty 12999choke me 13000#endif 13001 13002int 13003main () 13004{ 13005return getpseudotty (); 13006 ; 13007 return 0; 13008} 13009_ACEOF 13010rm -f conftest.$ac_objext conftest$ac_exeext 13011if { (ac_try="$ac_link" 13012case "(($ac_try" in 13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13014 *) ac_try_echo=$ac_try;; 13015esac 13016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13017 (eval "$ac_link") 2>conftest.er1 13018 ac_status=$? 13019 grep -v '^ *+' conftest.er1 >conftest.err 13020 rm -f conftest.er1 13021 cat conftest.err >&5 13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13023 (exit $ac_status); } && { 13024 test -z "$ac_c_werror_flag" || 13025 test ! -s conftest.err 13026 } && test -s conftest$ac_exeext && 13027 $as_test_x conftest$ac_exeext; then 13028 ac_cv_func_getpseudotty=yes 13029else 13030 echo "$as_me: failed program was:" >&5 13031sed 's/^/| /' conftest.$ac_ext >&5 13032 13033 ac_cv_func_getpseudotty=no 13034fi 13035 13036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13037 conftest$ac_exeext conftest.$ac_ext 13038fi 13039{ echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5 13040echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6; } 13041if test $ac_cv_func_getpseudotty = yes; then 13042 getpseudotty=1 13043else 13044 getpseudotty=0 13045fi 13046 13047if test $getpseudotty -eq 0 ; then 13048 13049{ echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5 13050echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6; } 13051if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then 13052 echo $ECHO_N "(cached) $ECHO_C" >&6 13053else 13054 ac_check_lib_save_LIBS=$LIBS 13055LIBS="-lseq $LIBS" 13056cat >conftest.$ac_ext <<_ACEOF 13057/* confdefs.h. */ 13058_ACEOF 13059cat confdefs.h >>conftest.$ac_ext 13060cat >>conftest.$ac_ext <<_ACEOF 13061/* end confdefs.h. */ 13062 13063/* Override any GCC internal prototype to avoid an error. 13064 Use char because int might match the return type of a GCC 13065 builtin and then its argument prototype would still apply. */ 13066#ifdef __cplusplus 13067extern "C" 13068#endif 13069char getpseudotty (); 13070int 13071main () 13072{ 13073return getpseudotty (); 13074 ; 13075 return 0; 13076} 13077_ACEOF 13078rm -f conftest.$ac_objext conftest$ac_exeext 13079if { (ac_try="$ac_link" 13080case "(($ac_try" in 13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13082 *) ac_try_echo=$ac_try;; 13083esac 13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13085 (eval "$ac_link") 2>conftest.er1 13086 ac_status=$? 13087 grep -v '^ *+' conftest.er1 >conftest.err 13088 rm -f conftest.er1 13089 cat conftest.err >&5 13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13091 (exit $ac_status); } && { 13092 test -z "$ac_c_werror_flag" || 13093 test ! -s conftest.err 13094 } && test -s conftest$ac_exeext && 13095 $as_test_x conftest$ac_exeext; then 13096 ac_cv_lib_seq_getpseudotty=yes 13097else 13098 echo "$as_me: failed program was:" >&5 13099sed 's/^/| /' conftest.$ac_ext >&5 13100 13101 ac_cv_lib_seq_getpseudotty=no 13102fi 13103 13104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13105 conftest$ac_exeext conftest.$ac_ext 13106LIBS=$ac_check_lib_save_LIBS 13107fi 13108{ echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5 13109echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6; } 13110if test $ac_cv_lib_seq_getpseudotty = yes; then 13111 cat >>confdefs.h <<_ACEOF 13112#define HAVE_LIBSEQ 1 13113_ACEOF 13114 13115 LIBS="-lseq $LIBS" 13116 13117fi 13118 13119fi 13120 13121###################################################################### 13122# Check for FreeBSD/NetBSD openpty() 13123unset ac_cv_func_openpty 13124 13125{ echo "$as_me:$LINENO: checking for openpty" >&5 13126echo $ECHO_N "checking for openpty... $ECHO_C" >&6; } 13127if test "${ac_cv_func_openpty+set}" = set; then 13128 echo $ECHO_N "(cached) $ECHO_C" >&6 13129else 13130 cat >conftest.$ac_ext <<_ACEOF 13131/* confdefs.h. */ 13132_ACEOF 13133cat confdefs.h >>conftest.$ac_ext 13134cat >>conftest.$ac_ext <<_ACEOF 13135/* end confdefs.h. */ 13136/* Define openpty to an innocuous variant, in case <limits.h> declares openpty. 13137 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13138#define openpty innocuous_openpty 13139 13140/* System header to define __stub macros and hopefully few prototypes, 13141 which can conflict with char openpty (); below. 13142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13143 <limits.h> exists even on freestanding compilers. */ 13144 13145#ifdef __STDC__ 13146# include <limits.h> 13147#else 13148# include <assert.h> 13149#endif 13150 13151#undef openpty 13152 13153/* Override any GCC internal prototype to avoid an error. 13154 Use char because int might match the return type of a GCC 13155 builtin and then its argument prototype would still apply. */ 13156#ifdef __cplusplus 13157extern "C" 13158#endif 13159char openpty (); 13160/* The GNU C library defines this for functions which it implements 13161 to always fail with ENOSYS. Some functions are actually named 13162 something starting with __ and the normal name is an alias. */ 13163#if defined __stub_openpty || defined __stub___openpty 13164choke me 13165#endif 13166 13167int 13168main () 13169{ 13170return openpty (); 13171 ; 13172 return 0; 13173} 13174_ACEOF 13175rm -f conftest.$ac_objext conftest$ac_exeext 13176if { (ac_try="$ac_link" 13177case "(($ac_try" in 13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13179 *) ac_try_echo=$ac_try;; 13180esac 13181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13182 (eval "$ac_link") 2>conftest.er1 13183 ac_status=$? 13184 grep -v '^ *+' conftest.er1 >conftest.err 13185 rm -f conftest.er1 13186 cat conftest.err >&5 13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13188 (exit $ac_status); } && { 13189 test -z "$ac_c_werror_flag" || 13190 test ! -s conftest.err 13191 } && test -s conftest$ac_exeext && 13192 $as_test_x conftest$ac_exeext; then 13193 ac_cv_func_openpty=yes 13194else 13195 echo "$as_me: failed program was:" >&5 13196sed 's/^/| /' conftest.$ac_ext >&5 13197 13198 ac_cv_func_openpty=no 13199fi 13200 13201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13202 conftest$ac_exeext conftest.$ac_ext 13203fi 13204{ echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 13205echo "${ECHO_T}$ac_cv_func_openpty" >&6; } 13206if test $ac_cv_func_openpty = yes; then 13207 cat >>confdefs.h <<\_ACEOF 13208#define HAVE_OPENPTY 1 13209_ACEOF 13210 openpty=1 13211else 13212 openpty=0 13213fi 13214 13215if test $openpty -eq 0 ; then 13216 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 13217echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } 13218if test "${ac_cv_lib_util_openpty+set}" = set; then 13219 echo $ECHO_N "(cached) $ECHO_C" >&6 13220else 13221 ac_check_lib_save_LIBS=$LIBS 13222LIBS="-lutil $LIBS" 13223cat >conftest.$ac_ext <<_ACEOF 13224/* confdefs.h. */ 13225_ACEOF 13226cat confdefs.h >>conftest.$ac_ext 13227cat >>conftest.$ac_ext <<_ACEOF 13228/* end confdefs.h. */ 13229 13230/* Override any GCC internal prototype to avoid an error. 13231 Use char because int might match the return type of a GCC 13232 builtin and then its argument prototype would still apply. */ 13233#ifdef __cplusplus 13234extern "C" 13235#endif 13236char openpty (); 13237int 13238main () 13239{ 13240return openpty (); 13241 ; 13242 return 0; 13243} 13244_ACEOF 13245rm -f conftest.$ac_objext conftest$ac_exeext 13246if { (ac_try="$ac_link" 13247case "(($ac_try" in 13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13249 *) ac_try_echo=$ac_try;; 13250esac 13251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13252 (eval "$ac_link") 2>conftest.er1 13253 ac_status=$? 13254 grep -v '^ *+' conftest.er1 >conftest.err 13255 rm -f conftest.er1 13256 cat conftest.err >&5 13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13258 (exit $ac_status); } && { 13259 test -z "$ac_c_werror_flag" || 13260 test ! -s conftest.err 13261 } && test -s conftest$ac_exeext && 13262 $as_test_x conftest$ac_exeext; then 13263 ac_cv_lib_util_openpty=yes 13264else 13265 echo "$as_me: failed program was:" >&5 13266sed 's/^/| /' conftest.$ac_ext >&5 13267 13268 ac_cv_lib_util_openpty=no 13269fi 13270 13271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13272 conftest$ac_exeext conftest.$ac_ext 13273LIBS=$ac_check_lib_save_LIBS 13274fi 13275{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 13276echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } 13277if test $ac_cv_lib_util_openpty = yes; then 13278 13279 # we only need to define OPENPTY once, but since we are overriding 13280 # the default behavior, we must also handle augment LIBS too. 13281 # This needn't be done in the 2nd and 3rd tests. 13282 cat >>confdefs.h <<\_ACEOF 13283#define HAVE_OPENPTY 1 13284_ACEOF 13285 13286 LIBS="$LIBS -lutil" 13287 13288fi 13289 13290fi 13291 13292###################################################################### 13293# End of library/func checking 13294###################################################################### 13295 13296# Hand patches to library/func checking. 13297 13298{ echo "$as_me:$LINENO: checking if running Sequent running SVR4" >&5 13299echo $ECHO_N "checking if running Sequent running SVR4... $ECHO_C" >&6; } 13300if test "$host_alias" = "i386-sequent-sysv4" ; then 13301 LIBS="-lnsl -lsocket -lm" 13302 { echo "$as_me:$LINENO: result: yes" >&5 13303echo "${ECHO_T}yes" >&6; } 13304else 13305 { echo "$as_me:$LINENO: result: no" >&5 13306echo "${ECHO_T}no" >&6; } 13307fi 13308 13309#-------------------------------------------------------------------- 13310#-------------------------------------------------------------------- 13311#-------------------------------------------------------------------- 13312#-------------------------------------------------------------------- 13313# From here on comes original expect configure code. 13314# At the end we will have another section of TEA 3.2 code. 13315# 13316# Note specialities 13317# 13318# - Runs a sub configure (Dbgconfigure) for the expect tcl debugger 13319# 13320#-------------------------------------------------------------------- 13321#-------------------------------------------------------------------- 13322 13323# Make sure we can run config.sub. 13324$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13325 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 13326echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 13327 { (exit 1); exit 1; }; } 13328 13329{ echo "$as_me:$LINENO: checking build system type" >&5 13330echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 13331if test "${ac_cv_build+set}" = set; then 13332 echo $ECHO_N "(cached) $ECHO_C" >&6 13333else 13334 ac_build_alias=$build_alias 13335test "x$ac_build_alias" = x && 13336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13337test "x$ac_build_alias" = x && 13338 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 13339echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 13340 { (exit 1); exit 1; }; } 13341ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13342 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 13343echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 13344 { (exit 1); exit 1; }; } 13345 13346fi 13347{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 13348echo "${ECHO_T}$ac_cv_build" >&6; } 13349case $ac_cv_build in 13350*-*-*) ;; 13351*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 13352echo "$as_me: error: invalid value of canonical build" >&2;} 13353 { (exit 1); exit 1; }; };; 13354esac 13355build=$ac_cv_build 13356ac_save_IFS=$IFS; IFS='-' 13357set x $ac_cv_build 13358shift 13359build_cpu=$1 13360build_vendor=$2 13361shift; shift 13362# Remember, the first character of IFS is used to create $*, 13363# except with old shells: 13364build_os=$* 13365IFS=$ac_save_IFS 13366case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13367 13368 13369{ echo "$as_me:$LINENO: checking host system type" >&5 13370echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 13371if test "${ac_cv_host+set}" = set; then 13372 echo $ECHO_N "(cached) $ECHO_C" >&6 13373else 13374 if test "x$host_alias" = x; then 13375 ac_cv_host=$ac_cv_build 13376else 13377 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13378 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 13379echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 13380 { (exit 1); exit 1; }; } 13381fi 13382 13383fi 13384{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 13385echo "${ECHO_T}$ac_cv_host" >&6; } 13386case $ac_cv_host in 13387*-*-*) ;; 13388*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 13389echo "$as_me: error: invalid value of canonical host" >&2;} 13390 { (exit 1); exit 1; }; };; 13391esac 13392host=$ac_cv_host 13393ac_save_IFS=$IFS; IFS='-' 13394set x $ac_cv_host 13395shift 13396host_cpu=$1 13397host_vendor=$2 13398shift; shift 13399# Remember, the first character of IFS is used to create $*, 13400# except with old shells: 13401host_os=$* 13402IFS=$ac_save_IFS 13403case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13404 13405 13406{ echo "$as_me:$LINENO: checking target system type" >&5 13407echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 13408if test "${ac_cv_target+set}" = set; then 13409 echo $ECHO_N "(cached) $ECHO_C" >&6 13410else 13411 if test "x$target_alias" = x; then 13412 ac_cv_target=$ac_cv_host 13413else 13414 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13415 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 13416echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 13417 { (exit 1); exit 1; }; } 13418fi 13419 13420fi 13421{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 13422echo "${ECHO_T}$ac_cv_target" >&6; } 13423case $ac_cv_target in 13424*-*-*) ;; 13425*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 13426echo "$as_me: error: invalid value of canonical target" >&2;} 13427 { (exit 1); exit 1; }; };; 13428esac 13429target=$ac_cv_target 13430ac_save_IFS=$IFS; IFS='-' 13431set x $ac_cv_target 13432shift 13433target_cpu=$1 13434target_vendor=$2 13435shift; shift 13436# Remember, the first character of IFS is used to create $*, 13437# except with old shells: 13438target_os=$* 13439IFS=$ac_save_IFS 13440case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13441 13442 13443# The aliases save the names the user supplied, while $host etc. 13444# will get canonicalized. 13445test -n "$target_alias" && 13446 test "$program_prefix$program_suffix$program_transform_name" = \ 13447 NONENONEs,x,x, && 13448 program_prefix=${target_alias}- 13449 13450# If `configure' is invoked (in)directly via `make', ensure that it 13451# encounters no `make' conflicts. 13452# 13453 13454MFLAGS= 13455MAKEFLAGS= 13456 13457# An explanation is in order for the strange things going on with the 13458# various LIBS. There are three separate definitions for LIBS. The 13459# reason is that some systems require shared libraries include 13460# references to their dependent libraries, i.e., any additional 13461# libraries that must be linked to. And some systems get upset if the 13462# references are repeated on the link line. So therefore, we create 13463# one for Expect, one for Expect and Tcl, and one for building Expect's own 13464# shared library. Tcl's tclConfig.sh insists that any shared libs 13465# that it "helps" build must pass the libraries as LIBS (see comment 13466# near end of this configure file). I would do but since we're close 13467# to hitting config's max symbols, we take one short cut and pack the 13468# LIBS into EXP_SHLIB_LD_LIBS (which is basically what Tcl wants to do 13469# for us). The point, however, is that there's no separate LIBS or 13470# EXP_LIBS symbol passed out of configure. One additional point for 13471# confusion is that LIBS is what configure uses to do all library 13472# tests, so we have to swap definitions of LIBS periodically. When we 13473# are swapping out the one for Expect's shared library, we save it in 13474# EXP_LIBS. Sigh. 13475 13476eval "LIBS=\"$TCL_LIBS\"" 13477 13478if test "${with_tcl+set}" = set ; then 13479 case "${with_tcl}" in 13480 ..*) 13481 { echo "$as_me:$LINENO: WARNING: Specify absolute path to --with-tcl for subdir configuration" >&5 13482echo "$as_me: WARNING: Specify absolute path to --with-tcl for subdir configuration" >&2;} 13483 ;; 13484 esac 13485fi 13486 13487# these are the other subdirectories we need to configure 13488subdirs="$subdirs testsuite" 13489 13490 13491{ echo "$as_me:$LINENO: checking for pid_t" >&5 13492echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 13493if test "${ac_cv_type_pid_t+set}" = set; then 13494 echo $ECHO_N "(cached) $ECHO_C" >&6 13495else 13496 cat >conftest.$ac_ext <<_ACEOF 13497/* confdefs.h. */ 13498_ACEOF 13499cat confdefs.h >>conftest.$ac_ext 13500cat >>conftest.$ac_ext <<_ACEOF 13501/* end confdefs.h. */ 13502$ac_includes_default 13503typedef pid_t ac__type_new_; 13504int 13505main () 13506{ 13507if ((ac__type_new_ *) 0) 13508 return 0; 13509if (sizeof (ac__type_new_)) 13510 return 0; 13511 ; 13512 return 0; 13513} 13514_ACEOF 13515rm -f conftest.$ac_objext 13516if { (ac_try="$ac_compile" 13517case "(($ac_try" in 13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13519 *) ac_try_echo=$ac_try;; 13520esac 13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13522 (eval "$ac_compile") 2>conftest.er1 13523 ac_status=$? 13524 grep -v '^ *+' conftest.er1 >conftest.err 13525 rm -f conftest.er1 13526 cat conftest.err >&5 13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13528 (exit $ac_status); } && { 13529 test -z "$ac_c_werror_flag" || 13530 test ! -s conftest.err 13531 } && test -s conftest.$ac_objext; then 13532 ac_cv_type_pid_t=yes 13533else 13534 echo "$as_me: failed program was:" >&5 13535sed 's/^/| /' conftest.$ac_ext >&5 13536 13537 ac_cv_type_pid_t=no 13538fi 13539 13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13541fi 13542{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 13543echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 13544if test $ac_cv_type_pid_t = yes; then 13545 : 13546else 13547 13548cat >>confdefs.h <<_ACEOF 13549#define pid_t int 13550_ACEOF 13551 13552fi 13553 13554 13555{ echo "$as_me:$LINENO: checking if running Mach" >&5 13556echo $ECHO_N "checking if running Mach... $ECHO_C" >&6; } 13557mach=0 13558case "${host}" in 13559 # Both Next and pure Mach behave identically with respect 13560 # to a few things, so just lump them together as "mach" 13561 *-*-mach*) mach=1 ;; 13562 *-*-next*) mach=1 ; next=1 ;; 13563esac 13564 13565if test $mach -eq 1 ; then 13566 { echo "$as_me:$LINENO: result: yes" >&5 13567echo "${ECHO_T}yes" >&6; } 13568else 13569 { echo "$as_me:$LINENO: result: no" >&5 13570echo "${ECHO_T}no" >&6; } 13571fi 13572 13573{ echo "$as_me:$LINENO: checking if running MachTen" >&5 13574echo $ECHO_N "checking if running MachTen... $ECHO_C" >&6; } 13575# yet another Mach clone 13576if test -r /MachTen ; then 13577 { echo "$as_me:$LINENO: result: yes" >&5 13578echo "${ECHO_T}yes" >&6; } 13579 mach=1 13580else 13581 { echo "$as_me:$LINENO: result: no" >&5 13582echo "${ECHO_T}no" >&6; } 13583fi 13584 13585{ echo "$as_me:$LINENO: checking if on Pyramid" >&5 13586echo $ECHO_N "checking if on Pyramid... $ECHO_C" >&6; } 13587if test -r /bin/pyr ; then 13588 { echo "$as_me:$LINENO: result: yes" >&5 13589echo "${ECHO_T}yes" >&6; } 13590 pyr=1 13591else 13592 { echo "$as_me:$LINENO: result: no" >&5 13593echo "${ECHO_T}no" >&6; } 13594 pyr=0 13595fi 13596 13597{ echo "$as_me:$LINENO: checking if on Apollo" >&5 13598echo $ECHO_N "checking if on Apollo... $ECHO_C" >&6; } 13599if test -r /usr/apollo/bin ; then 13600 { echo "$as_me:$LINENO: result: yes" >&5 13601echo "${ECHO_T}yes" >&6; } 13602 apollo=1 13603else 13604 { echo "$as_me:$LINENO: result: no" >&5 13605echo "${ECHO_T}no" >&6; } 13606 apollo=0 13607fi 13608 13609{ echo "$as_me:$LINENO: checking if on Interactive" >&5 13610echo $ECHO_N "checking if on Interactive... $ECHO_C" >&6; } 13611if test "x`(uname -s) 2>/dev/null`" = xIUNIX; then 13612 { echo "$as_me:$LINENO: result: yes" >&5 13613echo "${ECHO_T}yes" >&6; } 13614 iunix=1 13615else 13616 { echo "$as_me:$LINENO: result: no" >&5 13617echo "${ECHO_T}no" >&6; } 13618 iunix=0 13619fi 13620 13621{ echo "$as_me:$LINENO: checking stty to use" >&5 13622echo $ECHO_N "checking stty to use... $ECHO_C" >&6; } 13623if test -r /usr/local/bin/stty ; then 13624 STTY_BIN=/usr/local/bin/stty 13625else 13626 STTY_BIN=/bin/stty 13627fi 13628{ echo "$as_me:$LINENO: result: $STTY_BIN" >&5 13629echo "${ECHO_T}$STTY_BIN" >&6; } 13630 13631{ echo "$as_me:$LINENO: checking if stty reads stdout" >&5 13632echo $ECHO_N "checking if stty reads stdout... $ECHO_C" >&6; } 13633 13634# On some systems stty can't be run in the background (svr4) or get it 13635# wrong because they fail to complain (next, mach), so don't attempt 13636# the test on some systems. 13637 13638stty_reads_stdout="" 13639case "${host}" in 13640 *-*-solaris*) stty_reads_stdout=0 ;; 13641 *-*-irix*) stty_reads_stdout=0 ;; 13642 *-*-sco3.2v[45]*) stty_reads_stdout=1 ;; 13643 i[3456]86-*-sysv4.2MP) stty_reads_stdout=0 ;; 13644 *-*-linux*) stty_reads_stdout=0 ;; 13645 # Not sure about old convex but 5.2 definitely reads from stdout 13646 c[12]-*-*) stty_reads_stdout=1 ;; 13647 *-*-aix[34]*) stty_reads_stdout=0 ;; 13648 *-*-hpux9*) stty_reads_stdout=0 ;; 13649 *-*-hpux10*) stty_reads_stdout=0 ;; 13650 *-*-osf[234]*) stty_reads_stdout=0 ;; 13651 *-*-ultrix4.4) stty_reads_stdout=0 ;; 13652 *-*-dgux*) stty_reads_stdout=0 ;; 13653esac 13654 13655if test $mach -eq 1 ; then 13656 stty_reads_stdout=1 13657fi 13658if test $apollo -eq 1 ; then 13659 stty_reads_stdout=1 13660fi 13661if test $pyr -eq 1 ; then 13662 stty_reads_stdout=1 13663fi 13664 13665# if we still don't know, test 13666if test x"${stty_reads_stdout}" = x"" ; then 13667 $STTY_BIN > /dev/null 2> /dev/null ; a=$? 13668 $STTY_BIN < /dev/tty > /dev/null 2> /dev/null ; b=$? 13669 if test $a -ne 0 -a $b -ne 0; then 13670 stty_reads_stdout=1 13671 else 13672 stty_reads_stdout=0 13673 fi 13674fi 13675 13676if test ${stty_reads_stdout} -eq 1 ; then 13677 { echo "$as_me:$LINENO: result: yes" >&5 13678echo "${ECHO_T}yes" >&6; } 13679 cat >>confdefs.h <<\_ACEOF 13680#define STTY_READS_STDOUT 1 13681_ACEOF 13682 13683else 13684 { echo "$as_me:$LINENO: result: no" >&5 13685echo "${ECHO_T}no" >&6; } 13686fi 13687 13688# Solaris 2.4 and later requires __EXTENSIONS__ in order to see all sorts 13689# of traditional but nonstandard stuff in header files. 13690{ echo "$as_me:$LINENO: checking if running Solaris" >&5 13691echo $ECHO_N "checking if running Solaris... $ECHO_C" >&6; } 13692solaris=0 13693case "${host}" in 13694 *-*-solaris*) solaris=1;; 13695esac 13696 13697if test $solaris -eq 1 ; then 13698 { echo "$as_me:$LINENO: result: yes" >&5 13699echo "${ECHO_T}yes" >&6; } 13700 cat >>confdefs.h <<\_ACEOF 13701#define SOLARIS 1 13702_ACEOF 13703 13704else 13705 { echo "$as_me:$LINENO: result: no" >&5 13706echo "${ECHO_T}no" >&6; } 13707fi 13708 13709# On Interactive UNIX, -Xp must be added to LIBS in order to find strftime. 13710# This test should really be done by Tcl. So just check Tcl's definition. 13711# If defective, add to all three LIBS. (It's not actually necessary for 13712# EXP_LIBS since -Xp will just be ignored the way that EXP_LIBS is used in 13713# the Makefile, but we include it for consistency.) 13714 13715if test $iunix -eq 1 ; then 13716 { echo "$as_me:$LINENO: checking for strftime" >&5 13717echo $ECHO_N "checking for strftime... $ECHO_C" >&6; } 13718if test "${ac_cv_func_strftime+set}" = set; then 13719 echo $ECHO_N "(cached) $ECHO_C" >&6 13720else 13721 cat >conftest.$ac_ext <<_ACEOF 13722/* confdefs.h. */ 13723_ACEOF 13724cat confdefs.h >>conftest.$ac_ext 13725cat >>conftest.$ac_ext <<_ACEOF 13726/* end confdefs.h. */ 13727/* Define strftime to an innocuous variant, in case <limits.h> declares strftime. 13728 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13729#define strftime innocuous_strftime 13730 13731/* System header to define __stub macros and hopefully few prototypes, 13732 which can conflict with char strftime (); below. 13733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13734 <limits.h> exists even on freestanding compilers. */ 13735 13736#ifdef __STDC__ 13737# include <limits.h> 13738#else 13739# include <assert.h> 13740#endif 13741 13742#undef strftime 13743 13744/* Override any GCC internal prototype to avoid an error. 13745 Use char because int might match the return type of a GCC 13746 builtin and then its argument prototype would still apply. */ 13747#ifdef __cplusplus 13748extern "C" 13749#endif 13750char strftime (); 13751/* The GNU C library defines this for functions which it implements 13752 to always fail with ENOSYS. Some functions are actually named 13753 something starting with __ and the normal name is an alias. */ 13754#if defined __stub_strftime || defined __stub___strftime 13755choke me 13756#endif 13757 13758int 13759main () 13760{ 13761return strftime (); 13762 ; 13763 return 0; 13764} 13765_ACEOF 13766rm -f conftest.$ac_objext conftest$ac_exeext 13767if { (ac_try="$ac_link" 13768case "(($ac_try" in 13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13770 *) ac_try_echo=$ac_try;; 13771esac 13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13773 (eval "$ac_link") 2>conftest.er1 13774 ac_status=$? 13775 grep -v '^ *+' conftest.er1 >conftest.err 13776 rm -f conftest.er1 13777 cat conftest.err >&5 13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13779 (exit $ac_status); } && { 13780 test -z "$ac_c_werror_flag" || 13781 test ! -s conftest.err 13782 } && test -s conftest$ac_exeext && 13783 $as_test_x conftest$ac_exeext; then 13784 ac_cv_func_strftime=yes 13785else 13786 echo "$as_me: failed program was:" >&5 13787sed 's/^/| /' conftest.$ac_ext >&5 13788 13789 ac_cv_func_strftime=no 13790fi 13791 13792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13793 conftest$ac_exeext conftest.$ac_ext 13794fi 13795{ echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5 13796echo "${ECHO_T}$ac_cv_func_strftime" >&6; } 13797if test $ac_cv_func_strftime = yes; then 13798 : 13799else 13800 13801 LIBS="${LIBS} -Xp" 13802 13803fi 13804 13805fi 13806 13807###################################################################### 13808# 13809# Look for various header files 13810# 13811 13812# 13813# Look for functions that may be missing 13814# 13815{ echo "$as_me:$LINENO: checking for memmove" >&5 13816echo $ECHO_N "checking for memmove... $ECHO_C" >&6; } 13817if test "${ac_cv_func_memmove+set}" = set; then 13818 echo $ECHO_N "(cached) $ECHO_C" >&6 13819else 13820 cat >conftest.$ac_ext <<_ACEOF 13821/* confdefs.h. */ 13822_ACEOF 13823cat confdefs.h >>conftest.$ac_ext 13824cat >>conftest.$ac_ext <<_ACEOF 13825/* end confdefs.h. */ 13826/* Define memmove to an innocuous variant, in case <limits.h> declares memmove. 13827 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13828#define memmove innocuous_memmove 13829 13830/* System header to define __stub macros and hopefully few prototypes, 13831 which can conflict with char memmove (); below. 13832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13833 <limits.h> exists even on freestanding compilers. */ 13834 13835#ifdef __STDC__ 13836# include <limits.h> 13837#else 13838# include <assert.h> 13839#endif 13840 13841#undef memmove 13842 13843/* Override any GCC internal prototype to avoid an error. 13844 Use char because int might match the return type of a GCC 13845 builtin and then its argument prototype would still apply. */ 13846#ifdef __cplusplus 13847extern "C" 13848#endif 13849char memmove (); 13850/* The GNU C library defines this for functions which it implements 13851 to always fail with ENOSYS. Some functions are actually named 13852 something starting with __ and the normal name is an alias. */ 13853#if defined __stub_memmove || defined __stub___memmove 13854choke me 13855#endif 13856 13857int 13858main () 13859{ 13860return memmove (); 13861 ; 13862 return 0; 13863} 13864_ACEOF 13865rm -f conftest.$ac_objext conftest$ac_exeext 13866if { (ac_try="$ac_link" 13867case "(($ac_try" in 13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13869 *) ac_try_echo=$ac_try;; 13870esac 13871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13872 (eval "$ac_link") 2>conftest.er1 13873 ac_status=$? 13874 grep -v '^ *+' conftest.er1 >conftest.err 13875 rm -f conftest.er1 13876 cat conftest.err >&5 13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13878 (exit $ac_status); } && { 13879 test -z "$ac_c_werror_flag" || 13880 test ! -s conftest.err 13881 } && test -s conftest$ac_exeext && 13882 $as_test_x conftest$ac_exeext; then 13883 ac_cv_func_memmove=yes 13884else 13885 echo "$as_me: failed program was:" >&5 13886sed 's/^/| /' conftest.$ac_ext >&5 13887 13888 ac_cv_func_memmove=no 13889fi 13890 13891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13892 conftest$ac_exeext conftest.$ac_ext 13893fi 13894{ echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5 13895echo "${ECHO_T}$ac_cv_func_memmove" >&6; } 13896if test $ac_cv_func_memmove = yes; then 13897 cat >>confdefs.h <<\_ACEOF 13898#define HAVE_MEMMOVE 1 13899_ACEOF 13900 13901fi 13902 13903{ echo "$as_me:$LINENO: checking for sysconf" >&5 13904echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; } 13905if test "${ac_cv_func_sysconf+set}" = set; then 13906 echo $ECHO_N "(cached) $ECHO_C" >&6 13907else 13908 cat >conftest.$ac_ext <<_ACEOF 13909/* confdefs.h. */ 13910_ACEOF 13911cat confdefs.h >>conftest.$ac_ext 13912cat >>conftest.$ac_ext <<_ACEOF 13913/* end confdefs.h. */ 13914/* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf. 13915 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13916#define sysconf innocuous_sysconf 13917 13918/* System header to define __stub macros and hopefully few prototypes, 13919 which can conflict with char sysconf (); below. 13920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13921 <limits.h> exists even on freestanding compilers. */ 13922 13923#ifdef __STDC__ 13924# include <limits.h> 13925#else 13926# include <assert.h> 13927#endif 13928 13929#undef sysconf 13930 13931/* Override any GCC internal prototype to avoid an error. 13932 Use char because int might match the return type of a GCC 13933 builtin and then its argument prototype would still apply. */ 13934#ifdef __cplusplus 13935extern "C" 13936#endif 13937char sysconf (); 13938/* The GNU C library defines this for functions which it implements 13939 to always fail with ENOSYS. Some functions are actually named 13940 something starting with __ and the normal name is an alias. */ 13941#if defined __stub_sysconf || defined __stub___sysconf 13942choke me 13943#endif 13944 13945int 13946main () 13947{ 13948return sysconf (); 13949 ; 13950 return 0; 13951} 13952_ACEOF 13953rm -f conftest.$ac_objext conftest$ac_exeext 13954if { (ac_try="$ac_link" 13955case "(($ac_try" in 13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13957 *) ac_try_echo=$ac_try;; 13958esac 13959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13960 (eval "$ac_link") 2>conftest.er1 13961 ac_status=$? 13962 grep -v '^ *+' conftest.er1 >conftest.err 13963 rm -f conftest.er1 13964 cat conftest.err >&5 13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13966 (exit $ac_status); } && { 13967 test -z "$ac_c_werror_flag" || 13968 test ! -s conftest.err 13969 } && test -s conftest$ac_exeext && 13970 $as_test_x conftest$ac_exeext; then 13971 ac_cv_func_sysconf=yes 13972else 13973 echo "$as_me: failed program was:" >&5 13974sed 's/^/| /' conftest.$ac_ext >&5 13975 13976 ac_cv_func_sysconf=no 13977fi 13978 13979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13980 conftest$ac_exeext conftest.$ac_ext 13981fi 13982{ echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5 13983echo "${ECHO_T}$ac_cv_func_sysconf" >&6; } 13984if test $ac_cv_func_sysconf = yes; then 13985 cat >>confdefs.h <<\_ACEOF 13986#define HAVE_SYSCONF 1 13987_ACEOF 13988 13989fi 13990 13991{ echo "$as_me:$LINENO: checking for strftime" >&5 13992echo $ECHO_N "checking for strftime... $ECHO_C" >&6; } 13993if test "${ac_cv_func_strftime+set}" = set; then 13994 echo $ECHO_N "(cached) $ECHO_C" >&6 13995else 13996 cat >conftest.$ac_ext <<_ACEOF 13997/* confdefs.h. */ 13998_ACEOF 13999cat confdefs.h >>conftest.$ac_ext 14000cat >>conftest.$ac_ext <<_ACEOF 14001/* end confdefs.h. */ 14002/* Define strftime to an innocuous variant, in case <limits.h> declares strftime. 14003 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14004#define strftime innocuous_strftime 14005 14006/* System header to define __stub macros and hopefully few prototypes, 14007 which can conflict with char strftime (); below. 14008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14009 <limits.h> exists even on freestanding compilers. */ 14010 14011#ifdef __STDC__ 14012# include <limits.h> 14013#else 14014# include <assert.h> 14015#endif 14016 14017#undef strftime 14018 14019/* Override any GCC internal prototype to avoid an error. 14020 Use char because int might match the return type of a GCC 14021 builtin and then its argument prototype would still apply. */ 14022#ifdef __cplusplus 14023extern "C" 14024#endif 14025char strftime (); 14026/* The GNU C library defines this for functions which it implements 14027 to always fail with ENOSYS. Some functions are actually named 14028 something starting with __ and the normal name is an alias. */ 14029#if defined __stub_strftime || defined __stub___strftime 14030choke me 14031#endif 14032 14033int 14034main () 14035{ 14036return strftime (); 14037 ; 14038 return 0; 14039} 14040_ACEOF 14041rm -f conftest.$ac_objext conftest$ac_exeext 14042if { (ac_try="$ac_link" 14043case "(($ac_try" in 14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14045 *) ac_try_echo=$ac_try;; 14046esac 14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14048 (eval "$ac_link") 2>conftest.er1 14049 ac_status=$? 14050 grep -v '^ *+' conftest.er1 >conftest.err 14051 rm -f conftest.er1 14052 cat conftest.err >&5 14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14054 (exit $ac_status); } && { 14055 test -z "$ac_c_werror_flag" || 14056 test ! -s conftest.err 14057 } && test -s conftest$ac_exeext && 14058 $as_test_x conftest$ac_exeext; then 14059 ac_cv_func_strftime=yes 14060else 14061 echo "$as_me: failed program was:" >&5 14062sed 's/^/| /' conftest.$ac_ext >&5 14063 14064 ac_cv_func_strftime=no 14065fi 14066 14067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14068 conftest$ac_exeext conftest.$ac_ext 14069fi 14070{ echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5 14071echo "${ECHO_T}$ac_cv_func_strftime" >&6; } 14072if test $ac_cv_func_strftime = yes; then 14073 cat >>confdefs.h <<\_ACEOF 14074#define HAVE_STRFTIME 1 14075_ACEOF 14076 14077fi 14078 14079{ echo "$as_me:$LINENO: checking for strchr" >&5 14080echo $ECHO_N "checking for strchr... $ECHO_C" >&6; } 14081if test "${ac_cv_func_strchr+set}" = set; then 14082 echo $ECHO_N "(cached) $ECHO_C" >&6 14083else 14084 cat >conftest.$ac_ext <<_ACEOF 14085/* confdefs.h. */ 14086_ACEOF 14087cat confdefs.h >>conftest.$ac_ext 14088cat >>conftest.$ac_ext <<_ACEOF 14089/* end confdefs.h. */ 14090/* Define strchr to an innocuous variant, in case <limits.h> declares strchr. 14091 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14092#define strchr innocuous_strchr 14093 14094/* System header to define __stub macros and hopefully few prototypes, 14095 which can conflict with char strchr (); below. 14096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14097 <limits.h> exists even on freestanding compilers. */ 14098 14099#ifdef __STDC__ 14100# include <limits.h> 14101#else 14102# include <assert.h> 14103#endif 14104 14105#undef strchr 14106 14107/* Override any GCC internal prototype to avoid an error. 14108 Use char because int might match the return type of a GCC 14109 builtin and then its argument prototype would still apply. */ 14110#ifdef __cplusplus 14111extern "C" 14112#endif 14113char strchr (); 14114/* The GNU C library defines this for functions which it implements 14115 to always fail with ENOSYS. Some functions are actually named 14116 something starting with __ and the normal name is an alias. */ 14117#if defined __stub_strchr || defined __stub___strchr 14118choke me 14119#endif 14120 14121int 14122main () 14123{ 14124return strchr (); 14125 ; 14126 return 0; 14127} 14128_ACEOF 14129rm -f conftest.$ac_objext conftest$ac_exeext 14130if { (ac_try="$ac_link" 14131case "(($ac_try" in 14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14133 *) ac_try_echo=$ac_try;; 14134esac 14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14136 (eval "$ac_link") 2>conftest.er1 14137 ac_status=$? 14138 grep -v '^ *+' conftest.er1 >conftest.err 14139 rm -f conftest.er1 14140 cat conftest.err >&5 14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14142 (exit $ac_status); } && { 14143 test -z "$ac_c_werror_flag" || 14144 test ! -s conftest.err 14145 } && test -s conftest$ac_exeext && 14146 $as_test_x conftest$ac_exeext; then 14147 ac_cv_func_strchr=yes 14148else 14149 echo "$as_me: failed program was:" >&5 14150sed 's/^/| /' conftest.$ac_ext >&5 14151 14152 ac_cv_func_strchr=no 14153fi 14154 14155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14156 conftest$ac_exeext conftest.$ac_ext 14157fi 14158{ echo "$as_me:$LINENO: result: $ac_cv_func_strchr" >&5 14159echo "${ECHO_T}$ac_cv_func_strchr" >&6; } 14160if test $ac_cv_func_strchr = yes; then 14161 cat >>confdefs.h <<\_ACEOF 14162#define HAVE_STRCHR 1 14163_ACEOF 14164 14165fi 14166 14167{ echo "$as_me:$LINENO: checking for timezone" >&5 14168echo $ECHO_N "checking for timezone... $ECHO_C" >&6; } 14169if test "${ac_cv_func_timezone+set}" = set; then 14170 echo $ECHO_N "(cached) $ECHO_C" >&6 14171else 14172 cat >conftest.$ac_ext <<_ACEOF 14173/* confdefs.h. */ 14174_ACEOF 14175cat confdefs.h >>conftest.$ac_ext 14176cat >>conftest.$ac_ext <<_ACEOF 14177/* end confdefs.h. */ 14178/* Define timezone to an innocuous variant, in case <limits.h> declares timezone. 14179 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14180#define timezone innocuous_timezone 14181 14182/* System header to define __stub macros and hopefully few prototypes, 14183 which can conflict with char timezone (); below. 14184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14185 <limits.h> exists even on freestanding compilers. */ 14186 14187#ifdef __STDC__ 14188# include <limits.h> 14189#else 14190# include <assert.h> 14191#endif 14192 14193#undef timezone 14194 14195/* Override any GCC internal prototype to avoid an error. 14196 Use char because int might match the return type of a GCC 14197 builtin and then its argument prototype would still apply. */ 14198#ifdef __cplusplus 14199extern "C" 14200#endif 14201char timezone (); 14202/* The GNU C library defines this for functions which it implements 14203 to always fail with ENOSYS. Some functions are actually named 14204 something starting with __ and the normal name is an alias. */ 14205#if defined __stub_timezone || defined __stub___timezone 14206choke me 14207#endif 14208 14209int 14210main () 14211{ 14212return timezone (); 14213 ; 14214 return 0; 14215} 14216_ACEOF 14217rm -f conftest.$ac_objext conftest$ac_exeext 14218if { (ac_try="$ac_link" 14219case "(($ac_try" in 14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14221 *) ac_try_echo=$ac_try;; 14222esac 14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14224 (eval "$ac_link") 2>conftest.er1 14225 ac_status=$? 14226 grep -v '^ *+' conftest.er1 >conftest.err 14227 rm -f conftest.er1 14228 cat conftest.err >&5 14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14230 (exit $ac_status); } && { 14231 test -z "$ac_c_werror_flag" || 14232 test ! -s conftest.err 14233 } && test -s conftest$ac_exeext && 14234 $as_test_x conftest$ac_exeext; then 14235 ac_cv_func_timezone=yes 14236else 14237 echo "$as_me: failed program was:" >&5 14238sed 's/^/| /' conftest.$ac_ext >&5 14239 14240 ac_cv_func_timezone=no 14241fi 14242 14243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14244 conftest$ac_exeext conftest.$ac_ext 14245fi 14246{ echo "$as_me:$LINENO: result: $ac_cv_func_timezone" >&5 14247echo "${ECHO_T}$ac_cv_func_timezone" >&6; } 14248if test $ac_cv_func_timezone = yes; then 14249 cat >>confdefs.h <<\_ACEOF 14250#define HAVE_TIMEZONE 1 14251_ACEOF 14252 14253fi 14254 14255{ echo "$as_me:$LINENO: checking for siglongjmp" >&5 14256echo $ECHO_N "checking for siglongjmp... $ECHO_C" >&6; } 14257if test "${ac_cv_func_siglongjmp+set}" = set; then 14258 echo $ECHO_N "(cached) $ECHO_C" >&6 14259else 14260 cat >conftest.$ac_ext <<_ACEOF 14261/* confdefs.h. */ 14262_ACEOF 14263cat confdefs.h >>conftest.$ac_ext 14264cat >>conftest.$ac_ext <<_ACEOF 14265/* end confdefs.h. */ 14266/* Define siglongjmp to an innocuous variant, in case <limits.h> declares siglongjmp. 14267 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14268#define siglongjmp innocuous_siglongjmp 14269 14270/* System header to define __stub macros and hopefully few prototypes, 14271 which can conflict with char siglongjmp (); below. 14272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14273 <limits.h> exists even on freestanding compilers. */ 14274 14275#ifdef __STDC__ 14276# include <limits.h> 14277#else 14278# include <assert.h> 14279#endif 14280 14281#undef siglongjmp 14282 14283/* Override any GCC internal prototype to avoid an error. 14284 Use char because int might match the return type of a GCC 14285 builtin and then its argument prototype would still apply. */ 14286#ifdef __cplusplus 14287extern "C" 14288#endif 14289char siglongjmp (); 14290/* The GNU C library defines this for functions which it implements 14291 to always fail with ENOSYS. Some functions are actually named 14292 something starting with __ and the normal name is an alias. */ 14293#if defined __stub_siglongjmp || defined __stub___siglongjmp 14294choke me 14295#endif 14296 14297int 14298main () 14299{ 14300return siglongjmp (); 14301 ; 14302 return 0; 14303} 14304_ACEOF 14305rm -f conftest.$ac_objext conftest$ac_exeext 14306if { (ac_try="$ac_link" 14307case "(($ac_try" in 14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14309 *) ac_try_echo=$ac_try;; 14310esac 14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14312 (eval "$ac_link") 2>conftest.er1 14313 ac_status=$? 14314 grep -v '^ *+' conftest.er1 >conftest.err 14315 rm -f conftest.er1 14316 cat conftest.err >&5 14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14318 (exit $ac_status); } && { 14319 test -z "$ac_c_werror_flag" || 14320 test ! -s conftest.err 14321 } && test -s conftest$ac_exeext && 14322 $as_test_x conftest$ac_exeext; then 14323 ac_cv_func_siglongjmp=yes 14324else 14325 echo "$as_me: failed program was:" >&5 14326sed 's/^/| /' conftest.$ac_ext >&5 14327 14328 ac_cv_func_siglongjmp=no 14329fi 14330 14331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14332 conftest$ac_exeext conftest.$ac_ext 14333fi 14334{ echo "$as_me:$LINENO: result: $ac_cv_func_siglongjmp" >&5 14335echo "${ECHO_T}$ac_cv_func_siglongjmp" >&6; } 14336if test $ac_cv_func_siglongjmp = yes; then 14337 cat >>confdefs.h <<\_ACEOF 14338#define HAVE_SIGLONGJMP 1 14339_ACEOF 14340 14341fi 14342 14343 14344# dnl check for memcpy by hand 14345# because Unixware 2.0 handles it specially and refuses to compile 14346# autoconf's automatic test that is a call with no arguments 14347{ echo "$as_me:$LINENO: checking for memcpy" >&5 14348echo $ECHO_N "checking for memcpy... $ECHO_C" >&6; } 14349cat >conftest.$ac_ext <<_ACEOF 14350/* confdefs.h. */ 14351_ACEOF 14352cat confdefs.h >>conftest.$ac_ext 14353cat >>conftest.$ac_ext <<_ACEOF 14354/* end confdefs.h. */ 14355 14356int 14357main () 14358{ 14359 14360char *s1, *s2; 14361memcpy(s1,s2,0); 14362 14363 ; 14364 return 0; 14365} 14366_ACEOF 14367rm -f conftest.$ac_objext conftest$ac_exeext 14368if { (ac_try="$ac_link" 14369case "(($ac_try" in 14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14371 *) ac_try_echo=$ac_try;; 14372esac 14373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14374 (eval "$ac_link") 2>conftest.er1 14375 ac_status=$? 14376 grep -v '^ *+' conftest.er1 >conftest.err 14377 rm -f conftest.er1 14378 cat conftest.err >&5 14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14380 (exit $ac_status); } && { 14381 test -z "$ac_c_werror_flag" || 14382 test ! -s conftest.err 14383 } && test -s conftest$ac_exeext && 14384 $as_test_x conftest$ac_exeext; then 14385 { echo "$as_me:$LINENO: result: yes" >&5 14386echo "${ECHO_T}yes" >&6; } 14387 cat >>confdefs.h <<\_ACEOF 14388#define HAVE_MEMCPY 1 14389_ACEOF 14390 14391 14392else 14393 echo "$as_me: failed program was:" >&5 14394sed 's/^/| /' conftest.$ac_ext >&5 14395 14396 { echo "$as_me:$LINENO: result: no" >&5 14397echo "${ECHO_T}no" >&6; } 14398 14399fi 14400 14401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14402 conftest$ac_exeext conftest.$ac_ext 14403 14404# Some systems only define WNOHANG if _POSIX_SOURCE is defined 14405# The following merely tests that sys/wait.h can be included 14406# and if so that WNOHANG is not defined. The only place I've 14407# seen this is ISC. 14408{ echo "$as_me:$LINENO: checking if WNOHANG requires _POSIX_SOURCE" >&5 14409echo $ECHO_N "checking if WNOHANG requires _POSIX_SOURCE... $ECHO_C" >&6; } 14410if test "$cross_compiling" = yes; then 14411 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 14412echo "$as_me: error: Expect can't be cross compiled" >&2;} 14413 { (exit 1); exit 1; }; } 14414 14415else 14416 cat >conftest.$ac_ext <<_ACEOF 14417/* confdefs.h. */ 14418_ACEOF 14419cat confdefs.h >>conftest.$ac_ext 14420cat >>conftest.$ac_ext <<_ACEOF 14421/* end confdefs.h. */ 14422 14423#include <sys/wait.h> 14424main() { 14425#ifndef WNOHANG 14426 return 0; 14427#else 14428 return 1; 14429#endif 14430} 14431_ACEOF 14432rm -f conftest$ac_exeext 14433if { (ac_try="$ac_link" 14434case "(($ac_try" in 14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14436 *) ac_try_echo=$ac_try;; 14437esac 14438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14439 (eval "$ac_link") 2>&5 14440 ac_status=$? 14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14443 { (case "(($ac_try" in 14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14445 *) ac_try_echo=$ac_try;; 14446esac 14447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14448 (eval "$ac_try") 2>&5 14449 ac_status=$? 14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14451 (exit $ac_status); }; }; then 14452 { echo "$as_me:$LINENO: result: yes" >&5 14453echo "${ECHO_T}yes" >&6; } 14454 cat >>confdefs.h <<\_ACEOF 14455#define WNOHANG_REQUIRES_POSIX_SOURCE 1 14456_ACEOF 14457 14458 14459else 14460 echo "$as_me: program exited with status $ac_status" >&5 14461echo "$as_me: failed program was:" >&5 14462sed 's/^/| /' conftest.$ac_ext >&5 14463 14464( exit $ac_status ) 14465{ echo "$as_me:$LINENO: result: no" >&5 14466echo "${ECHO_T}no" >&6; } 14467 14468fi 14469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14470fi 14471 14472 14473 14474{ echo "$as_me:$LINENO: checking if any value exists for WNOHANG" >&5 14475echo $ECHO_N "checking if any value exists for WNOHANG... $ECHO_C" >&6; } 14476rm -rf wnohang 14477if test "$cross_compiling" = yes; then 14478 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 14479echo "$as_me: error: Expect can't be cross compiled" >&2;} 14480 { (exit 1); exit 1; }; } 14481 14482else 14483 cat >conftest.$ac_ext <<_ACEOF 14484/* confdefs.h. */ 14485_ACEOF 14486cat confdefs.h >>conftest.$ac_ext 14487cat >>conftest.$ac_ext <<_ACEOF 14488/* end confdefs.h. */ 14489 14490#include <stdio.h> 14491#include <sys/wait.h> 14492main() { 14493#ifdef WNOHANG 14494 FILE *fp = fopen("wnohang","w"); 14495 fprintf(fp,"%d",WNOHANG); 14496 fclose(fp); 14497 return 0; 14498#else 14499 return 1; 14500#endif 14501} 14502_ACEOF 14503rm -f conftest$ac_exeext 14504if { (ac_try="$ac_link" 14505case "(($ac_try" in 14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14507 *) ac_try_echo=$ac_try;; 14508esac 14509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14510 (eval "$ac_link") 2>&5 14511 ac_status=$? 14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14514 { (case "(($ac_try" in 14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14516 *) ac_try_echo=$ac_try;; 14517esac 14518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14519 (eval "$ac_try") 2>&5 14520 ac_status=$? 14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14522 (exit $ac_status); }; }; then 14523 { echo "$as_me:$LINENO: result: yes" >&5 14524echo "${ECHO_T}yes" >&6; } 14525 cat >>confdefs.h <<_ACEOF 14526#define WNOHANG_BACKUP_VALUE `cat wnohang` 14527_ACEOF 14528 14529 rm -f wnohang 14530 14531else 14532 echo "$as_me: program exited with status $ac_status" >&5 14533echo "$as_me: failed program was:" >&5 14534sed 's/^/| /' conftest.$ac_ext >&5 14535 14536( exit $ac_status ) 14537{ echo "$as_me:$LINENO: result: no" >&5 14538echo "${ECHO_T}no" >&6; } 14539 cat >>confdefs.h <<\_ACEOF 14540#define WNOHANG_BACKUP_VALUE 1 14541_ACEOF 14542 14543 14544fi 14545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14546fi 14547 14548 14549 14550# 14551# check how signals work 14552# 14553 14554# Check for the data type of the mask used in select(). 14555# This picks up HP braindamage which defines fd_set and then 14556# proceeds to ignore it and use int. 14557# Pattern matching on int could be loosened. 14558# Can't use ac_header_egrep since that doesn't see prototypes with K&R cpp. 14559{ echo "$as_me:$LINENO: checking mask type of select" >&5 14560echo $ECHO_N "checking mask type of select... $ECHO_C" >&6; } 14561if egrep "select\(size_t, int" /usr/include/sys/time.h >/dev/null 2>&1; then 14562 { echo "$as_me:$LINENO: result: int" >&5 14563echo "${ECHO_T}int" >&6; } 14564 cat >>confdefs.h <<\_ACEOF 14565#define SELECT_MASK_TYPE int 14566_ACEOF 14567 14568else 14569 { echo "$as_me:$LINENO: result: none" >&5 14570echo "${ECHO_T}none" >&6; } 14571 cat >>confdefs.h <<\_ACEOF 14572#define SELECT_MASK_TYPE fd_set 14573_ACEOF 14574 14575fi 14576 14577 14578# FIXME: check if alarm exists 14579{ echo "$as_me:$LINENO: checking if signals need to be re-armed" >&5 14580echo $ECHO_N "checking if signals need to be re-armed... $ECHO_C" >&6; } 14581if test "$cross_compiling" = yes; then 14582 { echo "$as_me:$LINENO: WARNING: Expect can't be cross compiled" >&5 14583echo "$as_me: WARNING: Expect can't be cross compiled" >&2;} 14584 14585else 14586 cat >conftest.$ac_ext <<_ACEOF 14587/* confdefs.h. */ 14588_ACEOF 14589cat confdefs.h >>conftest.$ac_ext 14590cat >>conftest.$ac_ext <<_ACEOF 14591/* end confdefs.h. */ 14592 14593#include <signal.h> 14594#define RETSIGTYPE $retsigtype 14595 14596int signal_rearms = 0; 14597 14598RETSIGTYPE 14599child_sigint_handler(n) 14600int n; 14601{ 14602} 14603 14604RETSIGTYPE 14605parent_sigint_handler(n) 14606int n; 14607{ 14608signal_rearms++; 14609} 14610 14611main() 14612{ 14613 signal(SIGINT,parent_sigint_handler); 14614 14615 if (0 == fork()) { 14616 signal(SIGINT,child_sigint_handler); 14617 kill(getpid(),SIGINT); 14618 kill(getpid(),SIGINT); 14619 kill(getppid(),SIGINT); 14620 } else { 14621 int status; 14622 14623 wait(&status); 14624 unlink("core"); 14625 exit(signal_rearms); 14626 } 14627} 14628_ACEOF 14629rm -f conftest$ac_exeext 14630if { (ac_try="$ac_link" 14631case "(($ac_try" in 14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14633 *) ac_try_echo=$ac_try;; 14634esac 14635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14636 (eval "$ac_link") 2>&5 14637 ac_status=$? 14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14640 { (case "(($ac_try" in 14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14642 *) ac_try_echo=$ac_try;; 14643esac 14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14645 (eval "$ac_try") 2>&5 14646 ac_status=$? 14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14648 (exit $ac_status); }; }; then 14649 { echo "$as_me:$LINENO: result: yes" >&5 14650echo "${ECHO_T}yes" >&6; } 14651 cat >>confdefs.h <<\_ACEOF 14652#define REARM_SIG 1 14653_ACEOF 14654 14655 14656else 14657 echo "$as_me: program exited with status $ac_status" >&5 14658echo "$as_me: failed program was:" >&5 14659sed 's/^/| /' conftest.$ac_ext >&5 14660 14661( exit $ac_status ) 14662{ echo "$as_me:$LINENO: result: no" >&5 14663echo "${ECHO_T}no" >&6; } 14664 14665fi 14666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14667fi 14668 14669 14670 14671# HPUX7 has trouble with the big cat so split it 14672# Owen Rees <rtor@ansa.co.uk> 29Mar93 14673SEDDEFS="${SEDDEFS}CONFEOF 14674cat >> conftest.sed <<CONFEOF 14675" 14676# 14677 14678# There are multiple versions of getpty, alas. 14679# I don't remember who has the first one, but Convex just added one 14680# so check for it. Unfortunately, there is no header so the only 14681# reasonable way to make sure is to look it we are on a Convex. 14682{ echo "$as_me:$LINENO: checking if on Convex" >&5 14683echo $ECHO_N "checking if on Convex... $ECHO_C" >&6; } 14684convex=0 14685case "${host}" in 14686 c[12]-*-*) convex=1;; 14687esac 14688 14689if test $convex -eq 1 ; then 14690 { echo "$as_me:$LINENO: result: yes" >&5 14691echo "${ECHO_T}yes" >&6; } 14692 cat >>confdefs.h <<\_ACEOF 14693#define CONVEX 1 14694_ACEOF 14695 14696else 14697 { echo "$as_me:$LINENO: result: no" >&5 14698echo "${ECHO_T}no" >&6; } 14699fi 14700 14701 14702{ echo "$as_me:$LINENO: checking if on HP" >&5 14703echo $ECHO_N "checking if on HP... $ECHO_C" >&6; } 14704if test "x`(uname) 2>/dev/null`" = xHP-UX; then 14705 { echo "$as_me:$LINENO: result: yes" >&5 14706echo "${ECHO_T}yes" >&6; } 14707 hp=1 14708else 14709 { echo "$as_me:$LINENO: result: no" >&5 14710echo "${ECHO_T}no" >&6; } 14711 hp=0 14712fi 14713 14714{ echo "$as_me:$LINENO: checking sane default stty arguments" >&5 14715echo $ECHO_N "checking sane default stty arguments... $ECHO_C" >&6; } 14716DEFAULT_STTY_ARGS="sane" 14717 14718if test $mach -eq 1 ; then 14719 DEFAULT_STTY_ARGS="cooked" 14720fi 14721 14722if test $hp -eq 1 ; then 14723 DEFAULT_STTY_ARGS="sane kill " 14724fi 14725 14726{ echo "$as_me:$LINENO: result: $DEFAULT_STTY_ARG" >&5 14727echo "${ECHO_T}$DEFAULT_STTY_ARG" >&6; } 14728 14729# Look for various features to determine what kind of pty 14730# we have. For some weird reason, ac_compile_check would not 14731# work, but ac_test_program does. 14732# 14733{ echo "$as_me:$LINENO: checking for HP style pty allocation" >&5 14734echo $ECHO_N "checking for HP style pty allocation... $ECHO_C" >&6; } 14735# following test fails on DECstations and other things that don't grok -c 14736# but that's ok, since they don't have PTYMs anyway 14737if test -r /dev/ptym/ptyp0 2>/dev/null ; then 14738 { echo "$as_me:$LINENO: result: yes" >&5 14739echo "${ECHO_T}yes" >&6; } 14740 cat >>confdefs.h <<\_ACEOF 14741#define HAVE_PTYM 1 14742_ACEOF 14743 14744else 14745 { echo "$as_me:$LINENO: result: no" >&5 14746echo "${ECHO_T}no" >&6; } 14747fi 14748 14749{ echo "$as_me:$LINENO: checking for HP style pty trapping" >&5 14750echo $ECHO_N "checking for HP style pty trapping... $ECHO_C" >&6; } 14751cat >conftest.$ac_ext <<_ACEOF 14752/* confdefs.h. */ 14753_ACEOF 14754cat confdefs.h >>conftest.$ac_ext 14755cat >>conftest.$ac_ext <<_ACEOF 14756/* end confdefs.h. */ 14757#include <sys/ptyio.h> 14758 14759_ACEOF 14760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14761 $EGREP "struct.*request_info" >/dev/null 2>&1; then 14762 { echo "$as_me:$LINENO: result: yes" >&5 14763echo "${ECHO_T}yes" >&6; } 14764 cat >>confdefs.h <<\_ACEOF 14765#define HAVE_PTYTRAP 1 14766_ACEOF 14767 14768 14769else 14770 { echo "$as_me:$LINENO: result: no" >&5 14771echo "${ECHO_T}no" >&6; } 14772 14773fi 14774rm -f -r conftest* 14775 14776 14777{ echo "$as_me:$LINENO: checking for AIX new-style pty allocation" >&5 14778echo $ECHO_N "checking for AIX new-style pty allocation... $ECHO_C" >&6; } 14779if test -r /dev/ptc -a -r /dev/pts ; then 14780 { echo "$as_me:$LINENO: result: yes" >&5 14781echo "${ECHO_T}yes" >&6; } 14782 cat >>confdefs.h <<\_ACEOF 14783#define HAVE_PTC_PTS 1 14784_ACEOF 14785 14786else 14787 { echo "$as_me:$LINENO: result: no" >&5 14788echo "${ECHO_T}no" >&6; } 14789fi 14790 14791{ echo "$as_me:$LINENO: checking for SGI old-style pty allocation" >&5 14792echo $ECHO_N "checking for SGI old-style pty allocation... $ECHO_C" >&6; } 14793if test -r /dev/ptc -a ! -r /dev/pts ; then 14794 { echo "$as_me:$LINENO: result: yes" >&5 14795echo "${ECHO_T}yes" >&6; } 14796 cat >>confdefs.h <<\_ACEOF 14797#define HAVE_PTC 1 14798_ACEOF 14799 14800else 14801 { echo "$as_me:$LINENO: result: no" >&5 14802echo "${ECHO_T}no" >&6; } 14803fi 14804 14805# On SCO OpenServer, two types of ptys are available: SVR4 streams and c-list. 14806# The library routines to open the SVR4 ptys are broken on certain systems and 14807# the SCO command to increase the number of ptys only configure c-list ones 14808# anyway. So we chose these, which have a special numbering scheme. 14809# 14810{ echo "$as_me:$LINENO: checking for SCO style pty allocation" >&5 14811echo $ECHO_N "checking for SCO style pty allocation... $ECHO_C" >&6; } 14812sco_ptys="" 14813case "${host}" in 14814 *-sco3.2v[45]*) sco_clist_ptys=1 svr4_ptys_broken=1;; 14815esac 14816 14817if test x"${sco_clist_ptys}" != x"" ; then 14818 { echo "$as_me:$LINENO: result: yes" >&5 14819echo "${ECHO_T}yes" >&6; } 14820 cat >>confdefs.h <<\_ACEOF 14821#define HAVE_SCO_CLIST_PTYS 1 14822_ACEOF 14823 14824else 14825 { echo "$as_me:$LINENO: result: no" >&5 14826echo "${ECHO_T}no" >&6; } 14827fi 14828 14829{ echo "$as_me:$LINENO: checking for SVR4 style pty allocation" >&5 14830echo $ECHO_N "checking for SVR4 style pty allocation... $ECHO_C" >&6; } 14831if test -r /dev/ptmx -a "x$svr4_ptys_broken" = x ; then 14832 { echo "$as_me:$LINENO: result: yes" >&5 14833echo "${ECHO_T}yes" >&6; } 14834 cat >>confdefs.h <<\_ACEOF 14835#define HAVE_PTMX 1 14836_ACEOF 14837 14838 # aargg. Some systems need libpt.a to use /dev/ptmx 14839 { echo "$as_me:$LINENO: checking for libpts=\"-lpt\" in -lpt" >&5 14840echo $ECHO_N "checking for libpts=\"-lpt\" in -lpt... $ECHO_C" >&6; } 14841if test "${ac_cv_lib_pt_libpts___lpt_+set}" = set; then 14842 echo $ECHO_N "(cached) $ECHO_C" >&6 14843else 14844 ac_check_lib_save_LIBS=$LIBS 14845LIBS="-lpt $LIBS" 14846cat >conftest.$ac_ext <<_ACEOF 14847/* confdefs.h. */ 14848_ACEOF 14849cat confdefs.h >>conftest.$ac_ext 14850cat >>conftest.$ac_ext <<_ACEOF 14851/* end confdefs.h. */ 14852 14853/* Override any GCC internal prototype to avoid an error. 14854 Use char because int might match the return type of a GCC 14855 builtin and then its argument prototype would still apply. */ 14856#ifdef __cplusplus 14857extern "C" 14858#endif 14859char libpts="-lpt" (); 14860int 14861main () 14862{ 14863return libpts="-lpt" (); 14864 ; 14865 return 0; 14866} 14867_ACEOF 14868rm -f conftest.$ac_objext conftest$ac_exeext 14869if { (ac_try="$ac_link" 14870case "(($ac_try" in 14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14872 *) ac_try_echo=$ac_try;; 14873esac 14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14875 (eval "$ac_link") 2>conftest.er1 14876 ac_status=$? 14877 grep -v '^ *+' conftest.er1 >conftest.err 14878 rm -f conftest.er1 14879 cat conftest.err >&5 14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14881 (exit $ac_status); } && { 14882 test -z "$ac_c_werror_flag" || 14883 test ! -s conftest.err 14884 } && test -s conftest$ac_exeext && 14885 $as_test_x conftest$ac_exeext; then 14886 ac_cv_lib_pt_libpts___lpt_=yes 14887else 14888 echo "$as_me: failed program was:" >&5 14889sed 's/^/| /' conftest.$ac_ext >&5 14890 14891 ac_cv_lib_pt_libpts___lpt_=no 14892fi 14893 14894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14895 conftest$ac_exeext conftest.$ac_ext 14896LIBS=$ac_check_lib_save_LIBS 14897fi 14898{ echo "$as_me:$LINENO: result: $ac_cv_lib_pt_libpts___lpt_" >&5 14899echo "${ECHO_T}$ac_cv_lib_pt_libpts___lpt_" >&6; } 14900if test $ac_cv_lib_pt_libpts___lpt_ = yes; then 14901 libpts="" 14902fi 14903 14904 { echo "$as_me:$LINENO: checking for ptsname" >&5 14905echo $ECHO_N "checking for ptsname... $ECHO_C" >&6; } 14906if test "${ac_cv_func_ptsname+set}" = set; then 14907 echo $ECHO_N "(cached) $ECHO_C" >&6 14908else 14909 cat >conftest.$ac_ext <<_ACEOF 14910/* confdefs.h. */ 14911_ACEOF 14912cat confdefs.h >>conftest.$ac_ext 14913cat >>conftest.$ac_ext <<_ACEOF 14914/* end confdefs.h. */ 14915/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname. 14916 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14917#define ptsname innocuous_ptsname 14918 14919/* System header to define __stub macros and hopefully few prototypes, 14920 which can conflict with char ptsname (); below. 14921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14922 <limits.h> exists even on freestanding compilers. */ 14923 14924#ifdef __STDC__ 14925# include <limits.h> 14926#else 14927# include <assert.h> 14928#endif 14929 14930#undef ptsname 14931 14932/* Override any GCC internal prototype to avoid an error. 14933 Use char because int might match the return type of a GCC 14934 builtin and then its argument prototype would still apply. */ 14935#ifdef __cplusplus 14936extern "C" 14937#endif 14938char ptsname (); 14939/* The GNU C library defines this for functions which it implements 14940 to always fail with ENOSYS. Some functions are actually named 14941 something starting with __ and the normal name is an alias. */ 14942#if defined __stub_ptsname || defined __stub___ptsname 14943choke me 14944#endif 14945 14946int 14947main () 14948{ 14949return ptsname (); 14950 ; 14951 return 0; 14952} 14953_ACEOF 14954rm -f conftest.$ac_objext conftest$ac_exeext 14955if { (ac_try="$ac_link" 14956case "(($ac_try" in 14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14958 *) ac_try_echo=$ac_try;; 14959esac 14960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14961 (eval "$ac_link") 2>conftest.er1 14962 ac_status=$? 14963 grep -v '^ *+' conftest.er1 >conftest.err 14964 rm -f conftest.er1 14965 cat conftest.err >&5 14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14967 (exit $ac_status); } && { 14968 test -z "$ac_c_werror_flag" || 14969 test ! -s conftest.err 14970 } && test -s conftest$ac_exeext && 14971 $as_test_x conftest$ac_exeext; then 14972 ac_cv_func_ptsname=yes 14973else 14974 echo "$as_me: failed program was:" >&5 14975sed 's/^/| /' conftest.$ac_ext >&5 14976 14977 ac_cv_func_ptsname=no 14978fi 14979 14980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14981 conftest$ac_exeext conftest.$ac_ext 14982fi 14983{ echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5 14984echo "${ECHO_T}$ac_cv_func_ptsname" >&6; } 14985if test $ac_cv_func_ptsname = yes; then 14986 : 14987else 14988 LIBS="${LIBS} $libpts" 14989fi 14990 14991else 14992 { echo "$as_me:$LINENO: result: no" >&5 14993echo "${ECHO_T}no" >&6; } 14994fi 14995 14996# In OSF/1 case, SVR4 are somewhat different. 14997# Gregory Depp <depp@osf.org> 17Aug93 14998{ echo "$as_me:$LINENO: checking for OSF/1 style pty allocation" >&5 14999echo $ECHO_N "checking for OSF/1 style pty allocation... $ECHO_C" >&6; } 15000if test -r /dev/ptmx_bsd ; then 15001 cat >>confdefs.h <<\_ACEOF 15002#define HAVE_PTMX_BSD 1 15003_ACEOF 15004 15005 { echo "$as_me:$LINENO: result: yes" >&5 15006echo "${ECHO_T}yes" >&6; } 15007else 15008 { echo "$as_me:$LINENO: result: no" >&5 15009echo "${ECHO_T}no" >&6; } 15010fi 15011 15012tcgetattr=0 15013tcsetattr=0 15014{ echo "$as_me:$LINENO: checking for tcgetattr" >&5 15015echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6; } 15016if test "${ac_cv_func_tcgetattr+set}" = set; then 15017 echo $ECHO_N "(cached) $ECHO_C" >&6 15018else 15019 cat >conftest.$ac_ext <<_ACEOF 15020/* confdefs.h. */ 15021_ACEOF 15022cat confdefs.h >>conftest.$ac_ext 15023cat >>conftest.$ac_ext <<_ACEOF 15024/* end confdefs.h. */ 15025/* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr. 15026 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15027#define tcgetattr innocuous_tcgetattr 15028 15029/* System header to define __stub macros and hopefully few prototypes, 15030 which can conflict with char tcgetattr (); below. 15031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15032 <limits.h> exists even on freestanding compilers. */ 15033 15034#ifdef __STDC__ 15035# include <limits.h> 15036#else 15037# include <assert.h> 15038#endif 15039 15040#undef tcgetattr 15041 15042/* Override any GCC internal prototype to avoid an error. 15043 Use char because int might match the return type of a GCC 15044 builtin and then its argument prototype would still apply. */ 15045#ifdef __cplusplus 15046extern "C" 15047#endif 15048char tcgetattr (); 15049/* The GNU C library defines this for functions which it implements 15050 to always fail with ENOSYS. Some functions are actually named 15051 something starting with __ and the normal name is an alias. */ 15052#if defined __stub_tcgetattr || defined __stub___tcgetattr 15053choke me 15054#endif 15055 15056int 15057main () 15058{ 15059return tcgetattr (); 15060 ; 15061 return 0; 15062} 15063_ACEOF 15064rm -f conftest.$ac_objext conftest$ac_exeext 15065if { (ac_try="$ac_link" 15066case "(($ac_try" in 15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15068 *) ac_try_echo=$ac_try;; 15069esac 15070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15071 (eval "$ac_link") 2>conftest.er1 15072 ac_status=$? 15073 grep -v '^ *+' conftest.er1 >conftest.err 15074 rm -f conftest.er1 15075 cat conftest.err >&5 15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15077 (exit $ac_status); } && { 15078 test -z "$ac_c_werror_flag" || 15079 test ! -s conftest.err 15080 } && test -s conftest$ac_exeext && 15081 $as_test_x conftest$ac_exeext; then 15082 ac_cv_func_tcgetattr=yes 15083else 15084 echo "$as_me: failed program was:" >&5 15085sed 's/^/| /' conftest.$ac_ext >&5 15086 15087 ac_cv_func_tcgetattr=no 15088fi 15089 15090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15091 conftest$ac_exeext conftest.$ac_ext 15092fi 15093{ echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5 15094echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6; } 15095if test $ac_cv_func_tcgetattr = yes; then 15096 tcgetattr=1 15097fi 15098 15099{ echo "$as_me:$LINENO: checking for tcsetattr" >&5 15100echo $ECHO_N "checking for tcsetattr... $ECHO_C" >&6; } 15101if test "${ac_cv_func_tcsetattr+set}" = set; then 15102 echo $ECHO_N "(cached) $ECHO_C" >&6 15103else 15104 cat >conftest.$ac_ext <<_ACEOF 15105/* confdefs.h. */ 15106_ACEOF 15107cat confdefs.h >>conftest.$ac_ext 15108cat >>conftest.$ac_ext <<_ACEOF 15109/* end confdefs.h. */ 15110/* Define tcsetattr to an innocuous variant, in case <limits.h> declares tcsetattr. 15111 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15112#define tcsetattr innocuous_tcsetattr 15113 15114/* System header to define __stub macros and hopefully few prototypes, 15115 which can conflict with char tcsetattr (); below. 15116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15117 <limits.h> exists even on freestanding compilers. */ 15118 15119#ifdef __STDC__ 15120# include <limits.h> 15121#else 15122# include <assert.h> 15123#endif 15124 15125#undef tcsetattr 15126 15127/* Override any GCC internal prototype to avoid an error. 15128 Use char because int might match the return type of a GCC 15129 builtin and then its argument prototype would still apply. */ 15130#ifdef __cplusplus 15131extern "C" 15132#endif 15133char tcsetattr (); 15134/* The GNU C library defines this for functions which it implements 15135 to always fail with ENOSYS. Some functions are actually named 15136 something starting with __ and the normal name is an alias. */ 15137#if defined __stub_tcsetattr || defined __stub___tcsetattr 15138choke me 15139#endif 15140 15141int 15142main () 15143{ 15144return tcsetattr (); 15145 ; 15146 return 0; 15147} 15148_ACEOF 15149rm -f conftest.$ac_objext conftest$ac_exeext 15150if { (ac_try="$ac_link" 15151case "(($ac_try" in 15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15153 *) ac_try_echo=$ac_try;; 15154esac 15155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15156 (eval "$ac_link") 2>conftest.er1 15157 ac_status=$? 15158 grep -v '^ *+' conftest.er1 >conftest.err 15159 rm -f conftest.er1 15160 cat conftest.err >&5 15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15162 (exit $ac_status); } && { 15163 test -z "$ac_c_werror_flag" || 15164 test ! -s conftest.err 15165 } && test -s conftest$ac_exeext && 15166 $as_test_x conftest$ac_exeext; then 15167 ac_cv_func_tcsetattr=yes 15168else 15169 echo "$as_me: failed program was:" >&5 15170sed 's/^/| /' conftest.$ac_ext >&5 15171 15172 ac_cv_func_tcsetattr=no 15173fi 15174 15175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15176 conftest$ac_exeext conftest.$ac_ext 15177fi 15178{ echo "$as_me:$LINENO: result: $ac_cv_func_tcsetattr" >&5 15179echo "${ECHO_T}$ac_cv_func_tcsetattr" >&6; } 15180if test $ac_cv_func_tcsetattr = yes; then 15181 tcsetattr=1 15182fi 15183 15184if test $tcgetattr -eq 1 -a $tcsetattr -eq 1 ; then 15185 cat >>confdefs.h <<\_ACEOF 15186#define HAVE_TCSETATTR 1 15187_ACEOF 15188 15189 cat >>confdefs.h <<\_ACEOF 15190#define POSIX 1 15191_ACEOF 15192 15193fi 15194 15195# first check for the pure bsd 15196{ echo "$as_me:$LINENO: checking for struct sgttyb" >&5 15197echo $ECHO_N "checking for struct sgttyb... $ECHO_C" >&6; } 15198if test "$cross_compiling" = yes; then 15199 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 15200echo "$as_me: error: Expect can't be cross compiled" >&2;} 15201 { (exit 1); exit 1; }; } 15202 15203else 15204 cat >conftest.$ac_ext <<_ACEOF 15205/* confdefs.h. */ 15206_ACEOF 15207cat confdefs.h >>conftest.$ac_ext 15208cat >>conftest.$ac_ext <<_ACEOF 15209/* end confdefs.h. */ 15210 15211#include <sgtty.h> 15212main() 15213{ 15214 struct sgttyb tmp; 15215 exit(0); 15216} 15217_ACEOF 15218rm -f conftest$ac_exeext 15219if { (ac_try="$ac_link" 15220case "(($ac_try" in 15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15222 *) ac_try_echo=$ac_try;; 15223esac 15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15225 (eval "$ac_link") 2>&5 15226 ac_status=$? 15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15229 { (case "(($ac_try" in 15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15231 *) ac_try_echo=$ac_try;; 15232esac 15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15234 (eval "$ac_try") 2>&5 15235 ac_status=$? 15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15237 (exit $ac_status); }; }; then 15238 { echo "$as_me:$LINENO: result: yes" >&5 15239echo "${ECHO_T}yes" >&6; } 15240 cat >>confdefs.h <<\_ACEOF 15241#define HAVE_SGTTYB 1 15242_ACEOF 15243 15244 PTY_TYPE=sgttyb 15245 15246else 15247 echo "$as_me: program exited with status $ac_status" >&5 15248echo "$as_me: failed program was:" >&5 15249sed 's/^/| /' conftest.$ac_ext >&5 15250 15251( exit $ac_status ) 15252{ echo "$as_me:$LINENO: result: no" >&5 15253echo "${ECHO_T}no" >&6; } 15254 15255fi 15256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15257fi 15258 15259 15260 15261# mach systems have include files for unimplemented features 15262# so avoid doing following test on those systems 15263if test $mach -eq 0 ; then 15264 15265 # next check for the older style ttys 15266 # note that if we detect termio.h (only), we still set PTY_TYPE=termios 15267 # since that just controls which of pty_XXXX.c file is use and 15268 # pty_termios.c is set up to handle pty_termio. 15269 { echo "$as_me:$LINENO: checking for struct termio" >&5 15270echo $ECHO_N "checking for struct termio... $ECHO_C" >&6; } 15271 if test "$cross_compiling" = yes; then 15272 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 15273echo "$as_me: error: Expect can't be cross compiled" >&2;} 15274 { (exit 1); exit 1; }; } 15275 15276else 15277 cat >conftest.$ac_ext <<_ACEOF 15278/* confdefs.h. */ 15279_ACEOF 15280cat confdefs.h >>conftest.$ac_ext 15281cat >>conftest.$ac_ext <<_ACEOF 15282/* end confdefs.h. */ 15283#include <termio.h> 15284 main() 15285 { 15286 struct termio tmp; 15287 exit(0); 15288 } 15289_ACEOF 15290rm -f conftest$ac_exeext 15291if { (ac_try="$ac_link" 15292case "(($ac_try" in 15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15294 *) ac_try_echo=$ac_try;; 15295esac 15296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15297 (eval "$ac_link") 2>&5 15298 ac_status=$? 15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15301 { (case "(($ac_try" in 15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15303 *) ac_try_echo=$ac_try;; 15304esac 15305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15306 (eval "$ac_try") 2>&5 15307 ac_status=$? 15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15309 (exit $ac_status); }; }; then 15310 cat >>confdefs.h <<\_ACEOF 15311#define HAVE_TERMIO 1 15312_ACEOF 15313 15314 PTY_TYPE=termios 15315 { echo "$as_me:$LINENO: result: yes" >&5 15316echo "${ECHO_T}yes" >&6; } 15317 15318else 15319 echo "$as_me: program exited with status $ac_status" >&5 15320echo "$as_me: failed program was:" >&5 15321sed 's/^/| /' conftest.$ac_ext >&5 15322 15323( exit $ac_status ) 15324{ echo "$as_me:$LINENO: result: no" >&5 15325echo "${ECHO_T}no" >&6; } 15326 15327fi 15328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15329fi 15330 15331 15332 15333 # now check for the new style ttys (not yet posix) 15334 { echo "$as_me:$LINENO: checking for struct termios" >&5 15335echo $ECHO_N "checking for struct termios... $ECHO_C" >&6; } 15336 if test "$cross_compiling" = yes; then 15337 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 15338echo "$as_me: error: Expect can't be cross compiled" >&2;} 15339 { (exit 1); exit 1; }; } 15340 15341else 15342 cat >conftest.$ac_ext <<_ACEOF 15343/* confdefs.h. */ 15344_ACEOF 15345cat confdefs.h >>conftest.$ac_ext 15346cat >>conftest.$ac_ext <<_ACEOF 15347/* end confdefs.h. */ 15348 15349 /* including termios.h on Solaris 5.6 fails unless inttypes.h included */ 15350# ifdef HAVE_INTTYPES_H 15351# include <inttypes.h> 15352# endif 15353# include <termios.h> 15354 main() 15355 { 15356 struct termios tmp; 15357 exit(0); 15358 } 15359_ACEOF 15360rm -f conftest$ac_exeext 15361if { (ac_try="$ac_link" 15362case "(($ac_try" in 15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15364 *) ac_try_echo=$ac_try;; 15365esac 15366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15367 (eval "$ac_link") 2>&5 15368 ac_status=$? 15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15371 { (case "(($ac_try" in 15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15373 *) ac_try_echo=$ac_try;; 15374esac 15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15376 (eval "$ac_try") 2>&5 15377 ac_status=$? 15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15379 (exit $ac_status); }; }; then 15380 cat >>confdefs.h <<\_ACEOF 15381#define HAVE_TERMIOS 1 15382_ACEOF 15383 15384 PTY_TYPE=termios 15385 { echo "$as_me:$LINENO: result: yes" >&5 15386echo "${ECHO_T}yes" >&6; } 15387 15388else 15389 echo "$as_me: program exited with status $ac_status" >&5 15390echo "$as_me: failed program was:" >&5 15391sed 's/^/| /' conftest.$ac_ext >&5 15392 15393( exit $ac_status ) 15394{ echo "$as_me:$LINENO: result: no" >&5 15395echo "${ECHO_T}no" >&6; } 15396 15397fi 15398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15399fi 15400 15401 15402fi 15403 15404{ echo "$as_me:$LINENO: checking if TCGETS or TCGETA in termios.h" >&5 15405echo $ECHO_N "checking if TCGETS or TCGETA in termios.h... $ECHO_C" >&6; } 15406if test "$cross_compiling" = yes; then 15407 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 15408echo "$as_me: error: Expect can't be cross compiled" >&2;} 15409 { (exit 1); exit 1; }; } 15410 15411else 15412 cat >conftest.$ac_ext <<_ACEOF 15413/* confdefs.h. */ 15414_ACEOF 15415cat confdefs.h >>conftest.$ac_ext 15416cat >>conftest.$ac_ext <<_ACEOF 15417/* end confdefs.h. */ 15418 15419/* including termios.h on Solaris 5.6 fails unless inttypes.h included */ 15420#ifdef HAVE_INTTYPES_H 15421#include <inttypes.h> 15422#endif 15423#include <termios.h> 15424main() { 15425#if defined(TCGETS) || defined(TCGETA) 15426 return 0; 15427#else 15428 return 1; 15429#endif 15430} 15431_ACEOF 15432rm -f conftest$ac_exeext 15433if { (ac_try="$ac_link" 15434case "(($ac_try" in 15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15436 *) ac_try_echo=$ac_try;; 15437esac 15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15439 (eval "$ac_link") 2>&5 15440 ac_status=$? 15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15443 { (case "(($ac_try" in 15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15445 *) ac_try_echo=$ac_try;; 15446esac 15447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15448 (eval "$ac_try") 2>&5 15449 ac_status=$? 15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15451 (exit $ac_status); }; }; then 15452 cat >>confdefs.h <<\_ACEOF 15453#define HAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H 1 15454_ACEOF 15455 15456 { echo "$as_me:$LINENO: result: yes" >&5 15457echo "${ECHO_T}yes" >&6; } 15458 15459else 15460 echo "$as_me: program exited with status $ac_status" >&5 15461echo "$as_me: failed program was:" >&5 15462sed 's/^/| /' conftest.$ac_ext >&5 15463 15464( exit $ac_status ) 15465{ echo "$as_me:$LINENO: result: no" >&5 15466echo "${ECHO_T}no" >&6; } 15467 15468fi 15469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15470fi 15471 15472 15473 15474{ echo "$as_me:$LINENO: checking if TIOCGWINSZ in termios.h" >&5 15475echo $ECHO_N "checking if TIOCGWINSZ in termios.h... $ECHO_C" >&6; } 15476if test "$cross_compiling" = yes; then 15477 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 15478echo "$as_me: error: Expect can't be cross compiled" >&2;} 15479 { (exit 1); exit 1; }; } 15480 15481else 15482 cat >conftest.$ac_ext <<_ACEOF 15483/* confdefs.h. */ 15484_ACEOF 15485cat confdefs.h >>conftest.$ac_ext 15486cat >>conftest.$ac_ext <<_ACEOF 15487/* end confdefs.h. */ 15488 15489/* including termios.h on Solaris 5.6 fails unless inttypes.h included */ 15490#ifdef HAVE_INTTYPES_H 15491#include <inttypes.h> 15492#endif 15493#include <termios.h> 15494main() { 15495#ifdef TIOCGWINSZ 15496 return 0; 15497#else 15498 return 1; 15499#endif 15500} 15501_ACEOF 15502rm -f conftest$ac_exeext 15503if { (ac_try="$ac_link" 15504case "(($ac_try" in 15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15506 *) ac_try_echo=$ac_try;; 15507esac 15508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15509 (eval "$ac_link") 2>&5 15510 ac_status=$? 15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15513 { (case "(($ac_try" in 15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15515 *) ac_try_echo=$ac_try;; 15516esac 15517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15518 (eval "$ac_try") 2>&5 15519 ac_status=$? 15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15521 (exit $ac_status); }; }; then 15522 cat >>confdefs.h <<\_ACEOF 15523#define HAVE_TIOCGWINSZ_IN_TERMIOS_H 1 15524_ACEOF 15525 15526 { echo "$as_me:$LINENO: result: yes" >&5 15527echo "${ECHO_T}yes" >&6; } 15528 15529else 15530 echo "$as_me: program exited with status $ac_status" >&5 15531echo "$as_me: failed program was:" >&5 15532sed 's/^/| /' conftest.$ac_ext >&5 15533 15534( exit $ac_status ) 15535{ echo "$as_me:$LINENO: result: no" >&5 15536echo "${ECHO_T}no" >&6; } 15537 15538fi 15539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15540fi 15541 15542 15543 15544# finally check for Cray style ttys 15545{ echo "$as_me:$LINENO: checking for Cray-style ptys" >&5 15546echo $ECHO_N "checking for Cray-style ptys... $ECHO_C" >&6; } 15547SETUID=":" 15548if test "$cross_compiling" = yes; then 15549 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 15550echo "$as_me: error: Expect can't be cross compiled" >&2;} 15551 { (exit 1); exit 1; }; } 15552 15553else 15554 cat >conftest.$ac_ext <<_ACEOF 15555/* confdefs.h. */ 15556_ACEOF 15557cat confdefs.h >>conftest.$ac_ext 15558cat >>conftest.$ac_ext <<_ACEOF 15559/* end confdefs.h. */ 15560 15561main(){ 15562#ifdef CRAY 15563 return 0; 15564#else 15565 return 1; 15566#endif 15567} 15568 15569_ACEOF 15570rm -f conftest$ac_exeext 15571if { (ac_try="$ac_link" 15572case "(($ac_try" in 15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15574 *) ac_try_echo=$ac_try;; 15575esac 15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15577 (eval "$ac_link") 2>&5 15578 ac_status=$? 15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15581 { (case "(($ac_try" in 15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15583 *) ac_try_echo=$ac_try;; 15584esac 15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15586 (eval "$ac_try") 2>&5 15587 ac_status=$? 15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15589 (exit $ac_status); }; }; then 15590 PTY_TYPE=unicos 15591 SETUID="chmod u+s" 15592 { echo "$as_me:$LINENO: result: yes" >&5 15593echo "${ECHO_T}yes" >&6; } 15594 15595else 15596 echo "$as_me: program exited with status $ac_status" >&5 15597echo "$as_me: failed program was:" >&5 15598sed 's/^/| /' conftest.$ac_ext >&5 15599 15600( exit $ac_status ) 15601{ echo "$as_me:$LINENO: result: no" >&5 15602echo "${ECHO_T}no" >&6; } 15603 15604fi 15605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15606fi 15607 15608 15609 15610# 15611# Check for select and/or poll. If both exist, we prefer select. 15612# if neither exists, define SIMPLE_EVENT. 15613# 15614select=0 15615poll=0 15616unset ac_cv_func_select 15617{ echo "$as_me:$LINENO: checking for select" >&5 15618echo $ECHO_N "checking for select... $ECHO_C" >&6; } 15619if test "${ac_cv_func_select+set}" = set; then 15620 echo $ECHO_N "(cached) $ECHO_C" >&6 15621else 15622 cat >conftest.$ac_ext <<_ACEOF 15623/* confdefs.h. */ 15624_ACEOF 15625cat confdefs.h >>conftest.$ac_ext 15626cat >>conftest.$ac_ext <<_ACEOF 15627/* end confdefs.h. */ 15628/* Define select to an innocuous variant, in case <limits.h> declares select. 15629 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15630#define select innocuous_select 15631 15632/* System header to define __stub macros and hopefully few prototypes, 15633 which can conflict with char select (); below. 15634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15635 <limits.h> exists even on freestanding compilers. */ 15636 15637#ifdef __STDC__ 15638# include <limits.h> 15639#else 15640# include <assert.h> 15641#endif 15642 15643#undef select 15644 15645/* Override any GCC internal prototype to avoid an error. 15646 Use char because int might match the return type of a GCC 15647 builtin and then its argument prototype would still apply. */ 15648#ifdef __cplusplus 15649extern "C" 15650#endif 15651char select (); 15652/* The GNU C library defines this for functions which it implements 15653 to always fail with ENOSYS. Some functions are actually named 15654 something starting with __ and the normal name is an alias. */ 15655#if defined __stub_select || defined __stub___select 15656choke me 15657#endif 15658 15659int 15660main () 15661{ 15662return select (); 15663 ; 15664 return 0; 15665} 15666_ACEOF 15667rm -f conftest.$ac_objext conftest$ac_exeext 15668if { (ac_try="$ac_link" 15669case "(($ac_try" in 15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15671 *) ac_try_echo=$ac_try;; 15672esac 15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15674 (eval "$ac_link") 2>conftest.er1 15675 ac_status=$? 15676 grep -v '^ *+' conftest.er1 >conftest.err 15677 rm -f conftest.er1 15678 cat conftest.err >&5 15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15680 (exit $ac_status); } && { 15681 test -z "$ac_c_werror_flag" || 15682 test ! -s conftest.err 15683 } && test -s conftest$ac_exeext && 15684 $as_test_x conftest$ac_exeext; then 15685 ac_cv_func_select=yes 15686else 15687 echo "$as_me: failed program was:" >&5 15688sed 's/^/| /' conftest.$ac_ext >&5 15689 15690 ac_cv_func_select=no 15691fi 15692 15693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15694 conftest$ac_exeext conftest.$ac_ext 15695fi 15696{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 15697echo "${ECHO_T}$ac_cv_func_select" >&6; } 15698if test $ac_cv_func_select = yes; then 15699 select=1 15700fi 15701 15702{ echo "$as_me:$LINENO: checking for poll" >&5 15703echo $ECHO_N "checking for poll... $ECHO_C" >&6; } 15704if test "${ac_cv_func_poll+set}" = set; then 15705 echo $ECHO_N "(cached) $ECHO_C" >&6 15706else 15707 cat >conftest.$ac_ext <<_ACEOF 15708/* confdefs.h. */ 15709_ACEOF 15710cat confdefs.h >>conftest.$ac_ext 15711cat >>conftest.$ac_ext <<_ACEOF 15712/* end confdefs.h. */ 15713/* Define poll to an innocuous variant, in case <limits.h> declares poll. 15714 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15715#define poll innocuous_poll 15716 15717/* System header to define __stub macros and hopefully few prototypes, 15718 which can conflict with char poll (); below. 15719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15720 <limits.h> exists even on freestanding compilers. */ 15721 15722#ifdef __STDC__ 15723# include <limits.h> 15724#else 15725# include <assert.h> 15726#endif 15727 15728#undef poll 15729 15730/* Override any GCC internal prototype to avoid an error. 15731 Use char because int might match the return type of a GCC 15732 builtin and then its argument prototype would still apply. */ 15733#ifdef __cplusplus 15734extern "C" 15735#endif 15736char poll (); 15737/* The GNU C library defines this for functions which it implements 15738 to always fail with ENOSYS. Some functions are actually named 15739 something starting with __ and the normal name is an alias. */ 15740#if defined __stub_poll || defined __stub___poll 15741choke me 15742#endif 15743 15744int 15745main () 15746{ 15747return poll (); 15748 ; 15749 return 0; 15750} 15751_ACEOF 15752rm -f conftest.$ac_objext conftest$ac_exeext 15753if { (ac_try="$ac_link" 15754case "(($ac_try" in 15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15756 *) ac_try_echo=$ac_try;; 15757esac 15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15759 (eval "$ac_link") 2>conftest.er1 15760 ac_status=$? 15761 grep -v '^ *+' conftest.er1 >conftest.err 15762 rm -f conftest.er1 15763 cat conftest.err >&5 15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15765 (exit $ac_status); } && { 15766 test -z "$ac_c_werror_flag" || 15767 test ! -s conftest.err 15768 } && test -s conftest$ac_exeext && 15769 $as_test_x conftest$ac_exeext; then 15770 ac_cv_func_poll=yes 15771else 15772 echo "$as_me: failed program was:" >&5 15773sed 's/^/| /' conftest.$ac_ext >&5 15774 15775 ac_cv_func_poll=no 15776fi 15777 15778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15779 conftest$ac_exeext conftest.$ac_ext 15780fi 15781{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 15782echo "${ECHO_T}$ac_cv_func_poll" >&6; } 15783if test $ac_cv_func_poll = yes; then 15784 poll=1 15785fi 15786 15787{ echo "$as_me:$LINENO: checking event handling" >&5 15788echo $ECHO_N "checking event handling... $ECHO_C" >&6; } 15789if test $select -eq 1 ; then 15790 EVENT_TYPE=select 15791 EVENT_ABLE=event 15792 { echo "$as_me:$LINENO: result: via select" >&5 15793echo "${ECHO_T}via select" >&6; } 15794elif test $poll -eq 1 ; then 15795 EVENT_TYPE=poll 15796 EVENT_ABLE=event 15797 { echo "$as_me:$LINENO: result: via poll" >&5 15798echo "${ECHO_T}via poll" >&6; } 15799else 15800 EVENT_TYPE=simple 15801 EVENT_ABLE=noevent 15802 { echo "$as_me:$LINENO: result: none" >&5 15803echo "${ECHO_T}none" >&6; } 15804 cat >>confdefs.h <<\_ACEOF 15805#define SIMPLE_EVENT 1 15806_ACEOF 15807 15808fi 15809 15810 15811for ac_func in _getpty 15812do 15813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15814{ echo "$as_me:$LINENO: checking for $ac_func" >&5 15815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 15816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15817 echo $ECHO_N "(cached) $ECHO_C" >&6 15818else 15819 cat >conftest.$ac_ext <<_ACEOF 15820/* confdefs.h. */ 15821_ACEOF 15822cat confdefs.h >>conftest.$ac_ext 15823cat >>conftest.$ac_ext <<_ACEOF 15824/* end confdefs.h. */ 15825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15827#define $ac_func innocuous_$ac_func 15828 15829/* System header to define __stub macros and hopefully few prototypes, 15830 which can conflict with char $ac_func (); below. 15831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15832 <limits.h> exists even on freestanding compilers. */ 15833 15834#ifdef __STDC__ 15835# include <limits.h> 15836#else 15837# include <assert.h> 15838#endif 15839 15840#undef $ac_func 15841 15842/* Override any GCC internal prototype to avoid an error. 15843 Use char because int might match the return type of a GCC 15844 builtin and then its argument prototype would still apply. */ 15845#ifdef __cplusplus 15846extern "C" 15847#endif 15848char $ac_func (); 15849/* The GNU C library defines this for functions which it implements 15850 to always fail with ENOSYS. Some functions are actually named 15851 something starting with __ and the normal name is an alias. */ 15852#if defined __stub_$ac_func || defined __stub___$ac_func 15853choke me 15854#endif 15855 15856int 15857main () 15858{ 15859return $ac_func (); 15860 ; 15861 return 0; 15862} 15863_ACEOF 15864rm -f conftest.$ac_objext conftest$ac_exeext 15865if { (ac_try="$ac_link" 15866case "(($ac_try" in 15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15868 *) ac_try_echo=$ac_try;; 15869esac 15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15871 (eval "$ac_link") 2>conftest.er1 15872 ac_status=$? 15873 grep -v '^ *+' conftest.er1 >conftest.err 15874 rm -f conftest.er1 15875 cat conftest.err >&5 15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15877 (exit $ac_status); } && { 15878 test -z "$ac_c_werror_flag" || 15879 test ! -s conftest.err 15880 } && test -s conftest$ac_exeext && 15881 $as_test_x conftest$ac_exeext; then 15882 eval "$as_ac_var=yes" 15883else 15884 echo "$as_me: failed program was:" >&5 15885sed 's/^/| /' conftest.$ac_ext >&5 15886 15887 eval "$as_ac_var=no" 15888fi 15889 15890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15891 conftest$ac_exeext conftest.$ac_ext 15892fi 15893ac_res=`eval echo '${'$as_ac_var'}'` 15894 { echo "$as_me:$LINENO: result: $ac_res" >&5 15895echo "${ECHO_T}$ac_res" >&6; } 15896if test `eval echo '${'$as_ac_var'}'` = yes; then 15897 cat >>confdefs.h <<_ACEOF 15898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15899_ACEOF 15900 15901fi 15902done 15903 15904 15905for ac_func in getpty 15906do 15907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15908{ echo "$as_me:$LINENO: checking for $ac_func" >&5 15909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 15910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15911 echo $ECHO_N "(cached) $ECHO_C" >&6 15912else 15913 cat >conftest.$ac_ext <<_ACEOF 15914/* confdefs.h. */ 15915_ACEOF 15916cat confdefs.h >>conftest.$ac_ext 15917cat >>conftest.$ac_ext <<_ACEOF 15918/* end confdefs.h. */ 15919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15920 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15921#define $ac_func innocuous_$ac_func 15922 15923/* System header to define __stub macros and hopefully few prototypes, 15924 which can conflict with char $ac_func (); below. 15925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15926 <limits.h> exists even on freestanding compilers. */ 15927 15928#ifdef __STDC__ 15929# include <limits.h> 15930#else 15931# include <assert.h> 15932#endif 15933 15934#undef $ac_func 15935 15936/* Override any GCC internal prototype to avoid an error. 15937 Use char because int might match the return type of a GCC 15938 builtin and then its argument prototype would still apply. */ 15939#ifdef __cplusplus 15940extern "C" 15941#endif 15942char $ac_func (); 15943/* The GNU C library defines this for functions which it implements 15944 to always fail with ENOSYS. Some functions are actually named 15945 something starting with __ and the normal name is an alias. */ 15946#if defined __stub_$ac_func || defined __stub___$ac_func 15947choke me 15948#endif 15949 15950int 15951main () 15952{ 15953return $ac_func (); 15954 ; 15955 return 0; 15956} 15957_ACEOF 15958rm -f conftest.$ac_objext conftest$ac_exeext 15959if { (ac_try="$ac_link" 15960case "(($ac_try" in 15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15962 *) ac_try_echo=$ac_try;; 15963esac 15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15965 (eval "$ac_link") 2>conftest.er1 15966 ac_status=$? 15967 grep -v '^ *+' conftest.er1 >conftest.err 15968 rm -f conftest.er1 15969 cat conftest.err >&5 15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15971 (exit $ac_status); } && { 15972 test -z "$ac_c_werror_flag" || 15973 test ! -s conftest.err 15974 } && test -s conftest$ac_exeext && 15975 $as_test_x conftest$ac_exeext; then 15976 eval "$as_ac_var=yes" 15977else 15978 echo "$as_me: failed program was:" >&5 15979sed 's/^/| /' conftest.$ac_ext >&5 15980 15981 eval "$as_ac_var=no" 15982fi 15983 15984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15985 conftest$ac_exeext conftest.$ac_ext 15986fi 15987ac_res=`eval echo '${'$as_ac_var'}'` 15988 { echo "$as_me:$LINENO: result: $ac_res" >&5 15989echo "${ECHO_T}$ac_res" >&6; } 15990if test `eval echo '${'$as_ac_var'}'` = yes; then 15991 cat >>confdefs.h <<_ACEOF 15992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15993_ACEOF 15994 15995fi 15996done 15997 15998 15999# following test sets SETPGRP_VOID if setpgrp takes 0 args, else takes 2 16000{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 16001echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } 16002if test "${ac_cv_func_setpgrp_void+set}" = set; then 16003 echo $ECHO_N "(cached) $ECHO_C" >&6 16004else 16005 if test "$cross_compiling" = yes; then 16006 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 16007echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} 16008 { (exit 1); exit 1; }; } 16009else 16010 cat >conftest.$ac_ext <<_ACEOF 16011/* confdefs.h. */ 16012_ACEOF 16013cat confdefs.h >>conftest.$ac_ext 16014cat >>conftest.$ac_ext <<_ACEOF 16015/* end confdefs.h. */ 16016$ac_includes_default 16017int 16018main () 16019{ 16020/* If this system has a BSD-style setpgrp which takes arguments, 16021 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 16022 exit successfully. */ 16023 return setpgrp (1,1) != -1; 16024 ; 16025 return 0; 16026} 16027_ACEOF 16028rm -f conftest$ac_exeext 16029if { (ac_try="$ac_link" 16030case "(($ac_try" in 16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16032 *) ac_try_echo=$ac_try;; 16033esac 16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16035 (eval "$ac_link") 2>&5 16036 ac_status=$? 16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16039 { (case "(($ac_try" in 16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16041 *) ac_try_echo=$ac_try;; 16042esac 16043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16044 (eval "$ac_try") 2>&5 16045 ac_status=$? 16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16047 (exit $ac_status); }; }; then 16048 ac_cv_func_setpgrp_void=no 16049else 16050 echo "$as_me: program exited with status $ac_status" >&5 16051echo "$as_me: failed program was:" >&5 16052sed 's/^/| /' conftest.$ac_ext >&5 16053 16054( exit $ac_status ) 16055ac_cv_func_setpgrp_void=yes 16056fi 16057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16058fi 16059 16060 16061fi 16062{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 16063echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } 16064if test $ac_cv_func_setpgrp_void = yes; then 16065 16066cat >>confdefs.h <<\_ACEOF 16067#define SETPGRP_VOID 1 16068_ACEOF 16069 16070fi 16071 16072 16073# 16074# check for timezones 16075# 16076{ echo "$as_me:$LINENO: checking for SV-style timezone" >&5 16077echo $ECHO_N "checking for SV-style timezone... $ECHO_C" >&6; } 16078if test "$cross_compiling" = yes; then 16079 { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5 16080echo "$as_me: error: Expect can't be cross compiled" >&2;} 16081 { (exit 1); exit 1; }; } 16082 16083else 16084 cat >conftest.$ac_ext <<_ACEOF 16085/* confdefs.h. */ 16086_ACEOF 16087cat confdefs.h >>conftest.$ac_ext 16088cat >>conftest.$ac_ext <<_ACEOF 16089/* end confdefs.h. */ 16090 16091extern char *tzname[2]; 16092extern int daylight; 16093main() 16094{ 16095 int *x = &daylight; 16096 char **y = tzname; 16097 16098 exit(0); 16099} 16100_ACEOF 16101rm -f conftest$ac_exeext 16102if { (ac_try="$ac_link" 16103case "(($ac_try" in 16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16105 *) ac_try_echo=$ac_try;; 16106esac 16107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16108 (eval "$ac_link") 2>&5 16109 ac_status=$? 16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16112 { (case "(($ac_try" in 16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16114 *) ac_try_echo=$ac_try;; 16115esac 16116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16117 (eval "$ac_try") 2>&5 16118 ac_status=$? 16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16120 (exit $ac_status); }; }; then 16121 cat >>confdefs.h <<\_ACEOF 16122#define HAVE_SV_TIMEZONE 1 16123_ACEOF 16124 16125 { echo "$as_me:$LINENO: result: yes" >&5 16126echo "${ECHO_T}yes" >&6; } 16127else 16128 echo "$as_me: program exited with status $ac_status" >&5 16129echo "$as_me: failed program was:" >&5 16130sed 's/^/| /' conftest.$ac_ext >&5 16131 16132( exit $ac_status ) 16133{ echo "$as_me:$LINENO: result: no" >&5 16134echo "${ECHO_T}no" >&6; } 16135 16136fi 16137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16138fi 16139 16140 16141 16142 16143# Following comment stolen from Tcl's configure.in: 16144# Note: in the following variable, it's important to use the absolute 16145# path name of the Tcl directory rather than "..": this is because 16146# AIX remembers this path and will attempt to use it at run-time to look 16147# up the Tcl library. 16148 16149PACKAGE_VERSION_NODOTS="`echo $PACKAGE_VERSION | sed -e 's/\.//g'`" 16150 16151if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 16152 EXP_LIB_VERSION=$PACKAGE_VERSION 16153else 16154 EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS 16155fi 16156if test $iunix -eq 1 ; then 16157 EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS 16158fi 16159 16160# also remove dots on systems that don't support filenames > 14 16161# (are there systems which support shared libs and restrict filename lengths!?) 16162{ echo "$as_me:$LINENO: checking for long file names" >&5 16163echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } 16164if test "${ac_cv_sys_long_file_names+set}" = set; then 16165 echo $ECHO_N "(cached) $ECHO_C" >&6 16166else 16167 ac_cv_sys_long_file_names=yes 16168# Test for long file names in all the places we know might matter: 16169# . the current directory, where building will happen 16170# $prefix/lib where we will be installing things 16171# $exec_prefix/lib likewise 16172# $TMPDIR if set, where it might want to write temporary files 16173# /tmp where it might want to write temporary files 16174# /var/tmp likewise 16175# /usr/tmp likewise 16176for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do 16177 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib 16178 # in the usual case where exec_prefix is '${prefix}'. 16179 case $ac_dir in #( 16180 . | /* | ?:[\\/]*) ;; #( 16181 *) continue;; 16182 esac 16183 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. 16184 ac_xdir=$ac_dir/cf$$ 16185 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 16186 ac_tf1=$ac_xdir/conftest9012345 16187 ac_tf2=$ac_xdir/conftest9012346 16188 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || 16189 ac_cv_sys_long_file_names=no 16190 rm -f -r "$ac_xdir" 2>/dev/null 16191 test $ac_cv_sys_long_file_names = no && break 16192done 16193fi 16194{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 16195echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } 16196if test $ac_cv_sys_long_file_names = yes; then 16197 16198cat >>confdefs.h <<\_ACEOF 16199#define HAVE_LONG_FILE_NAMES 1 16200_ACEOF 16201 16202fi 16203 16204if test $ac_cv_sys_long_file_names = no; then 16205 EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS 16206fi 16207 16208if test "$FRAMEWORK_BUILD" = "1" ; then 16209 EXP_BUILD_LIB_SPEC="-F`pwd` -framework Expect" 16210 EXP_LIB_SPEC="-framework Expect" 16211 EXP_LIB_FILE="Expect" 16212 cat >>confdefs.h <<\_ACEOF 16213#define EXP_FRAMEWORK 1 16214_ACEOF 16215 16216else 16217 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 16218 EXP_LIB_FLAG="-lexpect${EXP_LIB_VERSION}" 16219 else 16220 EXP_LIB_FLAG="-lexpect`echo ${EXP_LIB_VERSION} | tr -d .`" 16221 fi 16222 EXP_BUILD_LIB_SPEC="-L`pwd` ${EXP_LIB_FLAG}" 16223 EXP_LIB_SPEC="-L${libdir} ${EXP_LIB_FLAG}" 16224fi 16225 16226#-------------------------------------------------------------------- 16227# This section is based on analogous thing in Tk installation. - DEL 16228# Various manipulations on the search path used at runtime to 16229# find shared libraries: 16230# 2. On systems such as AIX and Ultrix that use "-L" as the 16231# search path option, colons cannot be used to separate 16232# directories from each other. Change colons to " -L". 16233# 3. Create two sets of search flags, one for use in cc lines 16234# and the other for when the linker is invoked directly. In 16235# the second case, '-Wl,' must be stripped off and commas must 16236# be replaced by spaces. 16237#-------------------------------------------------------------------- 16238 16239LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}/${PACKAGE_NAME}${PACKAGE_VERSION}' 16240 16241# If Tcl and Expect are installed in different places, adjust the library 16242# search path to reflect this. 16243 16244if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then 16245 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib" 16246fi 16247 16248if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then 16249 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'` 16250fi 16251 16252# The eval below is tricky! It *evaluates* the string in 16253# ..._CC_SEARCH_FLAGS, which causes a substitution of the 16254# variable LIB_RUNTIME_DIR. 16255 16256eval "EXP_CC_SEARCH_FLAGS=\"$TCL_CC_SEARCH_FLAGS\"" 16257 16258# now broken out into EXP_AND_TCL_LIBS. Had to do this 16259# in order to avoid repeating lib specs to which some systems object. 16260 16261LIBS="$LIBS $LD_SEARCH_FLAGS" 16262 16263# 16264# Set up makefile substitutions 16265# 16266 16267 16268 16269 16270 16271# Expect uses these from tclConfig.sh to make the main executable 16272 16273 16274 16275#-------------------------------------------------------------------- 16276# More TEA code based on data we got from the original expect 16277# configure code. 16278#-------------------------------------------------------------------- 16279 16280#----------------------------------------------------------------------- 16281# Specify the C source files to compile in TEA_ADD_SOURCES, 16282# public headers that need to be installed in TEA_ADD_HEADERS, 16283# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 16284# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 16285# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 16286# and PKG_TCL_SOURCES. 16287#----------------------------------------------------------------------- 16288 16289 16290 vars=" 16291 exp_command.c expect.c exp_inter.c exp_regexp.c exp_tty.c 16292 exp_log.c exp_main_sub.c exp_pty.c exp_trap.c exp_strf.c 16293 exp_console.c exp_glob.c exp_win.c exp_clib.c exp_closetcl.c 16294 exp_memmove.c exp_tty_comm.c exp_chan.c Dbg.c 16295" 16296 for i in $vars; do 16297 case $i in 16298 \$*) 16299 # allow $-var names 16300 PKG_SOURCES="$PKG_SOURCES $i" 16301 PKG_OBJECTS="$PKG_OBJECTS $i" 16302 ;; 16303 *) 16304 # check for existence - allows for generic/win/unix VPATH 16305 # To add more dirs here (like 'src'), you have to update VPATH 16306 # in Makefile.in as well 16307 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 16308 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 16309 -a ! -f "${srcdir}/macosx/$i" \ 16310 ; then 16311 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 16312echo "$as_me: error: could not find source file '$i'" >&2;} 16313 { (exit 1); exit 1; }; } 16314 fi 16315 PKG_SOURCES="$PKG_SOURCES $i" 16316 # this assumes it is in a VPATH dir 16317 i=`basename $i` 16318 # handle user calling this before or after TEA_SETUP_COMPILER 16319 if test x"${OBJEXT}" != x ; then 16320 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 16321 else 16322 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 16323 fi 16324 PKG_OBJECTS="$PKG_OBJECTS $j" 16325 ;; 16326 esac 16327 done 16328 16329 16330 16331 16332# Variant sources. Comments in the Makefile indicate that the 16333# event_type/able stuff can be overidden in the Makefile, and should 16334# be for particular systems. IMHO this requires a configure option. 16335# 16336# See at the end, where we select the sources based on the collect 16337# information. 16338 16339 16340 vars=" 16341 pty_${PTY_TYPE}.c 16342 exp_${EVENT_TYPE}.c 16343 exp_${EVENT_ABLE}.c 16344" 16345 for i in $vars; do 16346 case $i in 16347 \$*) 16348 # allow $-var names 16349 PKG_SOURCES="$PKG_SOURCES $i" 16350 PKG_OBJECTS="$PKG_OBJECTS $i" 16351 ;; 16352 *) 16353 # check for existence - allows for generic/win/unix VPATH 16354 # To add more dirs here (like 'src'), you have to update VPATH 16355 # in Makefile.in as well 16356 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 16357 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 16358 -a ! -f "${srcdir}/macosx/$i" \ 16359 ; then 16360 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 16361echo "$as_me: error: could not find source file '$i'" >&2;} 16362 { (exit 1); exit 1; }; } 16363 fi 16364 PKG_SOURCES="$PKG_SOURCES $i" 16365 # this assumes it is in a VPATH dir 16366 i=`basename $i` 16367 # handle user calling this before or after TEA_SETUP_COMPILER 16368 if test x"${OBJEXT}" != x ; then 16369 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 16370 else 16371 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 16372 fi 16373 PKG_OBJECTS="$PKG_OBJECTS $j" 16374 ;; 16375 esac 16376 done 16377 16378 16379 16380 16381 16382 vars="expect.h expect_tcl.h expect_comm.h tcldbg.h" 16383 for i in $vars; do 16384 # check for existence, be strict because it is installed 16385 if test ! -f "${srcdir}/$i" ; then 16386 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 16387echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 16388 { (exit 1); exit 1; }; } 16389 fi 16390 PKG_HEADERS="$PKG_HEADERS $i" 16391 done 16392 16393 16394 16395 16396 vars="-I." 16397 for i in $vars; do 16398 PKG_INCLUDES="$PKG_INCLUDES $i" 16399 done 16400 16401 16402 16403 vars="-I\"`\${CYGPATH} \${srcdir}`\"" 16404 for i in $vars; do 16405 PKG_INCLUDES="$PKG_INCLUDES $i" 16406 done 16407 16408 16409 16410 16411 vars="" 16412 for i in $vars; do 16413 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 16414 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 16415 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 16416 fi 16417 PKG_LIBS="$PKG_LIBS $i" 16418 done 16419 16420 16421 16422 PKG_CFLAGS="$PKG_CFLAGS -DTCL_DEBUGGER -DUSE_NON_CONST" 16423 16424 16425 16426 PKG_CFLAGS="$PKG_CFLAGS -DSCRIPTDIR=\\\"\${DESTDIR}\${prefix}/lib/\${PKG_DIR}\\\"" 16427 16428 16429 16430 PKG_CFLAGS="$PKG_CFLAGS -DEXECSCRIPTDIR=\\\"\${DESTDIR}\${pkglibdir}\\\"" 16431 16432 16433 16434 PKG_CFLAGS="$PKG_CFLAGS -DSTTY_BIN=\\\"${STTY_BIN}\\\"" 16435 16436 16437 16438 PKG_CFLAGS="$PKG_CFLAGS -DDFLT_STTY=\"\\\"$DEFAULT_STTY_ARGS\\\"\"" 16439 16440 16441 16442 16443 vars="" 16444 for i in $vars; do 16445 # check for existence - allows for generic/win/unix VPATH 16446 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 16447 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 16448 -a ! -f "${srcdir}/macosx/$i" \ 16449 ; then 16450 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 16451echo "$as_me: error: could not find stub source file '$i'" >&2;} 16452 { (exit 1); exit 1; }; } 16453 fi 16454 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 16455 # this assumes it is in a VPATH dir 16456 i=`basename $i` 16457 # handle user calling this before or after TEA_SETUP_COMPILER 16458 if test x"${OBJEXT}" != x ; then 16459 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 16460 else 16461 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 16462 fi 16463 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 16464 done 16465 16466 16467 16468 16469 vars="" 16470 for i in $vars; do 16471 # check for existence, be strict because it is installed 16472 if test ! -f "${srcdir}/$i" ; then 16473 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 16474echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 16475 { (exit 1); exit 1; }; } 16476 fi 16477 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 16478 done 16479 16480 16481 16482#-------------------------------------------------------------------- 16483# This macro generates a line to use when building a library. It 16484# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 16485# and TEA_LOAD_TCLCONFIG macros above. 16486#-------------------------------------------------------------------- 16487 16488 16489 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 16490 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 16491 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 16492 cat >conftest.$ac_ext <<_ACEOF 16493/* confdefs.h. */ 16494_ACEOF 16495cat confdefs.h >>conftest.$ac_ext 16496cat >>conftest.$ac_ext <<_ACEOF 16497/* end confdefs.h. */ 16498 16499#if defined(_MSC_VER) && _MSC_VER >= 1400 16500print("manifest needed") 16501#endif 16502 16503_ACEOF 16504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16505 $EGREP "manifest needed" >/dev/null 2>&1; then 16506 16507 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 16508 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 16509 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 16510 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 16511 16512 CLEANFILES="$CLEANFILES *.manifest" 16513 16514 16515fi 16516rm -f -r conftest* 16517 16518 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 16519 else 16520 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 16521 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 16522 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 16523 fi 16524 16525 if test "${SHARED_BUILD}" = "1" ; then 16526 MAKE_LIB="${MAKE_SHARED_LIB} " 16527 else 16528 MAKE_LIB="${MAKE_STATIC_LIB} " 16529 fi 16530 16531 #-------------------------------------------------------------------- 16532 # Shared libraries and static libraries have different names. 16533 # Use the double eval to make sure any variables in the suffix is 16534 # substituted. (@@@ Might not be necessary anymore) 16535 #-------------------------------------------------------------------- 16536 16537 if test "${TEA_PLATFORM}" = "windows" ; then 16538 if test "${SHARED_BUILD}" = "1" ; then 16539 # We force the unresolved linking of symbols that are really in 16540 # the private libraries of Tcl and Tk. 16541 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 16542 if test x"${TK_BIN_DIR}" != x ; then 16543 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 16544 fi 16545 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 16546 else 16547 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 16548 fi 16549 # Some packages build their own stubs libraries 16550 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 16551 if test "$GCC" = "yes"; then 16552 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 16553 fi 16554 # These aren't needed on Windows (either MSVC or gcc) 16555 RANLIB=: 16556 RANLIB_STUB=: 16557 else 16558 RANLIB_STUB="${RANLIB}" 16559 if test "${SHARED_BUILD}" = "1" ; then 16560 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 16561 if test x"${TK_BIN_DIR}" != x ; then 16562 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 16563 fi 16564 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 16565 RANLIB=: 16566 else 16567 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 16568 fi 16569 # Some packages build their own stubs libraries 16570 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 16571 fi 16572 16573 # These are escaped so that only CFLAGS is picked up at configure time. 16574 # The other values will be substituted at make time. 16575 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 16576 if test "${SHARED_BUILD}" = "1" ; then 16577 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 16578 fi 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589#-------------------------------------------------------------------- 16590# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 16591# file during the install process. Don't run the TCLSH_PROG through 16592# ${CYGPATH} because it's being used directly by make. 16593# Require that we use a tclsh shell version 8.2 or later since earlier 16594# versions have bugs in the pkg_mkIndex routine. 16595# Add WISH as well if this is a Tk extension. 16596#-------------------------------------------------------------------- 16597 16598 16599 { echo "$as_me:$LINENO: checking for tclsh" >&5 16600echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 16601 if test -f "${TCL_BIN_DIR}/Makefile" ; then 16602 # tclConfig.sh is in Tcl build directory 16603 if test "${TEA_PLATFORM}" = "windows"; then 16604 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 16605 else 16606 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 16607 fi 16608 else 16609 # tclConfig.sh is in install location 16610 if test "${TEA_PLATFORM}" = "windows"; then 16611 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 16612 else 16613 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 16614 fi 16615 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 16616 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 16617 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 16618 for i in $list ; do 16619 if test -f "$i/${TCLSH_PROG}" ; then 16620 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 16621 break 16622 fi 16623 done 16624 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 16625 fi 16626 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 16627echo "${ECHO_T}${TCLSH_PROG}" >&6; } 16628 16629 16630 16631#-------------------------------------------------------------------- 16632# Finally, substitute all of the various values into the Makefile. 16633# You may alternatively have a special pkgIndex.tcl.in or other files 16634# which require substituting th AC variables in. Include these here. 16635#-------------------------------------------------------------------- 16636 16637touch expect_cf.h 16638ac_config_files="$ac_config_files Makefile" 16639 16640ac_config_commands="$ac_config_commands default" 16641 16642cat >confcache <<\_ACEOF 16643# This file is a shell script that caches the results of configure 16644# tests run on this system so they can be shared between configure 16645# scripts and configure runs, see configure's option --config-cache. 16646# It is not useful on other systems. If it contains results you don't 16647# want to keep, you may remove or edit it. 16648# 16649# config.status only pays attention to the cache file if you give it 16650# the --recheck option to rerun configure. 16651# 16652# `ac_cv_env_foo' variables (set or unset) will be overridden when 16653# loading this file, other *unset* `ac_cv_foo' will be assigned the 16654# following values. 16655 16656_ACEOF 16657 16658# The following way of writing the cache mishandles newlines in values, 16659# but we know of no workaround that is simple, portable, and efficient. 16660# So, we kill variables containing newlines. 16661# Ultrix sh set writes to stderr and can't be redirected directly, 16662# and sets the high bit in the cache file unless we assign to the vars. 16663( 16664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16665 eval ac_val=\$$ac_var 16666 case $ac_val in #( 16667 *${as_nl}*) 16668 case $ac_var in #( 16669 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 16670echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 16671 esac 16672 case $ac_var in #( 16673 _ | IFS | as_nl) ;; #( 16674 *) $as_unset $ac_var ;; 16675 esac ;; 16676 esac 16677 done 16678 16679 (set) 2>&1 | 16680 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16681 *${as_nl}ac_space=\ *) 16682 # `set' does not quote correctly, so add quotes (double-quote 16683 # substitution turns \\\\ into \\, and sed turns \\ into \). 16684 sed -n \ 16685 "s/'/'\\\\''/g; 16686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16687 ;; #( 16688 *) 16689 # `set' quotes correctly as required by POSIX, so do not add quotes. 16690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16691 ;; 16692 esac | 16693 sort 16694) | 16695 sed ' 16696 /^ac_cv_env_/b end 16697 t clear 16698 :clear 16699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16700 t end 16701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16702 :end' >>confcache 16703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16704 if test -w "$cache_file"; then 16705 test "x$cache_file" != "x/dev/null" && 16706 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 16707echo "$as_me: updating cache $cache_file" >&6;} 16708 cat confcache >$cache_file 16709 else 16710 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 16711echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16712 fi 16713fi 16714rm -f confcache 16715 16716test "x$prefix" = xNONE && prefix=$ac_default_prefix 16717# Let make expand exec_prefix. 16718test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16719 16720# Transform confdefs.h into DEFS. 16721# Protect against shell expansion while executing Makefile rules. 16722# Protect against Makefile macro expansion. 16723# 16724# If the first sed substitution is executed (which looks for macros that 16725# take arguments), then branch to the quote section. Otherwise, 16726# look for a macro that doesn't take arguments. 16727ac_script=' 16728t clear 16729:clear 16730s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 16731t quote 16732s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 16733t quote 16734b any 16735:quote 16736s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 16737s/\[/\\&/g 16738s/\]/\\&/g 16739s/\$/$$/g 16740H 16741:any 16742${ 16743 g 16744 s/^\n// 16745 s/\n/ /g 16746 p 16747} 16748' 16749DEFS=`sed -n "$ac_script" confdefs.h` 16750 16751 16752ac_libobjs= 16753ac_ltlibobjs= 16754for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16755 # 1. Remove the extension, and $U if already installed. 16756 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16757 ac_i=`echo "$ac_i" | sed "$ac_script"` 16758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16759 # will be set to the directory where LIBOBJS objects are built. 16760 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16761 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 16762done 16763LIBOBJS=$ac_libobjs 16764 16765LTLIBOBJS=$ac_ltlibobjs 16766 16767 16768CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 16769 16770: ${CONFIG_STATUS=./config.status} 16771ac_clean_files_save=$ac_clean_files 16772ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16773{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 16774echo "$as_me: creating $CONFIG_STATUS" >&6;} 16775cat >$CONFIG_STATUS <<_ACEOF 16776#! $SHELL 16777# Generated by $as_me. 16778# Run this file to recreate the current configuration. 16779# Compiler output produced by configure, useful for debugging 16780# configure, is in config.log if it exists. 16781 16782debug=false 16783ac_cs_recheck=false 16784ac_cs_silent=false 16785SHELL=\${CONFIG_SHELL-$SHELL} 16786_ACEOF 16787 16788cat >>$CONFIG_STATUS <<\_ACEOF 16789## --------------------- ## 16790## M4sh Initialization. ## 16791## --------------------- ## 16792 16793# Be more Bourne compatible 16794DUALCASE=1; export DUALCASE # for MKS sh 16795if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16796 emulate sh 16797 NULLCMD=: 16798 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 16799 # is contrary to our usage. Disable this feature. 16800 alias -g '${1+"$@"}'='"$@"' 16801 setopt NO_GLOB_SUBST 16802else 16803 case `(set -o) 2>/dev/null` in 16804 *posix*) set -o posix ;; 16805esac 16806 16807fi 16808 16809 16810 16811 16812# PATH needs CR 16813# Avoid depending upon Character Ranges. 16814as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16815as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16816as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16817as_cr_digits='0123456789' 16818as_cr_alnum=$as_cr_Letters$as_cr_digits 16819 16820# The user is always right. 16821if test "${PATH_SEPARATOR+set}" != set; then 16822 echo "#! /bin/sh" >conf$$.sh 16823 echo "exit 0" >>conf$$.sh 16824 chmod +x conf$$.sh 16825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 16826 PATH_SEPARATOR=';' 16827 else 16828 PATH_SEPARATOR=: 16829 fi 16830 rm -f conf$$.sh 16831fi 16832 16833# Support unset when possible. 16834if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16835 as_unset=unset 16836else 16837 as_unset=false 16838fi 16839 16840 16841# IFS 16842# We need space, tab and new line, in precisely that order. Quoting is 16843# there to prevent editors from complaining about space-tab. 16844# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16845# splitting by setting IFS to empty value.) 16846as_nl=' 16847' 16848IFS=" "" $as_nl" 16849 16850# Find who we are. Look in the path if we contain no directory separator. 16851case $0 in 16852 *[\\/]* ) as_myself=$0 ;; 16853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16854for as_dir in $PATH 16855do 16856 IFS=$as_save_IFS 16857 test -z "$as_dir" && as_dir=. 16858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16859done 16860IFS=$as_save_IFS 16861 16862 ;; 16863esac 16864# We did not find ourselves, most probably we were run as `sh COMMAND' 16865# in which case we are not to be found in the path. 16866if test "x$as_myself" = x; then 16867 as_myself=$0 16868fi 16869if test ! -f "$as_myself"; then 16870 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16871 { (exit 1); exit 1; } 16872fi 16873 16874# Work around bugs in pre-3.0 UWIN ksh. 16875for as_var in ENV MAIL MAILPATH 16876do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16877done 16878PS1='$ ' 16879PS2='> ' 16880PS4='+ ' 16881 16882# NLS nuisances. 16883for as_var in \ 16884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 16885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 16886 LC_TELEPHONE LC_TIME 16887do 16888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 16889 eval $as_var=C; export $as_var 16890 else 16891 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 16892 fi 16893done 16894 16895# Required to use basename. 16896if expr a : '\(a\)' >/dev/null 2>&1 && 16897 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16898 as_expr=expr 16899else 16900 as_expr=false 16901fi 16902 16903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16904 as_basename=basename 16905else 16906 as_basename=false 16907fi 16908 16909 16910# Name of the executable. 16911as_me=`$as_basename -- "$0" || 16912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16913 X"$0" : 'X\(//\)$' \| \ 16914 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16915echo X/"$0" | 16916 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16917 s//\1/ 16918 q 16919 } 16920 /^X\/\(\/\/\)$/{ 16921 s//\1/ 16922 q 16923 } 16924 /^X\/\(\/\).*/{ 16925 s//\1/ 16926 q 16927 } 16928 s/.*/./; q'` 16929 16930# CDPATH. 16931$as_unset CDPATH 16932 16933 16934 16935 as_lineno_1=$LINENO 16936 as_lineno_2=$LINENO 16937 test "x$as_lineno_1" != "x$as_lineno_2" && 16938 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 16939 16940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16941 # uniformly replaced by the line number. The first 'sed' inserts a 16942 # line-number line after each line using $LINENO; the second 'sed' 16943 # does the real work. The second script uses 'N' to pair each 16944 # line-number line with the line containing $LINENO, and appends 16945 # trailing '-' during substitution so that $LINENO is not a special 16946 # case at line end. 16947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16948 # scripts with optimization help from Paolo Bonzini. Blame Lee 16949 # E. McMahon (1931-1989) for sed's syntax. :-) 16950 sed -n ' 16951 p 16952 /[$]LINENO/= 16953 ' <$as_myself | 16954 sed ' 16955 s/[$]LINENO.*/&-/ 16956 t lineno 16957 b 16958 :lineno 16959 N 16960 :loop 16961 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 16962 t loop 16963 s/-\n.*// 16964 ' >$as_me.lineno && 16965 chmod +x "$as_me.lineno" || 16966 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 16967 { (exit 1); exit 1; }; } 16968 16969 # Don't try to exec as it changes $[0], causing all sort of problems 16970 # (the dirname of $[0] is not the place where we might find the 16971 # original and so on. Autoconf is especially sensitive to this). 16972 . "./$as_me.lineno" 16973 # Exit status is that of the last command. 16974 exit 16975} 16976 16977 16978if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16979 as_dirname=dirname 16980else 16981 as_dirname=false 16982fi 16983 16984ECHO_C= ECHO_N= ECHO_T= 16985case `echo -n x` in 16986-n*) 16987 case `echo 'x\c'` in 16988 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16989 *) ECHO_C='\c';; 16990 esac;; 16991*) 16992 ECHO_N='-n';; 16993esac 16994 16995if expr a : '\(a\)' >/dev/null 2>&1 && 16996 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16997 as_expr=expr 16998else 16999 as_expr=false 17000fi 17001 17002rm -f conf$$ conf$$.exe conf$$.file 17003if test -d conf$$.dir; then 17004 rm -f conf$$.dir/conf$$.file 17005else 17006 rm -f conf$$.dir 17007 mkdir conf$$.dir 17008fi 17009echo >conf$$.file 17010if ln -s conf$$.file conf$$ 2>/dev/null; then 17011 as_ln_s='ln -s' 17012 # ... but there are two gotchas: 17013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17015 # In both cases, we have to default to `cp -p'. 17016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17017 as_ln_s='cp -p' 17018elif ln conf$$.file conf$$ 2>/dev/null; then 17019 as_ln_s=ln 17020else 17021 as_ln_s='cp -p' 17022fi 17023rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17024rmdir conf$$.dir 2>/dev/null 17025 17026if mkdir -p . 2>/dev/null; then 17027 as_mkdir_p=: 17028else 17029 test -d ./-p && rmdir ./-p 17030 as_mkdir_p=false 17031fi 17032 17033if test -x / >/dev/null 2>&1; then 17034 as_test_x='test -x' 17035else 17036 if ls -dL / >/dev/null 2>&1; then 17037 as_ls_L_option=L 17038 else 17039 as_ls_L_option= 17040 fi 17041 as_test_x=' 17042 eval sh -c '\'' 17043 if test -d "$1"; then 17044 test -d "$1/."; 17045 else 17046 case $1 in 17047 -*)set "./$1";; 17048 esac; 17049 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 17050 ???[sx]*):;;*)false;;esac;fi 17051 '\'' sh 17052 ' 17053fi 17054as_executable_p=$as_test_x 17055 17056# Sed expression to map a string onto a valid CPP name. 17057as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17058 17059# Sed expression to map a string onto a valid variable name. 17060as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17061 17062 17063exec 6>&1 17064 17065# Save the log message, to keep $[0] and so on meaningful, and to 17066# report actual input values of CONFIG_FILES etc. instead of their 17067# values after options handling. 17068ac_log=" 17069This file was extended by expect $as_me 5.45, which was 17070generated by GNU Autoconf 2.61. Invocation command line was 17071 17072 CONFIG_FILES = $CONFIG_FILES 17073 CONFIG_HEADERS = $CONFIG_HEADERS 17074 CONFIG_LINKS = $CONFIG_LINKS 17075 CONFIG_COMMANDS = $CONFIG_COMMANDS 17076 $ $0 $@ 17077 17078on `(hostname || uname -n) 2>/dev/null | sed 1q` 17079" 17080 17081_ACEOF 17082 17083cat >>$CONFIG_STATUS <<_ACEOF 17084# Files that config.status was made for. 17085config_files="$ac_config_files" 17086config_commands="$ac_config_commands" 17087 17088_ACEOF 17089 17090cat >>$CONFIG_STATUS <<\_ACEOF 17091ac_cs_usage="\ 17092\`$as_me' instantiates files from templates according to the 17093current configuration. 17094 17095Usage: $0 [OPTIONS] [FILE]... 17096 17097 -h, --help print this help, then exit 17098 -V, --version print version number and configuration settings, then exit 17099 -q, --quiet do not print progress messages 17100 -d, --debug don't remove temporary files 17101 --recheck update $as_me by reconfiguring in the same conditions 17102 --file=FILE[:TEMPLATE] 17103 instantiate the configuration file FILE 17104 17105Configuration files: 17106$config_files 17107 17108Configuration commands: 17109$config_commands 17110 17111Report bugs to <bug-autoconf@gnu.org>." 17112 17113_ACEOF 17114cat >>$CONFIG_STATUS <<_ACEOF 17115ac_cs_version="\\ 17116expect config.status 5.45 17117configured by $0, generated by GNU Autoconf 2.61, 17118 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 17119 17120Copyright (C) 2006 Free Software Foundation, Inc. 17121This config.status script is free software; the Free Software Foundation 17122gives unlimited permission to copy, distribute and modify it." 17123 17124ac_pwd='$ac_pwd' 17125srcdir='$srcdir' 17126INSTALL='$INSTALL' 17127_ACEOF 17128 17129cat >>$CONFIG_STATUS <<\_ACEOF 17130# If no file are specified by the user, then we need to provide default 17131# value. By we need to know if files were specified by the user. 17132ac_need_defaults=: 17133while test $# != 0 17134do 17135 case $1 in 17136 --*=*) 17137 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17139 ac_shift=: 17140 ;; 17141 *) 17142 ac_option=$1 17143 ac_optarg=$2 17144 ac_shift=shift 17145 ;; 17146 esac 17147 17148 case $ac_option in 17149 # Handling of the options. 17150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17151 ac_cs_recheck=: ;; 17152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17153 echo "$ac_cs_version"; exit ;; 17154 --debug | --debu | --deb | --de | --d | -d ) 17155 debug=: ;; 17156 --file | --fil | --fi | --f ) 17157 $ac_shift 17158 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 17159 ac_need_defaults=false;; 17160 --he | --h | --help | --hel | -h ) 17161 echo "$ac_cs_usage"; exit ;; 17162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17163 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17164 ac_cs_silent=: ;; 17165 17166 # This is an error. 17167 -*) { echo "$as_me: error: unrecognized option: $1 17168Try \`$0 --help' for more information." >&2 17169 { (exit 1); exit 1; }; } ;; 17170 17171 *) ac_config_targets="$ac_config_targets $1" 17172 ac_need_defaults=false ;; 17173 17174 esac 17175 shift 17176done 17177 17178ac_configure_extra_args= 17179 17180if $ac_cs_silent; then 17181 exec 6>/dev/null 17182 ac_configure_extra_args="$ac_configure_extra_args --silent" 17183fi 17184 17185_ACEOF 17186cat >>$CONFIG_STATUS <<_ACEOF 17187if \$ac_cs_recheck; then 17188 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 17189 CONFIG_SHELL=$SHELL 17190 export CONFIG_SHELL 17191 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17192fi 17193 17194_ACEOF 17195cat >>$CONFIG_STATUS <<\_ACEOF 17196exec 5>>config.log 17197{ 17198 echo 17199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17200## Running $as_me. ## 17201_ASBOX 17202 echo "$ac_log" 17203} >&5 17204 17205_ACEOF 17206cat >>$CONFIG_STATUS <<_ACEOF 17207_ACEOF 17208 17209cat >>$CONFIG_STATUS <<\_ACEOF 17210 17211# Handling of arguments. 17212for ac_config_target in $ac_config_targets 17213do 17214 case $ac_config_target in 17215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17216 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 17217 17218 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17219echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17220 { (exit 1); exit 1; }; };; 17221 esac 17222done 17223 17224 17225# If the user did not use the arguments to specify the items to instantiate, 17226# then the envvar interface is used. Set only those that are not. 17227# We use the long form for the default assignment because of an extremely 17228# bizarre bug on SunOS 4.1.3. 17229if $ac_need_defaults; then 17230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17231 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17232fi 17233 17234# Have a temporary directory for convenience. Make it in the build tree 17235# simply because there is no reason against having it here, and in addition, 17236# creating and moving files from /tmp can sometimes cause problems. 17237# Hook for its removal unless debugging. 17238# Note that there is a small window in which the directory will not be cleaned: 17239# after its creation but before its name has been assigned to `$tmp'. 17240$debug || 17241{ 17242 tmp= 17243 trap 'exit_status=$? 17244 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 17245' 0 17246 trap '{ (exit 1); exit 1; }' 1 2 13 15 17247} 17248# Create a (secure) tmp directory for tmp files. 17249 17250{ 17251 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17252 test -n "$tmp" && test -d "$tmp" 17253} || 17254{ 17255 tmp=./conf$$-$RANDOM 17256 (umask 077 && mkdir "$tmp") 17257} || 17258{ 17259 echo "$me: cannot create a temporary directory in ." >&2 17260 { (exit 1); exit 1; } 17261} 17262 17263# 17264# Set up the sed scripts for CONFIG_FILES section. 17265# 17266 17267# No need to generate the scripts if there are no CONFIG_FILES. 17268# This happens for instance when ./config.status config.h 17269if test -n "$CONFIG_FILES"; then 17270 17271_ACEOF 17272 17273 17274 17275ac_delim='%!_!# ' 17276for ac_last_try in false false false false false :; do 17277 cat >conf$$subs.sed <<_ACEOF 17278SHELL!$SHELL$ac_delim 17279PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 17280PACKAGE_NAME!$PACKAGE_NAME$ac_delim 17281PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 17282PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 17283PACKAGE_STRING!$PACKAGE_STRING$ac_delim 17284PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 17285exec_prefix!$exec_prefix$ac_delim 17286prefix!$prefix$ac_delim 17287program_transform_name!$program_transform_name$ac_delim 17288bindir!$bindir$ac_delim 17289sbindir!$sbindir$ac_delim 17290libexecdir!$libexecdir$ac_delim 17291datarootdir!$datarootdir$ac_delim 17292datadir!$datadir$ac_delim 17293sysconfdir!$sysconfdir$ac_delim 17294sharedstatedir!$sharedstatedir$ac_delim 17295localstatedir!$localstatedir$ac_delim 17296includedir!$includedir$ac_delim 17297oldincludedir!$oldincludedir$ac_delim 17298docdir!$docdir$ac_delim 17299infodir!$infodir$ac_delim 17300htmldir!$htmldir$ac_delim 17301dvidir!$dvidir$ac_delim 17302pdfdir!$pdfdir$ac_delim 17303psdir!$psdir$ac_delim 17304libdir!$libdir$ac_delim 17305localedir!$localedir$ac_delim 17306mandir!$mandir$ac_delim 17307DEFS!$DEFS$ac_delim 17308ECHO_C!$ECHO_C$ac_delim 17309ECHO_N!$ECHO_N$ac_delim 17310ECHO_T!$ECHO_T$ac_delim 17311LIBS!$LIBS$ac_delim 17312build_alias!$build_alias$ac_delim 17313host_alias!$host_alias$ac_delim 17314target_alias!$target_alias$ac_delim 17315CYGPATH!$CYGPATH$ac_delim 17316EXEEXT!$EXEEXT$ac_delim 17317PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 17318PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 17319PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 17320PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 17321PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 17322PKG_HEADERS!$PKG_HEADERS$ac_delim 17323PKG_INCLUDES!$PKG_INCLUDES$ac_delim 17324PKG_LIBS!$PKG_LIBS$ac_delim 17325PKG_CFLAGS!$PKG_CFLAGS$ac_delim 17326TCL_VERSION!$TCL_VERSION$ac_delim 17327TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 17328TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 17329TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 17330TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 17331TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 17332TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 17333TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 17334TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 17335TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 17336CLEANFILES!$CLEANFILES$ac_delim 17337TCL_LIBS!$TCL_LIBS$ac_delim 17338TCL_DEFS!$TCL_DEFS$ac_delim 17339TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 17340TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 17341TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 17342CC!$CC$ac_delim 17343CFLAGS!$CFLAGS$ac_delim 17344LDFLAGS!$LDFLAGS$ac_delim 17345CPPFLAGS!$CPPFLAGS$ac_delim 17346ac_ct_CC!$ac_ct_CC$ac_delim 17347OBJEXT!$OBJEXT$ac_delim 17348CPP!$CPP$ac_delim 17349INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 17350INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 17351INSTALL_DATA!$INSTALL_DATA$ac_delim 17352SET_MAKE!$SET_MAKE$ac_delim 17353RANLIB!$RANLIB$ac_delim 17354GREP!$GREP$ac_delim 17355EGREP!$EGREP$ac_delim 17356MATH_LIBS!$MATH_LIBS$ac_delim 17357TCL_INCLUDES!$TCL_INCLUDES$ac_delim 17358TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 17359TCL_THREADS!$TCL_THREADS$ac_delim 17360SHARED_BUILD!$SHARED_BUILD$ac_delim 17361AR!$AR$ac_delim 17362CELIB_DIR!$CELIB_DIR$ac_delim 17363CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 17364CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 17365CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 17366STLIB_LD!$STLIB_LD$ac_delim 17367SHLIB_LD!$SHLIB_LD$ac_delim 17368SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 17369SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 17370LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 17371CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 17372LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 17373TCL_DBGX!$TCL_DBGX$ac_delim 17374build!$build$ac_delim 17375_ACEOF 17376 17377 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 17378 break 17379 elif $ac_last_try; then 17380 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 17381echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 17382 { (exit 1); exit 1; }; } 17383 else 17384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17385 fi 17386done 17387 17388ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 17389if test -n "$ac_eof"; then 17390 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 17391 ac_eof=`expr $ac_eof + 1` 17392fi 17393 17394cat >>$CONFIG_STATUS <<_ACEOF 17395cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 17396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17397_ACEOF 17398sed ' 17399s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 17400s/^/s,@/; s/!/@,|#_!!_#|/ 17401:n 17402t n 17403s/'"$ac_delim"'$/,g/; t 17404s/$/\\/; p 17405N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 17406' >>$CONFIG_STATUS <conf$$subs.sed 17407rm -f conf$$subs.sed 17408cat >>$CONFIG_STATUS <<_ACEOF 17409CEOF$ac_eof 17410_ACEOF 17411 17412 17413ac_delim='%!_!# ' 17414for ac_last_try in false false false false false :; do 17415 cat >conf$$subs.sed <<_ACEOF 17416build_cpu!$build_cpu$ac_delim 17417build_vendor!$build_vendor$ac_delim 17418build_os!$build_os$ac_delim 17419host!$host$ac_delim 17420host_cpu!$host_cpu$ac_delim 17421host_vendor!$host_vendor$ac_delim 17422host_os!$host_os$ac_delim 17423target!$target$ac_delim 17424target_cpu!$target_cpu$ac_delim 17425target_vendor!$target_vendor$ac_delim 17426target_os!$target_os$ac_delim 17427subdirs!$subdirs$ac_delim 17428EXP_BUILD_LIB_SPEC!$EXP_BUILD_LIB_SPEC$ac_delim 17429EXP_CC_SEARCH_FLAGS!$EXP_CC_SEARCH_FLAGS$ac_delim 17430SETUID!$SETUID$ac_delim 17431SETPGRP_VOID!$SETPGRP_VOID$ac_delim 17432DEFAULT_STTY_ARGS!$DEFAULT_STTY_ARGS$ac_delim 17433TCL_DL_LIBS!$TCL_DL_LIBS$ac_delim 17434TCL_CC_SEARCH_FLAGS!$TCL_CC_SEARCH_FLAGS$ac_delim 17435PKG_SOURCES!$PKG_SOURCES$ac_delim 17436PKG_OBJECTS!$PKG_OBJECTS$ac_delim 17437MAKE_LIB!$MAKE_LIB$ac_delim 17438MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 17439MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 17440MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 17441RANLIB_STUB!$RANLIB_STUB$ac_delim 17442VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 17443VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 17444TCLSH_PROG!$TCLSH_PROG$ac_delim 17445LIBOBJS!$LIBOBJS$ac_delim 17446LTLIBOBJS!$LTLIBOBJS$ac_delim 17447_ACEOF 17448 17449 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then 17450 break 17451 elif $ac_last_try; then 17452 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 17453echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 17454 { (exit 1); exit 1; }; } 17455 else 17456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17457 fi 17458done 17459 17460ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 17461if test -n "$ac_eof"; then 17462 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 17463 ac_eof=`expr $ac_eof + 1` 17464fi 17465 17466cat >>$CONFIG_STATUS <<_ACEOF 17467cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 17468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 17469_ACEOF 17470sed ' 17471s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 17472s/^/s,@/; s/!/@,|#_!!_#|/ 17473:n 17474t n 17475s/'"$ac_delim"'$/,g/; t 17476s/$/\\/; p 17477N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 17478' >>$CONFIG_STATUS <conf$$subs.sed 17479rm -f conf$$subs.sed 17480cat >>$CONFIG_STATUS <<_ACEOF 17481:end 17482s/|#_!!_#|//g 17483CEOF$ac_eof 17484_ACEOF 17485 17486 17487# VPATH may cause trouble with some makes, so we remove $(srcdir), 17488# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17489# trailing colons and then remove the whole line if VPATH becomes empty 17490# (actually we leave an empty line to preserve line numbers). 17491if test "x$srcdir" = x.; then 17492 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17493s/:*\$(srcdir):*/:/ 17494s/:*\${srcdir}:*/:/ 17495s/:*@srcdir@:*/:/ 17496s/^\([^=]*=[ ]*\):*/\1/ 17497s/:*$// 17498s/^[^=]*=[ ]*$// 17499}' 17500fi 17501 17502cat >>$CONFIG_STATUS <<\_ACEOF 17503fi # test -n "$CONFIG_FILES" 17504 17505 17506for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 17507do 17508 case $ac_tag in 17509 :[FHLC]) ac_mode=$ac_tag; continue;; 17510 esac 17511 case $ac_mode$ac_tag in 17512 :[FHL]*:*);; 17513 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 17514echo "$as_me: error: Invalid tag $ac_tag." >&2;} 17515 { (exit 1); exit 1; }; };; 17516 :[FH]-) ac_tag=-:-;; 17517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17518 esac 17519 ac_save_IFS=$IFS 17520 IFS=: 17521 set x $ac_tag 17522 IFS=$ac_save_IFS 17523 shift 17524 ac_file=$1 17525 shift 17526 17527 case $ac_mode in 17528 :L) ac_source=$1;; 17529 :[FH]) 17530 ac_file_inputs= 17531 for ac_f 17532 do 17533 case $ac_f in 17534 -) ac_f="$tmp/stdin";; 17535 *) # Look for the file first in the build tree, then in the source tree 17536 # (if the path is not absolute). The absolute path cannot be DOS-style, 17537 # because $ac_f cannot contain `:'. 17538 test -f "$ac_f" || 17539 case $ac_f in 17540 [\\/$]*) false;; 17541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17542 esac || 17543 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 17544echo "$as_me: error: cannot find input file: $ac_f" >&2;} 17545 { (exit 1); exit 1; }; };; 17546 esac 17547 ac_file_inputs="$ac_file_inputs $ac_f" 17548 done 17549 17550 # Let's still pretend it is `configure' which instantiates (i.e., don't 17551 # use $as_me), people would be surprised to read: 17552 # /* config.h. Generated by config.status. */ 17553 configure_input="Generated from "`IFS=: 17554 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 17555 if test x"$ac_file" != x-; then 17556 configure_input="$ac_file. $configure_input" 17557 { echo "$as_me:$LINENO: creating $ac_file" >&5 17558echo "$as_me: creating $ac_file" >&6;} 17559 fi 17560 17561 case $ac_tag in 17562 *:-:* | *:-) cat >"$tmp/stdin";; 17563 esac 17564 ;; 17565 esac 17566 17567 ac_dir=`$as_dirname -- "$ac_file" || 17568$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17569 X"$ac_file" : 'X\(//\)[^/]' \| \ 17570 X"$ac_file" : 'X\(//\)$' \| \ 17571 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17572echo X"$ac_file" | 17573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17574 s//\1/ 17575 q 17576 } 17577 /^X\(\/\/\)[^/].*/{ 17578 s//\1/ 17579 q 17580 } 17581 /^X\(\/\/\)$/{ 17582 s//\1/ 17583 q 17584 } 17585 /^X\(\/\).*/{ 17586 s//\1/ 17587 q 17588 } 17589 s/.*/./; q'` 17590 { as_dir="$ac_dir" 17591 case $as_dir in #( 17592 -*) as_dir=./$as_dir;; 17593 esac 17594 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17595 as_dirs= 17596 while :; do 17597 case $as_dir in #( 17598 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 17599 *) as_qdir=$as_dir;; 17600 esac 17601 as_dirs="'$as_qdir' $as_dirs" 17602 as_dir=`$as_dirname -- "$as_dir" || 17603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17604 X"$as_dir" : 'X\(//\)[^/]' \| \ 17605 X"$as_dir" : 'X\(//\)$' \| \ 17606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17607echo X"$as_dir" | 17608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17609 s//\1/ 17610 q 17611 } 17612 /^X\(\/\/\)[^/].*/{ 17613 s//\1/ 17614 q 17615 } 17616 /^X\(\/\/\)$/{ 17617 s//\1/ 17618 q 17619 } 17620 /^X\(\/\).*/{ 17621 s//\1/ 17622 q 17623 } 17624 s/.*/./; q'` 17625 test -d "$as_dir" && break 17626 done 17627 test -z "$as_dirs" || eval "mkdir $as_dirs" 17628 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17629echo "$as_me: error: cannot create directory $as_dir" >&2;} 17630 { (exit 1); exit 1; }; }; } 17631 ac_builddir=. 17632 17633case "$ac_dir" in 17634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17635*) 17636 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 17637 # A ".." for each directory in $ac_dir_suffix. 17638 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 17639 case $ac_top_builddir_sub in 17640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17642 esac ;; 17643esac 17644ac_abs_top_builddir=$ac_pwd 17645ac_abs_builddir=$ac_pwd$ac_dir_suffix 17646# for backward compatibility: 17647ac_top_builddir=$ac_top_build_prefix 17648 17649case $srcdir in 17650 .) # We are building in place. 17651 ac_srcdir=. 17652 ac_top_srcdir=$ac_top_builddir_sub 17653 ac_abs_top_srcdir=$ac_pwd ;; 17654 [\\/]* | ?:[\\/]* ) # Absolute name. 17655 ac_srcdir=$srcdir$ac_dir_suffix; 17656 ac_top_srcdir=$srcdir 17657 ac_abs_top_srcdir=$srcdir ;; 17658 *) # Relative name. 17659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17660 ac_top_srcdir=$ac_top_build_prefix$srcdir 17661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17662esac 17663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17664 17665 17666 case $ac_mode in 17667 :F) 17668 # 17669 # CONFIG_FILE 17670 # 17671 17672 case $INSTALL in 17673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17675 esac 17676_ACEOF 17677 17678cat >>$CONFIG_STATUS <<\_ACEOF 17679# If the template does not know about datarootdir, expand it. 17680# FIXME: This hack should be removed a few years after 2.60. 17681ac_datarootdir_hack=; ac_datarootdir_seen= 17682 17683case `sed -n '/datarootdir/ { 17684 p 17685 q 17686} 17687/@datadir@/p 17688/@docdir@/p 17689/@infodir@/p 17690/@localedir@/p 17691/@mandir@/p 17692' $ac_file_inputs` in 17693*datarootdir*) ac_datarootdir_seen=yes;; 17694*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17695 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17696echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17697_ACEOF 17698cat >>$CONFIG_STATUS <<_ACEOF 17699 ac_datarootdir_hack=' 17700 s&@datadir@&$datadir&g 17701 s&@docdir@&$docdir&g 17702 s&@infodir@&$infodir&g 17703 s&@localedir@&$localedir&g 17704 s&@mandir@&$mandir&g 17705 s&\\\${datarootdir}&$datarootdir&g' ;; 17706esac 17707_ACEOF 17708 17709# Neutralize VPATH when `$srcdir' = `.'. 17710# Shell code in configure.ac might set extrasub. 17711# FIXME: do we really want to maintain this feature? 17712cat >>$CONFIG_STATUS <<_ACEOF 17713 sed "$ac_vpsub 17714$extrasub 17715_ACEOF 17716cat >>$CONFIG_STATUS <<\_ACEOF 17717:t 17718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17719s&@configure_input@&$configure_input&;t t 17720s&@top_builddir@&$ac_top_builddir_sub&;t t 17721s&@srcdir@&$ac_srcdir&;t t 17722s&@abs_srcdir@&$ac_abs_srcdir&;t t 17723s&@top_srcdir@&$ac_top_srcdir&;t t 17724s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17725s&@builddir@&$ac_builddir&;t t 17726s&@abs_builddir@&$ac_abs_builddir&;t t 17727s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17728s&@INSTALL@&$ac_INSTALL&;t t 17729$ac_datarootdir_hack 17730" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 17731 17732test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17733 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17735 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17736which seems to be undefined. Please make sure it is defined." >&5 17737echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17738which seems to be undefined. Please make sure it is defined." >&2;} 17739 17740 rm -f "$tmp/stdin" 17741 case $ac_file in 17742 -) cat "$tmp/out"; rm -f "$tmp/out";; 17743 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 17744 esac 17745 ;; 17746 17747 17748 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 17749echo "$as_me: executing $ac_file commands" >&6;} 17750 ;; 17751 esac 17752 17753 17754 case $ac_file$ac_mode in 17755 "default":C) chmod +x ${srcdir}/install-sh ;; 17756 17757 esac 17758done # for ac_tag 17759 17760 17761{ (exit 0); exit 0; } 17762_ACEOF 17763chmod +x $CONFIG_STATUS 17764ac_clean_files=$ac_clean_files_save 17765 17766 17767# configure is writing to config.log, and then calls config.status. 17768# config.status does its own redirection, appending to config.log. 17769# Unfortunately, on DOS this fails, as config.log is still kept open 17770# by configure, so config.status won't be able to write to it; its 17771# output is simply discarded. So we exec the FD to /dev/null, 17772# effectively closing config.log, so it can be properly (re)opened and 17773# appended to by config.status. When coming back to configure, we 17774# need to make the FD available again. 17775if test "$no_create" != yes; then 17776 ac_cs_success=: 17777 ac_config_status_args= 17778 test "$silent" = yes && 17779 ac_config_status_args="$ac_config_status_args --quiet" 17780 exec 5>/dev/null 17781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17782 exec 5>>config.log 17783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17784 # would make configure fail if this is the last instruction. 17785 $ac_cs_success || { (exit 1); exit 1; } 17786fi 17787 17788# 17789# CONFIG_SUBDIRS section. 17790# 17791if test "$no_recursion" != yes; then 17792 17793 # Remove --cache-file and --srcdir arguments so they do not pile up. 17794 ac_sub_configure_args= 17795 ac_prev= 17796 eval "set x $ac_configure_args" 17797 shift 17798 for ac_arg 17799 do 17800 if test -n "$ac_prev"; then 17801 ac_prev= 17802 continue 17803 fi 17804 case $ac_arg in 17805 -cache-file | --cache-file | --cache-fil | --cache-fi \ 17806 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 17807 ac_prev=cache_file ;; 17808 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 17809 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 17810 | --c=*) 17811 ;; 17812 --config-cache | -C) 17813 ;; 17814 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 17815 ac_prev=srcdir ;; 17816 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 17817 ;; 17818 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 17819 ac_prev=prefix ;; 17820 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 17821 ;; 17822 *) 17823 case $ac_arg in 17824 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17825 esac 17826 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 17827 esac 17828 done 17829 17830 # Always prepend --prefix to ensure using the same prefix 17831 # in subdir configurations. 17832 ac_arg="--prefix=$prefix" 17833 case $ac_arg in 17834 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17835 esac 17836 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 17837 17838 # Pass --silent 17839 if test "$silent" = yes; then 17840 ac_sub_configure_args="--silent $ac_sub_configure_args" 17841 fi 17842 17843 ac_popdir=`pwd` 17844 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 17845 17846 # Do not complain, so a configure script can configure whichever 17847 # parts of a large source tree are present. 17848 test -d "$srcdir/$ac_dir" || continue 17849 17850 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 17851 echo "$as_me:$LINENO: $ac_msg" >&5 17852 echo "$ac_msg" >&6 17853 { as_dir="$ac_dir" 17854 case $as_dir in #( 17855 -*) as_dir=./$as_dir;; 17856 esac 17857 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 17858 as_dirs= 17859 while :; do 17860 case $as_dir in #( 17861 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 17862 *) as_qdir=$as_dir;; 17863 esac 17864 as_dirs="'$as_qdir' $as_dirs" 17865 as_dir=`$as_dirname -- "$as_dir" || 17866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17867 X"$as_dir" : 'X\(//\)[^/]' \| \ 17868 X"$as_dir" : 'X\(//\)$' \| \ 17869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17870echo X"$as_dir" | 17871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17872 s//\1/ 17873 q 17874 } 17875 /^X\(\/\/\)[^/].*/{ 17876 s//\1/ 17877 q 17878 } 17879 /^X\(\/\/\)$/{ 17880 s//\1/ 17881 q 17882 } 17883 /^X\(\/\).*/{ 17884 s//\1/ 17885 q 17886 } 17887 s/.*/./; q'` 17888 test -d "$as_dir" && break 17889 done 17890 test -z "$as_dirs" || eval "mkdir $as_dirs" 17891 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 17892echo "$as_me: error: cannot create directory $as_dir" >&2;} 17893 { (exit 1); exit 1; }; }; } 17894 ac_builddir=. 17895 17896case "$ac_dir" in 17897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17898*) 17899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 17900 # A ".." for each directory in $ac_dir_suffix. 17901 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 17902 case $ac_top_builddir_sub in 17903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17905 esac ;; 17906esac 17907ac_abs_top_builddir=$ac_pwd 17908ac_abs_builddir=$ac_pwd$ac_dir_suffix 17909# for backward compatibility: 17910ac_top_builddir=$ac_top_build_prefix 17911 17912case $srcdir in 17913 .) # We are building in place. 17914 ac_srcdir=. 17915 ac_top_srcdir=$ac_top_builddir_sub 17916 ac_abs_top_srcdir=$ac_pwd ;; 17917 [\\/]* | ?:[\\/]* ) # Absolute name. 17918 ac_srcdir=$srcdir$ac_dir_suffix; 17919 ac_top_srcdir=$srcdir 17920 ac_abs_top_srcdir=$srcdir ;; 17921 *) # Relative name. 17922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17923 ac_top_srcdir=$ac_top_build_prefix$srcdir 17924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17925esac 17926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17927 17928 17929 cd "$ac_dir" 17930 17931 # Check for guested configure; otherwise get Cygnus style configure. 17932 if test -f "$ac_srcdir/configure.gnu"; then 17933 ac_sub_configure=$ac_srcdir/configure.gnu 17934 elif test -f "$ac_srcdir/configure"; then 17935 ac_sub_configure=$ac_srcdir/configure 17936 elif test -f "$ac_srcdir/configure.in"; then 17937 # This should be Cygnus configure. 17938 ac_sub_configure=$ac_aux_dir/configure 17939 else 17940 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 17941echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 17942 ac_sub_configure= 17943 fi 17944 17945 # The recursion is here. 17946 if test -n "$ac_sub_configure"; then 17947 # Make the cache file name correct relative to the subdirectory. 17948 case $cache_file in 17949 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 17950 *) # Relative name. 17951 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 17952 esac 17953 17954 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 17955echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 17956 # The eval makes quoting arguments work. 17957 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 17958 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 17959 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 17960echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 17961 { (exit 1); exit 1; }; } 17962 fi 17963 17964 cd "$ac_popdir" 17965 done 17966fi 17967 17968