1*** generic/tcl.h.orig Wed Jan 22 17:47:56 1997 2--- generic/tcl.h Sun Jan 26 19:37:21 1997 3*************** 4*** 823,828 **** 5--- 823,837 ---- 6 } Tcl_EolTranslation; 7 8 /* 9+ * Enum for different byteorders. 10+ */ 11+ 12+ typedef enum Tcl_ByteOrder { 13+ TCL_BIGENDIAN, /* Multibyte words are stored with MSB first */ 14+ TCL_SMALLENDIAN /* Multibyte words are stored with MSB last */ 15+ } Tcl_ByteOrder; 16+ 17+ /* 18 * struct Tcl_ChannelType: 19 * 20 * One such structure exists for each type (kind) of channel. 21*************** 22*** 1114,1119 **** 23--- 1123,1131 ---- 24 char *chanName, int *modePtr)); 25 EXTERN int Tcl_GetChannelBufferSize _ANSI_ARGS_(( 26 Tcl_Channel chan)); 27+ EXTERN Tcl_ByteOrder Tcl_GetChannelByteorder _ANSI_ARGS_(( 28+ Tcl_Channel chan)); 29+ EXTERN Tcl_ByteOrder Tcl_GetHostByteorder _ANSI_ARGS_((void)); 30 EXTERN Tcl_File Tcl_GetChannelFile _ANSI_ARGS_((Tcl_Channel chan, 31 int direction)); 32 EXTERN ClientData Tcl_GetChannelInstanceData _ANSI_ARGS_(( 33*** generic/tclIO.c.orig Sat Dec 14 00:11:41 1996 34--- generic/tclIO.c Sun Jan 26 19:37:21 1997 35*************** 36*** 121,126 **** 37--- 121,127 ---- 38 * code, is dynamically allocated. */ 39 int flags; /* ORed combination of the flags defined 40 * below. */ 41+ Tcl_ByteOrder byteOrder; /* byteorder associated to this channel */ 42 Tcl_EolTranslation inputTranslation; 43 /* What translation to apply for end of line 44 * sequences on input? */ 45*************** 46*** 1192,1197 **** 47--- 1193,1200 ---- 48 * indicator (e.g. ^Z) and does not append an EOF indicator to files. 49 */ 50 51+ /* Initialize endianess with */ 52+ chanPtr->byteOrder = Tcl_GetHostByteorder (); 53 chanPtr->inputTranslation = TCL_TRANSLATE_AUTO; 54 chanPtr->outputTranslation = TCL_PLATFORM_TRANSLATION; 55 chanPtr->inEofChar = 0; 56*************** 57*** 3697,3702 **** 58--- 3700,3758 ---- 59 /* 60 *---------------------------------------------------------------------- 61 * 62+ * Tcl_GetChannelByteorder -- 63+ * 64+ * Retrieves the byteorder set for this channel. 65+ * 66+ * Results: 67+ * The size. 68+ * 69+ * Side effects: 70+ * None. 71+ * 72+ *---------------------------------------------------------------------- 73+ */ 74+ 75+ Tcl_ByteOrder 76+ Tcl_GetChannelByteorder(chan) 77+ Tcl_Channel chan; /* The channel for which to find the 78+ * buffer size. */ 79+ { 80+ Channel *chanPtr; 81+ 82+ chanPtr = (Channel *) chan; 83+ return chanPtr->byteOrder; 84+ } 85+ 86+ /* 87+ *---------------------------------------------------------------------- 88+ * 89+ * Tcl_GetHostByteorder -- 90+ * 91+ * Retrieves the byteorder of the machine we are running on. 92+ * 93+ * Results: 94+ * The size. 95+ * 96+ * Side effects: 97+ * None. 98+ * 99+ *---------------------------------------------------------------------- 100+ */ 101+ 102+ Tcl_ByteOrder 103+ Tcl_GetHostByteorder() 104+ { 105+ #ifdef WORDS_BIGENDIAN 106+ return TCL_BIGENDIAN; 107+ #else 108+ return TCL_SMALLENDIAN; 109+ #endif 110+ } 111+ 112+ /* 113+ *---------------------------------------------------------------------- 114+ * 115 * Tcl_GetChannelOption -- 116 * 117 * Gets a mode associated with an IO channel. If the optionName arg 118*************** 119*** 3788,3793 **** 120--- 3846,3862 ---- 121 return TCL_OK; 122 } 123 } 124+ if ((len == 0) || ((len > 2) && (optionName[1] == 'b') && 125+ (strncmp(optionName, "-byteorder", len) == 0))) { 126+ if (len == 0) { 127+ Tcl_DStringAppendElement(dsPtr, "-byteorder"); 128+ } 129+ Tcl_DStringAppendElement(dsPtr, 130+ (chanPtr->byteOrder == TCL_BIGENDIAN) ? "bigendian" : "smallendian"); 131+ if (len > 0) { 132+ return TCL_OK; 133+ } 134+ } 135 if ((len == 0) || 136 ((len > 1) && (optionName[1] == 'e') && 137 (strncmp(optionName, "-eofchar", len) == 0))) { 138*************** 139*** 3992,3997 **** 140--- 4061,4093 ---- 141 chanPtr->bufSize = CHANNELBUFFER_DEFAULT_SIZE; 142 } 143 return TCL_OK; 144+ } 145+ 146+ if ((len > 2) && (optionName[1] == 'b') && 147+ (strncmp(optionName, "-byteorder", len) == 0)) { 148+ int nv_len = strlen (newValue); 149+ 150+ if ((nv_len > 0) && (strncmp (newValue, "smallendian", nv_len) == 0)) { 151+ chanPtr->byteOrder = TCL_SMALLENDIAN; 152+ return TCL_OK; 153+ } else if ((nv_len > 0) && (strncmp (newValue, "littleendian", nv_len) == 0)) { 154+ chanPtr->byteOrder = TCL_SMALLENDIAN; 155+ return TCL_OK; 156+ } else if ((nv_len > 0) && (strncmp (newValue, "network", nv_len) == 0)) { 157+ chanPtr->byteOrder = TCL_BIGENDIAN; 158+ return TCL_OK; 159+ } else if ((nv_len > 0) && (strncmp (newValue, "bigendian", nv_len) == 0)) { 160+ chanPtr->byteOrder = TCL_BIGENDIAN; 161+ return TCL_OK; 162+ } 163+ 164+ if (interp != (Tcl_Interp *) NULL) { 165+ Tcl_AppendResult(interp, 166+ "bad value for -byteorder: ", 167+ "must be one of smallendian, littleendian, bigendian or network", 168+ (char *) NULL); 169+ } 170+ return TCL_ERROR; 171 } 172 173 if ((len > 1) && (optionName[1] == 'e') && 174*** unix/configure.in.orig Fri Jan 24 17:29:52 1997 175--- unix/configure.in Sun Jan 26 19:37:22 1997 176*************** 177*** 370,375 **** 178--- 370,376 ---- 179 AC_TYPE_PID_T 180 AC_TYPE_SIZE_T 181 AC_TYPE_UID_T 182+ AC_C_BIGENDIAN 183 184 #-------------------------------------------------------------------- 185 # If a system doesn't have an opendir function (man, that's old!) 186*** unix/configure.orig Fri Jan 24 17:29:51 1997 187--- unix/configure Sun Jan 26 19:38:42 1997 188*************** 189*** 1,7 **** 190 #! /bin/sh 191 192 # Guess values for system-dependent variables and create Makefiles. 193! # Generated automatically using autoconf version 2.4 194 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 195 # 196 # This configure script is free software; the Free Software Foundation 197--- 1,7 ---- 198 #! /bin/sh 199 200 # Guess values for system-dependent variables and create Makefiles. 201! # Generated automatically using autoconf version 2.4.2 202 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 203 # 204 # This configure script is free software; the Free Software Foundation 205*************** 206*** 39,44 **** 207--- 39,56 ---- 208 verbose= 209 x_includes=NONE 210 x_libraries=NONE 211+ bindir='${exec_prefix}/bin' 212+ sbindir='${exec_prefix}/sbin' 213+ libexecdir='${exec_prefix}/libexec' 214+ datadir='${prefix}/share' 215+ sysconfdir='${prefix}/etc' 216+ sharedstatedir='${prefix}/com' 217+ localstatedir='${prefix}/var' 218+ libdir='${exec_prefix}/lib' 219+ includedir='${prefix}/include' 220+ oldincludedir='/usr/include' 221+ infodir='${prefix}/info' 222+ mandir='${prefix}/man' 223 224 # Initialize some other variables. 225 subdirs= 226*************** 227*** 63,71 **** 228 229 case "$ac_option" in 230 231! -build | --build | --buil | --bui | --bu | --b) 232 ac_prev=build ;; 233! -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) 234 build="$ac_optarg" ;; 235 236 -cache-file | --cache-file | --cache-fil | --cache-fi \ 237--- 75,88 ---- 238 239 case "$ac_option" in 240 241! -bindir | --bindir | --bindi | --bind | --bin | --bi) 242! ac_prev=bindir ;; 243! -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 244! bindir="$ac_optarg" ;; 245! 246! -build | --build | --buil | --bui | --bu) 247 ac_prev=build ;; 248! -build=* | --build=* | --buil=* | --bui=* | --bu=*) 249 build="$ac_optarg" ;; 250 251 -cache-file | --cache-file | --cache-fil | --cache-fi \ 252*************** 253*** 75,80 **** 254--- 92,103 ---- 255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 256 cache_file="$ac_optarg" ;; 257 258+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 259+ ac_prev=datadir ;; 260+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 261+ | --da=*) 262+ datadir="$ac_optarg" ;; 263+ 264 -disable-* | --disable-*) 265 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 266 # Reject names that are not valid shell variable names. 267*************** 268*** 125,136 **** 269 Directory and file names: 270 --prefix=PREFIX install architecture-independent files in PREFIX 271 [$ac_default_prefix] 272! --exec-prefix=PREFIX install architecture-dependent files in PREFIX 273 [same as prefix] 274 --srcdir=DIR find the sources in DIR [configure dir or ..] 275 --program-prefix=PREFIX prepend PREFIX to installed program names 276 --program-suffix=SUFFIX append SUFFIX to installed program names 277 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 278 Host type: 279 --build=BUILD configure for building on BUILD [BUILD=HOST] 280 --host=HOST configure for HOST [guessed] 281--- 148,173 ---- 282 Directory and file names: 283 --prefix=PREFIX install architecture-independent files in PREFIX 284 [$ac_default_prefix] 285! --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 286 [same as prefix] 287+ --bindir=DIR user executables in DIR [EPREFIX/bin] 288+ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 289+ --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 290+ --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] 291+ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 292+ --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] 293+ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 294+ --libdir=DIR object code libraries in DIR [EPREFIX/lib] 295+ --includedir=DIR C header files in DIR [PREFIX/include] 296+ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 297+ --infodir=DIR info documentation in DIR [PREFIX/info] 298+ --mandir=DIR man documentation in DIR [PREFIX/man] 299 --srcdir=DIR find the sources in DIR [configure dir or ..] 300 --program-prefix=PREFIX prepend PREFIX to installed program names 301 --program-suffix=SUFFIX append SUFFIX to installed program names 302 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 303+ EOF 304+ cat << EOF 305 Host type: 306 --build=BUILD configure for building on BUILD [BUILD=HOST] 307 --host=HOST configure for HOST [guessed] 308*************** 309*** 151,156 **** 310--- 188,231 ---- 311 -host=* | --host=* | --hos=* | --ho=*) 312 host="$ac_optarg" ;; 313 314+ -includedir | --includedir | --includedi | --included | --include \ 315+ | --includ | --inclu | --incl | --inc) 316+ ac_prev=includedir ;; 317+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 318+ | --includ=* | --inclu=* | --incl=* | --inc=*) 319+ includedir="$ac_optarg" ;; 320+ 321+ -infodir | --infodir | --infodi | --infod | --info | --inf) 322+ ac_prev=infodir ;; 323+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 324+ infodir="$ac_optarg" ;; 325+ 326+ -libdir | --libdir | --libdi | --libd) 327+ ac_prev=libdir ;; 328+ -libdir=* | --libdir=* | --libdi=* | --libd=*) 329+ libdir="$ac_optarg" ;; 330+ 331+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 332+ | --libexe | --libex | --libe) 333+ ac_prev=libexecdir ;; 334+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 335+ | --libexe=* | --libex=* | --libe=*) 336+ libexecdir="$ac_optarg" ;; 337+ 338+ -localstatedir | --localstatedir | --localstatedi | --localstated \ 339+ | --localstate | --localstat | --localsta | --localst \ 340+ | --locals | --local | --loca | --loc | --lo) 341+ ac_prev=localstatedir ;; 342+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 343+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 344+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 345+ localstatedir="$ac_optarg" ;; 346+ 347+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 348+ ac_prev=mandir ;; 349+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 350+ mandir="$ac_optarg" ;; 351+ 352 -nfp | --nfp | --nf) 353 # Obsolete; use --without-fp. 354 with_fp=no ;; 355*************** 356*** 163,168 **** 357--- 238,252 ---- 358 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 359 no_recursion=yes ;; 360 361+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 362+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 363+ | --oldin | --oldi | --old | --ol | --o) 364+ ac_prev=oldincludedir ;; 365+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 366+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 367+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 368+ oldincludedir="$ac_optarg" ;; 369+ 370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 371 ac_prev=prefix ;; 372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 373*************** 374*** 203,208 **** 375--- 287,309 ---- 376 | -silent | --silent | --silen | --sile | --sil) 377 silent=yes ;; 378 379+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 380+ ac_prev=sbindir ;; 381+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 382+ | --sbi=* | --sb=*) 383+ sbindir="$ac_optarg" ;; 384+ 385+ -sharedstatedir | --sharedstatedir | --sharedstatedi \ 386+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 387+ | --sharedst | --shareds | --shared | --share | --shar \ 388+ | --sha | --sh) 389+ ac_prev=sharedstatedir ;; 390+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 391+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 392+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 393+ | --sha=* | --sh=*) 394+ sharedstatedir="$ac_optarg" ;; 395+ 396 -site | --site | --sit) 397 ac_prev=site ;; 398 -site=* | --site=* | --sit=*) 399*************** 400*** 213,218 **** 401--- 314,326 ---- 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 403 srcdir="$ac_optarg" ;; 404 405+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 406+ | --syscon | --sysco | --sysc | --sys | --sy) 407+ ac_prev=sysconfdir ;; 408+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 409+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 410+ sysconfdir="$ac_optarg" ;; 411+ 412 -target | --target | --targe | --targ | --tar | --ta | --t) 413 ac_prev=target ;; 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 415*************** 416*** 222,228 **** 417 verbose=yes ;; 418 419 -version | --version | --versio | --versi | --vers) 420! echo "configure generated by autoconf version 2.4" 421 exit 0 ;; 422 423 -with-* | --with-*) 424--- 330,336 ---- 425 verbose=yes ;; 426 427 -version | --version | --versio | --versi | --vers) 428! echo "configure generated by autoconf version 2.4.2" 429 exit 0 ;; 430 431 -with-* | --with-*) 432*************** 433*** 387,395 **** 434 435 ac_ext=c 436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 437! ac_cpp='$CPP $CPPFLAGS' 438! ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 439! ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 440 441 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 442 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 443--- 495,506 ---- 444 445 ac_ext=c 446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 447! ac_cpp='echo $CPP $CPPFLAGS 1>&5; 448! $CPP $CPPFLAGS' 449! ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5; 450! ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' 451! ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5; 452! ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' 453 454 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 455 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 456*************** 457*** 430,436 **** 458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 459 else 460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 461! for ac_dir in $PATH; do 462 test -z "$ac_dir" && ac_dir=. 463 if test -f $ac_dir/$ac_word; then 464 ac_cv_prog_RANLIB="ranlib" 465--- 541,547 ---- 466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 467 else 468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 469! for ac_dir in :; do 470 test -z "$ac_dir" && ac_dir=. 471 if test -f $ac_dir/$ac_word; then 472 ac_cv_prog_RANLIB="ranlib" 473*************** 474*** 449,456 **** 475 fi 476 477 # Check whether --enable-gcc or --disable-gcc was given. 478! enableval="$enable_gcc" 479! if test -n "$enableval"; then 480 tcl_ok=$enableval 481 else 482 tcl_ok=no 483--- 560,567 ---- 484 fi 485 486 # Check whether --enable-gcc or --disable-gcc was given. 487! if test "${enable_gcc+set}" = set; then 488! enableval="$enable_gcc" 489 tcl_ok=$enableval 490 else 491 tcl_ok=no 492*************** 493*** 467,473 **** 494 ac_cv_prog_CC="$CC" # Let the user override the test. 495 else 496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 497! for ac_dir in $PATH; do 498 test -z "$ac_dir" && ac_dir=. 499 if test -f $ac_dir/$ac_word; then 500 ac_cv_prog_CC="gcc" 501--- 578,584 ---- 502 ac_cv_prog_CC="$CC" # Let the user override the test. 503 else 504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 505! for ac_dir in cc; do 506 test -z "$ac_dir" && ac_dir=. 507 if test -f $ac_dir/$ac_word; then 508 ac_cv_prog_CC="gcc" 509*************** 510*** 501,506 **** 511--- 612,618 ---- 512 ac_cv_prog_gcc=no 513 fi 514 fi 515+ 516 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 517 if test $ac_cv_prog_gcc = yes; then 518 GCC=yes 519*************** 520*** 518,524 **** 521 rm -f conftest* 522 523 fi 524! echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 525 if test $ac_cv_prog_gcc_g = yes; then 526 CFLAGS="-g -O" 527 else 528--- 630,637 ---- 529 rm -f conftest* 530 531 fi 532! 533! echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 534 if test $ac_cv_prog_gcc_g = yes; then 535 CFLAGS="-g -O" 536 else 537*************** 538*** 543,549 **** 539 ac_cv_c_cross=yes 540 else 541 cat > conftest.$ac_ext <<EOF 542! #line 547 "configure" 543 #include "confdefs.h" 544 main(){return(0);} 545 EOF 546--- 656,662 ---- 547 ac_cv_c_cross=yes 548 else 549 cat > conftest.$ac_ext <<EOF 550! #line 660 "configure" 551 #include "confdefs.h" 552 main(){return(0);} 553 EOF 554*************** 555*** 556,563 **** 556 fi 557 rm -fr conftest* 558 fi 559! cross_compiling=$ac_cv_c_cross 560 echo "$ac_t""$ac_cv_c_cross" 1>&6 561 562 563 #-------------------------------------------------------------------- 564--- 669,677 ---- 565 fi 566 rm -fr conftest* 567 fi 568! 569 echo "$ac_t""$ac_cv_c_cross" 1>&6 570+ cross_compiling=$ac_cv_c_cross 571 572 573 #-------------------------------------------------------------------- 574*************** 575*** 572,578 **** 576 echo $ac_n "(cached) $ac_c" 1>&6 577 else 578 cat > conftest.$ac_ext <<EOF 579! #line 576 "configure" 580 #include "confdefs.h" 581 /* System header to define __stub macros and hopefully few prototypes, 582 which can conflict with char $ac_func(); below. */ 583--- 686,692 ---- 584 echo $ac_n "(cached) $ac_c" 1>&6 585 else 586 cat > conftest.$ac_ext <<EOF 587! #line 690 "configure" 588 #include "confdefs.h" 589 /* System header to define __stub macros and hopefully few prototypes, 590 which can conflict with char $ac_func(); below. */ 591*************** 592*** 621,627 **** 593 echo $ac_n "(cached) $ac_c" 1>&6 594 else 595 cat > conftest.$ac_ext <<EOF 596! #line 625 "configure" 597 #include "confdefs.h" 598 /* System header to define __stub macros and hopefully few prototypes, 599 which can conflict with char $ac_func(); below. */ 600--- 735,741 ---- 601 echo $ac_n "(cached) $ac_c" 1>&6 602 else 603 cat > conftest.$ac_ext <<EOF 604! #line 739 "configure" 605 #include "confdefs.h" 606 /* System header to define __stub macros and hopefully few prototypes, 607 which can conflict with char $ac_func(); below. */ 608*************** 609*** 668,674 **** 610 echo $ac_n "(cached) $ac_c" 1>&6 611 else 612 cat > conftest.$ac_ext <<EOF 613! #line 672 "configure" 614 #include "confdefs.h" 615 /* System header to define __stub macros and hopefully few prototypes, 616 which can conflict with char strerror(); below. */ 617--- 782,788 ---- 618 echo $ac_n "(cached) $ac_c" 1>&6 619 else 620 cat > conftest.$ac_ext <<EOF 621! #line 786 "configure" 622 #include "confdefs.h" 623 /* System header to define __stub macros and hopefully few prototypes, 624 which can conflict with char strerror(); below. */ 625*************** 626*** 716,722 **** 627 echo $ac_n "(cached) $ac_c" 1>&6 628 else 629 cat > conftest.$ac_ext <<EOF 630! #line 720 "configure" 631 #include "confdefs.h" 632 /* System header to define __stub macros and hopefully few prototypes, 633 which can conflict with char getwd(); below. */ 634--- 830,836 ---- 635 echo $ac_n "(cached) $ac_c" 1>&6 636 else 637 cat > conftest.$ac_ext <<EOF 638! #line 834 "configure" 639 #include "confdefs.h" 640 /* System header to define __stub macros and hopefully few prototypes, 641 which can conflict with char getwd(); below. */ 642*************** 643*** 764,770 **** 644 echo $ac_n "(cached) $ac_c" 1>&6 645 else 646 cat > conftest.$ac_ext <<EOF 647! #line 768 "configure" 648 #include "confdefs.h" 649 /* System header to define __stub macros and hopefully few prototypes, 650 which can conflict with char wait3(); below. */ 651--- 878,884 ---- 652 echo $ac_n "(cached) $ac_c" 1>&6 653 else 654 cat > conftest.$ac_ext <<EOF 655! #line 882 "configure" 656 #include "confdefs.h" 657 /* System header to define __stub macros and hopefully few prototypes, 658 which can conflict with char wait3(); below. */ 659*************** 660*** 812,818 **** 661 echo $ac_n "(cached) $ac_c" 1>&6 662 else 663 cat > conftest.$ac_ext <<EOF 664! #line 816 "configure" 665 #include "confdefs.h" 666 /* System header to define __stub macros and hopefully few prototypes, 667 which can conflict with char uname(); below. */ 668--- 926,932 ---- 669 echo $ac_n "(cached) $ac_c" 1>&6 670 else 671 cat > conftest.$ac_ext <<EOF 672! #line 930 "configure" 673 #include "confdefs.h" 674 /* System header to define __stub macros and hopefully few prototypes, 675 which can conflict with char uname(); below. */ 676*************** 677*** 868,874 **** 678 echo $ac_n "(cached) $ac_c" 1>&6 679 else 680 cat > conftest.$ac_ext <<EOF 681! #line 872 "configure" 682 #include "confdefs.h" 683 /* System header to define __stub macros and hopefully few prototypes, 684 which can conflict with char sin(); below. */ 685--- 982,988 ---- 686 echo $ac_n "(cached) $ac_c" 1>&6 687 else 688 cat > conftest.$ac_ext <<EOF 689! #line 986 "configure" 690 #include "confdefs.h" 691 /* System header to define __stub macros and hopefully few prototypes, 692 which can conflict with char sin(); below. */ 693*************** 694*** 909,921 **** 695 fi 696 697 echo $ac_n "checking for -lieee""... $ac_c" 1>&6 698! if eval "test \"`echo '$''{'ac_cv_lib_ieee'+set}'`\" = set"; then 699 echo $ac_n "(cached) $ac_c" 1>&6 700 else 701 ac_save_LIBS="$LIBS" 702 LIBS="-lieee $LIBS" 703 cat > conftest.$ac_ext <<EOF 704! #line 919 "configure" 705 #include "confdefs.h" 706 707 int main() { return 0; } 708--- 1023,1036 ---- 709 fi 710 711 echo $ac_n "checking for -lieee""... $ac_c" 1>&6 712! ac_lib_var=`echo ieee | tr '+./' 'p__'` 713! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 714 echo $ac_n "(cached) $ac_c" 1>&6 715 else 716 ac_save_LIBS="$LIBS" 717 LIBS="-lieee $LIBS" 718 cat > conftest.$ac_ext <<EOF 719! #line 1034 "configure" 720 #include "confdefs.h" 721 722 int main() { return 0; } 723*************** 724*** 925,940 **** 725 EOF 726 if eval $ac_link; then 727 rm -rf conftest* 728! eval "ac_cv_lib_ieee=yes" 729 else 730 rm -rf conftest* 731! eval "ac_cv_lib_ieee=no" 732 fi 733 rm -f conftest* 734 LIBS="$ac_save_LIBS" 735 736 fi 737! if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then 738 echo "$ac_t""yes" 1>&6 739 MATH_LIBS="-lieee $MATH_LIBS" 740 else 741--- 1040,1055 ---- 742 EOF 743 if eval $ac_link; then 744 rm -rf conftest* 745! eval "ac_cv_lib_$ac_lib_var=yes" 746 else 747 rm -rf conftest* 748! eval "ac_cv_lib_$ac_lib_var=no" 749 fi 750 rm -f conftest* 751 LIBS="$ac_save_LIBS" 752 753 fi 754! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 755 echo "$ac_t""yes" 1>&6 756 MATH_LIBS="-lieee $MATH_LIBS" 757 else 758*************** 759*** 952,964 **** 760 libbsd=no 761 if test "`uname -s`" = "AIX" ; then 762 echo $ac_n "checking for -lbsd""... $ac_c" 1>&6 763! if eval "test \"`echo '$''{'ac_cv_lib_bsd'+set}'`\" = set"; then 764 echo $ac_n "(cached) $ac_c" 1>&6 765 else 766 ac_save_LIBS="$LIBS" 767 LIBS="-lbsd $LIBS" 768 cat > conftest.$ac_ext <<EOF 769! #line 962 "configure" 770 #include "confdefs.h" 771 772 int main() { return 0; } 773--- 1067,1080 ---- 774 libbsd=no 775 if test "`uname -s`" = "AIX" ; then 776 echo $ac_n "checking for -lbsd""... $ac_c" 1>&6 777! ac_lib_var=`echo bsd | tr '+./' 'p__'` 778! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 779 echo $ac_n "(cached) $ac_c" 1>&6 780 else 781 ac_save_LIBS="$LIBS" 782 LIBS="-lbsd $LIBS" 783 cat > conftest.$ac_ext <<EOF 784! #line 1078 "configure" 785 #include "confdefs.h" 786 787 int main() { return 0; } 788*************** 789*** 968,983 **** 790 EOF 791 if eval $ac_link; then 792 rm -rf conftest* 793! eval "ac_cv_lib_bsd=yes" 794 else 795 rm -rf conftest* 796! eval "ac_cv_lib_bsd=no" 797 fi 798 rm -f conftest* 799 LIBS="$ac_save_LIBS" 800 801 fi 802! if eval "test \"`echo '$ac_cv_lib_'bsd`\" = yes"; then 803 echo "$ac_t""yes" 1>&6 804 libbsd=yes 805 else 806--- 1084,1099 ---- 807 EOF 808 if eval $ac_link; then 809 rm -rf conftest* 810! eval "ac_cv_lib_$ac_lib_var=yes" 811 else 812 rm -rf conftest* 813! eval "ac_cv_lib_$ac_lib_var=no" 814 fi 815 rm -f conftest* 816 LIBS="$ac_save_LIBS" 817 818 fi 819! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 820 echo "$ac_t""yes" 1>&6 821 libbsd=yes 822 else 823*************** 824*** 1000,1006 **** 825 826 echo $ac_n "checking dirent.h""... $ac_c" 1>&6 827 cat > conftest.$ac_ext <<EOF 828! #line 1004 "configure" 829 #include "confdefs.h" 830 #include <sys/types.h> 831 #include <dirent.h> 832--- 1116,1122 ---- 833 834 echo $ac_n "checking dirent.h""... $ac_c" 1>&6 835 cat > conftest.$ac_ext <<EOF 836! #line 1120 "configure" 837 #include "confdefs.h" 838 #include <sys/types.h> 839 #include <dirent.h> 840*************** 841*** 1058,1064 **** 842 # On the NeXT, cc -E runs the code through the compiler's parser, 843 # not just through cpp. 844 cat > conftest.$ac_ext <<EOF 845! #line 1062 "configure" 846 #include "confdefs.h" 847 #include <assert.h> 848 Syntax Error 849--- 1174,1180 ---- 850 # On the NeXT, cc -E runs the code through the compiler's parser, 851 # not just through cpp. 852 cat > conftest.$ac_ext <<EOF 853! #line 1178 "configure" 854 #include "confdefs.h" 855 #include <assert.h> 856 Syntax Error 857*************** 858*** 1072,1078 **** 859 rm -rf conftest* 860 CPP="${CC-cc} -E -traditional-cpp" 861 cat > conftest.$ac_ext <<EOF 862! #line 1076 "configure" 863 #include "confdefs.h" 864 #include <assert.h> 865 Syntax Error 866--- 1188,1194 ---- 867 rm -rf conftest* 868 CPP="${CC-cc} -E -traditional-cpp" 869 cat > conftest.$ac_ext <<EOF 870! #line 1192 "configure" 871 #include "confdefs.h" 872 #include <assert.h> 873 Syntax Error 874*************** 875*** 1103,1109 **** 876 echo $ac_n "(cached) $ac_c" 1>&6 877 else 878 cat > conftest.$ac_ext <<EOF 879! #line 1107 "configure" 880 #include "confdefs.h" 881 #include <errno.h> 882 EOF 883--- 1219,1225 ---- 884 echo $ac_n "(cached) $ac_c" 1>&6 885 else 886 cat > conftest.$ac_ext <<EOF 887! #line 1223 "configure" 888 #include "confdefs.h" 889 #include <errno.h> 890 EOF 891*************** 892*** 1136,1142 **** 893 echo $ac_n "(cached) $ac_c" 1>&6 894 else 895 cat > conftest.$ac_ext <<EOF 896! #line 1140 "configure" 897 #include "confdefs.h" 898 #include <float.h> 899 EOF 900--- 1252,1258 ---- 901 echo $ac_n "(cached) $ac_c" 1>&6 902 else 903 cat > conftest.$ac_ext <<EOF 904! #line 1256 "configure" 905 #include "confdefs.h" 906 #include <float.h> 907 EOF 908*************** 909*** 1169,1175 **** 910 echo $ac_n "(cached) $ac_c" 1>&6 911 else 912 cat > conftest.$ac_ext <<EOF 913! #line 1173 "configure" 914 #include "confdefs.h" 915 #include <limits.h> 916 EOF 917--- 1285,1291 ---- 918 echo $ac_n "(cached) $ac_c" 1>&6 919 else 920 cat > conftest.$ac_ext <<EOF 921! #line 1289 "configure" 922 #include "confdefs.h" 923 #include <limits.h> 924 EOF 925*************** 926*** 1202,1208 **** 927 echo $ac_n "(cached) $ac_c" 1>&6 928 else 929 cat > conftest.$ac_ext <<EOF 930! #line 1206 "configure" 931 #include "confdefs.h" 932 #include <stdlib.h> 933 EOF 934--- 1318,1324 ---- 935 echo $ac_n "(cached) $ac_c" 1>&6 936 else 937 cat > conftest.$ac_ext <<EOF 938! #line 1322 "configure" 939 #include "confdefs.h" 940 #include <stdlib.h> 941 EOF 942*************** 943*** 1227,1233 **** 944 fi 945 946 cat > conftest.$ac_ext <<EOF 947! #line 1231 "configure" 948 #include "confdefs.h" 949 #include <stdlib.h> 950 EOF 951--- 1343,1349 ---- 952 fi 953 954 cat > conftest.$ac_ext <<EOF 955! #line 1347 "configure" 956 #include "confdefs.h" 957 #include <stdlib.h> 958 EOF 959*************** 960*** 1241,1247 **** 961 rm -f conftest* 962 963 cat > conftest.$ac_ext <<EOF 964! #line 1245 "configure" 965 #include "confdefs.h" 966 #include <stdlib.h> 967 EOF 968--- 1357,1363 ---- 969 rm -f conftest* 970 971 cat > conftest.$ac_ext <<EOF 972! #line 1361 "configure" 973 #include "confdefs.h" 974 #include <stdlib.h> 975 EOF 976*************** 977*** 1255,1261 **** 978 rm -f conftest* 979 980 cat > conftest.$ac_ext <<EOF 981! #line 1259 "configure" 982 #include "confdefs.h" 983 #include <stdlib.h> 984 EOF 985--- 1371,1377 ---- 986 rm -f conftest* 987 988 cat > conftest.$ac_ext <<EOF 989! #line 1375 "configure" 990 #include "confdefs.h" 991 #include <stdlib.h> 992 EOF 993*************** 994*** 1280,1286 **** 995 echo $ac_n "(cached) $ac_c" 1>&6 996 else 997 cat > conftest.$ac_ext <<EOF 998! #line 1284 "configure" 999 #include "confdefs.h" 1000 #include <string.h> 1001 EOF 1002--- 1396,1402 ---- 1003 echo $ac_n "(cached) $ac_c" 1>&6 1004 else 1005 cat > conftest.$ac_ext <<EOF 1006! #line 1400 "configure" 1007 #include "confdefs.h" 1008 #include <string.h> 1009 EOF 1010*************** 1011*** 1305,1311 **** 1012 fi 1013 1014 cat > conftest.$ac_ext <<EOF 1015! #line 1309 "configure" 1016 #include "confdefs.h" 1017 #include <string.h> 1018 EOF 1019--- 1421,1427 ---- 1020 fi 1021 1022 cat > conftest.$ac_ext <<EOF 1023! #line 1425 "configure" 1024 #include "confdefs.h" 1025 #include <string.h> 1026 EOF 1027*************** 1028*** 1319,1325 **** 1029 rm -f conftest* 1030 1031 cat > conftest.$ac_ext <<EOF 1032! #line 1323 "configure" 1033 #include "confdefs.h" 1034 #include <string.h> 1035 EOF 1036--- 1435,1441 ---- 1037 rm -f conftest* 1038 1039 cat > conftest.$ac_ext <<EOF 1040! #line 1439 "configure" 1041 #include "confdefs.h" 1042 #include <string.h> 1043 EOF 1044*************** 1045*** 1344,1350 **** 1046 echo $ac_n "(cached) $ac_c" 1>&6 1047 else 1048 cat > conftest.$ac_ext <<EOF 1049! #line 1348 "configure" 1050 #include "confdefs.h" 1051 #include <sys/wait.h> 1052 EOF 1053--- 1460,1466 ---- 1054 echo $ac_n "(cached) $ac_c" 1>&6 1055 else 1056 cat > conftest.$ac_ext <<EOF 1057! #line 1464 "configure" 1058 #include "confdefs.h" 1059 #include <sys/wait.h> 1060 EOF 1061*************** 1062*** 1377,1383 **** 1063 echo $ac_n "(cached) $ac_c" 1>&6 1064 else 1065 cat > conftest.$ac_ext <<EOF 1066! #line 1381 "configure" 1067 #include "confdefs.h" 1068 #include <dlfcn.h> 1069 EOF 1070--- 1493,1499 ---- 1071 echo $ac_n "(cached) $ac_c" 1>&6 1072 else 1073 cat > conftest.$ac_ext <<EOF 1074! #line 1497 "configure" 1075 #include "confdefs.h" 1076 #include <dlfcn.h> 1077 EOF 1078*************** 1079*** 1412,1418 **** 1080 echo $ac_n "(cached) $ac_c" 1>&6 1081 else 1082 cat > conftest.$ac_ext <<EOF 1083! #line 1416 "configure" 1084 #include "confdefs.h" 1085 #include <$ac_hdr> 1086 EOF 1087--- 1528,1534 ---- 1088 echo $ac_n "(cached) $ac_c" 1>&6 1089 else 1090 cat > conftest.$ac_ext <<EOF 1091! #line 1532 "configure" 1092 #include "confdefs.h" 1093 #include <$ac_hdr> 1094 EOF 1095*************** 1096*** 1430,1436 **** 1097 fi 1098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1099 echo "$ac_t""yes" 1>&6 1100! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 1101 cat >> confdefs.h <<EOF 1102 #define $ac_tr_hdr 1 1103 EOF 1104--- 1546,1552 ---- 1105 fi 1106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1107 echo "$ac_t""yes" 1>&6 1108! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'` 1109 cat >> confdefs.h <<EOF 1110 #define $ac_tr_hdr 1 1111 EOF 1112*************** 1113*** 1452,1458 **** 1114 tk_ok=no 1115 else 1116 cat > conftest.$ac_ext <<EOF 1117! #line 1456 "configure" 1118 #include "confdefs.h" 1119 1120 #include <termios.h> 1121--- 1568,1574 ---- 1122 tk_ok=no 1123 else 1124 cat > conftest.$ac_ext <<EOF 1125! #line 1572 "configure" 1126 #include "confdefs.h" 1127 1128 #include <termios.h> 1129*************** 1130*** 1486,1492 **** 1131 tk_ok=no 1132 else 1133 cat > conftest.$ac_ext <<EOF 1134! #line 1490 "configure" 1135 #include "confdefs.h" 1136 1137 #include <termio.h> 1138--- 1602,1608 ---- 1139 tk_ok=no 1140 else 1141 cat > conftest.$ac_ext <<EOF 1142! #line 1606 "configure" 1143 #include "confdefs.h" 1144 1145 #include <termio.h> 1146*************** 1147*** 1519,1525 **** 1148 tk_ok=none 1149 else 1150 cat > conftest.$ac_ext <<EOF 1151! #line 1523 "configure" 1152 #include "confdefs.h" 1153 1154 #include <sgtty.h> 1155--- 1635,1641 ---- 1156 tk_ok=none 1157 else 1158 cat > conftest.$ac_ext <<EOF 1159! #line 1639 "configure" 1160 #include "confdefs.h" 1161 1162 #include <sgtty.h> 1163*************** 1164*** 1565,1571 **** 1165 1166 echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6 1167 cat > conftest.$ac_ext <<EOF 1168! #line 1569 "configure" 1169 #include "confdefs.h" 1170 #include <sys/types.h> 1171 int main() { return 0; } 1172--- 1681,1687 ---- 1173 1174 echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6 1175 cat > conftest.$ac_ext <<EOF 1176! #line 1685 "configure" 1177 #include "confdefs.h" 1178 #include <sys/types.h> 1179 int main() { return 0; } 1180*************** 1181*** 1584,1590 **** 1182 1183 if test $tk_ok = no; then 1184 cat > conftest.$ac_ext <<EOF 1185! #line 1588 "configure" 1186 #include "confdefs.h" 1187 #include <sys/select.h> 1188 EOF 1189--- 1700,1706 ---- 1190 1191 if test $tk_ok = no; then 1192 cat > conftest.$ac_ext <<EOF 1193! #line 1704 "configure" 1194 #include "confdefs.h" 1195 #include <sys/select.h> 1196 EOF 1197*************** 1198*** 1622,1628 **** 1199 echo $ac_n "(cached) $ac_c" 1>&6 1200 else 1201 cat > conftest.$ac_ext <<EOF 1202! #line 1626 "configure" 1203 #include "confdefs.h" 1204 #include <$ac_hdr> 1205 EOF 1206--- 1738,1744 ---- 1207 echo $ac_n "(cached) $ac_c" 1>&6 1208 else 1209 cat > conftest.$ac_ext <<EOF 1210! #line 1742 "configure" 1211 #include "confdefs.h" 1212 #include <$ac_hdr> 1213 EOF 1214*************** 1215*** 1640,1646 **** 1216 fi 1217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1218 echo "$ac_t""yes" 1>&6 1219! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 1220 cat >> confdefs.h <<EOF 1221 #define $ac_tr_hdr 1 1222 EOF 1223--- 1756,1762 ---- 1224 fi 1225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1226 echo "$ac_t""yes" 1>&6 1227! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'` 1228 cat >> confdefs.h <<EOF 1229 #define $ac_tr_hdr 1 1230 EOF 1231*************** 1232*** 1655,1661 **** 1233 echo $ac_n "(cached) $ac_c" 1>&6 1234 else 1235 cat > conftest.$ac_ext <<EOF 1236! #line 1659 "configure" 1237 #include "confdefs.h" 1238 #include <sys/types.h> 1239 #include <sys/time.h> 1240--- 1771,1777 ---- 1241 echo $ac_n "(cached) $ac_c" 1>&6 1242 else 1243 cat > conftest.$ac_ext <<EOF 1244! #line 1775 "configure" 1245 #include "confdefs.h" 1246 #include <sys/types.h> 1247 #include <sys/time.h> 1248*************** 1249*** 1675,1680 **** 1250--- 1791,1797 ---- 1251 rm -f conftest* 1252 1253 fi 1254+ 1255 echo "$ac_t""$ac_cv_header_time" 1>&6 1256 if test $ac_cv_header_time = yes; then 1257 cat >> confdefs.h <<\EOF 1258*************** 1259*** 1688,1694 **** 1260 echo $ac_n "(cached) $ac_c" 1>&6 1261 else 1262 cat > conftest.$ac_ext <<EOF 1263! #line 1692 "configure" 1264 #include "confdefs.h" 1265 #include <sys/types.h> 1266 #include <time.h> 1267--- 1805,1811 ---- 1268 echo $ac_n "(cached) $ac_c" 1>&6 1269 else 1270 cat > conftest.$ac_ext <<EOF 1271! #line 1809 "configure" 1272 #include "confdefs.h" 1273 #include <sys/types.h> 1274 #include <time.h> 1275*************** 1276*** 1707,1712 **** 1277--- 1824,1830 ---- 1278 rm -f conftest* 1279 1280 fi 1281+ 1282 echo "$ac_t""$ac_cv_struct_tm" 1>&6 1283 if test $ac_cv_struct_tm = sys/time.h; then 1284 cat >> confdefs.h <<\EOF 1285*************** 1286*** 1720,1726 **** 1287 echo $ac_n "(cached) $ac_c" 1>&6 1288 else 1289 cat > conftest.$ac_ext <<EOF 1290! #line 1724 "configure" 1291 #include "confdefs.h" 1292 #include <sys/types.h> 1293 #include <$ac_cv_struct_tm> 1294--- 1838,1844 ---- 1295 echo $ac_n "(cached) $ac_c" 1>&6 1296 else 1297 cat > conftest.$ac_ext <<EOF 1298! #line 1842 "configure" 1299 #include "confdefs.h" 1300 #include <sys/types.h> 1301 #include <$ac_cv_struct_tm> 1302*************** 1303*** 1739,1744 **** 1304--- 1857,1863 ---- 1305 rm -f conftest* 1306 1307 fi 1308+ 1309 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 1310 if test "$ac_cv_struct_tm_zone" = yes; then 1311 cat >> confdefs.h <<\EOF 1312*************** 1313*** 1751,1757 **** 1314 echo $ac_n "(cached) $ac_c" 1>&6 1315 else 1316 cat > conftest.$ac_ext <<EOF 1317! #line 1755 "configure" 1318 #include "confdefs.h" 1319 #include <time.h> 1320 #ifndef tzname /* For SGI. */ 1321--- 1870,1876 ---- 1322 echo $ac_n "(cached) $ac_c" 1>&6 1323 else 1324 cat > conftest.$ac_ext <<EOF 1325! #line 1874 "configure" 1326 #include "confdefs.h" 1327 #include <time.h> 1328 #ifndef tzname /* For SGI. */ 1329*************** 1330*** 1772,1778 **** 1331 rm -f conftest* 1332 1333 fi 1334! echo "$ac_t""$ac_cv_var_tzname" 1>&6 1335 if test $ac_cv_var_tzname = yes; then 1336 cat >> confdefs.h <<\EOF 1337 #define HAVE_TZNAME 1 1338--- 1891,1898 ---- 1339 rm -f conftest* 1340 1341 fi 1342! 1343! echo "$ac_t""$ac_cv_var_tzname" 1>&6 1344 if test $ac_cv_var_tzname = yes; then 1345 cat >> confdefs.h <<\EOF 1346 #define HAVE_TZNAME 1 1347*************** 1348*** 1784,1790 **** 1349 1350 echo $ac_n "checking tm_tzadj in struct tm""... $ac_c" 1>&6 1351 cat > conftest.$ac_ext <<EOF 1352! #line 1788 "configure" 1353 #include "confdefs.h" 1354 #include <time.h> 1355 int main() { return 0; } 1356--- 1904,1910 ---- 1357 1358 echo $ac_n "checking tm_tzadj in struct tm""... $ac_c" 1>&6 1359 cat > conftest.$ac_ext <<EOF 1360! #line 1908 "configure" 1361 #include "confdefs.h" 1362 #include <time.h> 1363 int main() { return 0; } 1364*************** 1365*** 1808,1814 **** 1366 1367 echo $ac_n "checking tm_gmtoff in struct tm""... $ac_c" 1>&6 1368 cat > conftest.$ac_ext <<EOF 1369! #line 1812 "configure" 1370 #include "confdefs.h" 1371 #include <time.h> 1372 int main() { return 0; } 1373--- 1928,1934 ---- 1374 1375 echo $ac_n "checking tm_gmtoff in struct tm""... $ac_c" 1>&6 1376 cat > conftest.$ac_ext <<EOF 1377! #line 1932 "configure" 1378 #include "confdefs.h" 1379 #include <time.h> 1380 int main() { return 0; } 1381*************** 1382*** 1837,1843 **** 1383 have_timezone=no 1384 echo $ac_n "checking long timezone variable""... $ac_c" 1>&6 1385 cat > conftest.$ac_ext <<EOF 1386! #line 1841 "configure" 1387 #include "confdefs.h" 1388 #include <time.h> 1389 int main() { return 0; } 1390--- 1957,1963 ---- 1391 have_timezone=no 1392 echo $ac_n "checking long timezone variable""... $ac_c" 1>&6 1393 cat > conftest.$ac_ext <<EOF 1394! #line 1961 "configure" 1395 #include "confdefs.h" 1396 #include <time.h> 1397 int main() { return 0; } 1398*************** 1399*** 1868,1874 **** 1400 if test "$have_timezone" = no; then 1401 echo $ac_n "checking time_t timezone variable""... $ac_c" 1>&6 1402 cat > conftest.$ac_ext <<EOF 1403! #line 1872 "configure" 1404 #include "confdefs.h" 1405 #include <time.h> 1406 int main() { return 0; } 1407--- 1988,1994 ---- 1408 if test "$have_timezone" = no; then 1409 echo $ac_n "checking time_t timezone variable""... $ac_c" 1>&6 1410 cat > conftest.$ac_ext <<EOF 1411! #line 1992 "configure" 1412 #include "confdefs.h" 1413 #include <time.h> 1414 int main() { return 0; } 1415*************** 1416*** 1916,1922 **** 1417 tcl_ok=no 1418 else 1419 cat > conftest.$ac_ext <<EOF 1420! #line 1920 "configure" 1421 #include "confdefs.h" 1422 1423 extern int strstr(); 1424--- 2036,2042 ---- 1425 tcl_ok=no 1426 else 1427 cat > conftest.$ac_ext <<EOF 1428! #line 2040 "configure" 1429 #include "confdefs.h" 1430 1431 extern int strstr(); 1432*************** 1433*** 1952,1958 **** 1434 echo $ac_n "(cached) $ac_c" 1>&6 1435 else 1436 cat > conftest.$ac_ext <<EOF 1437! #line 1956 "configure" 1438 #include "confdefs.h" 1439 /* System header to define __stub macros and hopefully few prototypes, 1440 which can conflict with char strtoul(); below. */ 1441--- 2072,2078 ---- 1442 echo $ac_n "(cached) $ac_c" 1>&6 1443 else 1444 cat > conftest.$ac_ext <<EOF 1445! #line 2076 "configure" 1446 #include "confdefs.h" 1447 /* System header to define __stub macros and hopefully few prototypes, 1448 which can conflict with char strtoul(); below. */ 1449*************** 1450*** 1996,2002 **** 1451 tcl_ok=0 1452 else 1453 cat > conftest.$ac_ext <<EOF 1454! #line 2000 "configure" 1455 #include "confdefs.h" 1456 1457 extern int strtoul(); 1458--- 2116,2122 ---- 1459 tcl_ok=0 1460 else 1461 cat > conftest.$ac_ext <<EOF 1462! #line 2120 "configure" 1463 #include "confdefs.h" 1464 1465 extern int strtoul(); 1466*************** 1467*** 2035,2041 **** 1468 echo $ac_n "(cached) $ac_c" 1>&6 1469 else 1470 cat > conftest.$ac_ext <<EOF 1471! #line 2039 "configure" 1472 #include "confdefs.h" 1473 /* System header to define __stub macros and hopefully few prototypes, 1474 which can conflict with char strtod(); below. */ 1475--- 2155,2161 ---- 1476 echo $ac_n "(cached) $ac_c" 1>&6 1477 else 1478 cat > conftest.$ac_ext <<EOF 1479! #line 2159 "configure" 1480 #include "confdefs.h" 1481 /* System header to define __stub macros and hopefully few prototypes, 1482 which can conflict with char strtod(); below. */ 1483*************** 1484*** 2079,2085 **** 1485 tcl_ok=0 1486 else 1487 cat > conftest.$ac_ext <<EOF 1488! #line 2083 "configure" 1489 #include "confdefs.h" 1490 1491 extern double strtod(); 1492--- 2199,2205 ---- 1493 tcl_ok=0 1494 else 1495 cat > conftest.$ac_ext <<EOF 1496! #line 2203 "configure" 1497 #include "confdefs.h" 1498 1499 extern double strtod(); 1500*************** 1501*** 2120,2126 **** 1502 echo $ac_n "(cached) $ac_c" 1>&6 1503 else 1504 cat > conftest.$ac_ext <<EOF 1505! #line 2124 "configure" 1506 #include "confdefs.h" 1507 /* System header to define __stub macros and hopefully few prototypes, 1508 which can conflict with char strtod(); below. */ 1509--- 2240,2246 ---- 1510 echo $ac_n "(cached) $ac_c" 1>&6 1511 else 1512 cat > conftest.$ac_ext <<EOF 1513! #line 2244 "configure" 1514 #include "confdefs.h" 1515 /* System header to define __stub macros and hopefully few prototypes, 1516 which can conflict with char strtod(); below. */ 1517*************** 1518*** 2166,2172 **** 1519 tcl_ok=0 1520 else 1521 cat > conftest.$ac_ext <<EOF 1522! #line 2170 "configure" 1523 #include "confdefs.h" 1524 1525 extern double strtod(); 1526--- 2286,2292 ---- 1527 tcl_ok=0 1528 else 1529 cat > conftest.$ac_ext <<EOF 1530! #line 2290 "configure" 1531 #include "confdefs.h" 1532 1533 extern double strtod(); 1534*************** 1535*** 2211,2217 **** 1536 echo $ac_n "(cached) $ac_c" 1>&6 1537 else 1538 cat > conftest.$ac_ext <<EOF 1539! #line 2215 "configure" 1540 #include "confdefs.h" 1541 #include <stdlib.h> 1542 #include <stdarg.h> 1543--- 2331,2337 ---- 1544 echo $ac_n "(cached) $ac_c" 1>&6 1545 else 1546 cat > conftest.$ac_ext <<EOF 1547! #line 2335 "configure" 1548 #include "confdefs.h" 1549 #include <stdlib.h> 1550 #include <stdarg.h> 1551*************** 1552*** 2233,2239 **** 1553 if test $ac_cv_header_stdc = yes; then 1554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1555 cat > conftest.$ac_ext <<EOF 1556! #line 2237 "configure" 1557 #include "confdefs.h" 1558 #include <string.h> 1559 EOF 1560--- 2353,2359 ---- 1561 if test $ac_cv_header_stdc = yes; then 1562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1563 cat > conftest.$ac_ext <<EOF 1564! #line 2357 "configure" 1565 #include "confdefs.h" 1566 #include <string.h> 1567 EOF 1568*************** 1569*** 2251,2257 **** 1570 if test $ac_cv_header_stdc = yes; then 1571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1572 cat > conftest.$ac_ext <<EOF 1573! #line 2255 "configure" 1574 #include "confdefs.h" 1575 #include <stdlib.h> 1576 EOF 1577--- 2371,2377 ---- 1578 if test $ac_cv_header_stdc = yes; then 1579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1580 cat > conftest.$ac_ext <<EOF 1581! #line 2375 "configure" 1582 #include "confdefs.h" 1583 #include <stdlib.h> 1584 EOF 1585*************** 1586*** 2272,2278 **** 1587 ac_cv_header_stdc=no 1588 else 1589 cat > conftest.$ac_ext <<EOF 1590! #line 2276 "configure" 1591 #include "confdefs.h" 1592 #include <ctype.h> 1593 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1594--- 2392,2398 ---- 1595 ac_cv_header_stdc=no 1596 else 1597 cat > conftest.$ac_ext <<EOF 1598! #line 2396 "configure" 1599 #include "confdefs.h" 1600 #include <ctype.h> 1601 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1602*************** 1603*** 2293,2298 **** 1604--- 2413,2419 ---- 1605 rm -fr conftest* 1606 fi 1607 fi 1608+ 1609 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1610 if test $ac_cv_header_stdc = yes; then 1611 cat >> confdefs.h <<\EOF 1612*************** 1613*** 2306,2312 **** 1614 echo $ac_n "(cached) $ac_c" 1>&6 1615 else 1616 cat > conftest.$ac_ext <<EOF 1617! #line 2310 "configure" 1618 #include "confdefs.h" 1619 #include <sys/types.h> 1620 #if STDC_HEADERS 1621--- 2427,2433 ---- 1622 echo $ac_n "(cached) $ac_c" 1>&6 1623 else 1624 cat > conftest.$ac_ext <<EOF 1625! #line 2431 "configure" 1626 #include "confdefs.h" 1627 #include <sys/types.h> 1628 #if STDC_HEADERS 1629*************** 1630*** 2337,2343 **** 1631 echo $ac_n "(cached) $ac_c" 1>&6 1632 else 1633 cat > conftest.$ac_ext <<EOF 1634! #line 2341 "configure" 1635 #include "confdefs.h" 1636 #include <sys/types.h> 1637 #if STDC_HEADERS 1638--- 2458,2464 ---- 1639 echo $ac_n "(cached) $ac_c" 1>&6 1640 else 1641 cat > conftest.$ac_ext <<EOF 1642! #line 2462 "configure" 1643 #include "confdefs.h" 1644 #include <sys/types.h> 1645 #if STDC_HEADERS 1646*************** 1647*** 2368,2374 **** 1648 echo $ac_n "(cached) $ac_c" 1>&6 1649 else 1650 cat > conftest.$ac_ext <<EOF 1651! #line 2372 "configure" 1652 #include "confdefs.h" 1653 #include <sys/types.h> 1654 #if STDC_HEADERS 1655--- 2489,2495 ---- 1656 echo $ac_n "(cached) $ac_c" 1>&6 1657 else 1658 cat > conftest.$ac_ext <<EOF 1659! #line 2493 "configure" 1660 #include "confdefs.h" 1661 #include <sys/types.h> 1662 #if STDC_HEADERS 1663*************** 1664*** 2399,2405 **** 1665 echo $ac_n "(cached) $ac_c" 1>&6 1666 else 1667 cat > conftest.$ac_ext <<EOF 1668! #line 2403 "configure" 1669 #include "confdefs.h" 1670 #include <sys/types.h> 1671 EOF 1672--- 2520,2526 ---- 1673 echo $ac_n "(cached) $ac_c" 1>&6 1674 else 1675 cat > conftest.$ac_ext <<EOF 1676! #line 2524 "configure" 1677 #include "confdefs.h" 1678 #include <sys/types.h> 1679 EOF 1680*************** 1681*** 2414,2419 **** 1682--- 2535,2541 ---- 1683 rm -f conftest* 1684 1685 fi 1686+ 1687 echo "$ac_t""$ac_cv_type_uid_t" 1>&6 1688 if test $ac_cv_type_uid_t = no; then 1689 cat >> confdefs.h <<\EOF 1690*************** 1691*** 2426,2431 **** 1692--- 2548,2637 ---- 1693 1694 fi 1695 1696+ echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 1697+ if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 1698+ echo $ac_n "(cached) $ac_c" 1>&6 1699+ else 1700+ ac_cv_c_bigendian=unknown 1701+ # See if sys/param.h defines the BYTE_ORDER macro. 1702+ cat > conftest.$ac_ext <<EOF 1703+ #line 2559 "configure" 1704+ #include "confdefs.h" 1705+ #include <sys/types.h> 1706+ #include <sys/param.h> 1707+ int main() { return 0; } 1708+ int t() { 1709+ 1710+ #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 1711+ bogus endian macros 1712+ #endif 1713+ ; return 0; } 1714+ EOF 1715+ if eval $ac_compile; then 1716+ rm -rf conftest* 1717+ # It does; now see whether it defined to BIG_ENDIAN or not. 1718+ cat > conftest.$ac_ext <<EOF 1719+ #line 2575 "configure" 1720+ #include "confdefs.h" 1721+ #include <sys/types.h> 1722+ #include <sys/param.h> 1723+ int main() { return 0; } 1724+ int t() { 1725+ 1726+ #if BYTE_ORDER != BIG_ENDIAN 1727+ not big endian 1728+ #endif 1729+ ; return 0; } 1730+ EOF 1731+ if eval $ac_compile; then 1732+ rm -rf conftest* 1733+ ac_cv_c_bigendian=yes 1734+ else 1735+ rm -rf conftest* 1736+ ac_cv_c_bigendian=no 1737+ fi 1738+ rm -f conftest* 1739+ 1740+ fi 1741+ rm -f conftest* 1742+ 1743+ if test $ac_cv_c_bigendian = unknown; then 1744+ if test "$cross_compiling" = yes; then 1745+ { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1746+ else 1747+ cat > conftest.$ac_ext <<EOF 1748+ #line 2604 "configure" 1749+ #include "confdefs.h" 1750+ main () { 1751+ /* Are we little or big endian? From Harbison&Steele. */ 1752+ union 1753+ { 1754+ long l; 1755+ char c[sizeof (long)]; 1756+ } u; 1757+ u.l = 1; 1758+ exit (u.c[sizeof (long) - 1] == 1); 1759+ } 1760+ EOF 1761+ eval $ac_link 1762+ if test -s conftest && (./conftest; exit) 2>/dev/null; then 1763+ ac_cv_c_bigendian=no 1764+ else 1765+ ac_cv_c_bigendian=yes 1766+ fi 1767+ fi 1768+ rm -fr conftest* 1769+ fi 1770+ fi 1771+ 1772+ echo "$ac_t""$ac_cv_c_bigendian" 1>&6 1773+ if test $ac_cv_c_bigendian = yes; then 1774+ cat >> confdefs.h <<\EOF 1775+ #define WORDS_BIGENDIAN 1 1776+ EOF 1777+ 1778+ fi 1779+ 1780 1781 #-------------------------------------------------------------------- 1782 # If a system doesn't have an opendir function (man, that's old!) 1783*************** 1784*** 2439,2445 **** 1785 echo $ac_n "(cached) $ac_c" 1>&6 1786 else 1787 cat > conftest.$ac_ext <<EOF 1788! #line 2443 "configure" 1789 #include "confdefs.h" 1790 /* System header to define __stub macros and hopefully few prototypes, 1791 which can conflict with char opendir(); below. */ 1792--- 2645,2651 ---- 1793 echo $ac_n "(cached) $ac_c" 1>&6 1794 else 1795 cat > conftest.$ac_ext <<EOF 1796! #line 2649 "configure" 1797 #include "confdefs.h" 1798 /* System header to define __stub macros and hopefully few prototypes, 1799 which can conflict with char opendir(); below. */ 1800*************** 1801*** 2493,2499 **** 1802 1803 echo $ac_n "checking union wait""... $ac_c" 1>&6 1804 cat > conftest.$ac_ext <<EOF 1805! #line 2497 "configure" 1806 #include "confdefs.h" 1807 #include <sys/types.h> 1808 #include <sys/wait.h> 1809--- 2699,2705 ---- 1810 1811 echo $ac_n "checking union wait""... $ac_c" 1>&6 1812 cat > conftest.$ac_ext <<EOF 1813! #line 2703 "configure" 1814 #include "confdefs.h" 1815 #include <sys/types.h> 1816 #include <sys/wait.h> 1817*************** 1818*** 2530,2536 **** 1819 1820 echo $ac_n "checking matherr support""... $ac_c" 1>&6 1821 cat > conftest.$ac_ext <<EOF 1822! #line 2534 "configure" 1823 #include "confdefs.h" 1824 #include <math.h> 1825 int main() { return 0; } 1826--- 2736,2742 ---- 1827 1828 echo $ac_n "checking matherr support""... $ac_c" 1>&6 1829 cat > conftest.$ac_ext <<EOF 1830! #line 2740 "configure" 1831 #include "confdefs.h" 1832 #include <math.h> 1833 int main() { return 0; } 1834*************** 1835*** 2572,2578 **** 1836 echo $ac_n "(cached) $ac_c" 1>&6 1837 else 1838 cat > conftest.$ac_ext <<EOF 1839! #line 2576 "configure" 1840 #include "confdefs.h" 1841 /* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char vfork(); below. */ 1843--- 2778,2784 ---- 1844 echo $ac_n "(cached) $ac_c" 1>&6 1845 else 1846 cat > conftest.$ac_ext <<EOF 1847! #line 2782 "configure" 1848 #include "confdefs.h" 1849 /* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char vfork(); below. */ 1851*************** 1852*** 2618,2624 **** 1853 tcl_ok=0 1854 else 1855 cat > conftest.$ac_ext <<EOF 1856! #line 2622 "configure" 1857 #include "confdefs.h" 1858 1859 #include <stdio.h> 1860--- 2824,2830 ---- 1861 tcl_ok=0 1862 else 1863 cat > conftest.$ac_ext <<EOF 1864! #line 2828 "configure" 1865 #include "confdefs.h" 1866 1867 #include <stdio.h> 1868*************** 1869*** 2679,2685 **** 1870 echo $ac_n "(cached) $ac_c" 1>&6 1871 else 1872 cat > conftest.$ac_ext <<EOF 1873! #line 2683 "configure" 1874 #include "confdefs.h" 1875 /* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char strncasecmp(); below. */ 1877--- 2885,2891 ---- 1878 echo $ac_n "(cached) $ac_c" 1>&6 1879 else 1880 cat > conftest.$ac_ext <<EOF 1881! #line 2889 "configure" 1882 #include "confdefs.h" 1883 /* System header to define __stub macros and hopefully few prototypes, 1884 which can conflict with char strncasecmp(); below. */ 1885*************** 1886*** 2721,2733 **** 1887 1888 if test "$tcl_ok" = 0; then 1889 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 1890! if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then 1891 echo $ac_n "(cached) $ac_c" 1>&6 1892 else 1893 ac_save_LIBS="$LIBS" 1894 LIBS="-lsocket $LIBS" 1895 cat > conftest.$ac_ext <<EOF 1896! #line 2731 "configure" 1897 #include "confdefs.h" 1898 1899 int main() { return 0; } 1900--- 2927,2940 ---- 1901 1902 if test "$tcl_ok" = 0; then 1903 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 1904! ac_lib_var=`echo socket | tr '+./' 'p__'` 1905! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1906 echo $ac_n "(cached) $ac_c" 1>&6 1907 else 1908 ac_save_LIBS="$LIBS" 1909 LIBS="-lsocket $LIBS" 1910 cat > conftest.$ac_ext <<EOF 1911! #line 2938 "configure" 1912 #include "confdefs.h" 1913 1914 int main() { return 0; } 1915*************** 1916*** 2737,2752 **** 1917 EOF 1918 if eval $ac_link; then 1919 rm -rf conftest* 1920! eval "ac_cv_lib_socket=yes" 1921 else 1922 rm -rf conftest* 1923! eval "ac_cv_lib_socket=no" 1924 fi 1925 rm -f conftest* 1926 LIBS="$ac_save_LIBS" 1927 1928 fi 1929! if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then 1930 echo "$ac_t""yes" 1>&6 1931 tcl_ok=1 1932 else 1933--- 2944,2959 ---- 1934 EOF 1935 if eval $ac_link; then 1936 rm -rf conftest* 1937! eval "ac_cv_lib_$ac_lib_var=yes" 1938 else 1939 rm -rf conftest* 1940! eval "ac_cv_lib_$ac_lib_var=no" 1941 fi 1942 rm -f conftest* 1943 LIBS="$ac_save_LIBS" 1944 1945 fi 1946! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1947 echo "$ac_t""yes" 1>&6 1948 tcl_ok=1 1949 else 1950*************** 1951*** 2757,2769 **** 1952 fi 1953 if test "$tcl_ok" = 0; then 1954 echo $ac_n "checking for -linet""... $ac_c" 1>&6 1955! if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then 1956 echo $ac_n "(cached) $ac_c" 1>&6 1957 else 1958 ac_save_LIBS="$LIBS" 1959 LIBS="-linet $LIBS" 1960 cat > conftest.$ac_ext <<EOF 1961! #line 2767 "configure" 1962 #include "confdefs.h" 1963 1964 int main() { return 0; } 1965--- 2964,2977 ---- 1966 fi 1967 if test "$tcl_ok" = 0; then 1968 echo $ac_n "checking for -linet""... $ac_c" 1>&6 1969! ac_lib_var=`echo inet | tr '+./' 'p__'` 1970! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1971 echo $ac_n "(cached) $ac_c" 1>&6 1972 else 1973 ac_save_LIBS="$LIBS" 1974 LIBS="-linet $LIBS" 1975 cat > conftest.$ac_ext <<EOF 1976! #line 2975 "configure" 1977 #include "confdefs.h" 1978 1979 int main() { return 0; } 1980*************** 1981*** 2773,2788 **** 1982 EOF 1983 if eval $ac_link; then 1984 rm -rf conftest* 1985! eval "ac_cv_lib_inet=yes" 1986 else 1987 rm -rf conftest* 1988! eval "ac_cv_lib_inet=no" 1989 fi 1990 rm -f conftest* 1991 LIBS="$ac_save_LIBS" 1992 1993 fi 1994! if eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then 1995 echo "$ac_t""yes" 1>&6 1996 tcl_ok=1 1997 else 1998--- 2981,2996 ---- 1999 EOF 2000 if eval $ac_link; then 2001 rm -rf conftest* 2002! eval "ac_cv_lib_$ac_lib_var=yes" 2003 else 2004 rm -rf conftest* 2005! eval "ac_cv_lib_$ac_lib_var=no" 2006 fi 2007 rm -f conftest* 2008 LIBS="$ac_save_LIBS" 2009 2010 fi 2011! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2012 echo "$ac_t""yes" 1>&6 2013 tcl_ok=1 2014 else 2015*************** 2016*** 2811,2817 **** 2017 echo $ac_n "(cached) $ac_c" 1>&6 2018 else 2019 cat > conftest.$ac_ext <<EOF 2020! #line 2815 "configure" 2021 #include "confdefs.h" 2022 /* System header to define __stub macros and hopefully few prototypes, 2023 which can conflict with char BSDgettimeofday(); below. */ 2024--- 3019,3025 ---- 2025 echo $ac_n "(cached) $ac_c" 1>&6 2026 else 2027 cat > conftest.$ac_ext <<EOF 2028! #line 3023 "configure" 2029 #include "confdefs.h" 2030 /* System header to define __stub macros and hopefully few prototypes, 2031 which can conflict with char BSDgettimeofday(); below. */ 2032*************** 2033*** 2856,2862 **** 2034 echo $ac_n "(cached) $ac_c" 1>&6 2035 else 2036 cat > conftest.$ac_ext <<EOF 2037! #line 2860 "configure" 2038 #include "confdefs.h" 2039 /* System header to define __stub macros and hopefully few prototypes, 2040 which can conflict with char gettimeofday(); below. */ 2041--- 3064,3070 ---- 2042 echo $ac_n "(cached) $ac_c" 1>&6 2043 else 2044 cat > conftest.$ac_ext <<EOF 2045! #line 3068 "configure" 2046 #include "confdefs.h" 2047 /* System header to define __stub macros and hopefully few prototypes, 2048 which can conflict with char gettimeofday(); below. */ 2049*************** 2050*** 2903,2909 **** 2051 2052 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 2053 cat > conftest.$ac_ext <<EOF 2054! #line 2907 "configure" 2055 #include "confdefs.h" 2056 #include <sys/time.h> 2057 EOF 2058--- 3111,3117 ---- 2059 2060 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6 2061 cat > conftest.$ac_ext <<EOF 2062! #line 3115 "configure" 2063 #include "confdefs.h" 2064 #include <sys/time.h> 2065 EOF 2066*************** 2067*** 2930,2942 **** 2068 #-------------------------------------------------------------------- 2069 2070 echo $ac_n "checking for -linet""... $ac_c" 1>&6 2071! if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then 2072 echo $ac_n "(cached) $ac_c" 1>&6 2073 else 2074 ac_save_LIBS="$LIBS" 2075 LIBS="-linet $LIBS" 2076 cat > conftest.$ac_ext <<EOF 2077! #line 2940 "configure" 2078 #include "confdefs.h" 2079 2080 int main() { return 0; } 2081--- 3138,3151 ---- 2082 #-------------------------------------------------------------------- 2083 2084 echo $ac_n "checking for -linet""... $ac_c" 1>&6 2085! ac_lib_var=`echo inet | tr '+./' 'p__'` 2086! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2087 echo $ac_n "(cached) $ac_c" 1>&6 2088 else 2089 ac_save_LIBS="$LIBS" 2090 LIBS="-linet $LIBS" 2091 cat > conftest.$ac_ext <<EOF 2092! #line 3149 "configure" 2093 #include "confdefs.h" 2094 2095 int main() { return 0; } 2096*************** 2097*** 2946,2961 **** 2098 EOF 2099 if eval $ac_link; then 2100 rm -rf conftest* 2101! eval "ac_cv_lib_inet=yes" 2102 else 2103 rm -rf conftest* 2104! eval "ac_cv_lib_inet=no" 2105 fi 2106 rm -f conftest* 2107 LIBS="$ac_save_LIBS" 2108 2109 fi 2110! if eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then 2111 echo "$ac_t""yes" 1>&6 2112 LIBS="$LIBS -linet" 2113 else 2114--- 3155,3170 ---- 2115 EOF 2116 if eval $ac_link; then 2117 rm -rf conftest* 2118! eval "ac_cv_lib_$ac_lib_var=yes" 2119 else 2120 rm -rf conftest* 2121! eval "ac_cv_lib_$ac_lib_var=no" 2122 fi 2123 rm -f conftest* 2124 LIBS="$ac_save_LIBS" 2125 2126 fi 2127! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2128 echo "$ac_t""yes" 1>&6 2129 LIBS="$LIBS -linet" 2130 else 2131*************** 2132*** 2968,2974 **** 2133 echo $ac_n "(cached) $ac_c" 1>&6 2134 else 2135 cat > conftest.$ac_ext <<EOF 2136! #line 2972 "configure" 2137 #include "confdefs.h" 2138 #include <net/errno.h> 2139 EOF 2140--- 3177,3183 ---- 2141 echo $ac_n "(cached) $ac_c" 1>&6 2142 else 2143 cat > conftest.$ac_ext <<EOF 2144! #line 3181 "configure" 2145 #include "confdefs.h" 2146 #include <net/errno.h> 2147 EOF 2148*************** 2149*** 3008,3014 **** 2150 if test "$GCC" = yes; then 2151 # GCC predefines this symbol on systems where it applies. 2152 cat > conftest.$ac_ext <<EOF 2153! #line 3012 "configure" 2154 #include "confdefs.h" 2155 #ifdef __CHAR_UNSIGNED__ 2156 yes 2157--- 3217,3223 ---- 2158 if test "$GCC" = yes; then 2159 # GCC predefines this symbol on systems where it applies. 2160 cat > conftest.$ac_ext <<EOF 2161! #line 3221 "configure" 2162 #include "confdefs.h" 2163 #ifdef __CHAR_UNSIGNED__ 2164 yes 2165*************** 2166*** 3030,3036 **** 2167 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2168 else 2169 cat > conftest.$ac_ext <<EOF 2170! #line 3034 "configure" 2171 #include "confdefs.h" 2172 /* volatile prevents gcc2 from optimizing the test away on sparcs. */ 2173 #if !defined(__STDC__) || __STDC__ != 1 2174--- 3239,3245 ---- 2175 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2176 else 2177 cat > conftest.$ac_ext <<EOF 2178! #line 3243 "configure" 2179 #include "confdefs.h" 2180 /* volatile prevents gcc2 from optimizing the test away on sparcs. */ 2181 #if !defined(__STDC__) || __STDC__ != 1 2182*************** 2183*** 3050,3055 **** 2184--- 3259,3265 ---- 2185 rm -fr conftest* 2186 fi 2187 fi 2188+ 2189 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 2190 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 2191 cat >> confdefs.h <<\EOF 2192*************** 2193*** 3060,3066 **** 2194 2195 echo $ac_n "checking signed char declarations""... $ac_c" 1>&6 2196 cat > conftest.$ac_ext <<EOF 2197! #line 3064 "configure" 2198 #include "confdefs.h" 2199 2200 int main() { return 0; } 2201--- 3270,3276 ---- 2202 2203 echo $ac_n "checking signed char declarations""... $ac_c" 1>&6 2204 cat > conftest.$ac_ext <<EOF 2205! #line 3274 "configure" 2206 #include "confdefs.h" 2207 2208 int main() { return 0; } 2209*************** 2210*** 3112,3118 **** 2211 echo $ac_n "(cached) $ac_c" 1>&6 2212 else 2213 cat > conftest.$ac_ext <<EOF 2214! #line 3116 "configure" 2215 #include "confdefs.h" 2216 /* System header to define __stub macros and hopefully few prototypes, 2217 which can conflict with char connect(); below. */ 2218--- 3322,3328 ---- 2219 echo $ac_n "(cached) $ac_c" 1>&6 2220 else 2221 cat > conftest.$ac_ext <<EOF 2222! #line 3326 "configure" 2223 #include "confdefs.h" 2224 /* System header to define __stub macros and hopefully few prototypes, 2225 which can conflict with char connect(); below. */ 2226*************** 2227*** 3154,3166 **** 2228 2229 if test "$tcl_checkSocket" = 1; then 2230 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 2231! if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then 2232 echo $ac_n "(cached) $ac_c" 1>&6 2233 else 2234 ac_save_LIBS="$LIBS" 2235 LIBS="-lsocket $LIBS" 2236 cat > conftest.$ac_ext <<EOF 2237! #line 3164 "configure" 2238 #include "confdefs.h" 2239 2240 int main() { return 0; } 2241--- 3364,3377 ---- 2242 2243 if test "$tcl_checkSocket" = 1; then 2244 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 2245! ac_lib_var=`echo socket | tr '+./' 'p__'` 2246! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2247 echo $ac_n "(cached) $ac_c" 1>&6 2248 else 2249 ac_save_LIBS="$LIBS" 2250 LIBS="-lsocket $LIBS" 2251 cat > conftest.$ac_ext <<EOF 2252! #line 3375 "configure" 2253 #include "confdefs.h" 2254 2255 int main() { return 0; } 2256*************** 2257*** 3170,3185 **** 2258 EOF 2259 if eval $ac_link; then 2260 rm -rf conftest* 2261! eval "ac_cv_lib_socket=yes" 2262 else 2263 rm -rf conftest* 2264! eval "ac_cv_lib_socket=no" 2265 fi 2266 rm -f conftest* 2267 LIBS="$ac_save_LIBS" 2268 2269 fi 2270! if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then 2271 echo "$ac_t""yes" 1>&6 2272 LIBS="$LIBS -lsocket" 2273 else 2274--- 3381,3396 ---- 2275 EOF 2276 if eval $ac_link; then 2277 rm -rf conftest* 2278! eval "ac_cv_lib_$ac_lib_var=yes" 2279 else 2280 rm -rf conftest* 2281! eval "ac_cv_lib_$ac_lib_var=no" 2282 fi 2283 rm -f conftest* 2284 LIBS="$ac_save_LIBS" 2285 2286 fi 2287! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2288 echo "$ac_t""yes" 1>&6 2289 LIBS="$LIBS -lsocket" 2290 else 2291*************** 2292*** 3196,3202 **** 2293 echo $ac_n "(cached) $ac_c" 1>&6 2294 else 2295 cat > conftest.$ac_ext <<EOF 2296! #line 3200 "configure" 2297 #include "confdefs.h" 2298 /* System header to define __stub macros and hopefully few prototypes, 2299 which can conflict with char accept(); below. */ 2300--- 3407,3413 ---- 2301 echo $ac_n "(cached) $ac_c" 1>&6 2302 else 2303 cat > conftest.$ac_ext <<EOF 2304! #line 3411 "configure" 2305 #include "confdefs.h" 2306 /* System header to define __stub macros and hopefully few prototypes, 2307 which can conflict with char accept(); below. */ 2308*************** 2309*** 3242,3248 **** 2310 echo $ac_n "(cached) $ac_c" 1>&6 2311 else 2312 cat > conftest.$ac_ext <<EOF 2313! #line 3246 "configure" 2314 #include "confdefs.h" 2315 /* System header to define __stub macros and hopefully few prototypes, 2316 which can conflict with char gethostbyname(); below. */ 2317--- 3453,3459 ---- 2318 echo $ac_n "(cached) $ac_c" 1>&6 2319 else 2320 cat > conftest.$ac_ext <<EOF 2321! #line 3457 "configure" 2322 #include "confdefs.h" 2323 /* System header to define __stub macros and hopefully few prototypes, 2324 which can conflict with char gethostbyname(); below. */ 2325*************** 2326*** 3280,3292 **** 2327 else 2328 echo "$ac_t""no" 1>&6 2329 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 2330! if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then 2331 echo $ac_n "(cached) $ac_c" 1>&6 2332 else 2333 ac_save_LIBS="$LIBS" 2334 LIBS="-lnsl $LIBS" 2335 cat > conftest.$ac_ext <<EOF 2336! #line 3290 "configure" 2337 #include "confdefs.h" 2338 2339 int main() { return 0; } 2340--- 3491,3504 ---- 2341 else 2342 echo "$ac_t""no" 1>&6 2343 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 2344! ac_lib_var=`echo nsl | tr '+./' 'p__'` 2345! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2346 echo $ac_n "(cached) $ac_c" 1>&6 2347 else 2348 ac_save_LIBS="$LIBS" 2349 LIBS="-lnsl $LIBS" 2350 cat > conftest.$ac_ext <<EOF 2351! #line 3502 "configure" 2352 #include "confdefs.h" 2353 2354 int main() { return 0; } 2355*************** 2356*** 3296,3311 **** 2357 EOF 2358 if eval $ac_link; then 2359 rm -rf conftest* 2360! eval "ac_cv_lib_nsl=yes" 2361 else 2362 rm -rf conftest* 2363! eval "ac_cv_lib_nsl=no" 2364 fi 2365 rm -f conftest* 2366 LIBS="$ac_save_LIBS" 2367 2368 fi 2369! if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then 2370 echo "$ac_t""yes" 1>&6 2371 LIBS="$LIBS -lnsl" 2372 else 2373--- 3508,3523 ---- 2374 EOF 2375 if eval $ac_link; then 2376 rm -rf conftest* 2377! eval "ac_cv_lib_$ac_lib_var=yes" 2378 else 2379 rm -rf conftest* 2380! eval "ac_cv_lib_$ac_lib_var=no" 2381 fi 2382 rm -f conftest* 2383 LIBS="$ac_save_LIBS" 2384 2385 fi 2386! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2387 echo "$ac_t""yes" 1>&6 2388 LIBS="$LIBS -lnsl" 2389 else 2390*************** 2391*** 3396,3408 **** 2392 # Linux can use either -ldl or -ldld for dynamic loading. 2393 2394 echo $ac_n "checking for -ldl""... $ac_c" 1>&6 2395! if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then 2396 echo $ac_n "(cached) $ac_c" 1>&6 2397 else 2398 ac_save_LIBS="$LIBS" 2399 LIBS="-ldl $LIBS" 2400 cat > conftest.$ac_ext <<EOF 2401! #line 3406 "configure" 2402 #include "confdefs.h" 2403 2404 int main() { return 0; } 2405--- 3608,3621 ---- 2406 # Linux can use either -ldl or -ldld for dynamic loading. 2407 2408 echo $ac_n "checking for -ldl""... $ac_c" 1>&6 2409! ac_lib_var=`echo dl | tr '+./' 'p__'` 2410! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2411 echo $ac_n "(cached) $ac_c" 1>&6 2412 else 2413 ac_save_LIBS="$LIBS" 2414 LIBS="-ldl $LIBS" 2415 cat > conftest.$ac_ext <<EOF 2416! #line 3619 "configure" 2417 #include "confdefs.h" 2418 2419 int main() { return 0; } 2420*************** 2421*** 3412,3427 **** 2422 EOF 2423 if eval $ac_link; then 2424 rm -rf conftest* 2425! eval "ac_cv_lib_dl=yes" 2426 else 2427 rm -rf conftest* 2428! eval "ac_cv_lib_dl=no" 2429 fi 2430 rm -f conftest* 2431 LIBS="$ac_save_LIBS" 2432 2433 fi 2434! if eval "test \"`echo '$ac_cv_lib_'dl`\" = yes"; then 2435 echo "$ac_t""yes" 1>&6 2436 have_dl=yes 2437 else 2438--- 3625,3640 ---- 2439 EOF 2440 if eval $ac_link; then 2441 rm -rf conftest* 2442! eval "ac_cv_lib_$ac_lib_var=yes" 2443 else 2444 rm -rf conftest* 2445! eval "ac_cv_lib_$ac_lib_var=no" 2446 fi 2447 rm -f conftest* 2448 LIBS="$ac_save_LIBS" 2449 2450 fi 2451! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2452 echo "$ac_t""yes" 1>&6 2453 have_dl=yes 2454 else 2455*************** 2456*** 3462,3474 **** 2457 ;; 2458 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 2459 echo $ac_n "checking for -ldld""... $ac_c" 1>&6 2460! if eval "test \"`echo '$''{'ac_cv_lib_dld'+set}'`\" = set"; then 2461 echo $ac_n "(cached) $ac_c" 1>&6 2462 else 2463 ac_save_LIBS="$LIBS" 2464 LIBS="-ldld $LIBS" 2465 cat > conftest.$ac_ext <<EOF 2466! #line 3472 "configure" 2467 #include "confdefs.h" 2468 2469 int main() { return 0; } 2470--- 3675,3688 ---- 2471 ;; 2472 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 2473 echo $ac_n "checking for -ldld""... $ac_c" 1>&6 2474! ac_lib_var=`echo dld | tr '+./' 'p__'` 2475! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2476 echo $ac_n "(cached) $ac_c" 1>&6 2477 else 2478 ac_save_LIBS="$LIBS" 2479 LIBS="-ldld $LIBS" 2480 cat > conftest.$ac_ext <<EOF 2481! #line 3686 "configure" 2482 #include "confdefs.h" 2483 2484 int main() { return 0; } 2485*************** 2486*** 3478,3493 **** 2487 EOF 2488 if eval $ac_link; then 2489 rm -rf conftest* 2490! eval "ac_cv_lib_dld=yes" 2491 else 2492 rm -rf conftest* 2493! eval "ac_cv_lib_dld=no" 2494 fi 2495 rm -f conftest* 2496 LIBS="$ac_save_LIBS" 2497 2498 fi 2499! if eval "test \"`echo '$ac_cv_lib_'dld`\" = yes"; then 2500 echo "$ac_t""yes" 1>&6 2501 tcl_ok=yes 2502 else 2503--- 3692,3707 ---- 2504 EOF 2505 if eval $ac_link; then 2506 rm -rf conftest* 2507! eval "ac_cv_lib_$ac_lib_var=yes" 2508 else 2509 rm -rf conftest* 2510! eval "ac_cv_lib_$ac_lib_var=no" 2511 fi 2512 rm -f conftest* 2513 LIBS="$ac_save_LIBS" 2514 2515 fi 2516! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2517 echo "$ac_t""yes" 1>&6 2518 tcl_ok=yes 2519 else 2520*************** 2521*** 3554,3560 **** 2522 echo $ac_n "(cached) $ac_c" 1>&6 2523 else 2524 cat > conftest.$ac_ext <<EOF 2525! #line 3558 "configure" 2526 #include "confdefs.h" 2527 #include <dld.h> 2528 EOF 2529--- 3768,3774 ---- 2530 echo $ac_n "(cached) $ac_c" 1>&6 2531 else 2532 cat > conftest.$ac_ext <<EOF 2533! #line 3772 "configure" 2534 #include "confdefs.h" 2535 #include <dld.h> 2536 EOF 2537*************** 2538*** 3612,3618 **** 2539 echo $ac_n "(cached) $ac_c" 1>&6 2540 else 2541 cat > conftest.$ac_ext <<EOF 2542! #line 3616 "configure" 2543 #include "confdefs.h" 2544 #include <dlfcn.h> 2545 EOF 2546--- 3826,3832 ---- 2547 echo $ac_n "(cached) $ac_c" 1>&6 2548 else 2549 cat > conftest.$ac_ext <<EOF 2550! #line 3830 "configure" 2551 #include "confdefs.h" 2552 #include <dlfcn.h> 2553 EOF 2554*************** 2555*** 3793,3799 **** 2556 echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6 2557 LDFLAGS="${LDFLAGS} -Wl,-Bexport" 2558 cat > conftest.$ac_ext <<EOF 2559! #line 3797 "configure" 2560 #include "confdefs.h" 2561 2562 int main() { return 0; } 2563--- 4007,4013 ---- 2564 echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6 2565 LDFLAGS="${LDFLAGS} -Wl,-Bexport" 2566 cat > conftest.$ac_ext <<EOF 2567! #line 4011 "configure" 2568 #include "confdefs.h" 2569 2570 int main() { return 0; } 2571*************** 2572*** 3843,3849 **** 2573 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 2574 echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6 2575 cat > conftest.$ac_ext <<EOF 2576! #line 3847 "configure" 2577 #include "confdefs.h" 2578 #include <sys/exec.h> 2579 int main() { return 0; } 2580--- 4057,4063 ---- 2581 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 2582 echo $ac_n "checking sys/exec.h""... $ac_c" 1>&6 2583 cat > conftest.$ac_ext <<EOF 2584! #line 4061 "configure" 2585 #include "confdefs.h" 2586 #include <sys/exec.h> 2587 int main() { return 0; } 2588*************** 2589*** 3880,3886 **** 2590 else 2591 echo $ac_n "checking a.out.h""... $ac_c" 1>&6 2592 cat > conftest.$ac_ext <<EOF 2593! #line 3884 "configure" 2594 #include "confdefs.h" 2595 #include <a.out.h> 2596 int main() { return 0; } 2597--- 4094,4100 ---- 2598 else 2599 echo $ac_n "checking a.out.h""... $ac_c" 1>&6 2600 cat > conftest.$ac_ext <<EOF 2601! #line 4098 "configure" 2602 #include "confdefs.h" 2603 #include <a.out.h> 2604 int main() { return 0; } 2605*************** 2606*** 3917,3923 **** 2607 else 2608 echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6 2609 cat > conftest.$ac_ext <<EOF 2610! #line 3921 "configure" 2611 #include "confdefs.h" 2612 #include <sys/exec_aout.h> 2613 int main() { return 0; } 2614--- 4131,4137 ---- 2615 else 2616 echo $ac_n "checking sys/exec_aout.h""... $ac_c" 1>&6 2617 cat > conftest.$ac_ext <<EOF 2618! #line 4135 "configure" 2619 #include "confdefs.h" 2620 #include <sys/exec_aout.h> 2621 int main() { return 0; } 2622*************** 2623*** 3961,3968 **** 2624 # Step 5: disable dynamic loading if requested via a command-line switch. 2625 2626 # Check whether --enable-load or --disable-load was given. 2627! enableval="$enable_load" 2628! if test -n "$enableval"; then 2629 tcl_ok=$enableval 2630 else 2631 tcl_ok=yes 2632--- 4175,4182 ---- 2633 # Step 5: disable dynamic loading if requested via a command-line switch. 2634 2635 # Check whether --enable-load or --disable-load was given. 2636! if test "${enable_load+set}" = set; then 2637! enableval="$enable_load" 2638 tcl_ok=$enableval 2639 else 2640 tcl_ok=yes 2641*************** 2642*** 4028,4034 **** 2643 echo $ac_n "(cached) $ac_c" 1>&6 2644 else 2645 cat > conftest.$ac_ext <<EOF 2646! #line 4032 "configure" 2647 #include "confdefs.h" 2648 #include <$ac_hdr> 2649 EOF 2650--- 4242,4248 ---- 2651 echo $ac_n "(cached) $ac_c" 1>&6 2652 else 2653 cat > conftest.$ac_ext <<EOF 2654! #line 4246 "configure" 2655 #include "confdefs.h" 2656 #include <$ac_hdr> 2657 EOF 2658*************** 2659*** 4046,4052 **** 2660 fi 2661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2662 echo "$ac_t""yes" 1>&6 2663! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 2664 cat >> confdefs.h <<EOF 2665 #define $ac_tr_hdr 1 2666 EOF 2667--- 4260,4266 ---- 2668 fi 2669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2670 echo "$ac_t""yes" 1>&6 2671! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'` 2672 cat >> confdefs.h <<EOF 2673 #define $ac_tr_hdr 1 2674 EOF 2675*************** 2676*** 4064,4070 **** 2677 echo $ac_n "(cached) $ac_c" 1>&6 2678 else 2679 cat > conftest.$ac_ext <<EOF 2680! #line 4068 "configure" 2681 #include "confdefs.h" 2682 #include <$ac_hdr> 2683 EOF 2684--- 4278,4284 ---- 2685 echo $ac_n "(cached) $ac_c" 1>&6 2686 else 2687 cat > conftest.$ac_ext <<EOF 2688! #line 4282 "configure" 2689 #include "confdefs.h" 2690 #include <$ac_hdr> 2691 EOF 2692*************** 2693*** 4082,4088 **** 2694 fi 2695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2696 echo "$ac_t""yes" 1>&6 2697! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 2698 cat >> confdefs.h <<EOF 2699 #define $ac_tr_hdr 1 2700 EOF 2701--- 4296,4302 ---- 2702 fi 2703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2704 echo "$ac_t""yes" 1>&6 2705! ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'` 2706 cat >> confdefs.h <<EOF 2707 #define $ac_tr_hdr 1 2708 EOF 2709*************** 2710*** 4158,4165 **** 2711 TCL_UNSHARED_LIB_SUFFIX='${VERSION}.a' 2712 fi 2713 # Check whether --enable-shared or --disable-shared was given. 2714! enableval="$enable_shared" 2715! if test -n "$enableval"; then 2716 tcl_ok=$enableval 2717 else 2718 tcl_ok=no 2719--- 4372,4379 ---- 2720 TCL_UNSHARED_LIB_SUFFIX='${VERSION}.a' 2721 fi 2722 # Check whether --enable-shared or --disable-shared was given. 2723! if test "${enable_shared+set}" = set; then 2724! enableval="$enable_shared" 2725 tcl_ok=$enableval 2726 else 2727 tcl_ok=no 2728*************** 2729*** 4321,4327 **** 2730 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2731 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2732 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2733! echo "$CONFIG_STATUS generated by autoconf version 2.4" 2734 exit 0 ;; 2735 -help | --help | --hel | --he | --h) 2736 echo "\$ac_cs_usage"; exit 0 ;; 2737--- 4535,4541 ---- 2738 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2739 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2740 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2741! echo "$CONFIG_STATUS generated by autoconf version 2.4.2" 2742 exit 0 ;; 2743 -help | --help | --hel | --he | --h) 2744 echo "\$ac_cs_usage"; exit 0 ;; 2745*************** 2746*** 4347,4352 **** 2747--- 4561,4578 ---- 2748 s%@exec_prefix@%$exec_prefix%g 2749 s%@prefix@%$prefix%g 2750 s%@program_transform_name@%$program_transform_name%g 2751+ s%@bindir@%$bindir%g 2752+ s%@sbindir@%$sbindir%g 2753+ s%@libexecdir@%$libexecdir%g 2754+ s%@datadir@%$datadir%g 2755+ s%@sysconfdir@%$sysconfdir%g 2756+ s%@sharedstatedir@%$sharedstatedir%g 2757+ s%@localstatedir@%$localstatedir%g 2758+ s%@libdir@%$libdir%g 2759+ s%@includedir@%$includedir%g 2760+ s%@oldincludedir@%$oldincludedir%g 2761+ s%@infodir@%$infodir%g 2762+ s%@mandir@%$mandir%g 2763 s%@RANLIB@%$RANLIB%g 2764 s%@CC@%$CC%g 2765 s%@LIBOBJS@%$LIBOBJS%g 2766