1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for tk 8.5. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME='tk' 269PACKAGE_TARNAME='tk' 270PACKAGE_VERSION='8.5' 271PACKAGE_STRING='tk 8.5' 272PACKAGE_BUGREPORT='' 273 274# Factoring default headers for most tests. 275ac_includes_default="\ 276#include <stdio.h> 277#if HAVE_SYS_TYPES_H 278# include <sys/types.h> 279#endif 280#if HAVE_SYS_STAT_H 281# include <sys/stat.h> 282#endif 283#if STDC_HEADERS 284# include <stdlib.h> 285# include <stddef.h> 286#else 287# if HAVE_STDLIB_H 288# include <stdlib.h> 289# endif 290#endif 291#if HAVE_STRING_H 292# if !STDC_HEADERS && HAVE_MEMORY_H 293# include <memory.h> 294# endif 295# include <string.h> 296#endif 297#if HAVE_STRINGS_H 298# include <strings.h> 299#endif 300#if HAVE_INTTYPES_H 301# include <inttypes.h> 302#else 303# if HAVE_STDINT_H 304# include <stdint.h> 305# endif 306#endif 307#if HAVE_UNISTD_H 308# include <unistd.h> 309#endif" 310 311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCLSH_PROG BUILD_TCLSH MAN_FLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP TCL_THREADS RANLIB ac_ct_RANLIB AR TCL_LIBS DL_LIBS DL_OBJS PLAT_OBJS PLAT_SRCS LDAIX_SRC CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING LDFLAGS_DEBUG LDFLAGS_OPTIMIZE CC_SEARCH_FLAGS LD_SEARCH_FLAGS STLIB_LD SHLIB_LD TCL_SHLIB_LD_EXTRAS TK_SHLIB_LD_EXTRAS SHLIB_LD_LIBS SHLIB_CFLAGS SHLIB_SUFFIX MAKE_LIB MAKE_STUB_LIB INSTALL_LIB INSTALL_STUB_LIB CFLAGS_DEFAULT LDFLAGS_DEFAULT LIBOBJS XFT_CFLAGS XFT_LIBS UNIX_FONT_OBJS TK_VERSION TK_MAJOR_VERSION TK_MINOR_VERSION TK_PATCH_LEVEL TK_YEAR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_STUB_LIB_PATH TK_INCLUDE_SPEC TK_BUILD_STUB_LIB_SPEC TK_BUILD_STUB_LIB_PATH TK_SRC_DIR TK_SHARED_BUILD LD_LIBRARY_PATH_VAR TK_BUILD_LIB_SPEC TCL_STUB_FLAGS XINCLUDES XLIBSW LOCALES TK_WINDOWINGSYSTEM TK_PKG_DIR TK_LIBRARY PRIVATE_INCLUDE_DIR HTML_DIR EXTRA_CC_SWITCHES EXTRA_APP_CC_SWITCHES EXTRA_INSTALL EXTRA_INSTALL_BINARIES EXTRA_BUILD_HTML EXTRA_WISH_LIBS CFBUNDLELOCALIZATIONS TK_RSRC_FILE WISH_RSRC_FILE LIB_RSRC_FILE APP_RSRC_FILE REZ REZ_FLAGS LTLIBOBJS' 312ac_subst_files='' 313 314# Initialize some variables set by options. 315ac_init_help= 316ac_init_version=false 317# The variables have the same names as the options, with 318# dashes changed to underlines. 319cache_file=/dev/null 320exec_prefix=NONE 321no_create= 322no_recursion= 323prefix=NONE 324program_prefix=NONE 325program_suffix=NONE 326program_transform_name=s,x,x, 327silent= 328site= 329srcdir= 330verbose= 331x_includes=NONE 332x_libraries=NONE 333 334# Installation directory options. 335# These are left unexpanded so users can "make install exec_prefix=/foo" 336# and all the variables that are supposed to be based on exec_prefix 337# by default will actually change. 338# Use braces instead of parens because sh, perl, etc. also accept them. 339bindir='${exec_prefix}/bin' 340sbindir='${exec_prefix}/sbin' 341libexecdir='${exec_prefix}/libexec' 342datadir='${prefix}/share' 343sysconfdir='${prefix}/etc' 344sharedstatedir='${prefix}/com' 345localstatedir='${prefix}/var' 346libdir='${exec_prefix}/lib' 347includedir='${prefix}/include' 348oldincludedir='/usr/include' 349infodir='${prefix}/info' 350mandir='${prefix}/man' 351 352ac_prev= 353for ac_option 354do 355 # If the previous option needs an argument, assign it. 356 if test -n "$ac_prev"; then 357 eval "$ac_prev=\$ac_option" 358 ac_prev= 359 continue 360 fi 361 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 363 364 # Accept the important Cygnus configure options, so we can diagnose typos. 365 366 case $ac_option in 367 368 -bindir | --bindir | --bindi | --bind | --bin | --bi) 369 ac_prev=bindir ;; 370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 371 bindir=$ac_optarg ;; 372 373 -build | --build | --buil | --bui | --bu) 374 ac_prev=build_alias ;; 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 376 build_alias=$ac_optarg ;; 377 378 -cache-file | --cache-file | --cache-fil | --cache-fi \ 379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 380 ac_prev=cache_file ;; 381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 383 cache_file=$ac_optarg ;; 384 385 --config-cache | -C) 386 cache_file=config.cache ;; 387 388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 389 ac_prev=datadir ;; 390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 391 | --da=*) 392 datadir=$ac_optarg ;; 393 394 -disable-* | --disable-*) 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 396 # Reject names that are not valid shell variable names. 397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 399 { (exit 1); exit 1; }; } 400 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 401 eval "enable_$ac_feature=no" ;; 402 403 -enable-* | --enable-*) 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 405 # Reject names that are not valid shell variable names. 406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 408 { (exit 1); exit 1; }; } 409 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 410 case $ac_option in 411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 412 *) ac_optarg=yes ;; 413 esac 414 eval "enable_$ac_feature='$ac_optarg'" ;; 415 416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 418 | --exec | --exe | --ex) 419 ac_prev=exec_prefix ;; 420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 422 | --exec=* | --exe=* | --ex=*) 423 exec_prefix=$ac_optarg ;; 424 425 -gas | --gas | --ga | --g) 426 # Obsolete; use --with-gas. 427 with_gas=yes ;; 428 429 -help | --help | --hel | --he | -h) 430 ac_init_help=long ;; 431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 432 ac_init_help=recursive ;; 433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 434 ac_init_help=short ;; 435 436 -host | --host | --hos | --ho) 437 ac_prev=host_alias ;; 438 -host=* | --host=* | --hos=* | --ho=*) 439 host_alias=$ac_optarg ;; 440 441 -includedir | --includedir | --includedi | --included | --include \ 442 | --includ | --inclu | --incl | --inc) 443 ac_prev=includedir ;; 444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 445 | --includ=* | --inclu=* | --incl=* | --inc=*) 446 includedir=$ac_optarg ;; 447 448 -infodir | --infodir | --infodi | --infod | --info | --inf) 449 ac_prev=infodir ;; 450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 451 infodir=$ac_optarg ;; 452 453 -libdir | --libdir | --libdi | --libd) 454 ac_prev=libdir ;; 455 -libdir=* | --libdir=* | --libdi=* | --libd=*) 456 libdir=$ac_optarg ;; 457 458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 459 | --libexe | --libex | --libe) 460 ac_prev=libexecdir ;; 461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 462 | --libexe=* | --libex=* | --libe=*) 463 libexecdir=$ac_optarg ;; 464 465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 466 | --localstate | --localstat | --localsta | --localst \ 467 | --locals | --local | --loca | --loc | --lo) 468 ac_prev=localstatedir ;; 469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 472 localstatedir=$ac_optarg ;; 473 474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 475 ac_prev=mandir ;; 476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 477 mandir=$ac_optarg ;; 478 479 -nfp | --nfp | --nf) 480 # Obsolete; use --without-fp. 481 with_fp=no ;; 482 483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 484 | --no-cr | --no-c | -n) 485 no_create=yes ;; 486 487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 489 no_recursion=yes ;; 490 491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 493 | --oldin | --oldi | --old | --ol | --o) 494 ac_prev=oldincludedir ;; 495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 498 oldincludedir=$ac_optarg ;; 499 500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 501 ac_prev=prefix ;; 502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 503 prefix=$ac_optarg ;; 504 505 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 506 | --program-pre | --program-pr | --program-p) 507 ac_prev=program_prefix ;; 508 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 510 program_prefix=$ac_optarg ;; 511 512 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 513 | --program-suf | --program-su | --program-s) 514 ac_prev=program_suffix ;; 515 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 517 program_suffix=$ac_optarg ;; 518 519 -program-transform-name | --program-transform-name \ 520 | --program-transform-nam | --program-transform-na \ 521 | --program-transform-n | --program-transform- \ 522 | --program-transform | --program-transfor \ 523 | --program-transfo | --program-transf \ 524 | --program-trans | --program-tran \ 525 | --progr-tra | --program-tr | --program-t) 526 ac_prev=program_transform_name ;; 527 -program-transform-name=* | --program-transform-name=* \ 528 | --program-transform-nam=* | --program-transform-na=* \ 529 | --program-transform-n=* | --program-transform-=* \ 530 | --program-transform=* | --program-transfor=* \ 531 | --program-transfo=* | --program-transf=* \ 532 | --program-trans=* | --program-tran=* \ 533 | --progr-tra=* | --program-tr=* | --program-t=*) 534 program_transform_name=$ac_optarg ;; 535 536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 537 | -silent | --silent | --silen | --sile | --sil) 538 silent=yes ;; 539 540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 541 ac_prev=sbindir ;; 542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 543 | --sbi=* | --sb=*) 544 sbindir=$ac_optarg ;; 545 546 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 548 | --sharedst | --shareds | --shared | --share | --shar \ 549 | --sha | --sh) 550 ac_prev=sharedstatedir ;; 551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 554 | --sha=* | --sh=*) 555 sharedstatedir=$ac_optarg ;; 556 557 -site | --site | --sit) 558 ac_prev=site ;; 559 -site=* | --site=* | --sit=*) 560 site=$ac_optarg ;; 561 562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 563 ac_prev=srcdir ;; 564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 565 srcdir=$ac_optarg ;; 566 567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 568 | --syscon | --sysco | --sysc | --sys | --sy) 569 ac_prev=sysconfdir ;; 570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 572 sysconfdir=$ac_optarg ;; 573 574 -target | --target | --targe | --targ | --tar | --ta | --t) 575 ac_prev=target_alias ;; 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 577 target_alias=$ac_optarg ;; 578 579 -v | -verbose | --verbose | --verbos | --verbo | --verb) 580 verbose=yes ;; 581 582 -version | --version | --versio | --versi | --vers | -V) 583 ac_init_version=: ;; 584 585 -with-* | --with-*) 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 587 # Reject names that are not valid shell variable names. 588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 589 { echo "$as_me: error: invalid package name: $ac_package" >&2 590 { (exit 1); exit 1; }; } 591 ac_package=`echo $ac_package| sed 's/-/_/g'` 592 case $ac_option in 593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 594 *) ac_optarg=yes ;; 595 esac 596 eval "with_$ac_package='$ac_optarg'" ;; 597 598 -without-* | --without-*) 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 600 # Reject names that are not valid shell variable names. 601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 602 { echo "$as_me: error: invalid package name: $ac_package" >&2 603 { (exit 1); exit 1; }; } 604 ac_package=`echo $ac_package | sed 's/-/_/g'` 605 eval "with_$ac_package=no" ;; 606 607 --x) 608 # Obsolete; use --with-x. 609 with_x=yes ;; 610 611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 612 | --x-incl | --x-inc | --x-in | --x-i) 613 ac_prev=x_includes ;; 614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 616 x_includes=$ac_optarg ;; 617 618 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 620 ac_prev=x_libraries ;; 621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 623 x_libraries=$ac_optarg ;; 624 625 -*) { echo "$as_me: error: unrecognized option: $ac_option 626Try \`$0 --help' for more information." >&2 627 { (exit 1); exit 1; }; } 628 ;; 629 630 *=*) 631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 632 # Reject names that are not valid shell variable names. 633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 635 { (exit 1); exit 1; }; } 636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 637 eval "$ac_envvar='$ac_optarg'" 638 export $ac_envvar ;; 639 640 *) 641 # FIXME: should be removed in autoconf 3.0. 642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 646 ;; 647 648 esac 649done 650 651if test -n "$ac_prev"; then 652 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 653 { echo "$as_me: error: missing argument to $ac_option" >&2 654 { (exit 1); exit 1; }; } 655fi 656 657# Be sure to have absolute paths. 658for ac_var in exec_prefix prefix 659do 660 eval ac_val=$`echo $ac_var` 661 case $ac_val in 662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 664 { (exit 1); exit 1; }; };; 665 esac 666done 667 668# Be sure to have absolute paths. 669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 670 localstatedir libdir includedir oldincludedir infodir mandir 671do 672 eval ac_val=$`echo $ac_var` 673 case $ac_val in 674 [\\/$]* | ?:[\\/]* ) ;; 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 676 { (exit 1); exit 1; }; };; 677 esac 678done 679 680# There might be people who depend on the old broken behavior: `$host' 681# used to hold the argument of --host etc. 682# FIXME: To remove some day. 683build=$build_alias 684host=$host_alias 685target=$target_alias 686 687# FIXME: To remove some day. 688if test "x$host_alias" != x; then 689 if test "x$build_alias" = x; then 690 cross_compiling=maybe 691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 692 If a cross compiler is detected then cross compile mode will be used." >&2 693 elif test "x$build_alias" != "x$host_alias"; then 694 cross_compiling=yes 695 fi 696fi 697 698ac_tool_prefix= 699test -n "$host_alias" && ac_tool_prefix=$host_alias- 700 701test "$silent" = yes && exec 6>/dev/null 702 703 704# Find the source files, if location was not specified. 705if test -z "$srcdir"; then 706 ac_srcdir_defaulted=yes 707 # Try the directory containing this script, then its parent. 708 ac_confdir=`(dirname "$0") 2>/dev/null || 709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 710 X"$0" : 'X\(//\)[^/]' \| \ 711 X"$0" : 'X\(//\)$' \| \ 712 X"$0" : 'X\(/\)' \| \ 713 . : '\(.\)' 2>/dev/null || 714echo X"$0" | 715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 716 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 717 /^X\(\/\/\)$/{ s//\1/; q; } 718 /^X\(\/\).*/{ s//\1/; q; } 719 s/.*/./; q'` 720 srcdir=$ac_confdir 721 if test ! -r $srcdir/$ac_unique_file; then 722 srcdir=.. 723 fi 724else 725 ac_srcdir_defaulted=no 726fi 727if test ! -r $srcdir/$ac_unique_file; then 728 if test "$ac_srcdir_defaulted" = yes; then 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 730 { (exit 1); exit 1; }; } 731 else 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 733 { (exit 1); exit 1; }; } 734 fi 735fi 736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 738 { (exit 1); exit 1; }; } 739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 740ac_env_build_alias_set=${build_alias+set} 741ac_env_build_alias_value=$build_alias 742ac_cv_env_build_alias_set=${build_alias+set} 743ac_cv_env_build_alias_value=$build_alias 744ac_env_host_alias_set=${host_alias+set} 745ac_env_host_alias_value=$host_alias 746ac_cv_env_host_alias_set=${host_alias+set} 747ac_cv_env_host_alias_value=$host_alias 748ac_env_target_alias_set=${target_alias+set} 749ac_env_target_alias_value=$target_alias 750ac_cv_env_target_alias_set=${target_alias+set} 751ac_cv_env_target_alias_value=$target_alias 752ac_env_CC_set=${CC+set} 753ac_env_CC_value=$CC 754ac_cv_env_CC_set=${CC+set} 755ac_cv_env_CC_value=$CC 756ac_env_CFLAGS_set=${CFLAGS+set} 757ac_env_CFLAGS_value=$CFLAGS 758ac_cv_env_CFLAGS_set=${CFLAGS+set} 759ac_cv_env_CFLAGS_value=$CFLAGS 760ac_env_LDFLAGS_set=${LDFLAGS+set} 761ac_env_LDFLAGS_value=$LDFLAGS 762ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 763ac_cv_env_LDFLAGS_value=$LDFLAGS 764ac_env_CPPFLAGS_set=${CPPFLAGS+set} 765ac_env_CPPFLAGS_value=$CPPFLAGS 766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_cv_env_CPPFLAGS_value=$CPPFLAGS 768ac_env_CPP_set=${CPP+set} 769ac_env_CPP_value=$CPP 770ac_cv_env_CPP_set=${CPP+set} 771ac_cv_env_CPP_value=$CPP 772 773# 774# Report the --help message. 775# 776if test "$ac_init_help" = "long"; then 777 # Omit some internal or obsolete options to make the list less imposing. 778 # This message is too long to be a string in the A/UX 3.1 sh. 779 cat <<_ACEOF 780\`configure' configures tk 8.5 to adapt to many kinds of systems. 781 782Usage: $0 [OPTION]... [VAR=VALUE]... 783 784To assign environment variables (e.g., CC, CFLAGS...), specify them as 785VAR=VALUE. See below for descriptions of some of the useful variables. 786 787Defaults for the options are specified in brackets. 788 789Configuration: 790 -h, --help display this help and exit 791 --help=short display options specific to this package 792 --help=recursive display the short help of all the included packages 793 -V, --version display version information and exit 794 -q, --quiet, --silent do not print \`checking...' messages 795 --cache-file=FILE cache test results in FILE [disabled] 796 -C, --config-cache alias for \`--cache-file=config.cache' 797 -n, --no-create do not create output files 798 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 799 800_ACEOF 801 802 cat <<_ACEOF 803Installation directories: 804 --prefix=PREFIX install architecture-independent files in PREFIX 805 [$ac_default_prefix] 806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 807 [PREFIX] 808 809By default, \`make install' will install all the files in 810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 811an installation prefix other than \`$ac_default_prefix' using \`--prefix', 812for instance \`--prefix=\$HOME'. 813 814For better control, use the options below. 815 816Fine tuning of the installation directories: 817 --bindir=DIR user executables [EPREFIX/bin] 818 --sbindir=DIR system admin executables [EPREFIX/sbin] 819 --libexecdir=DIR program executables [EPREFIX/libexec] 820 --datadir=DIR read-only architecture-independent data [PREFIX/share] 821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 823 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 824 --libdir=DIR object code libraries [EPREFIX/lib] 825 --includedir=DIR C header files [PREFIX/include] 826 --oldincludedir=DIR C header files for non-gcc [/usr/include] 827 --infodir=DIR info documentation [PREFIX/info] 828 --mandir=DIR man documentation [PREFIX/man] 829_ACEOF 830 831 cat <<\_ACEOF 832 833X features: 834 --x-includes=DIR X include files are in DIR 835 --x-libraries=DIR X library files are in DIR 836_ACEOF 837fi 838 839if test -n "$ac_init_help"; then 840 case $ac_init_help in 841 short | recursive ) echo "Configuration of tk 8.5:";; 842 esac 843 cat <<\_ACEOF 844 845Optional Features: 846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 848 --enable-man-symlinks use symlinks for the manpages (default: off) 849 --enable-man-compression=PROG 850 compress the manpages with PROG (default: off) 851 --enable-man-suffix=STRING 852 use STRING as a suffix to manpage file names 853 (default: no, tk if enabled without 854 specifying STRING) 855 --enable-threads build with threads (default: off) 856 --enable-shared build and link with shared libraries (default: on) 857 --enable-64bit enable 64bit support (default: off) 858 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 859 --disable-rpath disable rpath support (default: on) 860 --enable-corefoundation use CoreFoundation API on MacOSX (default: on) 861 --enable-load allow dynamic loading and "load" command (default: 862 on) 863 --enable-symbols build with debugging symbols (default: off) 864 --enable-aqua use Aqua windowingsystem on Mac OS X (default: off) 865 --enable-xss use XScreenSaver for activity timer (default: on) 866 --enable-xft use freetype/fontconfig/xft (default: on) 867 --enable-framework package shared libraries in MacOSX frameworks 868 (default: off) 869 870Optional Packages: 871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 873 --with-tcl directory containing tcl configuration 874 (tclConfig.sh) 875 --with-x use the X Window System 876 877Some influential environment variables: 878 CC C compiler command 879 CFLAGS C compiler flags 880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 881 nonstandard directory <lib dir> 882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 883 headers in a nonstandard directory <include dir> 884 CPP C preprocessor 885 886Use these variables to override the choices made by `configure' or to help 887it to find libraries and programs with nonstandard names/locations. 888 889_ACEOF 890fi 891 892if test "$ac_init_help" = "recursive"; then 893 # If there are subdirs, report their specific --help. 894 ac_popdir=`pwd` 895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 896 test -d $ac_dir || continue 897 ac_builddir=. 898 899if test "$ac_dir" != .; then 900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 901 # A "../" for each directory in $ac_dir_suffix. 902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 903else 904 ac_dir_suffix= ac_top_builddir= 905fi 906 907case $srcdir in 908 .) # No --srcdir option. We are building in place. 909 ac_srcdir=. 910 if test -z "$ac_top_builddir"; then 911 ac_top_srcdir=. 912 else 913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 914 fi ;; 915 [\\/]* | ?:[\\/]* ) # Absolute path. 916 ac_srcdir=$srcdir$ac_dir_suffix; 917 ac_top_srcdir=$srcdir ;; 918 *) # Relative path. 919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 920 ac_top_srcdir=$ac_top_builddir$srcdir ;; 921esac 922 923# Do not use `cd foo && pwd` to compute absolute paths, because 924# the directories may not exist. 925case `pwd` in 926.) ac_abs_builddir="$ac_dir";; 927*) 928 case "$ac_dir" in 929 .) ac_abs_builddir=`pwd`;; 930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 931 *) ac_abs_builddir=`pwd`/"$ac_dir";; 932 esac;; 933esac 934case $ac_abs_builddir in 935.) ac_abs_top_builddir=${ac_top_builddir}.;; 936*) 937 case ${ac_top_builddir}. in 938 .) ac_abs_top_builddir=$ac_abs_builddir;; 939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 941 esac;; 942esac 943case $ac_abs_builddir in 944.) ac_abs_srcdir=$ac_srcdir;; 945*) 946 case $ac_srcdir in 947 .) ac_abs_srcdir=$ac_abs_builddir;; 948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 950 esac;; 951esac 952case $ac_abs_builddir in 953.) ac_abs_top_srcdir=$ac_top_srcdir;; 954*) 955 case $ac_top_srcdir in 956 .) ac_abs_top_srcdir=$ac_abs_builddir;; 957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 959 esac;; 960esac 961 962 cd $ac_dir 963 # Check for guested configure; otherwise get Cygnus style configure. 964 if test -f $ac_srcdir/configure.gnu; then 965 echo 966 $SHELL $ac_srcdir/configure.gnu --help=recursive 967 elif test -f $ac_srcdir/configure; then 968 echo 969 $SHELL $ac_srcdir/configure --help=recursive 970 elif test -f $ac_srcdir/configure.ac || 971 test -f $ac_srcdir/configure.in; then 972 echo 973 $ac_configure --help 974 else 975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 976 fi 977 cd $ac_popdir 978 done 979fi 980 981test -n "$ac_init_help" && exit 0 982if $ac_init_version; then 983 cat <<\_ACEOF 984tk configure 8.5 985generated by GNU Autoconf 2.59 986 987Copyright (C) 2003 Free Software Foundation, Inc. 988This configure script is free software; the Free Software Foundation 989gives unlimited permission to copy, distribute and modify it. 990_ACEOF 991 exit 0 992fi 993exec 5>config.log 994cat >&5 <<_ACEOF 995This file contains any messages produced by compilers while 996running configure, to aid debugging if configure makes a mistake. 997 998It was created by tk $as_me 8.5, which was 999generated by GNU Autoconf 2.59. Invocation command line was 1000 1001 $ $0 $@ 1002 1003_ACEOF 1004{ 1005cat <<_ASUNAME 1006## --------- ## 1007## Platform. ## 1008## --------- ## 1009 1010hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1011uname -m = `(uname -m) 2>/dev/null || echo unknown` 1012uname -r = `(uname -r) 2>/dev/null || echo unknown` 1013uname -s = `(uname -s) 2>/dev/null || echo unknown` 1014uname -v = `(uname -v) 2>/dev/null || echo unknown` 1015 1016/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1017/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1018 1019/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1020/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1021/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1022hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1023/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1024/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1025/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1026 1027_ASUNAME 1028 1029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1030for as_dir in $PATH 1031do 1032 IFS=$as_save_IFS 1033 test -z "$as_dir" && as_dir=. 1034 echo "PATH: $as_dir" 1035done 1036 1037} >&5 1038 1039cat >&5 <<_ACEOF 1040 1041 1042## ----------- ## 1043## Core tests. ## 1044## ----------- ## 1045 1046_ACEOF 1047 1048 1049# Keep a trace of the command line. 1050# Strip out --no-create and --no-recursion so they do not pile up. 1051# Strip out --silent because we don't want to record it for future runs. 1052# Also quote any args containing shell meta-characters. 1053# Make two passes to allow for proper duplicate-argument suppression. 1054ac_configure_args= 1055ac_configure_args0= 1056ac_configure_args1= 1057ac_sep= 1058ac_must_keep_next=false 1059for ac_pass in 1 2 1060do 1061 for ac_arg 1062 do 1063 case $ac_arg in 1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1066 | -silent | --silent | --silen | --sile | --sil) 1067 continue ;; 1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1070 esac 1071 case $ac_pass in 1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1073 2) 1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1075 if test $ac_must_keep_next = true; then 1076 ac_must_keep_next=false # Got value, back to normal. 1077 else 1078 case $ac_arg in 1079 *=* | --config-cache | -C | -disable-* | --disable-* \ 1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1082 | -with-* | --with-* | -without-* | --without-* | --x) 1083 case "$ac_configure_args0 " in 1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1085 esac 1086 ;; 1087 -* ) ac_must_keep_next=true ;; 1088 esac 1089 fi 1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1091 # Get rid of the leading space. 1092 ac_sep=" " 1093 ;; 1094 esac 1095 done 1096done 1097$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1098$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1099 1100# When interrupted or exit'd, cleanup temporary files, and complete 1101# config.log. We remove comments because anyway the quotes in there 1102# would cause problems or look ugly. 1103# WARNING: Be sure not to use single quotes in there, as some shells, 1104# such as our DU 5.0 friend, will then `close' the trap. 1105trap 'exit_status=$? 1106 # Save into config.log some information that might help in debugging. 1107 { 1108 echo 1109 1110 cat <<\_ASBOX 1111## ---------------- ## 1112## Cache variables. ## 1113## ---------------- ## 1114_ASBOX 1115 echo 1116 # The following way of writing the cache mishandles newlines in values, 1117{ 1118 (set) 2>&1 | 1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1120 *ac_space=\ *) 1121 sed -n \ 1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1124 ;; 1125 *) 1126 sed -n \ 1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1128 ;; 1129 esac; 1130} 1131 echo 1132 1133 cat <<\_ASBOX 1134## ----------------- ## 1135## Output variables. ## 1136## ----------------- ## 1137_ASBOX 1138 echo 1139 for ac_var in $ac_subst_vars 1140 do 1141 eval ac_val=$`echo $ac_var` 1142 echo "$ac_var='"'"'$ac_val'"'"'" 1143 done | sort 1144 echo 1145 1146 if test -n "$ac_subst_files"; then 1147 cat <<\_ASBOX 1148## ------------- ## 1149## Output files. ## 1150## ------------- ## 1151_ASBOX 1152 echo 1153 for ac_var in $ac_subst_files 1154 do 1155 eval ac_val=$`echo $ac_var` 1156 echo "$ac_var='"'"'$ac_val'"'"'" 1157 done | sort 1158 echo 1159 fi 1160 1161 if test -s confdefs.h; then 1162 cat <<\_ASBOX 1163## ----------- ## 1164## confdefs.h. ## 1165## ----------- ## 1166_ASBOX 1167 echo 1168 sed "/^$/d" confdefs.h | sort 1169 echo 1170 fi 1171 test "$ac_signal" != 0 && 1172 echo "$as_me: caught signal $ac_signal" 1173 echo "$as_me: exit $exit_status" 1174 } >&5 1175 rm -f core *.core && 1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1177 exit $exit_status 1178 ' 0 1179for ac_signal in 1 2 13 15; do 1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1181done 1182ac_signal=0 1183 1184# confdefs.h avoids OS command line length limits that DEFS can exceed. 1185rm -rf conftest* confdefs.h 1186# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1187echo >confdefs.h 1188 1189# Predefined preprocessor variables. 1190 1191cat >>confdefs.h <<_ACEOF 1192#define PACKAGE_NAME "$PACKAGE_NAME" 1193_ACEOF 1194 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1198_ACEOF 1199 1200 1201cat >>confdefs.h <<_ACEOF 1202#define PACKAGE_VERSION "$PACKAGE_VERSION" 1203_ACEOF 1204 1205 1206cat >>confdefs.h <<_ACEOF 1207#define PACKAGE_STRING "$PACKAGE_STRING" 1208_ACEOF 1209 1210 1211cat >>confdefs.h <<_ACEOF 1212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1213_ACEOF 1214 1215 1216# Let the site file select an alternate cache file if it wants to. 1217# Prefer explicitly selected file to automatically selected ones. 1218if test -z "$CONFIG_SITE"; then 1219 if test "x$prefix" != xNONE; then 1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1221 else 1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1223 fi 1224fi 1225for ac_site_file in $CONFIG_SITE; do 1226 if test -r "$ac_site_file"; then 1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1228echo "$as_me: loading site script $ac_site_file" >&6;} 1229 sed 's/^/| /' "$ac_site_file" >&5 1230 . "$ac_site_file" 1231 fi 1232done 1233 1234if test -r "$cache_file"; then 1235 # Some versions of bash will fail to source /dev/null (special 1236 # files actually), so we avoid doing that. 1237 if test -f "$cache_file"; then 1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1239echo "$as_me: loading cache $cache_file" >&6;} 1240 case $cache_file in 1241 [\\/]* | ?:[\\/]* ) . $cache_file;; 1242 *) . ./$cache_file;; 1243 esac 1244 fi 1245else 1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1247echo "$as_me: creating cache $cache_file" >&6;} 1248 >$cache_file 1249fi 1250 1251# Check that the precious variables saved in the cache have kept the same 1252# value. 1253ac_cache_corrupted=false 1254for ac_var in `(set) 2>&1 | 1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1257 eval ac_new_set=\$ac_env_${ac_var}_set 1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1259 eval ac_new_val="\$ac_env_${ac_var}_value" 1260 case $ac_old_set,$ac_new_set in 1261 set,) 1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1263echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1264 ac_cache_corrupted=: ;; 1265 ,set) 1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1267echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1268 ac_cache_corrupted=: ;; 1269 ,);; 1270 *) 1271 if test "x$ac_old_val" != "x$ac_new_val"; then 1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1273echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1275echo "$as_me: former value: $ac_old_val" >&2;} 1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1277echo "$as_me: current value: $ac_new_val" >&2;} 1278 ac_cache_corrupted=: 1279 fi;; 1280 esac 1281 # Pass precious variables to config.status. 1282 if test "$ac_new_set" = set; then 1283 case $ac_new_val in 1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1286 *) ac_arg=$ac_var=$ac_new_val ;; 1287 esac 1288 case " $ac_configure_args " in 1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1291 esac 1292 fi 1293done 1294if $ac_cache_corrupted; then 1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1296echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1299 { (exit 1); exit 1; }; } 1300fi 1301 1302ac_ext=c 1303ac_cpp='$CPP $CPPFLAGS' 1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1306ac_compiler_gnu=$ac_cv_c_compiler_gnu 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 ac_config_headers="$ac_config_headers tkConfig.h:../unix/tkConfig.h.in" 1338 1339 1340 1341 1342 1343 1344 1345 1346TK_VERSION=8.5 1347TK_MAJOR_VERSION=8 1348TK_MINOR_VERSION=5 1349TK_PATCH_LEVEL=".9" 1350VERSION=${TK_VERSION} 1351LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv" 1352 1353#-------------------------------------------------------------------- 1354# Find and load the tclConfig.sh file 1355#-------------------------------------------------------------------- 1356 1357 1358 # 1359 # Ok, lets find the tcl configuration 1360 # First, look for one uninstalled. 1361 # the alternative search directory is invoked by --with-tcl 1362 # 1363 1364 if test x"${no_tcl}" = x ; then 1365 # we reset no_tcl in case something fails here 1366 no_tcl=true 1367 1368# Check whether --with-tcl or --without-tcl was given. 1369if test "${with_tcl+set}" = set; then 1370 withval="$with_tcl" 1371 with_tclconfig="${withval}" 1372fi; 1373 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1374echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1375 if test "${ac_cv_c_tclconfig+set}" = set; then 1376 echo $ECHO_N "(cached) $ECHO_C" >&6 1377else 1378 1379 1380 # First check to see if --with-tcl was specified. 1381 if test x"${with_tclconfig}" != x ; then 1382 case "${with_tclconfig}" in 1383 */tclConfig.sh ) 1384 if test -f "${with_tclconfig}"; then 1385 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1386echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1387 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1388 fi ;; 1389 esac 1390 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1391 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1392 else 1393 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1394echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1395 { (exit 1); exit 1; }; } 1396 fi 1397 fi 1398 1399 # then check for a private Tcl installation 1400 if test x"${ac_cv_c_tclconfig}" = x ; then 1401 for i in \ 1402 ../tcl \ 1403 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1404 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1405 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1406 ../../tcl \ 1407 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1408 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1409 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1410 ../../../tcl \ 1411 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1412 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1413 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1414 if test -f "$i/unix/tclConfig.sh" ; then 1415 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1416 break 1417 fi 1418 done 1419 fi 1420 1421 # on Darwin, check in Framework installation locations 1422 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1423 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1424 `ls -d /Library/Frameworks 2>/dev/null` \ 1425 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1426 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1427 ; do 1428 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1429 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1430 break 1431 fi 1432 done 1433 fi 1434 1435 # check in a few common install locations 1436 if test x"${ac_cv_c_tclconfig}" = x ; then 1437 for i in `ls -d ${libdir} 2>/dev/null` \ 1438 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1439 `ls -d ${prefix}/lib 2>/dev/null` \ 1440 `ls -d /usr/local/lib 2>/dev/null` \ 1441 `ls -d /usr/contrib/lib 2>/dev/null` \ 1442 `ls -d /usr/lib 2>/dev/null` \ 1443 `ls -d /usr/lib64 2>/dev/null` \ 1444 ; do 1445 if test -f "$i/tclConfig.sh" ; then 1446 ac_cv_c_tclconfig="`(cd $i; pwd)`" 1447 break 1448 fi 1449 done 1450 fi 1451 1452 # check in a few other private locations 1453 if test x"${ac_cv_c_tclconfig}" = x ; then 1454 for i in \ 1455 ${srcdir}/../tcl \ 1456 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1457 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1458 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1459 if test -f "$i/unix/tclConfig.sh" ; then 1460 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1461 break 1462 fi 1463 done 1464 fi 1465 1466fi 1467 1468 1469 if test x"${ac_cv_c_tclconfig}" = x ; then 1470 TCL_BIN_DIR="# no Tcl configs found" 1471 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 1472echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 1473 exit 0 1474 else 1475 no_tcl= 1476 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 1477 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1478echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 1479 fi 1480 fi 1481 1482 1483 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1484echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 1485 1486 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1487 echo "$as_me:$LINENO: result: loading" >&5 1488echo "${ECHO_T}loading" >&6 1489 . "${TCL_BIN_DIR}/tclConfig.sh" 1490 else 1491 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1492echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 1493 fi 1494 1495 # eval is required to do the TCL_DBGX substitution 1496 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1497 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1498 1499 # If the TCL_BIN_DIR is the build directory (not the install directory), 1500 # then set the common variable name to the value of the build variables. 1501 # For example, the variable TCL_LIB_SPEC will be set to the value 1502 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1503 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1504 # installed and uninstalled version of Tcl. 1505 if test -f "${TCL_BIN_DIR}/Makefile" ; then 1506 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 1507 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 1508 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 1509 elif test "`uname -s`" = "Darwin"; then 1510 # If Tcl was built as a framework, attempt to use the libraries 1511 # from the framework at the given location so that linking works 1512 # against Tcl.framework installed in an arbitary location. 1513 case ${TCL_DEFS} in 1514 *TCL_FRAMEWORK*) 1515 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 1516 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 1517 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 1518 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 1519 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 1520 break 1521 fi 1522 done 1523 fi 1524 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 1525 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 1526 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 1527 fi 1528 ;; 1529 esac 1530 fi 1531 1532 # eval is required to do the TCL_DBGX substitution 1533 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 1534 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 1535 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 1536 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 echo "$as_me:$LINENO: checking for tclsh" >&5 1554echo $ECHO_N "checking for tclsh... $ECHO_C" >&6 1555 if test "${ac_cv_path_tclsh+set}" = set; then 1556 echo $ECHO_N "(cached) $ECHO_C" >&6 1557else 1558 1559 search_path=`echo ${PATH} | sed -e 's/:/ /g'` 1560 for dir in $search_path ; do 1561 for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \ 1562 `ls -r $dir/tclsh* 2> /dev/null` ; do 1563 if test x"$ac_cv_path_tclsh" = x ; then 1564 if test -f "$j" ; then 1565 ac_cv_path_tclsh=$j 1566 break 1567 fi 1568 fi 1569 done 1570 done 1571 1572fi 1573 1574 1575 if test -f "$ac_cv_path_tclsh" ; then 1576 TCLSH_PROG="$ac_cv_path_tclsh" 1577 echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5 1578echo "${ECHO_T}$TCLSH_PROG" >&6 1579 else 1580 # It is not an error if an installed version of Tcl can't be located. 1581 TCLSH_PROG="" 1582 echo "$as_me:$LINENO: result: No tclsh found on PATH" >&5 1583echo "${ECHO_T}No tclsh found on PATH" >&6 1584 fi 1585 1586 1587 1588 echo "$as_me:$LINENO: checking for tclsh in Tcl build directory" >&5 1589echo $ECHO_N "checking for tclsh in Tcl build directory... $ECHO_C" >&6 1590 BUILD_TCLSH="${TCL_BIN_DIR}"/tclsh 1591 echo "$as_me:$LINENO: result: $BUILD_TCLSH" >&5 1592echo "${ECHO_T}$BUILD_TCLSH" >&6 1593 1594 1595 1596if test "${TCL_VERSION}" != "${TK_VERSION}"; then 1597 { { echo "$as_me:$LINENO: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. 1598Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}. 1599Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&5 1600echo "$as_me: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. 1601Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}. 1602Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&2;} 1603 { (exit 1); exit 1; }; } 1604fi 1605 1606#------------------------------------------------------------------------ 1607# Handle the --prefix=... option 1608#------------------------------------------------------------------------ 1609 1610if test "${prefix}" = "NONE"; then 1611 prefix="$TCL_PREFIX" 1612fi 1613if test "${exec_prefix}" = "NONE"; then 1614 exec_prefix=$prefix 1615fi 1616# Make sure srcdir is fully qualified! 1617srcdir="`cd "$srcdir" ; pwd`" 1618TK_SRC_DIR="`cd "$srcdir"/..; pwd`" 1619 1620#------------------------------------------------------------------------ 1621# Compress and/or soft link the manpages? 1622#------------------------------------------------------------------------ 1623 1624 1625 echo "$as_me:$LINENO: checking whether to use symlinks for manpages" >&5 1626echo $ECHO_N "checking whether to use symlinks for manpages... $ECHO_C" >&6 1627 # Check whether --enable-man-symlinks or --disable-man-symlinks was given. 1628if test "${enable_man_symlinks+set}" = set; then 1629 enableval="$enable_man_symlinks" 1630 test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks" 1631else 1632 enableval="no" 1633fi; 1634 echo "$as_me:$LINENO: result: $enableval" >&5 1635echo "${ECHO_T}$enableval" >&6 1636 1637 echo "$as_me:$LINENO: checking whether to compress the manpages" >&5 1638echo $ECHO_N "checking whether to compress the manpages... $ECHO_C" >&6 1639 # Check whether --enable-man-compression or --disable-man-compression was given. 1640if test "${enable_man_compression+set}" = set; then 1641 enableval="$enable_man_compression" 1642 case $enableval in 1643 yes) { { echo "$as_me:$LINENO: error: missing argument to --enable-man-compression" >&5 1644echo "$as_me: error: missing argument to --enable-man-compression" >&2;} 1645 { (exit 1); exit 1; }; };; 1646 no) ;; 1647 *) MAN_FLAGS="$MAN_FLAGS --compress $enableval";; 1648 esac 1649else 1650 enableval="no" 1651fi; 1652 echo "$as_me:$LINENO: result: $enableval" >&5 1653echo "${ECHO_T}$enableval" >&6 1654 if test "$enableval" != "no"; then 1655 echo "$as_me:$LINENO: checking for compressed file suffix" >&5 1656echo $ECHO_N "checking for compressed file suffix... $ECHO_C" >&6 1657 touch TeST 1658 $enableval TeST 1659 Z=`ls TeST* | sed 's/^....//'` 1660 rm -f TeST* 1661 MAN_FLAGS="$MAN_FLAGS --extension $Z" 1662 echo "$as_me:$LINENO: result: $Z" >&5 1663echo "${ECHO_T}$Z" >&6 1664 fi 1665 1666 echo "$as_me:$LINENO: checking whether to add a package name suffix for the manpages" >&5 1667echo $ECHO_N "checking whether to add a package name suffix for the manpages... $ECHO_C" >&6 1668 # Check whether --enable-man-suffix or --disable-man-suffix was given. 1669if test "${enable_man_suffix+set}" = set; then 1670 enableval="$enable_man_suffix" 1671 case $enableval in 1672 yes) enableval="tk" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 1673 no) ;; 1674 *) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 1675 esac 1676else 1677 enableval="no" 1678fi; 1679 echo "$as_me:$LINENO: result: $enableval" >&5 1680echo "${ECHO_T}$enableval" >&6 1681 1682 1683 1684 1685#------------------------------------------------------------------------ 1686# Standard compiler checks 1687#------------------------------------------------------------------------ 1688 1689# If the user did not set CFLAGS, set it now to keep 1690# the AC_PROG_CC macro from adding "-g -O2". 1691if test "${CFLAGS+set}" != "set" ; then 1692 CFLAGS="" 1693fi 1694 1695ac_ext=c 1696ac_cpp='$CPP $CPPFLAGS' 1697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1699ac_compiler_gnu=$ac_cv_c_compiler_gnu 1700if test -n "$ac_tool_prefix"; then 1701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1702set dummy ${ac_tool_prefix}gcc; ac_word=$2 1703echo "$as_me:$LINENO: checking for $ac_word" >&5 1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1705if test "${ac_cv_prog_CC+set}" = set; then 1706 echo $ECHO_N "(cached) $ECHO_C" >&6 1707else 1708 if test -n "$CC"; then 1709 ac_cv_prog_CC="$CC" # Let the user override the test. 1710else 1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1712for as_dir in $PATH 1713do 1714 IFS=$as_save_IFS 1715 test -z "$as_dir" && as_dir=. 1716 for ac_exec_ext in '' $ac_executable_extensions; do 1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1718 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1720 break 2 1721 fi 1722done 1723done 1724 1725fi 1726fi 1727CC=$ac_cv_prog_CC 1728if test -n "$CC"; then 1729 echo "$as_me:$LINENO: result: $CC" >&5 1730echo "${ECHO_T}$CC" >&6 1731else 1732 echo "$as_me:$LINENO: result: no" >&5 1733echo "${ECHO_T}no" >&6 1734fi 1735 1736fi 1737if test -z "$ac_cv_prog_CC"; then 1738 ac_ct_CC=$CC 1739 # Extract the first word of "gcc", so it can be a program name with args. 1740set dummy gcc; ac_word=$2 1741echo "$as_me:$LINENO: checking for $ac_word" >&5 1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1743if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1744 echo $ECHO_N "(cached) $ECHO_C" >&6 1745else 1746 if test -n "$ac_ct_CC"; then 1747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1748else 1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1750for as_dir in $PATH 1751do 1752 IFS=$as_save_IFS 1753 test -z "$as_dir" && as_dir=. 1754 for ac_exec_ext in '' $ac_executable_extensions; do 1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1756 ac_cv_prog_ac_ct_CC="gcc" 1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1758 break 2 1759 fi 1760done 1761done 1762 1763fi 1764fi 1765ac_ct_CC=$ac_cv_prog_ac_ct_CC 1766if test -n "$ac_ct_CC"; then 1767 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1768echo "${ECHO_T}$ac_ct_CC" >&6 1769else 1770 echo "$as_me:$LINENO: result: no" >&5 1771echo "${ECHO_T}no" >&6 1772fi 1773 1774 CC=$ac_ct_CC 1775else 1776 CC="$ac_cv_prog_CC" 1777fi 1778 1779if test -z "$CC"; then 1780 if test -n "$ac_tool_prefix"; then 1781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1782set dummy ${ac_tool_prefix}cc; ac_word=$2 1783echo "$as_me:$LINENO: checking for $ac_word" >&5 1784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1785if test "${ac_cv_prog_CC+set}" = set; then 1786 echo $ECHO_N "(cached) $ECHO_C" >&6 1787else 1788 if test -n "$CC"; then 1789 ac_cv_prog_CC="$CC" # Let the user override the test. 1790else 1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1792for as_dir in $PATH 1793do 1794 IFS=$as_save_IFS 1795 test -z "$as_dir" && as_dir=. 1796 for ac_exec_ext in '' $ac_executable_extensions; do 1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1798 ac_cv_prog_CC="${ac_tool_prefix}cc" 1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1800 break 2 1801 fi 1802done 1803done 1804 1805fi 1806fi 1807CC=$ac_cv_prog_CC 1808if test -n "$CC"; then 1809 echo "$as_me:$LINENO: result: $CC" >&5 1810echo "${ECHO_T}$CC" >&6 1811else 1812 echo "$as_me:$LINENO: result: no" >&5 1813echo "${ECHO_T}no" >&6 1814fi 1815 1816fi 1817if test -z "$ac_cv_prog_CC"; then 1818 ac_ct_CC=$CC 1819 # Extract the first word of "cc", so it can be a program name with args. 1820set dummy cc; ac_word=$2 1821echo "$as_me:$LINENO: checking for $ac_word" >&5 1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1824 echo $ECHO_N "(cached) $ECHO_C" >&6 1825else 1826 if test -n "$ac_ct_CC"; then 1827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1828else 1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1830for as_dir in $PATH 1831do 1832 IFS=$as_save_IFS 1833 test -z "$as_dir" && as_dir=. 1834 for ac_exec_ext in '' $ac_executable_extensions; do 1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1836 ac_cv_prog_ac_ct_CC="cc" 1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1838 break 2 1839 fi 1840done 1841done 1842 1843fi 1844fi 1845ac_ct_CC=$ac_cv_prog_ac_ct_CC 1846if test -n "$ac_ct_CC"; then 1847 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1848echo "${ECHO_T}$ac_ct_CC" >&6 1849else 1850 echo "$as_me:$LINENO: result: no" >&5 1851echo "${ECHO_T}no" >&6 1852fi 1853 1854 CC=$ac_ct_CC 1855else 1856 CC="$ac_cv_prog_CC" 1857fi 1858 1859fi 1860if test -z "$CC"; then 1861 # Extract the first word of "cc", so it can be a program name with args. 1862set dummy cc; ac_word=$2 1863echo "$as_me:$LINENO: checking for $ac_word" >&5 1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1865if test "${ac_cv_prog_CC+set}" = set; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 if test -n "$CC"; then 1869 ac_cv_prog_CC="$CC" # Let the user override the test. 1870else 1871 ac_prog_rejected=no 1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1873for as_dir in $PATH 1874do 1875 IFS=$as_save_IFS 1876 test -z "$as_dir" && as_dir=. 1877 for ac_exec_ext in '' $ac_executable_extensions; do 1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1880 ac_prog_rejected=yes 1881 continue 1882 fi 1883 ac_cv_prog_CC="cc" 1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1885 break 2 1886 fi 1887done 1888done 1889 1890if test $ac_prog_rejected = yes; then 1891 # We found a bogon in the path, so make sure we never use it. 1892 set dummy $ac_cv_prog_CC 1893 shift 1894 if test $# != 0; then 1895 # We chose a different compiler from the bogus one. 1896 # However, it has the same basename, so the bogon will be chosen 1897 # first if we set CC to just the basename; use the full file name. 1898 shift 1899 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1900 fi 1901fi 1902fi 1903fi 1904CC=$ac_cv_prog_CC 1905if test -n "$CC"; then 1906 echo "$as_me:$LINENO: result: $CC" >&5 1907echo "${ECHO_T}$CC" >&6 1908else 1909 echo "$as_me:$LINENO: result: no" >&5 1910echo "${ECHO_T}no" >&6 1911fi 1912 1913fi 1914if test -z "$CC"; then 1915 if test -n "$ac_tool_prefix"; then 1916 for ac_prog in cl 1917 do 1918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1919set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1920echo "$as_me:$LINENO: checking for $ac_word" >&5 1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1922if test "${ac_cv_prog_CC+set}" = set; then 1923 echo $ECHO_N "(cached) $ECHO_C" >&6 1924else 1925 if test -n "$CC"; then 1926 ac_cv_prog_CC="$CC" # Let the user override the test. 1927else 1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1929for as_dir in $PATH 1930do 1931 IFS=$as_save_IFS 1932 test -z "$as_dir" && as_dir=. 1933 for ac_exec_ext in '' $ac_executable_extensions; do 1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1937 break 2 1938 fi 1939done 1940done 1941 1942fi 1943fi 1944CC=$ac_cv_prog_CC 1945if test -n "$CC"; then 1946 echo "$as_me:$LINENO: result: $CC" >&5 1947echo "${ECHO_T}$CC" >&6 1948else 1949 echo "$as_me:$LINENO: result: no" >&5 1950echo "${ECHO_T}no" >&6 1951fi 1952 1953 test -n "$CC" && break 1954 done 1955fi 1956if test -z "$CC"; then 1957 ac_ct_CC=$CC 1958 for ac_prog in cl 1959do 1960 # Extract the first word of "$ac_prog", so it can be a program name with args. 1961set dummy $ac_prog; ac_word=$2 1962echo "$as_me:$LINENO: checking for $ac_word" >&5 1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1965 echo $ECHO_N "(cached) $ECHO_C" >&6 1966else 1967 if test -n "$ac_ct_CC"; then 1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1969else 1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1971for as_dir in $PATH 1972do 1973 IFS=$as_save_IFS 1974 test -z "$as_dir" && as_dir=. 1975 for ac_exec_ext in '' $ac_executable_extensions; do 1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1977 ac_cv_prog_ac_ct_CC="$ac_prog" 1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1979 break 2 1980 fi 1981done 1982done 1983 1984fi 1985fi 1986ac_ct_CC=$ac_cv_prog_ac_ct_CC 1987if test -n "$ac_ct_CC"; then 1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1989echo "${ECHO_T}$ac_ct_CC" >&6 1990else 1991 echo "$as_me:$LINENO: result: no" >&5 1992echo "${ECHO_T}no" >&6 1993fi 1994 1995 test -n "$ac_ct_CC" && break 1996done 1997 1998 CC=$ac_ct_CC 1999fi 2000 2001fi 2002 2003 2004test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2005See \`config.log' for more details." >&5 2006echo "$as_me: error: no acceptable C compiler found in \$PATH 2007See \`config.log' for more details." >&2;} 2008 { (exit 1); exit 1; }; } 2009 2010# Provide some information about the compiler. 2011echo "$as_me:$LINENO:" \ 2012 "checking for C compiler version" >&5 2013ac_compiler=`set X $ac_compile; echo $2` 2014{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2015 (eval $ac_compiler --version </dev/null >&5) 2>&5 2016 ac_status=$? 2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2018 (exit $ac_status); } 2019{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2020 (eval $ac_compiler -v </dev/null >&5) 2>&5 2021 ac_status=$? 2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2023 (exit $ac_status); } 2024{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2025 (eval $ac_compiler -V </dev/null >&5) 2>&5 2026 ac_status=$? 2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2028 (exit $ac_status); } 2029 2030cat >conftest.$ac_ext <<_ACEOF 2031/* confdefs.h. */ 2032_ACEOF 2033cat confdefs.h >>conftest.$ac_ext 2034cat >>conftest.$ac_ext <<_ACEOF 2035/* end confdefs.h. */ 2036 2037int 2038main () 2039{ 2040 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045ac_clean_files_save=$ac_clean_files 2046ac_clean_files="$ac_clean_files a.out a.exe b.out" 2047# Try to create an executable without -o first, disregard a.out. 2048# It will help us diagnose broken compilers, and finding out an intuition 2049# of exeext. 2050echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2051echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2052ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2053if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2054 (eval $ac_link_default) 2>&5 2055 ac_status=$? 2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2057 (exit $ac_status); }; then 2058 # Find the output, starting from the most likely. This scheme is 2059# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2060# resort. 2061 2062# Be careful to initialize this variable, since it used to be cached. 2063# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2064ac_cv_exeext= 2065# b.out is created by i960 compilers. 2066for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2067do 2068 test -f "$ac_file" || continue 2069 case $ac_file in 2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2071 ;; 2072 conftest.$ac_ext ) 2073 # This is the source file. 2074 ;; 2075 [ab].out ) 2076 # We found the default executable, but exeext='' is most 2077 # certainly right. 2078 break;; 2079 *.* ) 2080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2081 # FIXME: I believe we export ac_cv_exeext for Libtool, 2082 # but it would be cool to find out if it's true. Does anybody 2083 # maintain Libtool? --akim. 2084 export ac_cv_exeext 2085 break;; 2086 * ) 2087 break;; 2088 esac 2089done 2090else 2091 echo "$as_me: failed program was:" >&5 2092sed 's/^/| /' conftest.$ac_ext >&5 2093 2094{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2095See \`config.log' for more details." >&5 2096echo "$as_me: error: C compiler cannot create executables 2097See \`config.log' for more details." >&2;} 2098 { (exit 77); exit 77; }; } 2099fi 2100 2101ac_exeext=$ac_cv_exeext 2102echo "$as_me:$LINENO: result: $ac_file" >&5 2103echo "${ECHO_T}$ac_file" >&6 2104 2105# Check the compiler produces executables we can run. If not, either 2106# the compiler is broken, or we cross compile. 2107echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2108echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2109# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2110# If not cross compiling, check that we can run a simple program. 2111if test "$cross_compiling" != yes; then 2112 if { ac_try='./$ac_file' 2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2114 (eval $ac_try) 2>&5 2115 ac_status=$? 2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2117 (exit $ac_status); }; }; then 2118 cross_compiling=no 2119 else 2120 if test "$cross_compiling" = maybe; then 2121 cross_compiling=yes 2122 else 2123 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2124If you meant to cross compile, use \`--host'. 2125See \`config.log' for more details." >&5 2126echo "$as_me: error: cannot run C compiled programs. 2127If you meant to cross compile, use \`--host'. 2128See \`config.log' for more details." >&2;} 2129 { (exit 1); exit 1; }; } 2130 fi 2131 fi 2132fi 2133echo "$as_me:$LINENO: result: yes" >&5 2134echo "${ECHO_T}yes" >&6 2135 2136rm -f a.out a.exe conftest$ac_cv_exeext b.out 2137ac_clean_files=$ac_clean_files_save 2138# Check the compiler produces executables we can run. If not, either 2139# the compiler is broken, or we cross compile. 2140echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2141echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2142echo "$as_me:$LINENO: result: $cross_compiling" >&5 2143echo "${ECHO_T}$cross_compiling" >&6 2144 2145echo "$as_me:$LINENO: checking for suffix of executables" >&5 2146echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2148 (eval $ac_link) 2>&5 2149 ac_status=$? 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); }; then 2152 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2153# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2154# work properly (i.e., refer to `conftest.exe'), while it won't with 2155# `rm'. 2156for ac_file in conftest.exe conftest conftest.*; do 2157 test -f "$ac_file" || continue 2158 case $ac_file in 2159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2161 export ac_cv_exeext 2162 break;; 2163 * ) break;; 2164 esac 2165done 2166else 2167 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2168See \`config.log' for more details." >&5 2169echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2170See \`config.log' for more details." >&2;} 2171 { (exit 1); exit 1; }; } 2172fi 2173 2174rm -f conftest$ac_cv_exeext 2175echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2176echo "${ECHO_T}$ac_cv_exeext" >&6 2177 2178rm -f conftest.$ac_ext 2179EXEEXT=$ac_cv_exeext 2180ac_exeext=$EXEEXT 2181echo "$as_me:$LINENO: checking for suffix of object files" >&5 2182echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2183if test "${ac_cv_objext+set}" = set; then 2184 echo $ECHO_N "(cached) $ECHO_C" >&6 2185else 2186 cat >conftest.$ac_ext <<_ACEOF 2187/* confdefs.h. */ 2188_ACEOF 2189cat confdefs.h >>conftest.$ac_ext 2190cat >>conftest.$ac_ext <<_ACEOF 2191/* end confdefs.h. */ 2192 2193int 2194main () 2195{ 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201rm -f conftest.o conftest.obj 2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2203 (eval $ac_compile) 2>&5 2204 ac_status=$? 2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2206 (exit $ac_status); }; then 2207 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2208 case $ac_file in 2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2211 break;; 2212 esac 2213done 2214else 2215 echo "$as_me: failed program was:" >&5 2216sed 's/^/| /' conftest.$ac_ext >&5 2217 2218{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2219See \`config.log' for more details." >&5 2220echo "$as_me: error: cannot compute suffix of object files: cannot compile 2221See \`config.log' for more details." >&2;} 2222 { (exit 1); exit 1; }; } 2223fi 2224 2225rm -f conftest.$ac_cv_objext conftest.$ac_ext 2226fi 2227echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2228echo "${ECHO_T}$ac_cv_objext" >&6 2229OBJEXT=$ac_cv_objext 2230ac_objext=$OBJEXT 2231echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2232echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2233if test "${ac_cv_c_compiler_gnu+set}" = set; then 2234 echo $ECHO_N "(cached) $ECHO_C" >&6 2235else 2236 cat >conftest.$ac_ext <<_ACEOF 2237/* confdefs.h. */ 2238_ACEOF 2239cat confdefs.h >>conftest.$ac_ext 2240cat >>conftest.$ac_ext <<_ACEOF 2241/* end confdefs.h. */ 2242 2243int 2244main () 2245{ 2246#ifndef __GNUC__ 2247 choke me 2248#endif 2249 2250 ; 2251 return 0; 2252} 2253_ACEOF 2254rm -f conftest.$ac_objext 2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2256 (eval $ac_compile) 2>conftest.er1 2257 ac_status=$? 2258 grep -v '^ *+' conftest.er1 >conftest.err 2259 rm -f conftest.er1 2260 cat conftest.err >&5 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); } && 2263 { ac_try='test -z "$ac_c_werror_flag" 2264 || test ! -s conftest.err' 2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 (eval $ac_try) 2>&5 2267 ac_status=$? 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); }; } && 2270 { ac_try='test -s conftest.$ac_objext' 2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2272 (eval $ac_try) 2>&5 2273 ac_status=$? 2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2275 (exit $ac_status); }; }; then 2276 ac_compiler_gnu=yes 2277else 2278 echo "$as_me: failed program was:" >&5 2279sed 's/^/| /' conftest.$ac_ext >&5 2280 2281ac_compiler_gnu=no 2282fi 2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2284ac_cv_c_compiler_gnu=$ac_compiler_gnu 2285 2286fi 2287echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2288echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2289GCC=`test $ac_compiler_gnu = yes && echo yes` 2290ac_test_CFLAGS=${CFLAGS+set} 2291ac_save_CFLAGS=$CFLAGS 2292CFLAGS="-g" 2293echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2294echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2295if test "${ac_cv_prog_cc_g+set}" = set; then 2296 echo $ECHO_N "(cached) $ECHO_C" >&6 2297else 2298 cat >conftest.$ac_ext <<_ACEOF 2299/* confdefs.h. */ 2300_ACEOF 2301cat confdefs.h >>conftest.$ac_ext 2302cat >>conftest.$ac_ext <<_ACEOF 2303/* end confdefs.h. */ 2304 2305int 2306main () 2307{ 2308 2309 ; 2310 return 0; 2311} 2312_ACEOF 2313rm -f conftest.$ac_objext 2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2315 (eval $ac_compile) 2>conftest.er1 2316 ac_status=$? 2317 grep -v '^ *+' conftest.er1 >conftest.err 2318 rm -f conftest.er1 2319 cat conftest.err >&5 2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2321 (exit $ac_status); } && 2322 { ac_try='test -z "$ac_c_werror_flag" 2323 || test ! -s conftest.err' 2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2325 (eval $ac_try) 2>&5 2326 ac_status=$? 2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2328 (exit $ac_status); }; } && 2329 { ac_try='test -s conftest.$ac_objext' 2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2331 (eval $ac_try) 2>&5 2332 ac_status=$? 2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2334 (exit $ac_status); }; }; then 2335 ac_cv_prog_cc_g=yes 2336else 2337 echo "$as_me: failed program was:" >&5 2338sed 's/^/| /' conftest.$ac_ext >&5 2339 2340ac_cv_prog_cc_g=no 2341fi 2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2343fi 2344echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2345echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2346if test "$ac_test_CFLAGS" = set; then 2347 CFLAGS=$ac_save_CFLAGS 2348elif test $ac_cv_prog_cc_g = yes; then 2349 if test "$GCC" = yes; then 2350 CFLAGS="-g -O2" 2351 else 2352 CFLAGS="-g" 2353 fi 2354else 2355 if test "$GCC" = yes; then 2356 CFLAGS="-O2" 2357 else 2358 CFLAGS= 2359 fi 2360fi 2361echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2362echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2363if test "${ac_cv_prog_cc_stdc+set}" = set; then 2364 echo $ECHO_N "(cached) $ECHO_C" >&6 2365else 2366 ac_cv_prog_cc_stdc=no 2367ac_save_CC=$CC 2368cat >conftest.$ac_ext <<_ACEOF 2369/* confdefs.h. */ 2370_ACEOF 2371cat confdefs.h >>conftest.$ac_ext 2372cat >>conftest.$ac_ext <<_ACEOF 2373/* end confdefs.h. */ 2374#include <stdarg.h> 2375#include <stdio.h> 2376#include <sys/types.h> 2377#include <sys/stat.h> 2378/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2379struct buf { int x; }; 2380FILE * (*rcsopen) (struct buf *, struct stat *, int); 2381static char *e (p, i) 2382 char **p; 2383 int i; 2384{ 2385 return p[i]; 2386} 2387static char *f (char * (*g) (char **, int), char **p, ...) 2388{ 2389 char *s; 2390 va_list v; 2391 va_start (v,p); 2392 s = g (p, va_arg (v,int)); 2393 va_end (v); 2394 return s; 2395} 2396 2397/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2398 function prototypes and stuff, but not '\xHH' hex character constants. 2399 These don't provoke an error unfortunately, instead are silently treated 2400 as 'x'. The following induces an error, until -std1 is added to get 2401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2402 array size at least. It's necessary to write '\x00'==0 to get something 2403 that's true only with -std1. */ 2404int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2405 2406int test (int i, double x); 2407struct s1 {int (*f) (int a);}; 2408struct s2 {int (*f) (double a);}; 2409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2410int argc; 2411char **argv; 2412int 2413main () 2414{ 2415return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2416 ; 2417 return 0; 2418} 2419_ACEOF 2420# Don't try gcc -ansi; that turns off useful extensions and 2421# breaks some systems' header files. 2422# AIX -qlanglvl=ansi 2423# Ultrix and OSF/1 -std1 2424# HP-UX 10.20 and later -Ae 2425# HP-UX older versions -Aa -D_HPUX_SOURCE 2426# SVR4 -Xc -D__EXTENSIONS__ 2427for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2428do 2429 CC="$ac_save_CC $ac_arg" 2430 rm -f conftest.$ac_objext 2431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2432 (eval $ac_compile) 2>conftest.er1 2433 ac_status=$? 2434 grep -v '^ *+' conftest.er1 >conftest.err 2435 rm -f conftest.er1 2436 cat conftest.err >&5 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); } && 2439 { ac_try='test -z "$ac_c_werror_flag" 2440 || test ! -s conftest.err' 2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2442 (eval $ac_try) 2>&5 2443 ac_status=$? 2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2445 (exit $ac_status); }; } && 2446 { ac_try='test -s conftest.$ac_objext' 2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2448 (eval $ac_try) 2>&5 2449 ac_status=$? 2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2451 (exit $ac_status); }; }; then 2452 ac_cv_prog_cc_stdc=$ac_arg 2453break 2454else 2455 echo "$as_me: failed program was:" >&5 2456sed 's/^/| /' conftest.$ac_ext >&5 2457 2458fi 2459rm -f conftest.err conftest.$ac_objext 2460done 2461rm -f conftest.$ac_ext conftest.$ac_objext 2462CC=$ac_save_CC 2463 2464fi 2465 2466case "x$ac_cv_prog_cc_stdc" in 2467 x|xno) 2468 echo "$as_me:$LINENO: result: none needed" >&5 2469echo "${ECHO_T}none needed" >&6 ;; 2470 *) 2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2472echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2473 CC="$CC $ac_cv_prog_cc_stdc" ;; 2474esac 2475 2476# Some people use a C++ compiler to compile C. Since we use `exit', 2477# in C++ we need to declare it. In case someone uses the same compiler 2478# for both compiling C and C++ we need to have the C++ compiler decide 2479# the declaration of exit, since it's the most demanding environment. 2480cat >conftest.$ac_ext <<_ACEOF 2481#ifndef __cplusplus 2482 choke me 2483#endif 2484_ACEOF 2485rm -f conftest.$ac_objext 2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2487 (eval $ac_compile) 2>conftest.er1 2488 ac_status=$? 2489 grep -v '^ *+' conftest.er1 >conftest.err 2490 rm -f conftest.er1 2491 cat conftest.err >&5 2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2493 (exit $ac_status); } && 2494 { ac_try='test -z "$ac_c_werror_flag" 2495 || test ! -s conftest.err' 2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2497 (eval $ac_try) 2>&5 2498 ac_status=$? 2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2500 (exit $ac_status); }; } && 2501 { ac_try='test -s conftest.$ac_objext' 2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2503 (eval $ac_try) 2>&5 2504 ac_status=$? 2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2506 (exit $ac_status); }; }; then 2507 for ac_declaration in \ 2508 '' \ 2509 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2510 'extern "C" void std::exit (int); using std::exit;' \ 2511 'extern "C" void exit (int) throw ();' \ 2512 'extern "C" void exit (int);' \ 2513 'void exit (int);' 2514do 2515 cat >conftest.$ac_ext <<_ACEOF 2516/* confdefs.h. */ 2517_ACEOF 2518cat confdefs.h >>conftest.$ac_ext 2519cat >>conftest.$ac_ext <<_ACEOF 2520/* end confdefs.h. */ 2521$ac_declaration 2522#include <stdlib.h> 2523int 2524main () 2525{ 2526exit (42); 2527 ; 2528 return 0; 2529} 2530_ACEOF 2531rm -f conftest.$ac_objext 2532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2533 (eval $ac_compile) 2>conftest.er1 2534 ac_status=$? 2535 grep -v '^ *+' conftest.er1 >conftest.err 2536 rm -f conftest.er1 2537 cat conftest.err >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2539 (exit $ac_status); } && 2540 { ac_try='test -z "$ac_c_werror_flag" 2541 || test ! -s conftest.err' 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2543 (eval $ac_try) 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); }; } && 2547 { ac_try='test -s conftest.$ac_objext' 2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2549 (eval $ac_try) 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); }; }; then 2553 : 2554else 2555 echo "$as_me: failed program was:" >&5 2556sed 's/^/| /' conftest.$ac_ext >&5 2557 2558continue 2559fi 2560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2561 cat >conftest.$ac_ext <<_ACEOF 2562/* confdefs.h. */ 2563_ACEOF 2564cat confdefs.h >>conftest.$ac_ext 2565cat >>conftest.$ac_ext <<_ACEOF 2566/* end confdefs.h. */ 2567$ac_declaration 2568int 2569main () 2570{ 2571exit (42); 2572 ; 2573 return 0; 2574} 2575_ACEOF 2576rm -f conftest.$ac_objext 2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2578 (eval $ac_compile) 2>conftest.er1 2579 ac_status=$? 2580 grep -v '^ *+' conftest.er1 >conftest.err 2581 rm -f conftest.er1 2582 cat conftest.err >&5 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); } && 2585 { ac_try='test -z "$ac_c_werror_flag" 2586 || test ! -s conftest.err' 2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2588 (eval $ac_try) 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; } && 2592 { ac_try='test -s conftest.$ac_objext' 2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2594 (eval $ac_try) 2>&5 2595 ac_status=$? 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); }; }; then 2598 break 2599else 2600 echo "$as_me: failed program was:" >&5 2601sed 's/^/| /' conftest.$ac_ext >&5 2602 2603fi 2604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2605done 2606rm -f conftest* 2607if test -n "$ac_declaration"; then 2608 echo '#ifdef __cplusplus' >>confdefs.h 2609 echo $ac_declaration >>confdefs.h 2610 echo '#endif' >>confdefs.h 2611fi 2612 2613else 2614 echo "$as_me: failed program was:" >&5 2615sed 's/^/| /' conftest.$ac_ext >&5 2616 2617fi 2618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2619ac_ext=c 2620ac_cpp='$CPP $CPPFLAGS' 2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2623ac_compiler_gnu=$ac_cv_c_compiler_gnu 2624 2625 2626# limits header checks must come early to prevent 2627# an autoconf bug that throws errors on configure 2628 2629ac_ext=c 2630ac_cpp='$CPP $CPPFLAGS' 2631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2633ac_compiler_gnu=$ac_cv_c_compiler_gnu 2634echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2635echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2636# On Suns, sometimes $CPP names a directory. 2637if test -n "$CPP" && test -d "$CPP"; then 2638 CPP= 2639fi 2640if test -z "$CPP"; then 2641 if test "${ac_cv_prog_CPP+set}" = set; then 2642 echo $ECHO_N "(cached) $ECHO_C" >&6 2643else 2644 # Double quotes because CPP needs to be expanded 2645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2646 do 2647 ac_preproc_ok=false 2648for ac_c_preproc_warn_flag in '' yes 2649do 2650 # Use a header file that comes with gcc, so configuring glibc 2651 # with a fresh cross-compiler works. 2652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2653 # <limits.h> exists even on freestanding compilers. 2654 # On the NeXT, cc -E runs the code through the compiler's parser, 2655 # not just through cpp. "Syntax error" is here to catch this case. 2656 cat >conftest.$ac_ext <<_ACEOF 2657/* confdefs.h. */ 2658_ACEOF 2659cat confdefs.h >>conftest.$ac_ext 2660cat >>conftest.$ac_ext <<_ACEOF 2661/* end confdefs.h. */ 2662#ifdef __STDC__ 2663# include <limits.h> 2664#else 2665# include <assert.h> 2666#endif 2667 Syntax error 2668_ACEOF 2669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2671 ac_status=$? 2672 grep -v '^ *+' conftest.er1 >conftest.err 2673 rm -f conftest.er1 2674 cat conftest.err >&5 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); } >/dev/null; then 2677 if test -s conftest.err; then 2678 ac_cpp_err=$ac_c_preproc_warn_flag 2679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2680 else 2681 ac_cpp_err= 2682 fi 2683else 2684 ac_cpp_err=yes 2685fi 2686if test -z "$ac_cpp_err"; then 2687 : 2688else 2689 echo "$as_me: failed program was:" >&5 2690sed 's/^/| /' conftest.$ac_ext >&5 2691 2692 # Broken: fails on valid input. 2693continue 2694fi 2695rm -f conftest.err conftest.$ac_ext 2696 2697 # OK, works on sane cases. Now check whether non-existent headers 2698 # can be detected and how. 2699 cat >conftest.$ac_ext <<_ACEOF 2700/* confdefs.h. */ 2701_ACEOF 2702cat confdefs.h >>conftest.$ac_ext 2703cat >>conftest.$ac_ext <<_ACEOF 2704/* end confdefs.h. */ 2705#include <ac_nonexistent.h> 2706_ACEOF 2707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2709 ac_status=$? 2710 grep -v '^ *+' conftest.er1 >conftest.err 2711 rm -f conftest.er1 2712 cat conftest.err >&5 2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 (exit $ac_status); } >/dev/null; then 2715 if test -s conftest.err; then 2716 ac_cpp_err=$ac_c_preproc_warn_flag 2717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2718 else 2719 ac_cpp_err= 2720 fi 2721else 2722 ac_cpp_err=yes 2723fi 2724if test -z "$ac_cpp_err"; then 2725 # Broken: success on invalid input. 2726continue 2727else 2728 echo "$as_me: failed program was:" >&5 2729sed 's/^/| /' conftest.$ac_ext >&5 2730 2731 # Passes both tests. 2732ac_preproc_ok=: 2733break 2734fi 2735rm -f conftest.err conftest.$ac_ext 2736 2737done 2738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2739rm -f conftest.err conftest.$ac_ext 2740if $ac_preproc_ok; then 2741 break 2742fi 2743 2744 done 2745 ac_cv_prog_CPP=$CPP 2746 2747fi 2748 CPP=$ac_cv_prog_CPP 2749else 2750 ac_cv_prog_CPP=$CPP 2751fi 2752echo "$as_me:$LINENO: result: $CPP" >&5 2753echo "${ECHO_T}$CPP" >&6 2754ac_preproc_ok=false 2755for ac_c_preproc_warn_flag in '' yes 2756do 2757 # Use a header file that comes with gcc, so configuring glibc 2758 # with a fresh cross-compiler works. 2759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2760 # <limits.h> exists even on freestanding compilers. 2761 # On the NeXT, cc -E runs the code through the compiler's parser, 2762 # not just through cpp. "Syntax error" is here to catch this case. 2763 cat >conftest.$ac_ext <<_ACEOF 2764/* confdefs.h. */ 2765_ACEOF 2766cat confdefs.h >>conftest.$ac_ext 2767cat >>conftest.$ac_ext <<_ACEOF 2768/* end confdefs.h. */ 2769#ifdef __STDC__ 2770# include <limits.h> 2771#else 2772# include <assert.h> 2773#endif 2774 Syntax error 2775_ACEOF 2776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2778 ac_status=$? 2779 grep -v '^ *+' conftest.er1 >conftest.err 2780 rm -f conftest.er1 2781 cat conftest.err >&5 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); } >/dev/null; then 2784 if test -s conftest.err; then 2785 ac_cpp_err=$ac_c_preproc_warn_flag 2786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2787 else 2788 ac_cpp_err= 2789 fi 2790else 2791 ac_cpp_err=yes 2792fi 2793if test -z "$ac_cpp_err"; then 2794 : 2795else 2796 echo "$as_me: failed program was:" >&5 2797sed 's/^/| /' conftest.$ac_ext >&5 2798 2799 # Broken: fails on valid input. 2800continue 2801fi 2802rm -f conftest.err conftest.$ac_ext 2803 2804 # OK, works on sane cases. Now check whether non-existent headers 2805 # can be detected and how. 2806 cat >conftest.$ac_ext <<_ACEOF 2807/* confdefs.h. */ 2808_ACEOF 2809cat confdefs.h >>conftest.$ac_ext 2810cat >>conftest.$ac_ext <<_ACEOF 2811/* end confdefs.h. */ 2812#include <ac_nonexistent.h> 2813_ACEOF 2814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2816 ac_status=$? 2817 grep -v '^ *+' conftest.er1 >conftest.err 2818 rm -f conftest.er1 2819 cat conftest.err >&5 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); } >/dev/null; then 2822 if test -s conftest.err; then 2823 ac_cpp_err=$ac_c_preproc_warn_flag 2824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2825 else 2826 ac_cpp_err= 2827 fi 2828else 2829 ac_cpp_err=yes 2830fi 2831if test -z "$ac_cpp_err"; then 2832 # Broken: success on invalid input. 2833continue 2834else 2835 echo "$as_me: failed program was:" >&5 2836sed 's/^/| /' conftest.$ac_ext >&5 2837 2838 # Passes both tests. 2839ac_preproc_ok=: 2840break 2841fi 2842rm -f conftest.err conftest.$ac_ext 2843 2844done 2845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2846rm -f conftest.err conftest.$ac_ext 2847if $ac_preproc_ok; then 2848 : 2849else 2850 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2851See \`config.log' for more details." >&5 2852echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2853See \`config.log' for more details." >&2;} 2854 { (exit 1); exit 1; }; } 2855fi 2856 2857ac_ext=c 2858ac_cpp='$CPP $CPPFLAGS' 2859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2861ac_compiler_gnu=$ac_cv_c_compiler_gnu 2862 2863 2864echo "$as_me:$LINENO: checking for egrep" >&5 2865echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2866if test "${ac_cv_prog_egrep+set}" = set; then 2867 echo $ECHO_N "(cached) $ECHO_C" >&6 2868else 2869 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2870 then ac_cv_prog_egrep='grep -E' 2871 else ac_cv_prog_egrep='egrep' 2872 fi 2873fi 2874echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2875echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2876 EGREP=$ac_cv_prog_egrep 2877 2878 2879echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2880echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2881if test "${ac_cv_header_stdc+set}" = set; then 2882 echo $ECHO_N "(cached) $ECHO_C" >&6 2883else 2884 cat >conftest.$ac_ext <<_ACEOF 2885/* confdefs.h. */ 2886_ACEOF 2887cat confdefs.h >>conftest.$ac_ext 2888cat >>conftest.$ac_ext <<_ACEOF 2889/* end confdefs.h. */ 2890#include <stdlib.h> 2891#include <stdarg.h> 2892#include <string.h> 2893#include <float.h> 2894 2895int 2896main () 2897{ 2898 2899 ; 2900 return 0; 2901} 2902_ACEOF 2903rm -f conftest.$ac_objext 2904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2905 (eval $ac_compile) 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } && 2912 { ac_try='test -z "$ac_c_werror_flag" 2913 || test ! -s conftest.err' 2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2915 (eval $ac_try) 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); }; } && 2919 { ac_try='test -s conftest.$ac_objext' 2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2921 (eval $ac_try) 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); }; }; then 2925 ac_cv_header_stdc=yes 2926else 2927 echo "$as_me: failed program was:" >&5 2928sed 's/^/| /' conftest.$ac_ext >&5 2929 2930ac_cv_header_stdc=no 2931fi 2932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2933 2934if test $ac_cv_header_stdc = yes; then 2935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2936 cat >conftest.$ac_ext <<_ACEOF 2937/* confdefs.h. */ 2938_ACEOF 2939cat confdefs.h >>conftest.$ac_ext 2940cat >>conftest.$ac_ext <<_ACEOF 2941/* end confdefs.h. */ 2942#include <string.h> 2943 2944_ACEOF 2945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2946 $EGREP "memchr" >/dev/null 2>&1; then 2947 : 2948else 2949 ac_cv_header_stdc=no 2950fi 2951rm -f conftest* 2952 2953fi 2954 2955if test $ac_cv_header_stdc = yes; then 2956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2957 cat >conftest.$ac_ext <<_ACEOF 2958/* confdefs.h. */ 2959_ACEOF 2960cat confdefs.h >>conftest.$ac_ext 2961cat >>conftest.$ac_ext <<_ACEOF 2962/* end confdefs.h. */ 2963#include <stdlib.h> 2964 2965_ACEOF 2966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2967 $EGREP "free" >/dev/null 2>&1; then 2968 : 2969else 2970 ac_cv_header_stdc=no 2971fi 2972rm -f conftest* 2973 2974fi 2975 2976if test $ac_cv_header_stdc = yes; then 2977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2978 if test "$cross_compiling" = yes; then 2979 : 2980else 2981 cat >conftest.$ac_ext <<_ACEOF 2982/* confdefs.h. */ 2983_ACEOF 2984cat confdefs.h >>conftest.$ac_ext 2985cat >>conftest.$ac_ext <<_ACEOF 2986/* end confdefs.h. */ 2987#include <ctype.h> 2988#if ((' ' & 0x0FF) == 0x020) 2989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2991#else 2992# define ISLOWER(c) \ 2993 (('a' <= (c) && (c) <= 'i') \ 2994 || ('j' <= (c) && (c) <= 'r') \ 2995 || ('s' <= (c) && (c) <= 'z')) 2996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2997#endif 2998 2999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3000int 3001main () 3002{ 3003 int i; 3004 for (i = 0; i < 256; i++) 3005 if (XOR (islower (i), ISLOWER (i)) 3006 || toupper (i) != TOUPPER (i)) 3007 exit(2); 3008 exit (0); 3009} 3010_ACEOF 3011rm -f conftest$ac_exeext 3012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3013 (eval $ac_link) 2>&5 3014 ac_status=$? 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3018 (eval $ac_try) 2>&5 3019 ac_status=$? 3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3021 (exit $ac_status); }; }; then 3022 : 3023else 3024 echo "$as_me: program exited with status $ac_status" >&5 3025echo "$as_me: failed program was:" >&5 3026sed 's/^/| /' conftest.$ac_ext >&5 3027 3028( exit $ac_status ) 3029ac_cv_header_stdc=no 3030fi 3031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3032fi 3033fi 3034fi 3035echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3036echo "${ECHO_T}$ac_cv_header_stdc" >&6 3037if test $ac_cv_header_stdc = yes; then 3038 3039cat >>confdefs.h <<\_ACEOF 3040#define STDC_HEADERS 1 3041_ACEOF 3042 3043fi 3044 3045# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3056 inttypes.h stdint.h unistd.h 3057do 3058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3059echo "$as_me:$LINENO: checking for $ac_header" >&5 3060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3061if eval "test \"\${$as_ac_Header+set}\" = set"; then 3062 echo $ECHO_N "(cached) $ECHO_C" >&6 3063else 3064 cat >conftest.$ac_ext <<_ACEOF 3065/* confdefs.h. */ 3066_ACEOF 3067cat confdefs.h >>conftest.$ac_ext 3068cat >>conftest.$ac_ext <<_ACEOF 3069/* end confdefs.h. */ 3070$ac_includes_default 3071 3072#include <$ac_header> 3073_ACEOF 3074rm -f conftest.$ac_objext 3075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3076 (eval $ac_compile) 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } && 3083 { ac_try='test -z "$ac_c_werror_flag" 3084 || test ! -s conftest.err' 3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3086 (eval $ac_try) 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); }; } && 3090 { ac_try='test -s conftest.$ac_objext' 3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3092 (eval $ac_try) 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; }; then 3096 eval "$as_ac_Header=yes" 3097else 3098 echo "$as_me: failed program was:" >&5 3099sed 's/^/| /' conftest.$ac_ext >&5 3100 3101eval "$as_ac_Header=no" 3102fi 3103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3104fi 3105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3107if test `eval echo '${'$as_ac_Header'}'` = yes; then 3108 cat >>confdefs.h <<_ACEOF 3109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3110_ACEOF 3111 3112fi 3113 3114done 3115 3116 3117if test "${ac_cv_header_limits_h+set}" = set; then 3118 echo "$as_me:$LINENO: checking for limits.h" >&5 3119echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 3120if test "${ac_cv_header_limits_h+set}" = set; then 3121 echo $ECHO_N "(cached) $ECHO_C" >&6 3122fi 3123echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 3124echo "${ECHO_T}$ac_cv_header_limits_h" >&6 3125else 3126 # Is the header compilable? 3127echo "$as_me:$LINENO: checking limits.h usability" >&5 3128echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6 3129cat >conftest.$ac_ext <<_ACEOF 3130/* confdefs.h. */ 3131_ACEOF 3132cat confdefs.h >>conftest.$ac_ext 3133cat >>conftest.$ac_ext <<_ACEOF 3134/* end confdefs.h. */ 3135$ac_includes_default 3136#include <limits.h> 3137_ACEOF 3138rm -f conftest.$ac_objext 3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3140 (eval $ac_compile) 2>conftest.er1 3141 ac_status=$? 3142 grep -v '^ *+' conftest.er1 >conftest.err 3143 rm -f conftest.er1 3144 cat conftest.err >&5 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 (exit $ac_status); } && 3147 { ac_try='test -z "$ac_c_werror_flag" 3148 || test ! -s conftest.err' 3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3150 (eval $ac_try) 2>&5 3151 ac_status=$? 3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 (exit $ac_status); }; } && 3154 { ac_try='test -s conftest.$ac_objext' 3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3156 (eval $ac_try) 2>&5 3157 ac_status=$? 3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); }; }; then 3160 ac_header_compiler=yes 3161else 3162 echo "$as_me: failed program was:" >&5 3163sed 's/^/| /' conftest.$ac_ext >&5 3164 3165ac_header_compiler=no 3166fi 3167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3169echo "${ECHO_T}$ac_header_compiler" >&6 3170 3171# Is the header present? 3172echo "$as_me:$LINENO: checking limits.h presence" >&5 3173echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6 3174cat >conftest.$ac_ext <<_ACEOF 3175/* confdefs.h. */ 3176_ACEOF 3177cat confdefs.h >>conftest.$ac_ext 3178cat >>conftest.$ac_ext <<_ACEOF 3179/* end confdefs.h. */ 3180#include <limits.h> 3181_ACEOF 3182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3184 ac_status=$? 3185 grep -v '^ *+' conftest.er1 >conftest.err 3186 rm -f conftest.er1 3187 cat conftest.err >&5 3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); } >/dev/null; then 3190 if test -s conftest.err; then 3191 ac_cpp_err=$ac_c_preproc_warn_flag 3192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3193 else 3194 ac_cpp_err= 3195 fi 3196else 3197 ac_cpp_err=yes 3198fi 3199if test -z "$ac_cpp_err"; then 3200 ac_header_preproc=yes 3201else 3202 echo "$as_me: failed program was:" >&5 3203sed 's/^/| /' conftest.$ac_ext >&5 3204 3205 ac_header_preproc=no 3206fi 3207rm -f conftest.err conftest.$ac_ext 3208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3209echo "${ECHO_T}$ac_header_preproc" >&6 3210 3211# So? What about this header? 3212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3213 yes:no: ) 3214 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 3215echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3216 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 3217echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 3218 ac_header_preproc=yes 3219 ;; 3220 no:yes:* ) 3221 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 3222echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 3223 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 3224echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 3225 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 3226echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 3227 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 3228echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 3229 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 3230echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 3231 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 3232echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 3233 ( 3234 cat <<\_ASBOX 3235## ----------------------------- ## 3236## Report this to the tk lists. ## 3237## ----------------------------- ## 3238_ASBOX 3239 ) | 3240 sed "s/^/$as_me: WARNING: /" >&2 3241 ;; 3242esac 3243echo "$as_me:$LINENO: checking for limits.h" >&5 3244echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 3245if test "${ac_cv_header_limits_h+set}" = set; then 3246 echo $ECHO_N "(cached) $ECHO_C" >&6 3247else 3248 ac_cv_header_limits_h=$ac_header_preproc 3249fi 3250echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 3251echo "${ECHO_T}$ac_cv_header_limits_h" >&6 3252 3253fi 3254if test $ac_cv_header_limits_h = yes; then 3255 3256cat >>confdefs.h <<\_ACEOF 3257#define HAVE_LIMITS_H 1 3258_ACEOF 3259 3260else 3261 3262cat >>confdefs.h <<\_ACEOF 3263#define NO_LIMITS_H 1 3264_ACEOF 3265 3266fi 3267 3268 3269 3270#-------------------------------------------------------------------- 3271# Supply a substitute for stdlib.h if it doesn't define strtol, 3272# strtoul, or strtod (which it doesn't in some versions of SunOS). 3273#-------------------------------------------------------------------- 3274 3275if test "${ac_cv_header_stdlib_h+set}" = set; then 3276 echo "$as_me:$LINENO: checking for stdlib.h" >&5 3277echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 3278if test "${ac_cv_header_stdlib_h+set}" = set; then 3279 echo $ECHO_N "(cached) $ECHO_C" >&6 3280fi 3281echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 3282echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 3283else 3284 # Is the header compilable? 3285echo "$as_me:$LINENO: checking stdlib.h usability" >&5 3286echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 3287cat >conftest.$ac_ext <<_ACEOF 3288/* confdefs.h. */ 3289_ACEOF 3290cat confdefs.h >>conftest.$ac_ext 3291cat >>conftest.$ac_ext <<_ACEOF 3292/* end confdefs.h. */ 3293$ac_includes_default 3294#include <stdlib.h> 3295_ACEOF 3296rm -f conftest.$ac_objext 3297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3298 (eval $ac_compile) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } && 3305 { ac_try='test -z "$ac_c_werror_flag" 3306 || test ! -s conftest.err' 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; } && 3312 { ac_try='test -s conftest.$ac_objext' 3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3314 (eval $ac_try) 2>&5 3315 ac_status=$? 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); }; }; then 3318 ac_header_compiler=yes 3319else 3320 echo "$as_me: failed program was:" >&5 3321sed 's/^/| /' conftest.$ac_ext >&5 3322 3323ac_header_compiler=no 3324fi 3325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3327echo "${ECHO_T}$ac_header_compiler" >&6 3328 3329# Is the header present? 3330echo "$as_me:$LINENO: checking stdlib.h presence" >&5 3331echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 3332cat >conftest.$ac_ext <<_ACEOF 3333/* confdefs.h. */ 3334_ACEOF 3335cat confdefs.h >>conftest.$ac_ext 3336cat >>conftest.$ac_ext <<_ACEOF 3337/* end confdefs.h. */ 3338#include <stdlib.h> 3339_ACEOF 3340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3342 ac_status=$? 3343 grep -v '^ *+' conftest.er1 >conftest.err 3344 rm -f conftest.er1 3345 cat conftest.err >&5 3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } >/dev/null; then 3348 if test -s conftest.err; then 3349 ac_cpp_err=$ac_c_preproc_warn_flag 3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3351 else 3352 ac_cpp_err= 3353 fi 3354else 3355 ac_cpp_err=yes 3356fi 3357if test -z "$ac_cpp_err"; then 3358 ac_header_preproc=yes 3359else 3360 echo "$as_me: failed program was:" >&5 3361sed 's/^/| /' conftest.$ac_ext >&5 3362 3363 ac_header_preproc=no 3364fi 3365rm -f conftest.err conftest.$ac_ext 3366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3367echo "${ECHO_T}$ac_header_preproc" >&6 3368 3369# So? What about this header? 3370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3371 yes:no: ) 3372 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 3373echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3374 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 3375echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 3376 ac_header_preproc=yes 3377 ;; 3378 no:yes:* ) 3379 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 3380echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 3381 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 3382echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 3383 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 3384echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 3385 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 3386echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 3387 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 3388echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 3389 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 3390echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 3391 ( 3392 cat <<\_ASBOX 3393## ----------------------------- ## 3394## Report this to the tk lists. ## 3395## ----------------------------- ## 3396_ASBOX 3397 ) | 3398 sed "s/^/$as_me: WARNING: /" >&2 3399 ;; 3400esac 3401echo "$as_me:$LINENO: checking for stdlib.h" >&5 3402echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 3403if test "${ac_cv_header_stdlib_h+set}" = set; then 3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3405else 3406 ac_cv_header_stdlib_h=$ac_header_preproc 3407fi 3408echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 3409echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 3410 3411fi 3412if test $ac_cv_header_stdlib_h = yes; then 3413 tk_ok=1 3414else 3415 tk_ok=0 3416fi 3417 3418 3419cat >conftest.$ac_ext <<_ACEOF 3420/* confdefs.h. */ 3421_ACEOF 3422cat confdefs.h >>conftest.$ac_ext 3423cat >>conftest.$ac_ext <<_ACEOF 3424/* end confdefs.h. */ 3425#include <stdlib.h> 3426 3427_ACEOF 3428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3429 $EGREP "strtol" >/dev/null 2>&1; then 3430 : 3431else 3432 tk_ok=0 3433fi 3434rm -f conftest* 3435 3436cat >conftest.$ac_ext <<_ACEOF 3437/* confdefs.h. */ 3438_ACEOF 3439cat confdefs.h >>conftest.$ac_ext 3440cat >>conftest.$ac_ext <<_ACEOF 3441/* end confdefs.h. */ 3442#include <stdlib.h> 3443 3444_ACEOF 3445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3446 $EGREP "strtoul" >/dev/null 2>&1; then 3447 : 3448else 3449 tk_ok=0 3450fi 3451rm -f conftest* 3452 3453cat >conftest.$ac_ext <<_ACEOF 3454/* confdefs.h. */ 3455_ACEOF 3456cat confdefs.h >>conftest.$ac_ext 3457cat >>conftest.$ac_ext <<_ACEOF 3458/* end confdefs.h. */ 3459#include <stdlib.h> 3460 3461_ACEOF 3462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3463 $EGREP "strtod" >/dev/null 2>&1; then 3464 : 3465else 3466 tk_ok=0 3467fi 3468rm -f conftest* 3469 3470if test $tk_ok = 0; then 3471 3472cat >>confdefs.h <<\_ACEOF 3473#define NO_STDLIB_H 1 3474_ACEOF 3475 3476fi 3477 3478#------------------------------------------------------------------------ 3479# If we're using GCC, see if the compiler understands -pipe. If so, use it. 3480# It makes compiling go faster. (This is only a performance feature.) 3481#------------------------------------------------------------------------ 3482 3483if test -z "$no_pipe" && test -n "$GCC"; then 3484 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 3485echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6 3486if test "${tcl_cv_cc_pipe+set}" = set; then 3487 echo $ECHO_N "(cached) $ECHO_C" >&6 3488else 3489 3490 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 3491 cat >conftest.$ac_ext <<_ACEOF 3492/* confdefs.h. */ 3493_ACEOF 3494cat confdefs.h >>conftest.$ac_ext 3495cat >>conftest.$ac_ext <<_ACEOF 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506rm -f conftest.$ac_objext 3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3508 (eval $ac_compile) 2>conftest.er1 3509 ac_status=$? 3510 grep -v '^ *+' conftest.er1 >conftest.err 3511 rm -f conftest.er1 3512 cat conftest.err >&5 3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3514 (exit $ac_status); } && 3515 { ac_try='test -z "$ac_c_werror_flag" 3516 || test ! -s conftest.err' 3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3518 (eval $ac_try) 2>&5 3519 ac_status=$? 3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); }; } && 3522 { ac_try='test -s conftest.$ac_objext' 3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3524 (eval $ac_try) 2>&5 3525 ac_status=$? 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); }; }; then 3528 tcl_cv_cc_pipe=yes 3529else 3530 echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533tcl_cv_cc_pipe=no 3534fi 3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3536 CFLAGS=$hold_cflags 3537fi 3538echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 3539echo "${ECHO_T}$tcl_cv_cc_pipe" >&6 3540 if test $tcl_cv_cc_pipe = yes; then 3541 CFLAGS="$CFLAGS -pipe" 3542 fi 3543fi 3544 3545#------------------------------------------------------------------------ 3546# Threads support - this auto-enables if Tcl was compiled threaded 3547#------------------------------------------------------------------------ 3548 3549 3550 # Check whether --enable-threads or --disable-threads was given. 3551if test "${enable_threads+set}" = set; then 3552 enableval="$enable_threads" 3553 tcl_ok=$enableval 3554else 3555 tcl_ok=no 3556fi; 3557 3558 if test "${TCL_THREADS}" = 1; then 3559 tcl_threaded_core=1; 3560 fi 3561 3562 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 3563 TCL_THREADS=1 3564 # USE_THREAD_ALLOC tells us to try the special thread-based 3565 # allocator that significantly reduces lock contention 3566 3567cat >>confdefs.h <<\_ACEOF 3568#define USE_THREAD_ALLOC 1 3569_ACEOF 3570 3571 3572cat >>confdefs.h <<\_ACEOF 3573#define _REENTRANT 1 3574_ACEOF 3575 3576 if test "`uname -s`" = "SunOS" ; then 3577 3578cat >>confdefs.h <<\_ACEOF 3579#define _POSIX_PTHREAD_SEMANTICS 1 3580_ACEOF 3581 3582 fi 3583 3584cat >>confdefs.h <<\_ACEOF 3585#define _THREAD_SAFE 1 3586_ACEOF 3587 3588 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 3589echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 3590if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 3591 echo $ECHO_N "(cached) $ECHO_C" >&6 3592else 3593 ac_check_lib_save_LIBS=$LIBS 3594LIBS="-lpthread $LIBS" 3595cat >conftest.$ac_ext <<_ACEOF 3596/* confdefs.h. */ 3597_ACEOF 3598cat confdefs.h >>conftest.$ac_ext 3599cat >>conftest.$ac_ext <<_ACEOF 3600/* end confdefs.h. */ 3601 3602/* Override any gcc2 internal prototype to avoid an error. */ 3603#ifdef __cplusplus 3604extern "C" 3605#endif 3606/* We use char because int might match the return type of a gcc2 3607 builtin and then its argument prototype would still apply. */ 3608char pthread_mutex_init (); 3609int 3610main () 3611{ 3612pthread_mutex_init (); 3613 ; 3614 return 0; 3615} 3616_ACEOF 3617rm -f conftest.$ac_objext conftest$ac_exeext 3618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3619 (eval $ac_link) 2>conftest.er1 3620 ac_status=$? 3621 grep -v '^ *+' conftest.er1 >conftest.err 3622 rm -f conftest.er1 3623 cat conftest.err >&5 3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3625 (exit $ac_status); } && 3626 { ac_try='test -z "$ac_c_werror_flag" 3627 || test ! -s conftest.err' 3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3629 (eval $ac_try) 2>&5 3630 ac_status=$? 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); }; } && 3633 { ac_try='test -s conftest$ac_exeext' 3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3635 (eval $ac_try) 2>&5 3636 ac_status=$? 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); }; }; then 3639 ac_cv_lib_pthread_pthread_mutex_init=yes 3640else 3641 echo "$as_me: failed program was:" >&5 3642sed 's/^/| /' conftest.$ac_ext >&5 3643 3644ac_cv_lib_pthread_pthread_mutex_init=no 3645fi 3646rm -f conftest.err conftest.$ac_objext \ 3647 conftest$ac_exeext conftest.$ac_ext 3648LIBS=$ac_check_lib_save_LIBS 3649fi 3650echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 3651echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 3652if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 3653 tcl_ok=yes 3654else 3655 tcl_ok=no 3656fi 3657 3658 if test "$tcl_ok" = "no"; then 3659 # Check a little harder for __pthread_mutex_init in the same 3660 # library, as some systems hide it there until pthread.h is 3661 # defined. We could alternatively do an AC_TRY_COMPILE with 3662 # pthread.h, but that will work with libpthread really doesn't 3663 # exist, like AIX 4.2. [Bug: 4359] 3664 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 3665echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6 3666if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 3667 echo $ECHO_N "(cached) $ECHO_C" >&6 3668else 3669 ac_check_lib_save_LIBS=$LIBS 3670LIBS="-lpthread $LIBS" 3671cat >conftest.$ac_ext <<_ACEOF 3672/* confdefs.h. */ 3673_ACEOF 3674cat confdefs.h >>conftest.$ac_ext 3675cat >>conftest.$ac_ext <<_ACEOF 3676/* end confdefs.h. */ 3677 3678/* Override any gcc2 internal prototype to avoid an error. */ 3679#ifdef __cplusplus 3680extern "C" 3681#endif 3682/* We use char because int might match the return type of a gcc2 3683 builtin and then its argument prototype would still apply. */ 3684char __pthread_mutex_init (); 3685int 3686main () 3687{ 3688__pthread_mutex_init (); 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693rm -f conftest.$ac_objext conftest$ac_exeext 3694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3695 (eval $ac_link) 2>conftest.er1 3696 ac_status=$? 3697 grep -v '^ *+' conftest.er1 >conftest.err 3698 rm -f conftest.er1 3699 cat conftest.err >&5 3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3701 (exit $ac_status); } && 3702 { ac_try='test -z "$ac_c_werror_flag" 3703 || test ! -s conftest.err' 3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3705 (eval $ac_try) 2>&5 3706 ac_status=$? 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); }; } && 3709 { ac_try='test -s conftest$ac_exeext' 3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3711 (eval $ac_try) 2>&5 3712 ac_status=$? 3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); }; }; then 3715 ac_cv_lib_pthread___pthread_mutex_init=yes 3716else 3717 echo "$as_me: failed program was:" >&5 3718sed 's/^/| /' conftest.$ac_ext >&5 3719 3720ac_cv_lib_pthread___pthread_mutex_init=no 3721fi 3722rm -f conftest.err conftest.$ac_objext \ 3723 conftest$ac_exeext conftest.$ac_ext 3724LIBS=$ac_check_lib_save_LIBS 3725fi 3726echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 3727echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6 3728if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 3729 tcl_ok=yes 3730else 3731 tcl_ok=no 3732fi 3733 3734 fi 3735 3736 if test "$tcl_ok" = "yes"; then 3737 # The space is needed 3738 THREADS_LIBS=" -lpthread" 3739 else 3740 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 3741echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6 3742if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 3743 echo $ECHO_N "(cached) $ECHO_C" >&6 3744else 3745 ac_check_lib_save_LIBS=$LIBS 3746LIBS="-lpthreads $LIBS" 3747cat >conftest.$ac_ext <<_ACEOF 3748/* confdefs.h. */ 3749_ACEOF 3750cat confdefs.h >>conftest.$ac_ext 3751cat >>conftest.$ac_ext <<_ACEOF 3752/* end confdefs.h. */ 3753 3754/* Override any gcc2 internal prototype to avoid an error. */ 3755#ifdef __cplusplus 3756extern "C" 3757#endif 3758/* We use char because int might match the return type of a gcc2 3759 builtin and then its argument prototype would still apply. */ 3760char pthread_mutex_init (); 3761int 3762main () 3763{ 3764pthread_mutex_init (); 3765 ; 3766 return 0; 3767} 3768_ACEOF 3769rm -f conftest.$ac_objext conftest$ac_exeext 3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3771 (eval $ac_link) 2>conftest.er1 3772 ac_status=$? 3773 grep -v '^ *+' conftest.er1 >conftest.err 3774 rm -f conftest.er1 3775 cat conftest.err >&5 3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 (exit $ac_status); } && 3778 { ac_try='test -z "$ac_c_werror_flag" 3779 || test ! -s conftest.err' 3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3781 (eval $ac_try) 2>&5 3782 ac_status=$? 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); }; } && 3785 { ac_try='test -s conftest$ac_exeext' 3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3787 (eval $ac_try) 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); }; }; then 3791 ac_cv_lib_pthreads_pthread_mutex_init=yes 3792else 3793 echo "$as_me: failed program was:" >&5 3794sed 's/^/| /' conftest.$ac_ext >&5 3795 3796ac_cv_lib_pthreads_pthread_mutex_init=no 3797fi 3798rm -f conftest.err conftest.$ac_objext \ 3799 conftest$ac_exeext conftest.$ac_ext 3800LIBS=$ac_check_lib_save_LIBS 3801fi 3802echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 3803echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6 3804if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 3805 tcl_ok=yes 3806else 3807 tcl_ok=no 3808fi 3809 3810 if test "$tcl_ok" = "yes"; then 3811 # The space is needed 3812 THREADS_LIBS=" -lpthreads" 3813 else 3814 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 3815echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6 3816if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 3817 echo $ECHO_N "(cached) $ECHO_C" >&6 3818else 3819 ac_check_lib_save_LIBS=$LIBS 3820LIBS="-lc $LIBS" 3821cat >conftest.$ac_ext <<_ACEOF 3822/* confdefs.h. */ 3823_ACEOF 3824cat confdefs.h >>conftest.$ac_ext 3825cat >>conftest.$ac_ext <<_ACEOF 3826/* end confdefs.h. */ 3827 3828/* Override any gcc2 internal prototype to avoid an error. */ 3829#ifdef __cplusplus 3830extern "C" 3831#endif 3832/* We use char because int might match the return type of a gcc2 3833 builtin and then its argument prototype would still apply. */ 3834char pthread_mutex_init (); 3835int 3836main () 3837{ 3838pthread_mutex_init (); 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843rm -f conftest.$ac_objext conftest$ac_exeext 3844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3845 (eval $ac_link) 2>conftest.er1 3846 ac_status=$? 3847 grep -v '^ *+' conftest.er1 >conftest.err 3848 rm -f conftest.er1 3849 cat conftest.err >&5 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); } && 3852 { ac_try='test -z "$ac_c_werror_flag" 3853 || test ! -s conftest.err' 3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3855 (eval $ac_try) 2>&5 3856 ac_status=$? 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); }; } && 3859 { ac_try='test -s conftest$ac_exeext' 3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3861 (eval $ac_try) 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); }; }; then 3865 ac_cv_lib_c_pthread_mutex_init=yes 3866else 3867 echo "$as_me: failed program was:" >&5 3868sed 's/^/| /' conftest.$ac_ext >&5 3869 3870ac_cv_lib_c_pthread_mutex_init=no 3871fi 3872rm -f conftest.err conftest.$ac_objext \ 3873 conftest$ac_exeext conftest.$ac_ext 3874LIBS=$ac_check_lib_save_LIBS 3875fi 3876echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 3877echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6 3878if test $ac_cv_lib_c_pthread_mutex_init = yes; then 3879 tcl_ok=yes 3880else 3881 tcl_ok=no 3882fi 3883 3884 if test "$tcl_ok" = "no"; then 3885 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 3886echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6 3887if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 3888 echo $ECHO_N "(cached) $ECHO_C" >&6 3889else 3890 ac_check_lib_save_LIBS=$LIBS 3891LIBS="-lc_r $LIBS" 3892cat >conftest.$ac_ext <<_ACEOF 3893/* confdefs.h. */ 3894_ACEOF 3895cat confdefs.h >>conftest.$ac_ext 3896cat >>conftest.$ac_ext <<_ACEOF 3897/* end confdefs.h. */ 3898 3899/* Override any gcc2 internal prototype to avoid an error. */ 3900#ifdef __cplusplus 3901extern "C" 3902#endif 3903/* We use char because int might match the return type of a gcc2 3904 builtin and then its argument prototype would still apply. */ 3905char pthread_mutex_init (); 3906int 3907main () 3908{ 3909pthread_mutex_init (); 3910 ; 3911 return 0; 3912} 3913_ACEOF 3914rm -f conftest.$ac_objext conftest$ac_exeext 3915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3916 (eval $ac_link) 2>conftest.er1 3917 ac_status=$? 3918 grep -v '^ *+' conftest.er1 >conftest.err 3919 rm -f conftest.er1 3920 cat conftest.err >&5 3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3922 (exit $ac_status); } && 3923 { ac_try='test -z "$ac_c_werror_flag" 3924 || test ! -s conftest.err' 3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3926 (eval $ac_try) 2>&5 3927 ac_status=$? 3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3929 (exit $ac_status); }; } && 3930 { ac_try='test -s conftest$ac_exeext' 3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3932 (eval $ac_try) 2>&5 3933 ac_status=$? 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); }; }; then 3936 ac_cv_lib_c_r_pthread_mutex_init=yes 3937else 3938 echo "$as_me: failed program was:" >&5 3939sed 's/^/| /' conftest.$ac_ext >&5 3940 3941ac_cv_lib_c_r_pthread_mutex_init=no 3942fi 3943rm -f conftest.err conftest.$ac_objext \ 3944 conftest$ac_exeext conftest.$ac_ext 3945LIBS=$ac_check_lib_save_LIBS 3946fi 3947echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 3948echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6 3949if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 3950 tcl_ok=yes 3951else 3952 tcl_ok=no 3953fi 3954 3955 if test "$tcl_ok" = "yes"; then 3956 # The space is needed 3957 THREADS_LIBS=" -pthread" 3958 else 3959 TCL_THREADS=0 3960 { echo "$as_me:$LINENO: WARNING: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." >&5 3961echo "$as_me: WARNING: Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..." >&2;} 3962 fi 3963 fi 3964 fi 3965 fi 3966 3967 # Does the pthread-implementation provide 3968 # 'pthread_attr_setstacksize' ? 3969 3970 ac_saved_libs=$LIBS 3971 LIBS="$LIBS $THREADS_LIBS" 3972 3973for ac_func in pthread_attr_setstacksize 3974do 3975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3976echo "$as_me:$LINENO: checking for $ac_func" >&5 3977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3978if eval "test \"\${$as_ac_var+set}\" = set"; then 3979 echo $ECHO_N "(cached) $ECHO_C" >&6 3980else 3981 cat >conftest.$ac_ext <<_ACEOF 3982/* confdefs.h. */ 3983_ACEOF 3984cat confdefs.h >>conftest.$ac_ext 3985cat >>conftest.$ac_ext <<_ACEOF 3986/* end confdefs.h. */ 3987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3989#define $ac_func innocuous_$ac_func 3990 3991/* System header to define __stub macros and hopefully few prototypes, 3992 which can conflict with char $ac_func (); below. 3993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3994 <limits.h> exists even on freestanding compilers. */ 3995 3996#ifdef __STDC__ 3997# include <limits.h> 3998#else 3999# include <assert.h> 4000#endif 4001 4002#undef $ac_func 4003 4004/* Override any gcc2 internal prototype to avoid an error. */ 4005#ifdef __cplusplus 4006extern "C" 4007{ 4008#endif 4009/* We use char because int might match the return type of a gcc2 4010 builtin and then its argument prototype would still apply. */ 4011char $ac_func (); 4012/* The GNU C library defines this for functions which it implements 4013 to always fail with ENOSYS. Some functions are actually named 4014 something starting with __ and the normal name is an alias. */ 4015#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4016choke me 4017#else 4018char (*f) () = $ac_func; 4019#endif 4020#ifdef __cplusplus 4021} 4022#endif 4023 4024int 4025main () 4026{ 4027return f != $ac_func; 4028 ; 4029 return 0; 4030} 4031_ACEOF 4032rm -f conftest.$ac_objext conftest$ac_exeext 4033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4034 (eval $ac_link) 2>conftest.er1 4035 ac_status=$? 4036 grep -v '^ *+' conftest.er1 >conftest.err 4037 rm -f conftest.er1 4038 cat conftest.err >&5 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4040 (exit $ac_status); } && 4041 { ac_try='test -z "$ac_c_werror_flag" 4042 || test ! -s conftest.err' 4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 (eval $ac_try) 2>&5 4045 ac_status=$? 4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 (exit $ac_status); }; } && 4048 { ac_try='test -s conftest$ac_exeext' 4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4050 (eval $ac_try) 2>&5 4051 ac_status=$? 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); }; }; then 4054 eval "$as_ac_var=yes" 4055else 4056 echo "$as_me: failed program was:" >&5 4057sed 's/^/| /' conftest.$ac_ext >&5 4058 4059eval "$as_ac_var=no" 4060fi 4061rm -f conftest.err conftest.$ac_objext \ 4062 conftest$ac_exeext conftest.$ac_ext 4063fi 4064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4065echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4066if test `eval echo '${'$as_ac_var'}'` = yes; then 4067 cat >>confdefs.h <<_ACEOF 4068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4069_ACEOF 4070 4071fi 4072done 4073 4074 echo "$as_me:$LINENO: checking for pthread_attr_get_np" >&5 4075echo $ECHO_N "checking for pthread_attr_get_np... $ECHO_C" >&6 4076if test "${ac_cv_func_pthread_attr_get_np+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078else 4079 cat >conftest.$ac_ext <<_ACEOF 4080/* confdefs.h. */ 4081_ACEOF 4082cat confdefs.h >>conftest.$ac_ext 4083cat >>conftest.$ac_ext <<_ACEOF 4084/* end confdefs.h. */ 4085/* Define pthread_attr_get_np to an innocuous variant, in case <limits.h> declares pthread_attr_get_np. 4086 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4087#define pthread_attr_get_np innocuous_pthread_attr_get_np 4088 4089/* System header to define __stub macros and hopefully few prototypes, 4090 which can conflict with char pthread_attr_get_np (); below. 4091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4092 <limits.h> exists even on freestanding compilers. */ 4093 4094#ifdef __STDC__ 4095# include <limits.h> 4096#else 4097# include <assert.h> 4098#endif 4099 4100#undef pthread_attr_get_np 4101 4102/* Override any gcc2 internal prototype to avoid an error. */ 4103#ifdef __cplusplus 4104extern "C" 4105{ 4106#endif 4107/* We use char because int might match the return type of a gcc2 4108 builtin and then its argument prototype would still apply. */ 4109char pthread_attr_get_np (); 4110/* The GNU C library defines this for functions which it implements 4111 to always fail with ENOSYS. Some functions are actually named 4112 something starting with __ and the normal name is an alias. */ 4113#if defined (__stub_pthread_attr_get_np) || defined (__stub___pthread_attr_get_np) 4114choke me 4115#else 4116char (*f) () = pthread_attr_get_np; 4117#endif 4118#ifdef __cplusplus 4119} 4120#endif 4121 4122int 4123main () 4124{ 4125return f != pthread_attr_get_np; 4126 ; 4127 return 0; 4128} 4129_ACEOF 4130rm -f conftest.$ac_objext conftest$ac_exeext 4131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4132 (eval $ac_link) 2>conftest.er1 4133 ac_status=$? 4134 grep -v '^ *+' conftest.er1 >conftest.err 4135 rm -f conftest.er1 4136 cat conftest.err >&5 4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4138 (exit $ac_status); } && 4139 { ac_try='test -z "$ac_c_werror_flag" 4140 || test ! -s conftest.err' 4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4142 (eval $ac_try) 2>&5 4143 ac_status=$? 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); }; } && 4146 { ac_try='test -s conftest$ac_exeext' 4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4148 (eval $ac_try) 2>&5 4149 ac_status=$? 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4151 (exit $ac_status); }; }; then 4152 ac_cv_func_pthread_attr_get_np=yes 4153else 4154 echo "$as_me: failed program was:" >&5 4155sed 's/^/| /' conftest.$ac_ext >&5 4156 4157ac_cv_func_pthread_attr_get_np=no 4158fi 4159rm -f conftest.err conftest.$ac_objext \ 4160 conftest$ac_exeext conftest.$ac_ext 4161fi 4162echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_get_np" >&5 4163echo "${ECHO_T}$ac_cv_func_pthread_attr_get_np" >&6 4164if test $ac_cv_func_pthread_attr_get_np = yes; then 4165 tcl_ok=yes 4166else 4167 tcl_ok=no 4168fi 4169 4170 if test $tcl_ok = yes ; then 4171 4172cat >>confdefs.h <<\_ACEOF 4173#define HAVE_PTHREAD_ATTR_GET_NP 1 4174_ACEOF 4175 4176 echo "$as_me:$LINENO: checking for pthread_attr_get_np declaration" >&5 4177echo $ECHO_N "checking for pthread_attr_get_np declaration... $ECHO_C" >&6 4178if test "${tcl_cv_grep_pthread_attr_get_np+set}" = set; then 4179 echo $ECHO_N "(cached) $ECHO_C" >&6 4180else 4181 4182 cat >conftest.$ac_ext <<_ACEOF 4183/* confdefs.h. */ 4184_ACEOF 4185cat confdefs.h >>conftest.$ac_ext 4186cat >>conftest.$ac_ext <<_ACEOF 4187/* end confdefs.h. */ 4188#include <pthread.h> 4189 4190_ACEOF 4191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4192 $EGREP "pthread_attr_get_np" >/dev/null 2>&1; then 4193 tcl_cv_grep_pthread_attr_get_np=present 4194else 4195 tcl_cv_grep_pthread_attr_get_np=missing 4196fi 4197rm -f conftest* 4198 4199fi 4200echo "$as_me:$LINENO: result: $tcl_cv_grep_pthread_attr_get_np" >&5 4201echo "${ECHO_T}$tcl_cv_grep_pthread_attr_get_np" >&6 4202 if test $tcl_cv_grep_pthread_attr_get_np = missing ; then 4203 4204cat >>confdefs.h <<\_ACEOF 4205#define ATTRGETNP_NOT_DECLARED 1 4206_ACEOF 4207 4208 fi 4209 else 4210 echo "$as_me:$LINENO: checking for pthread_getattr_np" >&5 4211echo $ECHO_N "checking for pthread_getattr_np... $ECHO_C" >&6 4212if test "${ac_cv_func_pthread_getattr_np+set}" = set; then 4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4214else 4215 cat >conftest.$ac_ext <<_ACEOF 4216/* confdefs.h. */ 4217_ACEOF 4218cat confdefs.h >>conftest.$ac_ext 4219cat >>conftest.$ac_ext <<_ACEOF 4220/* end confdefs.h. */ 4221/* Define pthread_getattr_np to an innocuous variant, in case <limits.h> declares pthread_getattr_np. 4222 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4223#define pthread_getattr_np innocuous_pthread_getattr_np 4224 4225/* System header to define __stub macros and hopefully few prototypes, 4226 which can conflict with char pthread_getattr_np (); below. 4227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4228 <limits.h> exists even on freestanding compilers. */ 4229 4230#ifdef __STDC__ 4231# include <limits.h> 4232#else 4233# include <assert.h> 4234#endif 4235 4236#undef pthread_getattr_np 4237 4238/* Override any gcc2 internal prototype to avoid an error. */ 4239#ifdef __cplusplus 4240extern "C" 4241{ 4242#endif 4243/* We use char because int might match the return type of a gcc2 4244 builtin and then its argument prototype would still apply. */ 4245char pthread_getattr_np (); 4246/* The GNU C library defines this for functions which it implements 4247 to always fail with ENOSYS. Some functions are actually named 4248 something starting with __ and the normal name is an alias. */ 4249#if defined (__stub_pthread_getattr_np) || defined (__stub___pthread_getattr_np) 4250choke me 4251#else 4252char (*f) () = pthread_getattr_np; 4253#endif 4254#ifdef __cplusplus 4255} 4256#endif 4257 4258int 4259main () 4260{ 4261return f != pthread_getattr_np; 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266rm -f conftest.$ac_objext conftest$ac_exeext 4267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4268 (eval $ac_link) 2>conftest.er1 4269 ac_status=$? 4270 grep -v '^ *+' conftest.er1 >conftest.err 4271 rm -f conftest.er1 4272 cat conftest.err >&5 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); } && 4275 { ac_try='test -z "$ac_c_werror_flag" 4276 || test ! -s conftest.err' 4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); }; } && 4282 { ac_try='test -s conftest$ac_exeext' 4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4284 (eval $ac_try) 2>&5 4285 ac_status=$? 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4287 (exit $ac_status); }; }; then 4288 ac_cv_func_pthread_getattr_np=yes 4289else 4290 echo "$as_me: failed program was:" >&5 4291sed 's/^/| /' conftest.$ac_ext >&5 4292 4293ac_cv_func_pthread_getattr_np=no 4294fi 4295rm -f conftest.err conftest.$ac_objext \ 4296 conftest$ac_exeext conftest.$ac_ext 4297fi 4298echo "$as_me:$LINENO: result: $ac_cv_func_pthread_getattr_np" >&5 4299echo "${ECHO_T}$ac_cv_func_pthread_getattr_np" >&6 4300if test $ac_cv_func_pthread_getattr_np = yes; then 4301 tcl_ok=yes 4302else 4303 tcl_ok=no 4304fi 4305 4306 if test $tcl_ok = yes ; then 4307 4308cat >>confdefs.h <<\_ACEOF 4309#define HAVE_PTHREAD_GETATTR_NP 1 4310_ACEOF 4311 4312 echo "$as_me:$LINENO: checking for pthread_getattr_np declaration" >&5 4313echo $ECHO_N "checking for pthread_getattr_np declaration... $ECHO_C" >&6 4314if test "${tcl_cv_grep_pthread_getattr_np+set}" = set; then 4315 echo $ECHO_N "(cached) $ECHO_C" >&6 4316else 4317 4318 cat >conftest.$ac_ext <<_ACEOF 4319/* confdefs.h. */ 4320_ACEOF 4321cat confdefs.h >>conftest.$ac_ext 4322cat >>conftest.$ac_ext <<_ACEOF 4323/* end confdefs.h. */ 4324#include <pthread.h> 4325 4326_ACEOF 4327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4328 $EGREP "pthread_getattr_np" >/dev/null 2>&1; then 4329 tcl_cv_grep_pthread_getattr_np=present 4330else 4331 tcl_cv_grep_pthread_getattr_np=missing 4332fi 4333rm -f conftest* 4334 4335fi 4336echo "$as_me:$LINENO: result: $tcl_cv_grep_pthread_getattr_np" >&5 4337echo "${ECHO_T}$tcl_cv_grep_pthread_getattr_np" >&6 4338 if test $tcl_cv_grep_pthread_getattr_np = missing ; then 4339 4340cat >>confdefs.h <<\_ACEOF 4341#define GETATTRNP_NOT_DECLARED 1 4342_ACEOF 4343 4344 fi 4345 fi 4346 fi 4347 if test $tcl_ok = no; then 4348 # Darwin thread stacksize API 4349 4350for ac_func in pthread_get_stacksize_np 4351do 4352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4353echo "$as_me:$LINENO: checking for $ac_func" >&5 4354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4355if eval "test \"\${$as_ac_var+set}\" = set"; then 4356 echo $ECHO_N "(cached) $ECHO_C" >&6 4357else 4358 cat >conftest.$ac_ext <<_ACEOF 4359/* confdefs.h. */ 4360_ACEOF 4361cat confdefs.h >>conftest.$ac_ext 4362cat >>conftest.$ac_ext <<_ACEOF 4363/* end confdefs.h. */ 4364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4365 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4366#define $ac_func innocuous_$ac_func 4367 4368/* System header to define __stub macros and hopefully few prototypes, 4369 which can conflict with char $ac_func (); below. 4370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4371 <limits.h> exists even on freestanding compilers. */ 4372 4373#ifdef __STDC__ 4374# include <limits.h> 4375#else 4376# include <assert.h> 4377#endif 4378 4379#undef $ac_func 4380 4381/* Override any gcc2 internal prototype to avoid an error. */ 4382#ifdef __cplusplus 4383extern "C" 4384{ 4385#endif 4386/* We use char because int might match the return type of a gcc2 4387 builtin and then its argument prototype would still apply. */ 4388char $ac_func (); 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_$ac_func) || defined (__stub___$ac_func) 4393choke me 4394#else 4395char (*f) () = $ac_func; 4396#endif 4397#ifdef __cplusplus 4398} 4399#endif 4400 4401int 4402main () 4403{ 4404return f != $ac_func; 4405 ; 4406 return 0; 4407} 4408_ACEOF 4409rm -f conftest.$ac_objext conftest$ac_exeext 4410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 { ac_try='test -z "$ac_c_werror_flag" 4419 || test ! -s conftest.err' 4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4421 (eval $ac_try) 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); }; } && 4425 { ac_try='test -s conftest$ac_exeext' 4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4427 (eval $ac_try) 2>&5 4428 ac_status=$? 4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4430 (exit $ac_status); }; }; then 4431 eval "$as_ac_var=yes" 4432else 4433 echo "$as_me: failed program was:" >&5 4434sed 's/^/| /' conftest.$ac_ext >&5 4435 4436eval "$as_ac_var=no" 4437fi 4438rm -f conftest.err conftest.$ac_objext \ 4439 conftest$ac_exeext conftest.$ac_ext 4440fi 4441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4442echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4443if test `eval echo '${'$as_ac_var'}'` = yes; then 4444 cat >>confdefs.h <<_ACEOF 4445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4446_ACEOF 4447 4448fi 4449done 4450 4451 fi 4452 LIBS=$ac_saved_libs 4453 else 4454 TCL_THREADS=0 4455 fi 4456 # Do checking message here to not mess up interleaved configure output 4457 echo "$as_me:$LINENO: checking for building with threads" >&5 4458echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 4459 if test "${TCL_THREADS}" = 1; then 4460 4461cat >>confdefs.h <<\_ACEOF 4462#define TCL_THREADS 1 4463_ACEOF 4464 4465 if test "${tcl_threaded_core}" = 1; then 4466 echo "$as_me:$LINENO: result: yes (threaded core)" >&5 4467echo "${ECHO_T}yes (threaded core)" >&6 4468 else 4469 echo "$as_me:$LINENO: result: yes" >&5 4470echo "${ECHO_T}yes" >&6 4471 fi 4472 else 4473 echo "$as_me:$LINENO: result: no (default)" >&5 4474echo "${ECHO_T}no (default)" >&6 4475 fi 4476 4477 4478 4479 4480# Add the threads support libraries 4481LIBS="$LIBS$THREADS_LIBS" 4482 4483 4484 echo "$as_me:$LINENO: checking how to build libraries" >&5 4485echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 4486 # Check whether --enable-shared or --disable-shared was given. 4487if test "${enable_shared+set}" = set; then 4488 enableval="$enable_shared" 4489 tcl_ok=$enableval 4490else 4491 tcl_ok=yes 4492fi; 4493 4494 if test "${enable_shared+set}" = set; then 4495 enableval="$enable_shared" 4496 tcl_ok=$enableval 4497 else 4498 tcl_ok=yes 4499 fi 4500 4501 if test "$tcl_ok" = "yes" ; then 4502 echo "$as_me:$LINENO: result: shared" >&5 4503echo "${ECHO_T}shared" >&6 4504 SHARED_BUILD=1 4505 else 4506 echo "$as_me:$LINENO: result: static" >&5 4507echo "${ECHO_T}static" >&6 4508 SHARED_BUILD=0 4509 4510cat >>confdefs.h <<\_ACEOF 4511#define STATIC_BUILD 1 4512_ACEOF 4513 4514 fi 4515 4516 4517#-------------------------------------------------------------------- 4518# The statements below define a collection of compile flags. This 4519# macro depends on the value of SHARED_BUILD, and should be called 4520# after SC_ENABLE_SHARED checks the configure switches. 4521#-------------------------------------------------------------------- 4522 4523if test -n "$ac_tool_prefix"; then 4524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4525set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4526echo "$as_me:$LINENO: checking for $ac_word" >&5 4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4528if test "${ac_cv_prog_RANLIB+set}" = set; then 4529 echo $ECHO_N "(cached) $ECHO_C" >&6 4530else 4531 if test -n "$RANLIB"; then 4532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4533else 4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535for as_dir in $PATH 4536do 4537 IFS=$as_save_IFS 4538 test -z "$as_dir" && as_dir=. 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4543 break 2 4544 fi 4545done 4546done 4547 4548fi 4549fi 4550RANLIB=$ac_cv_prog_RANLIB 4551if test -n "$RANLIB"; then 4552 echo "$as_me:$LINENO: result: $RANLIB" >&5 4553echo "${ECHO_T}$RANLIB" >&6 4554else 4555 echo "$as_me:$LINENO: result: no" >&5 4556echo "${ECHO_T}no" >&6 4557fi 4558 4559fi 4560if test -z "$ac_cv_prog_RANLIB"; then 4561 ac_ct_RANLIB=$RANLIB 4562 # Extract the first word of "ranlib", so it can be a program name with args. 4563set dummy ranlib; ac_word=$2 4564echo "$as_me:$LINENO: checking for $ac_word" >&5 4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4566if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 if test -n "$ac_ct_RANLIB"; then 4570 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4571else 4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4579 ac_cv_prog_ac_ct_RANLIB="ranlib" 4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4581 break 2 4582 fi 4583done 4584done 4585 4586 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4587fi 4588fi 4589ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4590if test -n "$ac_ct_RANLIB"; then 4591 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4592echo "${ECHO_T}$ac_ct_RANLIB" >&6 4593else 4594 echo "$as_me:$LINENO: result: no" >&5 4595echo "${ECHO_T}no" >&6 4596fi 4597 4598 RANLIB=$ac_ct_RANLIB 4599else 4600 RANLIB="$ac_cv_prog_RANLIB" 4601fi 4602 4603 4604 4605 # Step 0.a: Enable 64 bit support? 4606 4607 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 4608echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 4609 # Check whether --enable-64bit or --disable-64bit was given. 4610if test "${enable_64bit+set}" = set; then 4611 enableval="$enable_64bit" 4612 do64bit=$enableval 4613else 4614 do64bit=no 4615fi; 4616 echo "$as_me:$LINENO: result: $do64bit" >&5 4617echo "${ECHO_T}$do64bit" >&6 4618 4619 # Step 0.b: Enable Solaris 64 bit VIS support? 4620 4621 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 4622echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6 4623 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 4624if test "${enable_64bit_vis+set}" = set; then 4625 enableval="$enable_64bit_vis" 4626 do64bitVIS=$enableval 4627else 4628 do64bitVIS=no 4629fi; 4630 echo "$as_me:$LINENO: result: $do64bitVIS" >&5 4631echo "${ECHO_T}$do64bitVIS" >&6 4632 # Force 64bit on with VIS 4633 if test "$do64bitVIS" = "yes"; then 4634 do64bit=yes 4635fi 4636 4637 4638 # Step 0.c: Check if visibility support is available. Do this here so 4639 # that platform specific alternatives can be used below if this fails. 4640 4641 echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 4642echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6 4643if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 4644 echo $ECHO_N "(cached) $ECHO_C" >&6 4645else 4646 4647 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 4648 cat >conftest.$ac_ext <<_ACEOF 4649/* confdefs.h. */ 4650_ACEOF 4651cat confdefs.h >>conftest.$ac_ext 4652cat >>conftest.$ac_ext <<_ACEOF 4653/* end confdefs.h. */ 4654 4655 extern __attribute__((__visibility__("hidden"))) void f(void); 4656 void f(void) {} 4657int 4658main () 4659{ 4660f(); 4661 ; 4662 return 0; 4663} 4664_ACEOF 4665rm -f conftest.$ac_objext conftest$ac_exeext 4666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4667 (eval $ac_link) 2>conftest.er1 4668 ac_status=$? 4669 grep -v '^ *+' conftest.er1 >conftest.err 4670 rm -f conftest.er1 4671 cat conftest.err >&5 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); } && 4674 { ac_try='test -z "$ac_c_werror_flag" 4675 || test ! -s conftest.err' 4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4677 (eval $ac_try) 2>&5 4678 ac_status=$? 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); }; } && 4681 { ac_try='test -s conftest$ac_exeext' 4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4683 (eval $ac_try) 2>&5 4684 ac_status=$? 4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4686 (exit $ac_status); }; }; then 4687 tcl_cv_cc_visibility_hidden=yes 4688else 4689 echo "$as_me: failed program was:" >&5 4690sed 's/^/| /' conftest.$ac_ext >&5 4691 4692tcl_cv_cc_visibility_hidden=no 4693fi 4694rm -f conftest.err conftest.$ac_objext \ 4695 conftest$ac_exeext conftest.$ac_ext 4696 CFLAGS=$hold_cflags 4697fi 4698echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 4699echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6 4700 if test $tcl_cv_cc_visibility_hidden = yes; then 4701 4702 4703cat >>confdefs.h <<\_ACEOF 4704#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 4705_ACEOF 4706 4707 4708fi 4709 4710 4711 # Step 0.d: Disable -rpath support? 4712 4713 echo "$as_me:$LINENO: checking if rpath support is requested" >&5 4714echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6 4715 # Check whether --enable-rpath or --disable-rpath was given. 4716if test "${enable_rpath+set}" = set; then 4717 enableval="$enable_rpath" 4718 doRpath=$enableval 4719else 4720 doRpath=yes 4721fi; 4722 echo "$as_me:$LINENO: result: $doRpath" >&5 4723echo "${ECHO_T}$doRpath" >&6 4724 4725 # Step 1: set the variable "system" to hold the name and version number 4726 # for the system. 4727 4728 4729 echo "$as_me:$LINENO: checking system version" >&5 4730echo $ECHO_N "checking system version... $ECHO_C" >&6 4731if test "${tcl_cv_sys_version+set}" = set; then 4732 echo $ECHO_N "(cached) $ECHO_C" >&6 4733else 4734 4735 if test -f /usr/lib/NextStep/software_version; then 4736 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 4737 else 4738 tcl_cv_sys_version=`uname -s`-`uname -r` 4739 if test "$?" -ne 0 ; then 4740 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 4741echo "$as_me: WARNING: can't find uname command" >&2;} 4742 tcl_cv_sys_version=unknown 4743 else 4744 # Special check for weird MP-RAS system (uname returns weird 4745 # results, and the version is kept in special file). 4746 4747 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 4748 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 4749 fi 4750 if test "`uname -s`" = "AIX" ; then 4751 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 4752 fi 4753 fi 4754 fi 4755 4756fi 4757echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 4758echo "${ECHO_T}$tcl_cv_sys_version" >&6 4759 system=$tcl_cv_sys_version 4760 4761 4762 # Step 2: check for existence of -ldl library. This is needed because 4763 # Linux can use either -ldl or -ldld for dynamic loading. 4764 4765 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4766echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4767if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4768 echo $ECHO_N "(cached) $ECHO_C" >&6 4769else 4770 ac_check_lib_save_LIBS=$LIBS 4771LIBS="-ldl $LIBS" 4772cat >conftest.$ac_ext <<_ACEOF 4773/* confdefs.h. */ 4774_ACEOF 4775cat confdefs.h >>conftest.$ac_ext 4776cat >>conftest.$ac_ext <<_ACEOF 4777/* end confdefs.h. */ 4778 4779/* Override any gcc2 internal prototype to avoid an error. */ 4780#ifdef __cplusplus 4781extern "C" 4782#endif 4783/* We use char because int might match the return type of a gcc2 4784 builtin and then its argument prototype would still apply. */ 4785char dlopen (); 4786int 4787main () 4788{ 4789dlopen (); 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794rm -f conftest.$ac_objext conftest$ac_exeext 4795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4796 (eval $ac_link) 2>conftest.er1 4797 ac_status=$? 4798 grep -v '^ *+' conftest.er1 >conftest.err 4799 rm -f conftest.er1 4800 cat conftest.err >&5 4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4802 (exit $ac_status); } && 4803 { ac_try='test -z "$ac_c_werror_flag" 4804 || test ! -s conftest.err' 4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4806 (eval $ac_try) 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; } && 4810 { ac_try='test -s conftest$ac_exeext' 4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4812 (eval $ac_try) 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); }; }; then 4816 ac_cv_lib_dl_dlopen=yes 4817else 4818 echo "$as_me: failed program was:" >&5 4819sed 's/^/| /' conftest.$ac_ext >&5 4820 4821ac_cv_lib_dl_dlopen=no 4822fi 4823rm -f conftest.err conftest.$ac_objext \ 4824 conftest$ac_exeext conftest.$ac_ext 4825LIBS=$ac_check_lib_save_LIBS 4826fi 4827echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4828echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4829if test $ac_cv_lib_dl_dlopen = yes; then 4830 have_dl=yes 4831else 4832 have_dl=no 4833fi 4834 4835 4836 # Require ranlib early so we can override it in special cases below. 4837 if test x"${SHLIB_VERSION}" = x; then 4838 SHLIB_VERSION="1.0" 4839fi 4840 4841 4842 4843 4844 # Step 3: set configuration options based on system name and version. 4845 4846 do64bit_ok=no 4847 LDFLAGS_ORIG="$LDFLAGS" 4848 # When ld needs options to work in 64-bit mode, put them in 4849 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 4850 # is disabled by the user. [Bug 1016796] 4851 LDFLAGS_ARCH="" 4852 UNSHARED_LIB_SUFFIX="" 4853 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 4854 ECHO_VERSION='`echo ${VERSION}`' 4855 TCL_LIB_VERSIONS_OK=ok 4856 CFLAGS_DEBUG=-g 4857 CFLAGS_OPTIMIZE=-O 4858 if test "$GCC" = yes; then 4859 4860 CFLAGS_WARNING="-Wall" 4861 4862else 4863 CFLAGS_WARNING="" 4864fi 4865 4866 # Extract the first word of "ar", so it can be a program name with args. 4867set dummy ar; ac_word=$2 4868echo "$as_me:$LINENO: checking for $ac_word" >&5 4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4870if test "${ac_cv_prog_AR+set}" = set; then 4871 echo $ECHO_N "(cached) $ECHO_C" >&6 4872else 4873 if test -n "$AR"; then 4874 ac_cv_prog_AR="$AR" # Let the user override the test. 4875else 4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4877for as_dir in $PATH 4878do 4879 IFS=$as_save_IFS 4880 test -z "$as_dir" && as_dir=. 4881 for ac_exec_ext in '' $ac_executable_extensions; do 4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4883 ac_cv_prog_AR="ar" 4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4885 break 2 4886 fi 4887done 4888done 4889 4890fi 4891fi 4892AR=$ac_cv_prog_AR 4893if test -n "$AR"; then 4894 echo "$as_me:$LINENO: result: $AR" >&5 4895echo "${ECHO_T}$AR" >&6 4896else 4897 echo "$as_me:$LINENO: result: no" >&5 4898echo "${ECHO_T}no" >&6 4899fi 4900 4901 if test "${AR}" = ""; then 4902 4903 { { echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5 4904echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;} 4905 { (exit 1); exit 1; }; } 4906 4907fi 4908 4909 STLIB_LD='${AR} cr' 4910 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 4911 PLAT_OBJS="" 4912 PLAT_SRCS="" 4913 LDAIX_SRC="" 4914 case $system in 4915 AIX-*) 4916 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 4917 4918 # AIX requires the _r compiler when gcc isn't being used 4919 case "${CC}" in 4920 *_r|*_r\ *) 4921 # ok ... 4922 ;; 4923 *) 4924 # Make sure only first arg gets _r 4925 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 4926 ;; 4927 esac 4928 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 4929echo "${ECHO_T}Using $CC for compiling with threads" >&6 4930 4931fi 4932 4933 LIBS="$LIBS -lc" 4934 SHLIB_CFLAGS="" 4935 # Note: need the LIBS below, otherwise Tk won't find Tcl's 4936 # symbols when dynamically loaded into tclsh. 4937 SHLIB_LD_LIBS='${LIBS}' 4938 SHLIB_SUFFIX=".so" 4939 4940 DL_OBJS="tclLoadDl.o" 4941 LD_LIBRARY_PATH_VAR="LIBPATH" 4942 4943 # ldAix No longer needed with use of -bexpall/-brtl 4944 # but some extensions may still reference it 4945 LDAIX_SRC='$(UNIX_DIR)/ldAix' 4946 4947 # Check to enable 64-bit flags for compiler/linker 4948 if test "$do64bit" = yes; then 4949 4950 if test "$GCC" = yes; then 4951 4952 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 4953echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4954 4955else 4956 4957 do64bit_ok=yes 4958 CFLAGS="$CFLAGS -q64" 4959 LDFLAGS_ARCH="-q64" 4960 RANLIB="${RANLIB} -X64" 4961 AR="${AR} -X64" 4962 SHLIB_LD_FLAGS="-b64" 4963 4964fi 4965 4966 4967fi 4968 4969 4970 if test "`uname -m`" = ia64; then 4971 4972 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 4973 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 4974 # AIX-5 has dl* in libc.so 4975 DL_LIBS="" 4976 if test "$GCC" = yes; then 4977 4978 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 4979 4980else 4981 4982 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 4983 4984fi 4985 4986 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 4987 4988else 4989 4990 if test "$GCC" = yes; then 4991 4992 SHLIB_LD='${CC} -shared -Wl,-bexpall' 4993 4994else 4995 4996 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 4997 LDFLAGS="$LDFLAGS -brtl" 4998 4999fi 5000 5001 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 5002 DL_LIBS="-ldl" 5003 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5004 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5005 5006fi 5007 5008 ;; 5009 BeOS*) 5010 SHLIB_CFLAGS="-fPIC" 5011 SHLIB_LD='${CC} -nostart' 5012 SHLIB_LD_LIBS='${LIBS}' 5013 SHLIB_SUFFIX=".so" 5014 DL_OBJS="tclLoadDl.o" 5015 DL_LIBS="-ldl" 5016 5017 #----------------------------------------------------------- 5018 # Check for inet_ntoa in -lbind, for BeOS (which also needs 5019 # -lsocket, even if the network functions are in -lnet which 5020 # is always linked to, for compatibility. 5021 #----------------------------------------------------------- 5022 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 5023echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6 5024if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 5025 echo $ECHO_N "(cached) $ECHO_C" >&6 5026else 5027 ac_check_lib_save_LIBS=$LIBS 5028LIBS="-lbind $LIBS" 5029cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035 5036/* Override any gcc2 internal prototype to avoid an error. */ 5037#ifdef __cplusplus 5038extern "C" 5039#endif 5040/* We use char because int might match the return type of a gcc2 5041 builtin and then its argument prototype would still apply. */ 5042char inet_ntoa (); 5043int 5044main () 5045{ 5046inet_ntoa (); 5047 ; 5048 return 0; 5049} 5050_ACEOF 5051rm -f conftest.$ac_objext conftest$ac_exeext 5052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5053 (eval $ac_link) 2>conftest.er1 5054 ac_status=$? 5055 grep -v '^ *+' conftest.er1 >conftest.err 5056 rm -f conftest.er1 5057 cat conftest.err >&5 5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 (exit $ac_status); } && 5060 { ac_try='test -z "$ac_c_werror_flag" 5061 || test ! -s conftest.err' 5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5063 (eval $ac_try) 2>&5 5064 ac_status=$? 5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5066 (exit $ac_status); }; } && 5067 { ac_try='test -s conftest$ac_exeext' 5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5069 (eval $ac_try) 2>&5 5070 ac_status=$? 5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5072 (exit $ac_status); }; }; then 5073 ac_cv_lib_bind_inet_ntoa=yes 5074else 5075 echo "$as_me: failed program was:" >&5 5076sed 's/^/| /' conftest.$ac_ext >&5 5077 5078ac_cv_lib_bind_inet_ntoa=no 5079fi 5080rm -f conftest.err conftest.$ac_objext \ 5081 conftest$ac_exeext conftest.$ac_ext 5082LIBS=$ac_check_lib_save_LIBS 5083fi 5084echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 5085echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6 5086if test $ac_cv_lib_bind_inet_ntoa = yes; then 5087 LIBS="$LIBS -lbind -lsocket" 5088fi 5089 5090 ;; 5091 BSD/OS-2.1*|BSD/OS-3*) 5092 SHLIB_CFLAGS="" 5093 SHLIB_LD="shlicc -r" 5094 SHLIB_LD_LIBS='${LIBS}' 5095 SHLIB_SUFFIX=".so" 5096 DL_OBJS="tclLoadDl.o" 5097 DL_LIBS="-ldl" 5098 CC_SEARCH_FLAGS="" 5099 LD_SEARCH_FLAGS="" 5100 ;; 5101 BSD/OS-4.*) 5102 SHLIB_CFLAGS="-export-dynamic -fPIC" 5103 SHLIB_LD='${CC} -shared' 5104 SHLIB_LD_LIBS='${LIBS}' 5105 SHLIB_SUFFIX=".so" 5106 DL_OBJS="tclLoadDl.o" 5107 DL_LIBS="-ldl" 5108 LDFLAGS="$LDFLAGS -export-dynamic" 5109 CC_SEARCH_FLAGS="" 5110 LD_SEARCH_FLAGS="" 5111 ;; 5112 CYGWIN_*) 5113 SHLIB_CFLAGS="" 5114 SHLIB_LD='${CC} -shared' 5115 SHLIB_LD_LIBS='${LIBS}' 5116 SHLIB_SUFFIX=".dll" 5117 DL_OBJS="tclLoadDl.o" 5118 DL_LIBS="-ldl" 5119 CC_SEARCH_FLAGS="" 5120 LD_SEARCH_FLAGS="" 5121 ;; 5122 dgux*) 5123 SHLIB_CFLAGS="-K PIC" 5124 SHLIB_LD='${CC} -G' 5125 SHLIB_LD_LIBS="" 5126 SHLIB_SUFFIX=".so" 5127 DL_OBJS="tclLoadDl.o" 5128 DL_LIBS="-ldl" 5129 CC_SEARCH_FLAGS="" 5130 LD_SEARCH_FLAGS="" 5131 ;; 5132 Haiku*) 5133 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5134 SHLIB_CFLAGS="-fPIC" 5135 SHLIB_LD_LIBS='${LIBS}' 5136 SHLIB_SUFFIX=".so" 5137 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 5138 DL_OBJS="tclLoadDl.o" 5139 DL_LIBS="-lroot" 5140 echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 5141echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6 5142if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 5143 echo $ECHO_N "(cached) $ECHO_C" >&6 5144else 5145 ac_check_lib_save_LIBS=$LIBS 5146LIBS="-lnetwork $LIBS" 5147cat >conftest.$ac_ext <<_ACEOF 5148/* confdefs.h. */ 5149_ACEOF 5150cat confdefs.h >>conftest.$ac_ext 5151cat >>conftest.$ac_ext <<_ACEOF 5152/* end confdefs.h. */ 5153 5154/* Override any gcc2 internal prototype to avoid an error. */ 5155#ifdef __cplusplus 5156extern "C" 5157#endif 5158/* We use char because int might match the return type of a gcc2 5159 builtin and then its argument prototype would still apply. */ 5160char inet_ntoa (); 5161int 5162main () 5163{ 5164inet_ntoa (); 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169rm -f conftest.$ac_objext conftest$ac_exeext 5170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5171 (eval $ac_link) 2>conftest.er1 5172 ac_status=$? 5173 grep -v '^ *+' conftest.er1 >conftest.err 5174 rm -f conftest.er1 5175 cat conftest.err >&5 5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5177 (exit $ac_status); } && 5178 { ac_try='test -z "$ac_c_werror_flag" 5179 || test ! -s conftest.err' 5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5181 (eval $ac_try) 2>&5 5182 ac_status=$? 5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5184 (exit $ac_status); }; } && 5185 { ac_try='test -s conftest$ac_exeext' 5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5187 (eval $ac_try) 2>&5 5188 ac_status=$? 5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5190 (exit $ac_status); }; }; then 5191 ac_cv_lib_network_inet_ntoa=yes 5192else 5193 echo "$as_me: failed program was:" >&5 5194sed 's/^/| /' conftest.$ac_ext >&5 5195 5196ac_cv_lib_network_inet_ntoa=no 5197fi 5198rm -f conftest.err conftest.$ac_objext \ 5199 conftest$ac_exeext conftest.$ac_ext 5200LIBS=$ac_check_lib_save_LIBS 5201fi 5202echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 5203echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6 5204if test $ac_cv_lib_network_inet_ntoa = yes; then 5205 LIBS="$LIBS -lnetwork" 5206fi 5207 5208 ;; 5209 HP-UX-*.11.*) 5210 # Use updated header definitions where possible 5211 5212cat >>confdefs.h <<\_ACEOF 5213#define _XOPEN_SOURCE_EXTENDED 1 5214_ACEOF 5215 5216 5217cat >>confdefs.h <<\_ACEOF 5218#define _XOPEN_SOURCE 1 5219_ACEOF 5220 5221 LIBS="$LIBS -lxnet" # Use the XOPEN network library 5222 5223 if test "`uname -m`" = ia64; then 5224 5225 SHLIB_SUFFIX=".so" 5226 5227else 5228 5229 SHLIB_SUFFIX=".sl" 5230 5231fi 5232 5233 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 5234echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5235if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5236 echo $ECHO_N "(cached) $ECHO_C" >&6 5237else 5238 ac_check_lib_save_LIBS=$LIBS 5239LIBS="-ldld $LIBS" 5240cat >conftest.$ac_ext <<_ACEOF 5241/* confdefs.h. */ 5242_ACEOF 5243cat confdefs.h >>conftest.$ac_ext 5244cat >>conftest.$ac_ext <<_ACEOF 5245/* end confdefs.h. */ 5246 5247/* Override any gcc2 internal prototype to avoid an error. */ 5248#ifdef __cplusplus 5249extern "C" 5250#endif 5251/* We use char because int might match the return type of a gcc2 5252 builtin and then its argument prototype would still apply. */ 5253char shl_load (); 5254int 5255main () 5256{ 5257shl_load (); 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262rm -f conftest.$ac_objext conftest$ac_exeext 5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5264 (eval $ac_link) 2>conftest.er1 5265 ac_status=$? 5266 grep -v '^ *+' conftest.er1 >conftest.err 5267 rm -f conftest.er1 5268 cat conftest.err >&5 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } && 5271 { ac_try='test -z "$ac_c_werror_flag" 5272 || test ! -s conftest.err' 5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5274 (eval $ac_try) 2>&5 5275 ac_status=$? 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); }; } && 5278 { ac_try='test -s conftest$ac_exeext' 5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5280 (eval $ac_try) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; }; then 5284 ac_cv_lib_dld_shl_load=yes 5285else 5286 echo "$as_me: failed program was:" >&5 5287sed 's/^/| /' conftest.$ac_ext >&5 5288 5289ac_cv_lib_dld_shl_load=no 5290fi 5291rm -f conftest.err conftest.$ac_objext \ 5292 conftest$ac_exeext conftest.$ac_ext 5293LIBS=$ac_check_lib_save_LIBS 5294fi 5295echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 5296echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5297if test $ac_cv_lib_dld_shl_load = yes; then 5298 tcl_ok=yes 5299else 5300 tcl_ok=no 5301fi 5302 5303 if test "$tcl_ok" = yes; then 5304 5305 SHLIB_CFLAGS="+z" 5306 SHLIB_LD="ld -b" 5307 SHLIB_LD_LIBS='${LIBS}' 5308 DL_OBJS="tclLoadShl.o" 5309 DL_LIBS="-ldld" 5310 LDFLAGS="$LDFLAGS -Wl,-E" 5311 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5312 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5313 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5314 5315fi 5316 5317 if test "$GCC" = yes; then 5318 5319 SHLIB_LD='${CC} -shared' 5320 SHLIB_LD_LIBS='${LIBS}' 5321 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5322 5323fi 5324 5325 5326 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 5327 #CFLAGS="$CFLAGS +DAportable" 5328 5329 # Check to enable 64-bit flags for compiler/linker 5330 if test "$do64bit" = "yes"; then 5331 5332 if test "$GCC" = yes; then 5333 5334 case `${CC} -dumpmachine` in 5335 hppa64*) 5336 # 64-bit gcc in use. Fix flags for GNU ld. 5337 do64bit_ok=yes 5338 SHLIB_LD='${CC} -shared' 5339 SHLIB_LD_LIBS='${LIBS}' 5340 if test $doRpath = yes; then 5341 5342 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5343fi 5344 5345 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5346 ;; 5347 *) 5348 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 5349echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5350 ;; 5351 esac 5352 5353else 5354 5355 do64bit_ok=yes 5356 CFLAGS="$CFLAGS +DD64" 5357 LDFLAGS_ARCH="+DD64" 5358 5359fi 5360 5361 5362fi 5363 ;; 5364 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 5365 SHLIB_SUFFIX=".sl" 5366 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 5367echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5368if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5369 echo $ECHO_N "(cached) $ECHO_C" >&6 5370else 5371 ac_check_lib_save_LIBS=$LIBS 5372LIBS="-ldld $LIBS" 5373cat >conftest.$ac_ext <<_ACEOF 5374/* confdefs.h. */ 5375_ACEOF 5376cat confdefs.h >>conftest.$ac_ext 5377cat >>conftest.$ac_ext <<_ACEOF 5378/* end confdefs.h. */ 5379 5380/* Override any gcc2 internal prototype to avoid an error. */ 5381#ifdef __cplusplus 5382extern "C" 5383#endif 5384/* We use char because int might match the return type of a gcc2 5385 builtin and then its argument prototype would still apply. */ 5386char shl_load (); 5387int 5388main () 5389{ 5390shl_load (); 5391 ; 5392 return 0; 5393} 5394_ACEOF 5395rm -f conftest.$ac_objext conftest$ac_exeext 5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5397 (eval $ac_link) 2>conftest.er1 5398 ac_status=$? 5399 grep -v '^ *+' conftest.er1 >conftest.err 5400 rm -f conftest.er1 5401 cat conftest.err >&5 5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5403 (exit $ac_status); } && 5404 { ac_try='test -z "$ac_c_werror_flag" 5405 || test ! -s conftest.err' 5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5407 (eval $ac_try) 2>&5 5408 ac_status=$? 5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5410 (exit $ac_status); }; } && 5411 { ac_try='test -s conftest$ac_exeext' 5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5413 (eval $ac_try) 2>&5 5414 ac_status=$? 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); }; }; then 5417 ac_cv_lib_dld_shl_load=yes 5418else 5419 echo "$as_me: failed program was:" >&5 5420sed 's/^/| /' conftest.$ac_ext >&5 5421 5422ac_cv_lib_dld_shl_load=no 5423fi 5424rm -f conftest.err conftest.$ac_objext \ 5425 conftest$ac_exeext conftest.$ac_ext 5426LIBS=$ac_check_lib_save_LIBS 5427fi 5428echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 5429echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5430if test $ac_cv_lib_dld_shl_load = yes; then 5431 tcl_ok=yes 5432else 5433 tcl_ok=no 5434fi 5435 5436 if test "$tcl_ok" = yes; then 5437 5438 SHLIB_CFLAGS="+z" 5439 SHLIB_LD="ld -b" 5440 SHLIB_LD_LIBS="" 5441 DL_OBJS="tclLoadShl.o" 5442 DL_LIBS="-ldld" 5443 LDFLAGS="$LDFLAGS -Wl,-E" 5444 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5445 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5446 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5447 5448fi 5449 ;; 5450 IRIX-5.*) 5451 SHLIB_CFLAGS="" 5452 SHLIB_LD="ld -shared -rdata_shared" 5453 SHLIB_LD_LIBS='${LIBS}' 5454 SHLIB_SUFFIX=".so" 5455 DL_OBJS="tclLoadDl.o" 5456 DL_LIBS="" 5457 if test $doRpath = yes; then 5458 5459 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5460 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5461fi 5462 5463 ;; 5464 IRIX-6.*) 5465 SHLIB_CFLAGS="" 5466 SHLIB_LD="ld -n32 -shared -rdata_shared" 5467 SHLIB_LD_LIBS='${LIBS}' 5468 SHLIB_SUFFIX=".so" 5469 DL_OBJS="tclLoadDl.o" 5470 DL_LIBS="" 5471 if test $doRpath = yes; then 5472 5473 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5474 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5475fi 5476 5477 if test "$GCC" = yes; then 5478 5479 CFLAGS="$CFLAGS -mabi=n32" 5480 LDFLAGS="$LDFLAGS -mabi=n32" 5481 5482else 5483 5484 case $system in 5485 IRIX-6.3) 5486 # Use to build 6.2 compatible binaries on 6.3. 5487 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 5488 ;; 5489 *) 5490 CFLAGS="$CFLAGS -n32" 5491 ;; 5492 esac 5493 LDFLAGS="$LDFLAGS -n32" 5494 5495fi 5496 5497 ;; 5498 IRIX64-6.*) 5499 SHLIB_CFLAGS="" 5500 SHLIB_LD="ld -n32 -shared -rdata_shared" 5501 SHLIB_LD_LIBS='${LIBS}' 5502 SHLIB_SUFFIX=".so" 5503 DL_OBJS="tclLoadDl.o" 5504 DL_LIBS="" 5505 if test $doRpath = yes; then 5506 5507 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5508 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5509fi 5510 5511 5512 # Check to enable 64-bit flags for compiler/linker 5513 5514 if test "$do64bit" = yes; then 5515 5516 if test "$GCC" = yes; then 5517 5518 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 5519echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 5520 5521else 5522 5523 do64bit_ok=yes 5524 SHLIB_LD="ld -64 -shared -rdata_shared" 5525 CFLAGS="$CFLAGS -64" 5526 LDFLAGS_ARCH="-64" 5527 5528fi 5529 5530 5531fi 5532 5533 ;; 5534 Linux*) 5535 SHLIB_CFLAGS="-fPIC" 5536 SHLIB_LD_LIBS='${LIBS}' 5537 SHLIB_SUFFIX=".so" 5538 5539 CFLAGS_OPTIMIZE="-O2" 5540 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 5541 # when you inline the string and math operations. Turn this off to 5542 # get rid of the warnings. 5543 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 5544 5545 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 5546 DL_OBJS="tclLoadDl.o" 5547 DL_LIBS="-ldl" 5548 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5549 if test $doRpath = yes; then 5550 5551 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5552fi 5553 5554 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5555 if test "`uname -m`" = "alpha"; then 5556 CFLAGS="$CFLAGS -mieee" 5557fi 5558 5559 if test $do64bit = yes; then 5560 5561 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 5562echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6 5563if test "${tcl_cv_cc_m64+set}" = set; then 5564 echo $ECHO_N "(cached) $ECHO_C" >&6 5565else 5566 5567 hold_cflags=$CFLAGS 5568 CFLAGS="$CFLAGS -m64" 5569 cat >conftest.$ac_ext <<_ACEOF 5570/* confdefs.h. */ 5571_ACEOF 5572cat confdefs.h >>conftest.$ac_ext 5573cat >>conftest.$ac_ext <<_ACEOF 5574/* end confdefs.h. */ 5575 5576int 5577main () 5578{ 5579 5580 ; 5581 return 0; 5582} 5583_ACEOF 5584rm -f conftest.$ac_objext conftest$ac_exeext 5585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5586 (eval $ac_link) 2>conftest.er1 5587 ac_status=$? 5588 grep -v '^ *+' conftest.er1 >conftest.err 5589 rm -f conftest.er1 5590 cat conftest.err >&5 5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5592 (exit $ac_status); } && 5593 { ac_try='test -z "$ac_c_werror_flag" 5594 || test ! -s conftest.err' 5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5596 (eval $ac_try) 2>&5 5597 ac_status=$? 5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5599 (exit $ac_status); }; } && 5600 { ac_try='test -s conftest$ac_exeext' 5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5602 (eval $ac_try) 2>&5 5603 ac_status=$? 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); }; }; then 5606 tcl_cv_cc_m64=yes 5607else 5608 echo "$as_me: failed program was:" >&5 5609sed 's/^/| /' conftest.$ac_ext >&5 5610 5611tcl_cv_cc_m64=no 5612fi 5613rm -f conftest.err conftest.$ac_objext \ 5614 conftest$ac_exeext conftest.$ac_ext 5615 CFLAGS=$hold_cflags 5616fi 5617echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 5618echo "${ECHO_T}$tcl_cv_cc_m64" >&6 5619 if test $tcl_cv_cc_m64 = yes; then 5620 5621 CFLAGS="$CFLAGS -m64" 5622 do64bit_ok=yes 5623 5624fi 5625 5626 5627fi 5628 5629 5630 # The combo of gcc + glibc has a bug related to inlining of 5631 # functions like strtod(). The -fno-builtin flag should address 5632 # this problem but it does not work. The -fno-inline flag is kind 5633 # of overkill but it works. Disable inlining only when one of the 5634 # files in compat/*.c is being linked in. 5635 5636 if test x"${USE_COMPAT}" != x; then 5637 CFLAGS="$CFLAGS -fno-inline" 5638fi 5639 5640 ;; 5641 GNU*) 5642 SHLIB_CFLAGS="-fPIC" 5643 SHLIB_LD_LIBS='${LIBS}' 5644 SHLIB_SUFFIX=".so" 5645 5646 SHLIB_LD='${CC} -shared' 5647 DL_OBJS="" 5648 DL_LIBS="-ldl" 5649 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5650 CC_SEARCH_FLAGS="" 5651 LD_SEARCH_FLAGS="" 5652 if test "`uname -m`" = "alpha"; then 5653 CFLAGS="$CFLAGS -mieee" 5654fi 5655 5656 ;; 5657 Lynx*) 5658 SHLIB_CFLAGS="-fPIC" 5659 SHLIB_LD_LIBS='${LIBS}' 5660 SHLIB_SUFFIX=".so" 5661 CFLAGS_OPTIMIZE=-02 5662 SHLIB_LD='${CC} -shared' 5663 DL_OBJS="tclLoadDl.o" 5664 DL_LIBS="-mshared -ldl" 5665 LD_FLAGS="-Wl,--export-dynamic" 5666 if test $doRpath = yes; then 5667 5668 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5669 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5670fi 5671 5672 ;; 5673 MP-RAS-02*) 5674 SHLIB_CFLAGS="-K PIC" 5675 SHLIB_LD='${CC} -G' 5676 SHLIB_LD_LIBS="" 5677 SHLIB_SUFFIX=".so" 5678 DL_OBJS="tclLoadDl.o" 5679 DL_LIBS="-ldl" 5680 CC_SEARCH_FLAGS="" 5681 LD_SEARCH_FLAGS="" 5682 ;; 5683 MP-RAS-*) 5684 SHLIB_CFLAGS="-K PIC" 5685 SHLIB_LD='${CC} -G' 5686 SHLIB_LD_LIBS="" 5687 SHLIB_SUFFIX=".so" 5688 DL_OBJS="tclLoadDl.o" 5689 DL_LIBS="-ldl" 5690 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5691 CC_SEARCH_FLAGS="" 5692 LD_SEARCH_FLAGS="" 5693 ;; 5694 NetBSD-1.*|FreeBSD-[1-2].*) 5695 SHLIB_CFLAGS="-fPIC" 5696 SHLIB_LD="ld -Bshareable -x" 5697 SHLIB_LD_LIBS='${LIBS}' 5698 SHLIB_SUFFIX=".so" 5699 DL_OBJS="tclLoadDl.o" 5700 DL_LIBS="" 5701 if test $doRpath = yes; then 5702 5703 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5704 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5705fi 5706 5707 echo "$as_me:$LINENO: checking for ELF" >&5 5708echo $ECHO_N "checking for ELF... $ECHO_C" >&6 5709if test "${tcl_cv_ld_elf+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711else 5712 5713 cat >conftest.$ac_ext <<_ACEOF 5714/* confdefs.h. */ 5715_ACEOF 5716cat confdefs.h >>conftest.$ac_ext 5717cat >>conftest.$ac_ext <<_ACEOF 5718/* end confdefs.h. */ 5719 5720#ifdef __ELF__ 5721 yes 5722#endif 5723 5724_ACEOF 5725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5726 $EGREP "yes" >/dev/null 2>&1; then 5727 tcl_cv_ld_elf=yes 5728else 5729 tcl_cv_ld_elf=no 5730fi 5731rm -f conftest* 5732 5733fi 5734echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 5735echo "${ECHO_T}$tcl_cv_ld_elf" >&6 5736 if test $tcl_cv_ld_elf = yes; then 5737 5738 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5739 5740else 5741 5742 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 5743 5744fi 5745 5746 5747 # Ancient FreeBSD doesn't handle version numbers with dots. 5748 5749 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5750 TCL_LIB_VERSIONS_OK=nodots 5751 ;; 5752 OpenBSD-*) 5753 CFLAGS_OPTIMIZE='-O2' 5754 SHLIB_CFLAGS="-fPIC" 5755 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 5756 SHLIB_LD_LIBS='${LIBS}' 5757 SHLIB_SUFFIX=".so" 5758 DL_OBJS="tclLoadDl.o" 5759 DL_LIBS="" 5760 if test $doRpath = yes; then 5761 5762 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5763fi 5764 5765 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5766 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 5767 echo "$as_me:$LINENO: checking for ELF" >&5 5768echo $ECHO_N "checking for ELF... $ECHO_C" >&6 5769if test "${tcl_cv_ld_elf+set}" = set; then 5770 echo $ECHO_N "(cached) $ECHO_C" >&6 5771else 5772 5773 cat >conftest.$ac_ext <<_ACEOF 5774/* confdefs.h. */ 5775_ACEOF 5776cat confdefs.h >>conftest.$ac_ext 5777cat >>conftest.$ac_ext <<_ACEOF 5778/* end confdefs.h. */ 5779 5780#ifdef __ELF__ 5781 yes 5782#endif 5783 5784_ACEOF 5785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5786 $EGREP "yes" >/dev/null 2>&1; then 5787 tcl_cv_ld_elf=yes 5788else 5789 tcl_cv_ld_elf=no 5790fi 5791rm -f conftest* 5792 5793fi 5794echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 5795echo "${ECHO_T}$tcl_cv_ld_elf" >&6 5796 if test $tcl_cv_ld_elf = yes; then 5797 5798 LDFLAGS=-Wl,-export-dynamic 5799 5800else 5801 LDFLAGS="" 5802fi 5803 5804 if test "${TCL_THREADS}" = "1"; then 5805 5806 # OpenBSD builds and links with -pthread, never -lpthread. 5807 LIBS=`echo $LIBS | sed s/-lpthread//` 5808 CFLAGS="$CFLAGS -pthread" 5809 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 5810 5811fi 5812 5813 # OpenBSD doesn't do version numbers with dots. 5814 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5815 TCL_LIB_VERSIONS_OK=nodots 5816 ;; 5817 NetBSD-*|FreeBSD-[3-4].*) 5818 # FreeBSD 3.* and greater have ELF. 5819 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 5820 SHLIB_CFLAGS="-fPIC" 5821 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 5822 SHLIB_LD_LIBS='${LIBS}' 5823 SHLIB_SUFFIX=".so" 5824 DL_OBJS="tclLoadDl.o" 5825 DL_LIBS="" 5826 LDFLAGS="$LDFLAGS -export-dynamic" 5827 if test $doRpath = yes; then 5828 5829 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5830fi 5831 5832 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5833 if test "${TCL_THREADS}" = "1"; then 5834 5835 # The -pthread needs to go in the CFLAGS, not LIBS 5836 LIBS=`echo $LIBS | sed s/-pthread//` 5837 CFLAGS="$CFLAGS -pthread" 5838 LDFLAGS="$LDFLAGS -pthread" 5839 5840fi 5841 5842 case $system in 5843 FreeBSD-3.*) 5844 # FreeBSD-3 doesn't handle version numbers with dots. 5845 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5846 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5847 TCL_LIB_VERSIONS_OK=nodots 5848 ;; 5849 esac 5850 ;; 5851 FreeBSD-*) 5852 # This configuration from FreeBSD Ports. 5853 SHLIB_CFLAGS="-fPIC" 5854 SHLIB_LD="${CC} -shared" 5855 TCL_SHLIB_LD_EXTRAS="-soname \$@" 5856 SHLIB_LD_LIBS='${LIBS}' 5857 SHLIB_SUFFIX=".so" 5858 DL_OBJS="tclLoadDl.o" 5859 DL_LIBS="" 5860 LDFLAGS="" 5861 if test $doRpath = yes; then 5862 5863 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5864 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5865fi 5866 5867 if test "${TCL_THREADS}" = "1"; then 5868 5869 # The -pthread needs to go in the LDFLAGS, not LIBS 5870 LIBS=`echo $LIBS | sed s/-pthread//` 5871 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5872 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 5873fi 5874 5875 # Version numbers are dot-stripped by system policy. 5876 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 5877 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5878 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 5879 TCL_LIB_VERSIONS_OK=nodots 5880 ;; 5881 Darwin-*) 5882 CFLAGS_OPTIMIZE="-Os" 5883 SHLIB_CFLAGS="-fno-common" 5884 # To avoid discrepancies between what headers configure sees during 5885 # preprocessing tests and compiling tests, move any -isysroot and 5886 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 5887 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 5888 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5889 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 5890 CFLAGS="`echo " ${CFLAGS}" | \ 5891 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5892 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 5893 if test $do64bit = yes; then 5894 5895 case `arch` in 5896 ppc) 5897 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 5898echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6 5899if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 5900 echo $ECHO_N "(cached) $ECHO_C" >&6 5901else 5902 5903 hold_cflags=$CFLAGS 5904 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5905 cat >conftest.$ac_ext <<_ACEOF 5906/* confdefs.h. */ 5907_ACEOF 5908cat confdefs.h >>conftest.$ac_ext 5909cat >>conftest.$ac_ext <<_ACEOF 5910/* end confdefs.h. */ 5911 5912int 5913main () 5914{ 5915 5916 ; 5917 return 0; 5918} 5919_ACEOF 5920rm -f conftest.$ac_objext conftest$ac_exeext 5921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5922 (eval $ac_link) 2>conftest.er1 5923 ac_status=$? 5924 grep -v '^ *+' conftest.er1 >conftest.err 5925 rm -f conftest.er1 5926 cat conftest.err >&5 5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5928 (exit $ac_status); } && 5929 { ac_try='test -z "$ac_c_werror_flag" 5930 || test ! -s conftest.err' 5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5932 (eval $ac_try) 2>&5 5933 ac_status=$? 5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5935 (exit $ac_status); }; } && 5936 { ac_try='test -s conftest$ac_exeext' 5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5938 (eval $ac_try) 2>&5 5939 ac_status=$? 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); }; }; then 5942 tcl_cv_cc_arch_ppc64=yes 5943else 5944 echo "$as_me: failed program was:" >&5 5945sed 's/^/| /' conftest.$ac_ext >&5 5946 5947tcl_cv_cc_arch_ppc64=no 5948fi 5949rm -f conftest.err conftest.$ac_objext \ 5950 conftest$ac_exeext conftest.$ac_ext 5951 CFLAGS=$hold_cflags 5952fi 5953echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 5954echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6 5955 if test $tcl_cv_cc_arch_ppc64 = yes; then 5956 5957 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5958 do64bit_ok=yes 5959 5960fi 5961;; 5962 i386) 5963 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 5964echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6 5965if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 5966 echo $ECHO_N "(cached) $ECHO_C" >&6 5967else 5968 5969 hold_cflags=$CFLAGS 5970 CFLAGS="$CFLAGS -arch x86_64" 5971 cat >conftest.$ac_ext <<_ACEOF 5972/* confdefs.h. */ 5973_ACEOF 5974cat confdefs.h >>conftest.$ac_ext 5975cat >>conftest.$ac_ext <<_ACEOF 5976/* end confdefs.h. */ 5977 5978int 5979main () 5980{ 5981 5982 ; 5983 return 0; 5984} 5985_ACEOF 5986rm -f conftest.$ac_objext conftest$ac_exeext 5987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5988 (eval $ac_link) 2>conftest.er1 5989 ac_status=$? 5990 grep -v '^ *+' conftest.er1 >conftest.err 5991 rm -f conftest.er1 5992 cat conftest.err >&5 5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5994 (exit $ac_status); } && 5995 { ac_try='test -z "$ac_c_werror_flag" 5996 || test ! -s conftest.err' 5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5998 (eval $ac_try) 2>&5 5999 ac_status=$? 6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6001 (exit $ac_status); }; } && 6002 { ac_try='test -s conftest$ac_exeext' 6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6004 (eval $ac_try) 2>&5 6005 ac_status=$? 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); }; }; then 6008 tcl_cv_cc_arch_x86_64=yes 6009else 6010 echo "$as_me: failed program was:" >&5 6011sed 's/^/| /' conftest.$ac_ext >&5 6012 6013tcl_cv_cc_arch_x86_64=no 6014fi 6015rm -f conftest.err conftest.$ac_objext \ 6016 conftest$ac_exeext conftest.$ac_ext 6017 CFLAGS=$hold_cflags 6018fi 6019echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 6020echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6 6021 if test $tcl_cv_cc_arch_x86_64 = yes; then 6022 6023 CFLAGS="$CFLAGS -arch x86_64" 6024 do64bit_ok=yes 6025 6026fi 6027;; 6028 *) 6029 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 6030echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 6031 esac 6032 6033else 6034 6035 # Check for combined 32-bit and 64-bit fat build 6036 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 6037 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 6038 6039 fat_32_64=yes 6040fi 6041 6042 6043fi 6044 6045 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 6046 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 6047echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6 6048if test "${tcl_cv_ld_single_module+set}" = set; then 6049 echo $ECHO_N "(cached) $ECHO_C" >&6 6050else 6051 6052 hold_ldflags=$LDFLAGS 6053 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 6054 cat >conftest.$ac_ext <<_ACEOF 6055/* confdefs.h. */ 6056_ACEOF 6057cat confdefs.h >>conftest.$ac_ext 6058cat >>conftest.$ac_ext <<_ACEOF 6059/* end confdefs.h. */ 6060 6061int 6062main () 6063{ 6064int i; 6065 ; 6066 return 0; 6067} 6068_ACEOF 6069rm -f conftest.$ac_objext conftest$ac_exeext 6070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6071 (eval $ac_link) 2>conftest.er1 6072 ac_status=$? 6073 grep -v '^ *+' conftest.er1 >conftest.err 6074 rm -f conftest.er1 6075 cat conftest.err >&5 6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6077 (exit $ac_status); } && 6078 { ac_try='test -z "$ac_c_werror_flag" 6079 || test ! -s conftest.err' 6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6081 (eval $ac_try) 2>&5 6082 ac_status=$? 6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6084 (exit $ac_status); }; } && 6085 { ac_try='test -s conftest$ac_exeext' 6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6087 (eval $ac_try) 2>&5 6088 ac_status=$? 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); }; }; then 6091 tcl_cv_ld_single_module=yes 6092else 6093 echo "$as_me: failed program was:" >&5 6094sed 's/^/| /' conftest.$ac_ext >&5 6095 6096tcl_cv_ld_single_module=no 6097fi 6098rm -f conftest.err conftest.$ac_objext \ 6099 conftest$ac_exeext conftest.$ac_ext 6100 LDFLAGS=$hold_ldflags 6101fi 6102echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 6103echo "${ECHO_T}$tcl_cv_ld_single_module" >&6 6104 if test $tcl_cv_ld_single_module = yes; then 6105 6106 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 6107 6108fi 6109 6110 SHLIB_LD_LIBS='${LIBS}' 6111 SHLIB_SUFFIX=".dylib" 6112 DL_OBJS="tclLoadDyld.o" 6113 DL_LIBS="" 6114 # Don't use -prebind when building for Mac OS X 10.4 or later only: 6115 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 6116 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 6117 6118 LDFLAGS="$LDFLAGS -prebind" 6119fi 6120 6121 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 6122 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 6123echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6 6124if test "${tcl_cv_ld_search_paths_first+set}" = set; then 6125 echo $ECHO_N "(cached) $ECHO_C" >&6 6126else 6127 6128 hold_ldflags=$LDFLAGS 6129 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6130 cat >conftest.$ac_ext <<_ACEOF 6131/* confdefs.h. */ 6132_ACEOF 6133cat confdefs.h >>conftest.$ac_ext 6134cat >>conftest.$ac_ext <<_ACEOF 6135/* end confdefs.h. */ 6136 6137int 6138main () 6139{ 6140int i; 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145rm -f conftest.$ac_objext conftest$ac_exeext 6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6147 (eval $ac_link) 2>conftest.er1 6148 ac_status=$? 6149 grep -v '^ *+' conftest.er1 >conftest.err 6150 rm -f conftest.er1 6151 cat conftest.err >&5 6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 (exit $ac_status); } && 6154 { ac_try='test -z "$ac_c_werror_flag" 6155 || test ! -s conftest.err' 6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 (eval $ac_try) 2>&5 6158 ac_status=$? 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); }; } && 6161 { ac_try='test -s conftest$ac_exeext' 6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6163 (eval $ac_try) 2>&5 6164 ac_status=$? 6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6166 (exit $ac_status); }; }; then 6167 tcl_cv_ld_search_paths_first=yes 6168else 6169 echo "$as_me: failed program was:" >&5 6170sed 's/^/| /' conftest.$ac_ext >&5 6171 6172tcl_cv_ld_search_paths_first=no 6173fi 6174rm -f conftest.err conftest.$ac_objext \ 6175 conftest$ac_exeext conftest.$ac_ext 6176 LDFLAGS=$hold_ldflags 6177fi 6178echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 6179echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6 6180 if test $tcl_cv_ld_search_paths_first = yes; then 6181 6182 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6183 6184fi 6185 6186 if test "$tcl_cv_cc_visibility_hidden" != yes; then 6187 6188 6189cat >>confdefs.h <<\_ACEOF 6190#define MODULE_SCOPE __private_extern__ 6191_ACEOF 6192 6193 6194fi 6195 6196 CC_SEARCH_FLAGS="" 6197 LD_SEARCH_FLAGS="" 6198 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 6199 6200cat >>confdefs.h <<\_ACEOF 6201#define MAC_OSX_TCL 1 6202_ACEOF 6203 6204 PLAT_OBJS='${MAC_OSX_OBJS}' 6205 PLAT_SRCS='${MAC_OSX_SRCS}' 6206 echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5 6207echo $ECHO_N "checking whether to use CoreFoundation... $ECHO_C" >&6 6208 # Check whether --enable-corefoundation or --disable-corefoundation was given. 6209if test "${enable_corefoundation+set}" = set; then 6210 enableval="$enable_corefoundation" 6211 tcl_corefoundation=$enableval 6212else 6213 tcl_corefoundation=yes 6214fi; 6215 echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5 6216echo "${ECHO_T}$tcl_corefoundation" >&6 6217 if test $tcl_corefoundation = yes; then 6218 6219 echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5 6220echo $ECHO_N "checking for CoreFoundation.framework... $ECHO_C" >&6 6221if test "${tcl_cv_lib_corefoundation+set}" = set; then 6222 echo $ECHO_N "(cached) $ECHO_C" >&6 6223else 6224 6225 hold_libs=$LIBS 6226 if test "$fat_32_64" = yes; then 6227 6228 for v in CFLAGS CPPFLAGS LDFLAGS; do 6229 # On Tiger there is no 64-bit CF, so remove 64-bit 6230 # archs from CFLAGS et al. while testing for 6231 # presence of CF. 64-bit CF is disabled in 6232 # tclUnixPort.h if necessary. 6233 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 6234 done 6235fi 6236 6237 LIBS="$LIBS -framework CoreFoundation" 6238 cat >conftest.$ac_ext <<_ACEOF 6239/* confdefs.h. */ 6240_ACEOF 6241cat confdefs.h >>conftest.$ac_ext 6242cat >>conftest.$ac_ext <<_ACEOF 6243/* end confdefs.h. */ 6244#include <CoreFoundation/CoreFoundation.h> 6245int 6246main () 6247{ 6248CFBundleRef b = CFBundleGetMainBundle(); 6249 ; 6250 return 0; 6251} 6252_ACEOF 6253rm -f conftest.$ac_objext conftest$ac_exeext 6254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6255 (eval $ac_link) 2>conftest.er1 6256 ac_status=$? 6257 grep -v '^ *+' conftest.er1 >conftest.err 6258 rm -f conftest.er1 6259 cat conftest.err >&5 6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6261 (exit $ac_status); } && 6262 { ac_try='test -z "$ac_c_werror_flag" 6263 || test ! -s conftest.err' 6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6265 (eval $ac_try) 2>&5 6266 ac_status=$? 6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6268 (exit $ac_status); }; } && 6269 { ac_try='test -s conftest$ac_exeext' 6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6271 (eval $ac_try) 2>&5 6272 ac_status=$? 6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6274 (exit $ac_status); }; }; then 6275 tcl_cv_lib_corefoundation=yes 6276else 6277 echo "$as_me: failed program was:" >&5 6278sed 's/^/| /' conftest.$ac_ext >&5 6279 6280tcl_cv_lib_corefoundation=no 6281fi 6282rm -f conftest.err conftest.$ac_objext \ 6283 conftest$ac_exeext conftest.$ac_ext 6284 if test "$fat_32_64" = yes; then 6285 6286 for v in CFLAGS CPPFLAGS LDFLAGS; do 6287 eval $v'="$hold_'$v'"' 6288 done 6289fi 6290 6291 LIBS=$hold_libs 6292fi 6293echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5 6294echo "${ECHO_T}$tcl_cv_lib_corefoundation" >&6 6295 if test $tcl_cv_lib_corefoundation = yes; then 6296 6297 LIBS="$LIBS -framework CoreFoundation" 6298 6299cat >>confdefs.h <<\_ACEOF 6300#define HAVE_COREFOUNDATION 1 6301_ACEOF 6302 6303 6304else 6305 tcl_corefoundation=no 6306fi 6307 6308 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 6309 6310 echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5 6311echo $ECHO_N "checking for 64-bit CoreFoundation... $ECHO_C" >&6 6312if test "${tcl_cv_lib_corefoundation_64+set}" = set; then 6313 echo $ECHO_N "(cached) $ECHO_C" >&6 6314else 6315 6316 for v in CFLAGS CPPFLAGS LDFLAGS; do 6317 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 6318 done 6319 cat >conftest.$ac_ext <<_ACEOF 6320/* confdefs.h. */ 6321_ACEOF 6322cat confdefs.h >>conftest.$ac_ext 6323cat >>conftest.$ac_ext <<_ACEOF 6324/* end confdefs.h. */ 6325#include <CoreFoundation/CoreFoundation.h> 6326int 6327main () 6328{ 6329CFBundleRef b = CFBundleGetMainBundle(); 6330 ; 6331 return 0; 6332} 6333_ACEOF 6334rm -f conftest.$ac_objext conftest$ac_exeext 6335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6336 (eval $ac_link) 2>conftest.er1 6337 ac_status=$? 6338 grep -v '^ *+' conftest.er1 >conftest.err 6339 rm -f conftest.er1 6340 cat conftest.err >&5 6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6342 (exit $ac_status); } && 6343 { ac_try='test -z "$ac_c_werror_flag" 6344 || test ! -s conftest.err' 6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6346 (eval $ac_try) 2>&5 6347 ac_status=$? 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); }; } && 6350 { ac_try='test -s conftest$ac_exeext' 6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6352 (eval $ac_try) 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; }; then 6356 tcl_cv_lib_corefoundation_64=yes 6357else 6358 echo "$as_me: failed program was:" >&5 6359sed 's/^/| /' conftest.$ac_ext >&5 6360 6361tcl_cv_lib_corefoundation_64=no 6362fi 6363rm -f conftest.err conftest.$ac_objext \ 6364 conftest$ac_exeext conftest.$ac_ext 6365 for v in CFLAGS CPPFLAGS LDFLAGS; do 6366 eval $v'="$hold_'$v'"' 6367 done 6368fi 6369echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5 6370echo "${ECHO_T}$tcl_cv_lib_corefoundation_64" >&6 6371 if test $tcl_cv_lib_corefoundation_64 = no; then 6372 6373 6374cat >>confdefs.h <<\_ACEOF 6375#define NO_COREFOUNDATION_64 1 6376_ACEOF 6377 6378 LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings" 6379 6380fi 6381 6382 6383fi 6384 6385 6386fi 6387 6388 ;; 6389 NEXTSTEP-*) 6390 SHLIB_CFLAGS="" 6391 SHLIB_LD='${CC} -nostdlib -r' 6392 SHLIB_LD_LIBS="" 6393 SHLIB_SUFFIX=".so" 6394 DL_OBJS="tclLoadNext.o" 6395 DL_LIBS="" 6396 CC_SEARCH_FLAGS="" 6397 LD_SEARCH_FLAGS="" 6398 ;; 6399 OS/390-*) 6400 CFLAGS_OPTIMIZE="" # Optimizer is buggy 6401 6402cat >>confdefs.h <<\_ACEOF 6403#define _OE_SOCKETS 1 6404_ACEOF 6405 6406 ;; 6407 OSF1-1.0|OSF1-1.1|OSF1-1.2) 6408 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 6409 SHLIB_CFLAGS="" 6410 # Hack: make package name same as library name 6411 SHLIB_LD='ld -R -export :' 6412 SHLIB_LD_LIBS="" 6413 SHLIB_SUFFIX=".so" 6414 DL_OBJS="tclLoadOSF.o" 6415 DL_LIBS="" 6416 CC_SEARCH_FLAGS="" 6417 LD_SEARCH_FLAGS="" 6418 ;; 6419 OSF1-1.*) 6420 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 6421 SHLIB_CFLAGS="-fPIC" 6422 if test "$SHARED_BUILD" = 1; then 6423 SHLIB_LD="ld -shared" 6424else 6425 6426 SHLIB_LD="ld -non_shared" 6427 6428fi 6429 6430 SHLIB_LD_LIBS="" 6431 SHLIB_SUFFIX=".so" 6432 DL_OBJS="tclLoadDl.o" 6433 DL_LIBS="" 6434 CC_SEARCH_FLAGS="" 6435 LD_SEARCH_FLAGS="" 6436 ;; 6437 OSF1-V*) 6438 # Digital OSF/1 6439 SHLIB_CFLAGS="" 6440 if test "$SHARED_BUILD" = 1; then 6441 6442 SHLIB_LD='ld -shared -expect_unresolved "*"' 6443 6444else 6445 6446 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 6447 6448fi 6449 6450 SHLIB_LD_LIBS='${LIBS}' 6451 SHLIB_SUFFIX=".so" 6452 DL_OBJS="tclLoadDl.o" 6453 DL_LIBS="" 6454 if test $doRpath = yes; then 6455 6456 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6457 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6458fi 6459 6460 if test "$GCC" = yes; then 6461 CFLAGS="$CFLAGS -mieee" 6462else 6463 6464 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 6465fi 6466 6467 # see pthread_intro(3) for pthread support on osf1, k.furukawa 6468 if test "${TCL_THREADS}" = 1; then 6469 6470 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 6471 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 6472 LIBS=`echo $LIBS | sed s/-lpthreads//` 6473 if test "$GCC" = yes; then 6474 6475 LIBS="$LIBS -lpthread -lmach -lexc" 6476 6477else 6478 6479 CFLAGS="$CFLAGS -pthread" 6480 LDFLAGS="$LDFLAGS -pthread" 6481 6482fi 6483 6484 6485fi 6486 6487 ;; 6488 QNX-6*) 6489 # QNX RTP 6490 # This may work for all QNX, but it was only reported for v6. 6491 SHLIB_CFLAGS="-fPIC" 6492 SHLIB_LD="ld -Bshareable -x" 6493 SHLIB_LD_LIBS="" 6494 SHLIB_SUFFIX=".so" 6495 DL_OBJS="tclLoadDl.o" 6496 # dlopen is in -lc on QNX 6497 DL_LIBS="" 6498 CC_SEARCH_FLAGS="" 6499 LD_SEARCH_FLAGS="" 6500 ;; 6501 SCO_SV-3.2*) 6502 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 6503 # this test works, since "uname -s" was non-standard in 3.2.4 and 6504 # below. 6505 if test "$GCC" = yes; then 6506 6507 SHLIB_CFLAGS="-fPIC -melf" 6508 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 6509 6510else 6511 6512 SHLIB_CFLAGS="-Kpic -belf" 6513 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 6514 6515fi 6516 6517 SHLIB_LD="ld -G" 6518 SHLIB_LD_LIBS="" 6519 SHLIB_SUFFIX=".so" 6520 DL_OBJS="tclLoadDl.o" 6521 DL_LIBS="" 6522 CC_SEARCH_FLAGS="" 6523 LD_SEARCH_FLAGS="" 6524 ;; 6525 SINIX*5.4*) 6526 SHLIB_CFLAGS="-K PIC" 6527 SHLIB_LD='${CC} -G' 6528 SHLIB_LD_LIBS="" 6529 SHLIB_SUFFIX=".so" 6530 DL_OBJS="tclLoadDl.o" 6531 DL_LIBS="-ldl" 6532 CC_SEARCH_FLAGS="" 6533 LD_SEARCH_FLAGS="" 6534 ;; 6535 SunOS-4*) 6536 SHLIB_CFLAGS="-PIC" 6537 SHLIB_LD="ld" 6538 SHLIB_LD_LIBS="" 6539 SHLIB_SUFFIX=".so" 6540 DL_OBJS="tclLoadDl.o" 6541 DL_LIBS="-ldl" 6542 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6543 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6544 6545 # SunOS can't handle version numbers with dots in them in library 6546 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 6547 # requires an extra version number at the end of .so file names. 6548 # So, the library has to have a name like libtcl75.so.1.0 6549 6550 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 6551 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6552 TCL_LIB_VERSIONS_OK=nodots 6553 ;; 6554 SunOS-5.[0-6]) 6555 # Careful to not let 5.10+ fall into this case 6556 6557 # Note: If _REENTRANT isn't defined, then Solaris 6558 # won't define thread-safe library routines. 6559 6560 6561cat >>confdefs.h <<\_ACEOF 6562#define _REENTRANT 1 6563_ACEOF 6564 6565 6566cat >>confdefs.h <<\_ACEOF 6567#define _POSIX_PTHREAD_SEMANTICS 1 6568_ACEOF 6569 6570 6571 SHLIB_CFLAGS="-KPIC" 6572 6573 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6574 # symbols when dynamically loaded into tclsh. 6575 6576 SHLIB_LD_LIBS='${LIBS}' 6577 SHLIB_SUFFIX=".so" 6578 DL_OBJS="tclLoadDl.o" 6579 DL_LIBS="-ldl" 6580 if test "$GCC" = yes; then 6581 6582 SHLIB_LD='${CC} -shared' 6583 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6584 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6585 6586else 6587 6588 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6589 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6590 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6591 6592fi 6593 6594 ;; 6595 SunOS-5*) 6596 # Note: If _REENTRANT isn't defined, then Solaris 6597 # won't define thread-safe library routines. 6598 6599 6600cat >>confdefs.h <<\_ACEOF 6601#define _REENTRANT 1 6602_ACEOF 6603 6604 6605cat >>confdefs.h <<\_ACEOF 6606#define _POSIX_PTHREAD_SEMANTICS 1 6607_ACEOF 6608 6609 6610 SHLIB_CFLAGS="-KPIC" 6611 6612 # Check to enable 64-bit flags for compiler/linker 6613 if test "$do64bit" = yes; then 6614 6615 arch=`isainfo` 6616 if test "$arch" = "sparcv9 sparc"; then 6617 6618 if test "$GCC" = yes; then 6619 6620 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 6621 6622 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 6623echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 6624 6625else 6626 6627 do64bit_ok=yes 6628 CFLAGS="$CFLAGS -m64 -mcpu=v9" 6629 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 6630 SHLIB_CFLAGS="-fPIC" 6631 6632fi 6633 6634 6635else 6636 6637 do64bit_ok=yes 6638 if test "$do64bitVIS" = yes; then 6639 6640 CFLAGS="$CFLAGS -xarch=v9a" 6641 LDFLAGS_ARCH="-xarch=v9a" 6642 6643else 6644 6645 CFLAGS="$CFLAGS -xarch=v9" 6646 LDFLAGS_ARCH="-xarch=v9" 6647 6648fi 6649 6650 # Solaris 64 uses this as well 6651 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 6652 6653fi 6654 6655 6656else 6657 if test "$arch" = "amd64 i386"; then 6658 6659 if test "$GCC" = yes; then 6660 6661 case $system in 6662 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 6663 do64bit_ok=yes 6664 CFLAGS="$CFLAGS -m64" 6665 LDFLAGS="$LDFLAGS -m64";; 6666 *) 6667 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 6668echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 6669 esac 6670 6671else 6672 6673 do64bit_ok=yes 6674 case $system in 6675 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 6676 CFLAGS="$CFLAGS -m64" 6677 LDFLAGS="$LDFLAGS -m64";; 6678 *) 6679 CFLAGS="$CFLAGS -xarch=amd64" 6680 LDFLAGS="$LDFLAGS -xarch=amd64";; 6681 esac 6682 6683fi 6684 6685 6686else 6687 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 6688echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 6689fi 6690 6691fi 6692 6693 6694fi 6695 6696 6697 #-------------------------------------------------------------------- 6698 # On Solaris 5.x i386 with the sunpro compiler we need to link 6699 # with sunmath to get floating point rounding control 6700 #-------------------------------------------------------------------- 6701 if test "$GCC" = yes; then 6702 use_sunmath=no 6703else 6704 6705 arch=`isainfo` 6706 echo "$as_me:$LINENO: checking whether to use -lsunmath for fp rounding control" >&5 6707echo $ECHO_N "checking whether to use -lsunmath for fp rounding control... $ECHO_C" >&6 6708 if test "$arch" = "amd64 i386"; then 6709 6710 echo "$as_me:$LINENO: result: yes" >&5 6711echo "${ECHO_T}yes" >&6 6712 MATH_LIBS="-lsunmath $MATH_LIBS" 6713 if test "${ac_cv_header_sunmath_h+set}" = set; then 6714 echo "$as_me:$LINENO: checking for sunmath.h" >&5 6715echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6 6716if test "${ac_cv_header_sunmath_h+set}" = set; then 6717 echo $ECHO_N "(cached) $ECHO_C" >&6 6718fi 6719echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5 6720echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6 6721else 6722 # Is the header compilable? 6723echo "$as_me:$LINENO: checking sunmath.h usability" >&5 6724echo $ECHO_N "checking sunmath.h usability... $ECHO_C" >&6 6725cat >conftest.$ac_ext <<_ACEOF 6726/* confdefs.h. */ 6727_ACEOF 6728cat confdefs.h >>conftest.$ac_ext 6729cat >>conftest.$ac_ext <<_ACEOF 6730/* end confdefs.h. */ 6731$ac_includes_default 6732#include <sunmath.h> 6733_ACEOF 6734rm -f conftest.$ac_objext 6735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6736 (eval $ac_compile) 2>conftest.er1 6737 ac_status=$? 6738 grep -v '^ *+' conftest.er1 >conftest.err 6739 rm -f conftest.er1 6740 cat conftest.err >&5 6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6742 (exit $ac_status); } && 6743 { ac_try='test -z "$ac_c_werror_flag" 6744 || test ! -s conftest.err' 6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6746 (eval $ac_try) 2>&5 6747 ac_status=$? 6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6749 (exit $ac_status); }; } && 6750 { ac_try='test -s conftest.$ac_objext' 6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6752 (eval $ac_try) 2>&5 6753 ac_status=$? 6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); }; }; then 6756 ac_header_compiler=yes 6757else 6758 echo "$as_me: failed program was:" >&5 6759sed 's/^/| /' conftest.$ac_ext >&5 6760 6761ac_header_compiler=no 6762fi 6763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6765echo "${ECHO_T}$ac_header_compiler" >&6 6766 6767# Is the header present? 6768echo "$as_me:$LINENO: checking sunmath.h presence" >&5 6769echo $ECHO_N "checking sunmath.h presence... $ECHO_C" >&6 6770cat >conftest.$ac_ext <<_ACEOF 6771/* confdefs.h. */ 6772_ACEOF 6773cat confdefs.h >>conftest.$ac_ext 6774cat >>conftest.$ac_ext <<_ACEOF 6775/* end confdefs.h. */ 6776#include <sunmath.h> 6777_ACEOF 6778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6780 ac_status=$? 6781 grep -v '^ *+' conftest.er1 >conftest.err 6782 rm -f conftest.er1 6783 cat conftest.err >&5 6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6785 (exit $ac_status); } >/dev/null; then 6786 if test -s conftest.err; then 6787 ac_cpp_err=$ac_c_preproc_warn_flag 6788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6789 else 6790 ac_cpp_err= 6791 fi 6792else 6793 ac_cpp_err=yes 6794fi 6795if test -z "$ac_cpp_err"; then 6796 ac_header_preproc=yes 6797else 6798 echo "$as_me: failed program was:" >&5 6799sed 's/^/| /' conftest.$ac_ext >&5 6800 6801 ac_header_preproc=no 6802fi 6803rm -f conftest.err conftest.$ac_ext 6804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6805echo "${ECHO_T}$ac_header_preproc" >&6 6806 6807# So? What about this header? 6808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6809 yes:no: ) 6810 { echo "$as_me:$LINENO: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&5 6811echo "$as_me: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6812 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the compiler's result" >&5 6813echo "$as_me: WARNING: sunmath.h: proceeding with the compiler's result" >&2;} 6814 ac_header_preproc=yes 6815 ;; 6816 no:yes:* ) 6817 { echo "$as_me:$LINENO: WARNING: sunmath.h: present but cannot be compiled" >&5 6818echo "$as_me: WARNING: sunmath.h: present but cannot be compiled" >&2;} 6819 { echo "$as_me:$LINENO: WARNING: sunmath.h: check for missing prerequisite headers?" >&5 6820echo "$as_me: WARNING: sunmath.h: check for missing prerequisite headers?" >&2;} 6821 { echo "$as_me:$LINENO: WARNING: sunmath.h: see the Autoconf documentation" >&5 6822echo "$as_me: WARNING: sunmath.h: see the Autoconf documentation" >&2;} 6823 { echo "$as_me:$LINENO: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&5 6824echo "$as_me: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&2;} 6825 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the preprocessor's result" >&5 6826echo "$as_me: WARNING: sunmath.h: proceeding with the preprocessor's result" >&2;} 6827 { echo "$as_me:$LINENO: WARNING: sunmath.h: in the future, the compiler will take precedence" >&5 6828echo "$as_me: WARNING: sunmath.h: in the future, the compiler will take precedence" >&2;} 6829 ( 6830 cat <<\_ASBOX 6831## ----------------------------- ## 6832## Report this to the tk lists. ## 6833## ----------------------------- ## 6834_ASBOX 6835 ) | 6836 sed "s/^/$as_me: WARNING: /" >&2 6837 ;; 6838esac 6839echo "$as_me:$LINENO: checking for sunmath.h" >&5 6840echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6 6841if test "${ac_cv_header_sunmath_h+set}" = set; then 6842 echo $ECHO_N "(cached) $ECHO_C" >&6 6843else 6844 ac_cv_header_sunmath_h=$ac_header_preproc 6845fi 6846echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5 6847echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6 6848 6849fi 6850 6851 6852 use_sunmath=yes 6853 6854else 6855 6856 echo "$as_me:$LINENO: result: no" >&5 6857echo "${ECHO_T}no" >&6 6858 use_sunmath=no 6859 6860fi 6861 6862 6863fi 6864 6865 6866 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6867 # symbols when dynamically loaded into tclsh. 6868 6869 SHLIB_LD_LIBS='${LIBS}' 6870 SHLIB_SUFFIX=".so" 6871 DL_OBJS="tclLoadDl.o" 6872 DL_LIBS="-ldl" 6873 if test "$GCC" = yes; then 6874 6875 SHLIB_LD='${CC} -shared' 6876 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6877 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6878 if test "$do64bit_ok" = yes; then 6879 6880 if test "$arch" = "sparcv9 sparc"; then 6881 6882 # We need to specify -static-libgcc or we need to 6883 # add the path to the sparv9 libgcc. 6884 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 6885 # for finding sparcv9 libgcc, get the regular libgcc 6886 # path, remove so name and append 'sparcv9' 6887 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 6888 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 6889 6890else 6891 if test "$arch" = "amd64 i386"; then 6892 6893 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 6894 6895fi 6896 6897fi 6898 6899 6900fi 6901 6902 6903else 6904 6905 if test "$use_sunmath" = yes; then 6906 textmode=textoff 6907else 6908 textmode=text 6909fi 6910 6911 case $system in 6912 SunOS-5.[1-9][0-9]*) 6913 SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";; 6914 *) 6915 SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";; 6916 esac 6917 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6918 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6919 6920fi 6921 6922 ;; 6923 UNIX_SV* | UnixWare-5*) 6924 SHLIB_CFLAGS="-KPIC" 6925 SHLIB_LD='${CC} -G' 6926 SHLIB_LD_LIBS="" 6927 SHLIB_SUFFIX=".so" 6928 DL_OBJS="tclLoadDl.o" 6929 DL_LIBS="-ldl" 6930 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 6931 # that don't grok the -Bexport option. Test that it does. 6932 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 6933echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 6934if test "${tcl_cv_ld_Bexport+set}" = set; then 6935 echo $ECHO_N "(cached) $ECHO_C" >&6 6936else 6937 6938 hold_ldflags=$LDFLAGS 6939 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6940 cat >conftest.$ac_ext <<_ACEOF 6941/* confdefs.h. */ 6942_ACEOF 6943cat confdefs.h >>conftest.$ac_ext 6944cat >>conftest.$ac_ext <<_ACEOF 6945/* end confdefs.h. */ 6946 6947int 6948main () 6949{ 6950int i; 6951 ; 6952 return 0; 6953} 6954_ACEOF 6955rm -f conftest.$ac_objext conftest$ac_exeext 6956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6957 (eval $ac_link) 2>conftest.er1 6958 ac_status=$? 6959 grep -v '^ *+' conftest.er1 >conftest.err 6960 rm -f conftest.er1 6961 cat conftest.err >&5 6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6963 (exit $ac_status); } && 6964 { ac_try='test -z "$ac_c_werror_flag" 6965 || test ! -s conftest.err' 6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6967 (eval $ac_try) 2>&5 6968 ac_status=$? 6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6970 (exit $ac_status); }; } && 6971 { ac_try='test -s conftest$ac_exeext' 6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6973 (eval $ac_try) 2>&5 6974 ac_status=$? 6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6976 (exit $ac_status); }; }; then 6977 tcl_cv_ld_Bexport=yes 6978else 6979 echo "$as_me: failed program was:" >&5 6980sed 's/^/| /' conftest.$ac_ext >&5 6981 6982tcl_cv_ld_Bexport=no 6983fi 6984rm -f conftest.err conftest.$ac_objext \ 6985 conftest$ac_exeext conftest.$ac_ext 6986 LDFLAGS=$hold_ldflags 6987fi 6988echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 6989echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6 6990 if test $tcl_cv_ld_Bexport = yes; then 6991 6992 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6993 6994fi 6995 6996 CC_SEARCH_FLAGS="" 6997 LD_SEARCH_FLAGS="" 6998 ;; 6999 esac 7000 7001 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 7002 7003 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 7004echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 7005 7006fi 7007 7008 7009 if test "$do64bit" = yes -a "$do64bit_ok" = yes; then 7010 7011 7012cat >>confdefs.h <<\_ACEOF 7013#define TCL_CFG_DO64BIT 1 7014_ACEOF 7015 7016 7017fi 7018 7019 7020 7021 7022 # Step 4: disable dynamic loading if requested via a command-line switch. 7023 7024 # Check whether --enable-load or --disable-load was given. 7025if test "${enable_load+set}" = set; then 7026 enableval="$enable_load" 7027 tcl_ok=$enableval 7028else 7029 tcl_ok=yes 7030fi; 7031 if test "$tcl_ok" = no; then 7032 DL_OBJS="" 7033fi 7034 7035 7036 if test "x$DL_OBJS" != x; then 7037 BUILD_DLTEST="\$(DLTEST_TARGETS)" 7038else 7039 7040 { echo "$as_me:$LINENO: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 7041echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} 7042 SHLIB_CFLAGS="" 7043 SHLIB_LD="" 7044 SHLIB_SUFFIX="" 7045 DL_OBJS="tclLoadNone.o" 7046 DL_LIBS="" 7047 LDFLAGS="$LDFLAGS_ORIG" 7048 CC_SEARCH_FLAGS="" 7049 LD_SEARCH_FLAGS="" 7050 BUILD_DLTEST="" 7051 7052fi 7053 7054 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 7055 7056 # If we're running gcc, then change the C flags for compiling shared 7057 # libraries to the right flags for gcc, instead of those for the 7058 # standard manufacturer compiler. 7059 7060 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then 7061 7062 case $system in 7063 AIX-*) ;; 7064 BSD/OS*) ;; 7065 CYGWIN_*) ;; 7066 IRIX*) ;; 7067 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 7068 Darwin-*) ;; 7069 SCO_SV-3.2*) ;; 7070 *) SHLIB_CFLAGS="-fPIC" ;; 7071 esac 7072fi 7073 7074 7075 if test "$SHARED_LIB_SUFFIX" = ""; then 7076 7077 SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}' 7078fi 7079 7080 if test "$UNSHARED_LIB_SUFFIX" = ""; then 7081 7082 UNSHARED_LIB_SUFFIX='${VERSION}.a' 7083fi 7084 7085 7086 if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then 7087 7088 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 7089 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 7090 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)"/$(LIB_FILE)' 7091 7092else 7093 7094 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 7095 7096 if test "$RANLIB" = ""; then 7097 7098 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 7099 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)"/$(LIB_FILE)' 7100 7101else 7102 7103 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 7104 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)"/$(LIB_FILE) ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(LIB_FILE))' 7105 7106fi 7107 7108 7109fi 7110 7111 7112 # Stub lib does not depend on shared/static configuration 7113 if test "$RANLIB" = ""; then 7114 7115 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 7116 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"' 7117 7118else 7119 7120 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 7121 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)"/$(STUB_LIB_FILE) ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(STUB_LIB_FILE))' 7122 7123fi 7124 7125 7126 # Define TCL_LIBS now that we know what DL_LIBS is. 7127 # The trick here is that we don't want to change the value of TCL_LIBS if 7128 # it is already set when tclConfig.sh had been loaded by Tk. 7129 if test "x${TCL_LIBS}" = x; then 7130 7131 TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}" 7132fi 7133 7134 7135 7136 # FIXME: This subst was left in only because the TCL_DL_LIBS 7137 # entry in tclConfig.sh uses it. It is not clear why someone 7138 # would use TCL_DL_LIBS instead of TCL_LIBS. 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164cat >>confdefs.h <<_ACEOF 7165#define TCL_SHLIB_EXT "${SHLIB_SUFFIX}" 7166_ACEOF 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 echo "$as_me:$LINENO: checking for build with symbols" >&5 7178echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 7179 # Check whether --enable-symbols or --disable-symbols was given. 7180if test "${enable_symbols+set}" = set; then 7181 enableval="$enable_symbols" 7182 tcl_ok=$enableval 7183else 7184 tcl_ok=no 7185fi; 7186# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. 7187 DBGX="" 7188 if test "$tcl_ok" = "no"; then 7189 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 7190 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 7191 echo "$as_me:$LINENO: result: no" >&5 7192echo "${ECHO_T}no" >&6 7193 7194cat >>confdefs.h <<\_ACEOF 7195#define TCL_CFG_OPTIMIZED 1 7196_ACEOF 7197 7198 else 7199 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 7200 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 7201 if test "$tcl_ok" = "yes"; then 7202 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 7203echo "${ECHO_T}yes (standard debugging)" >&6 7204 fi 7205 fi 7206 7207 7208 ### FIXME: Surely TCL_CFG_DEBUG should be set to whether we're debugging? 7209 7210cat >>confdefs.h <<\_ACEOF 7211#define TCL_CFG_DEBUG 1 7212_ACEOF 7213 7214 7215 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 7216 7217cat >>confdefs.h <<\_ACEOF 7218#define TCL_MEM_DEBUG 1 7219_ACEOF 7220 7221 fi 7222 7223 7224 7225 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 7226 if test "$tcl_ok" = "all"; then 7227 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 7228echo "${ECHO_T}enabled symbols mem debugging" >&6 7229 else 7230 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 7231echo "${ECHO_T}enabled $tcl_ok debugging" >&6 7232 fi 7233 fi 7234 7235 7236#-------------------------------------------------------------------- 7237# Detect what compiler flags to set for 64-bit support. 7238#-------------------------------------------------------------------- 7239 7240 7241 echo "$as_me:$LINENO: checking for required early compiler flags" >&5 7242echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6 7243 tcl_flags="" 7244 7245 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 7246 echo $ECHO_N "(cached) $ECHO_C" >&6 7247else 7248 cat >conftest.$ac_ext <<_ACEOF 7249/* confdefs.h. */ 7250_ACEOF 7251cat confdefs.h >>conftest.$ac_ext 7252cat >>conftest.$ac_ext <<_ACEOF 7253/* end confdefs.h. */ 7254#include <stdlib.h> 7255int 7256main () 7257{ 7258char *p = (char *)strtoll; char *q = (char *)strtoull; 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263rm -f conftest.$ac_objext 7264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7265 (eval $ac_compile) 2>conftest.er1 7266 ac_status=$? 7267 grep -v '^ *+' conftest.er1 >conftest.err 7268 rm -f conftest.er1 7269 cat conftest.err >&5 7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7271 (exit $ac_status); } && 7272 { ac_try='test -z "$ac_c_werror_flag" 7273 || test ! -s conftest.err' 7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7275 (eval $ac_try) 2>&5 7276 ac_status=$? 7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7278 (exit $ac_status); }; } && 7279 { ac_try='test -s conftest.$ac_objext' 7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7281 (eval $ac_try) 2>&5 7282 ac_status=$? 7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7284 (exit $ac_status); }; }; then 7285 tcl_cv_flag__isoc99_source=no 7286else 7287 echo "$as_me: failed program was:" >&5 7288sed 's/^/| /' conftest.$ac_ext >&5 7289 7290cat >conftest.$ac_ext <<_ACEOF 7291/* confdefs.h. */ 7292_ACEOF 7293cat confdefs.h >>conftest.$ac_ext 7294cat >>conftest.$ac_ext <<_ACEOF 7295/* end confdefs.h. */ 7296#define _ISOC99_SOURCE 1 7297#include <stdlib.h> 7298int 7299main () 7300{ 7301char *p = (char *)strtoll; char *q = (char *)strtoull; 7302 ; 7303 return 0; 7304} 7305_ACEOF 7306rm -f conftest.$ac_objext 7307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7308 (eval $ac_compile) 2>conftest.er1 7309 ac_status=$? 7310 grep -v '^ *+' conftest.er1 >conftest.err 7311 rm -f conftest.er1 7312 cat conftest.err >&5 7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7314 (exit $ac_status); } && 7315 { ac_try='test -z "$ac_c_werror_flag" 7316 || test ! -s conftest.err' 7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7318 (eval $ac_try) 2>&5 7319 ac_status=$? 7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7321 (exit $ac_status); }; } && 7322 { ac_try='test -s conftest.$ac_objext' 7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7324 (eval $ac_try) 2>&5 7325 ac_status=$? 7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7327 (exit $ac_status); }; }; then 7328 tcl_cv_flag__isoc99_source=yes 7329else 7330 echo "$as_me: failed program was:" >&5 7331sed 's/^/| /' conftest.$ac_ext >&5 7332 7333tcl_cv_flag__isoc99_source=no 7334fi 7335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7336fi 7337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7338fi 7339 7340 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 7341 7342cat >>confdefs.h <<\_ACEOF 7343#define _ISOC99_SOURCE 1 7344_ACEOF 7345 7346 tcl_flags="$tcl_flags _ISOC99_SOURCE" 7347 fi 7348 7349 7350 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 7351 echo $ECHO_N "(cached) $ECHO_C" >&6 7352else 7353 cat >conftest.$ac_ext <<_ACEOF 7354/* confdefs.h. */ 7355_ACEOF 7356cat confdefs.h >>conftest.$ac_ext 7357cat >>conftest.$ac_ext <<_ACEOF 7358/* end confdefs.h. */ 7359#include <sys/stat.h> 7360int 7361main () 7362{ 7363struct stat64 buf; int i = stat64("/", &buf); 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368rm -f conftest.$ac_objext 7369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7370 (eval $ac_compile) 2>conftest.er1 7371 ac_status=$? 7372 grep -v '^ *+' conftest.er1 >conftest.err 7373 rm -f conftest.er1 7374 cat conftest.err >&5 7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7376 (exit $ac_status); } && 7377 { ac_try='test -z "$ac_c_werror_flag" 7378 || test ! -s conftest.err' 7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7380 (eval $ac_try) 2>&5 7381 ac_status=$? 7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 (exit $ac_status); }; } && 7384 { ac_try='test -s conftest.$ac_objext' 7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7386 (eval $ac_try) 2>&5 7387 ac_status=$? 7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7389 (exit $ac_status); }; }; then 7390 tcl_cv_flag__largefile64_source=no 7391else 7392 echo "$as_me: failed program was:" >&5 7393sed 's/^/| /' conftest.$ac_ext >&5 7394 7395cat >conftest.$ac_ext <<_ACEOF 7396/* confdefs.h. */ 7397_ACEOF 7398cat confdefs.h >>conftest.$ac_ext 7399cat >>conftest.$ac_ext <<_ACEOF 7400/* end confdefs.h. */ 7401#define _LARGEFILE64_SOURCE 1 7402#include <sys/stat.h> 7403int 7404main () 7405{ 7406struct stat64 buf; int i = stat64("/", &buf); 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411rm -f conftest.$ac_objext 7412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7413 (eval $ac_compile) 2>conftest.er1 7414 ac_status=$? 7415 grep -v '^ *+' conftest.er1 >conftest.err 7416 rm -f conftest.er1 7417 cat conftest.err >&5 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); } && 7420 { ac_try='test -z "$ac_c_werror_flag" 7421 || test ! -s conftest.err' 7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7423 (eval $ac_try) 2>&5 7424 ac_status=$? 7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7426 (exit $ac_status); }; } && 7427 { ac_try='test -s conftest.$ac_objext' 7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7429 (eval $ac_try) 2>&5 7430 ac_status=$? 7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7432 (exit $ac_status); }; }; then 7433 tcl_cv_flag__largefile64_source=yes 7434else 7435 echo "$as_me: failed program was:" >&5 7436sed 's/^/| /' conftest.$ac_ext >&5 7437 7438tcl_cv_flag__largefile64_source=no 7439fi 7440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7441fi 7442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7443fi 7444 7445 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 7446 7447cat >>confdefs.h <<\_ACEOF 7448#define _LARGEFILE64_SOURCE 1 7449_ACEOF 7450 7451 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 7452 fi 7453 7454 7455 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 7456 echo $ECHO_N "(cached) $ECHO_C" >&6 7457else 7458 cat >conftest.$ac_ext <<_ACEOF 7459/* confdefs.h. */ 7460_ACEOF 7461cat confdefs.h >>conftest.$ac_ext 7462cat >>conftest.$ac_ext <<_ACEOF 7463/* end confdefs.h. */ 7464#include <sys/stat.h> 7465int 7466main () 7467{ 7468char *p = (char *)open64; 7469 ; 7470 return 0; 7471} 7472_ACEOF 7473rm -f conftest.$ac_objext 7474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7475 (eval $ac_compile) 2>conftest.er1 7476 ac_status=$? 7477 grep -v '^ *+' conftest.er1 >conftest.err 7478 rm -f conftest.er1 7479 cat conftest.err >&5 7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7481 (exit $ac_status); } && 7482 { ac_try='test -z "$ac_c_werror_flag" 7483 || test ! -s conftest.err' 7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7485 (eval $ac_try) 2>&5 7486 ac_status=$? 7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7488 (exit $ac_status); }; } && 7489 { ac_try='test -s conftest.$ac_objext' 7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7491 (eval $ac_try) 2>&5 7492 ac_status=$? 7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7494 (exit $ac_status); }; }; then 7495 tcl_cv_flag__largefile_source64=no 7496else 7497 echo "$as_me: failed program was:" >&5 7498sed 's/^/| /' conftest.$ac_ext >&5 7499 7500cat >conftest.$ac_ext <<_ACEOF 7501/* confdefs.h. */ 7502_ACEOF 7503cat confdefs.h >>conftest.$ac_ext 7504cat >>conftest.$ac_ext <<_ACEOF 7505/* end confdefs.h. */ 7506#define _LARGEFILE_SOURCE64 1 7507#include <sys/stat.h> 7508int 7509main () 7510{ 7511char *p = (char *)open64; 7512 ; 7513 return 0; 7514} 7515_ACEOF 7516rm -f conftest.$ac_objext 7517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7518 (eval $ac_compile) 2>conftest.er1 7519 ac_status=$? 7520 grep -v '^ *+' conftest.er1 >conftest.err 7521 rm -f conftest.er1 7522 cat conftest.err >&5 7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7524 (exit $ac_status); } && 7525 { ac_try='test -z "$ac_c_werror_flag" 7526 || test ! -s conftest.err' 7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7528 (eval $ac_try) 2>&5 7529 ac_status=$? 7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7531 (exit $ac_status); }; } && 7532 { ac_try='test -s conftest.$ac_objext' 7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7534 (eval $ac_try) 2>&5 7535 ac_status=$? 7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7537 (exit $ac_status); }; }; then 7538 tcl_cv_flag__largefile_source64=yes 7539else 7540 echo "$as_me: failed program was:" >&5 7541sed 's/^/| /' conftest.$ac_ext >&5 7542 7543tcl_cv_flag__largefile_source64=no 7544fi 7545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7546fi 7547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7548fi 7549 7550 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 7551 7552cat >>confdefs.h <<\_ACEOF 7553#define _LARGEFILE_SOURCE64 1 7554_ACEOF 7555 7556 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 7557 fi 7558 7559 if test "x${tcl_flags}" = "x" ; then 7560 echo "$as_me:$LINENO: result: none" >&5 7561echo "${ECHO_T}none" >&6 7562 else 7563 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 7564echo "${ECHO_T}${tcl_flags}" >&6 7565 fi 7566 7567 7568 7569 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 7570echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6 7571 if test "${tcl_cv_type_64bit+set}" = set; then 7572 echo $ECHO_N "(cached) $ECHO_C" >&6 7573else 7574 7575 tcl_cv_type_64bit=none 7576 # See if the compiler knows natively about __int64 7577 cat >conftest.$ac_ext <<_ACEOF 7578/* confdefs.h. */ 7579_ACEOF 7580cat confdefs.h >>conftest.$ac_ext 7581cat >>conftest.$ac_ext <<_ACEOF 7582/* end confdefs.h. */ 7583 7584int 7585main () 7586{ 7587__int64 value = (__int64) 0; 7588 ; 7589 return 0; 7590} 7591_ACEOF 7592rm -f conftest.$ac_objext 7593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7594 (eval $ac_compile) 2>conftest.er1 7595 ac_status=$? 7596 grep -v '^ *+' conftest.er1 >conftest.err 7597 rm -f conftest.er1 7598 cat conftest.err >&5 7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7600 (exit $ac_status); } && 7601 { ac_try='test -z "$ac_c_werror_flag" 7602 || test ! -s conftest.err' 7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7604 (eval $ac_try) 2>&5 7605 ac_status=$? 7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7607 (exit $ac_status); }; } && 7608 { ac_try='test -s conftest.$ac_objext' 7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7610 (eval $ac_try) 2>&5 7611 ac_status=$? 7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7613 (exit $ac_status); }; }; then 7614 tcl_type_64bit=__int64 7615else 7616 echo "$as_me: failed program was:" >&5 7617sed 's/^/| /' conftest.$ac_ext >&5 7618 7619tcl_type_64bit="long long" 7620fi 7621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7622 # See if we should use long anyway Note that we substitute in the 7623 # type that is our current guess for a 64-bit type inside this check 7624 # program, so it should be modified only carefully... 7625 cat >conftest.$ac_ext <<_ACEOF 7626/* confdefs.h. */ 7627_ACEOF 7628cat confdefs.h >>conftest.$ac_ext 7629cat >>conftest.$ac_ext <<_ACEOF 7630/* end confdefs.h. */ 7631 7632int 7633main () 7634{ 7635switch (0) { 7636 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 7637 } 7638 ; 7639 return 0; 7640} 7641_ACEOF 7642rm -f conftest.$ac_objext 7643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7644 (eval $ac_compile) 2>conftest.er1 7645 ac_status=$? 7646 grep -v '^ *+' conftest.er1 >conftest.err 7647 rm -f conftest.er1 7648 cat conftest.err >&5 7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7650 (exit $ac_status); } && 7651 { ac_try='test -z "$ac_c_werror_flag" 7652 || test ! -s conftest.err' 7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7654 (eval $ac_try) 2>&5 7655 ac_status=$? 7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7657 (exit $ac_status); }; } && 7658 { ac_try='test -s conftest.$ac_objext' 7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7660 (eval $ac_try) 2>&5 7661 ac_status=$? 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7663 (exit $ac_status); }; }; then 7664 tcl_cv_type_64bit=${tcl_type_64bit} 7665else 7666 echo "$as_me: failed program was:" >&5 7667sed 's/^/| /' conftest.$ac_ext >&5 7668 7669fi 7670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7671fi 7672 7673 if test "${tcl_cv_type_64bit}" = none ; then 7674 7675cat >>confdefs.h <<\_ACEOF 7676#define TCL_WIDE_INT_IS_LONG 1 7677_ACEOF 7678 7679 echo "$as_me:$LINENO: result: using long" >&5 7680echo "${ECHO_T}using long" >&6 7681 else 7682 7683cat >>confdefs.h <<_ACEOF 7684#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 7685_ACEOF 7686 7687 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 7688echo "${ECHO_T}${tcl_cv_type_64bit}" >&6 7689 7690 # Now check for auxiliary declarations 7691 echo "$as_me:$LINENO: checking for struct dirent64" >&5 7692echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6 7693if test "${tcl_cv_struct_dirent64+set}" = set; then 7694 echo $ECHO_N "(cached) $ECHO_C" >&6 7695else 7696 7697 cat >conftest.$ac_ext <<_ACEOF 7698/* confdefs.h. */ 7699_ACEOF 7700cat confdefs.h >>conftest.$ac_ext 7701cat >>conftest.$ac_ext <<_ACEOF 7702/* end confdefs.h. */ 7703#include <sys/types.h> 7704#include <sys/dirent.h> 7705int 7706main () 7707{ 7708struct dirent64 p; 7709 ; 7710 return 0; 7711} 7712_ACEOF 7713rm -f conftest.$ac_objext 7714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7715 (eval $ac_compile) 2>conftest.er1 7716 ac_status=$? 7717 grep -v '^ *+' conftest.er1 >conftest.err 7718 rm -f conftest.er1 7719 cat conftest.err >&5 7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7721 (exit $ac_status); } && 7722 { ac_try='test -z "$ac_c_werror_flag" 7723 || test ! -s conftest.err' 7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7725 (eval $ac_try) 2>&5 7726 ac_status=$? 7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 (exit $ac_status); }; } && 7729 { ac_try='test -s conftest.$ac_objext' 7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7731 (eval $ac_try) 2>&5 7732 ac_status=$? 7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7734 (exit $ac_status); }; }; then 7735 tcl_cv_struct_dirent64=yes 7736else 7737 echo "$as_me: failed program was:" >&5 7738sed 's/^/| /' conftest.$ac_ext >&5 7739 7740tcl_cv_struct_dirent64=no 7741fi 7742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7743fi 7744echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 7745echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6 7746 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 7747 7748cat >>confdefs.h <<\_ACEOF 7749#define HAVE_STRUCT_DIRENT64 1 7750_ACEOF 7751 7752 fi 7753 7754 echo "$as_me:$LINENO: checking for struct stat64" >&5 7755echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6 7756if test "${tcl_cv_struct_stat64+set}" = set; then 7757 echo $ECHO_N "(cached) $ECHO_C" >&6 7758else 7759 7760 cat >conftest.$ac_ext <<_ACEOF 7761/* confdefs.h. */ 7762_ACEOF 7763cat confdefs.h >>conftest.$ac_ext 7764cat >>conftest.$ac_ext <<_ACEOF 7765/* end confdefs.h. */ 7766#include <sys/stat.h> 7767int 7768main () 7769{ 7770struct stat64 p; 7771 7772 ; 7773 return 0; 7774} 7775_ACEOF 7776rm -f conftest.$ac_objext 7777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7778 (eval $ac_compile) 2>conftest.er1 7779 ac_status=$? 7780 grep -v '^ *+' conftest.er1 >conftest.err 7781 rm -f conftest.er1 7782 cat conftest.err >&5 7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7784 (exit $ac_status); } && 7785 { ac_try='test -z "$ac_c_werror_flag" 7786 || test ! -s conftest.err' 7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7788 (eval $ac_try) 2>&5 7789 ac_status=$? 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7791 (exit $ac_status); }; } && 7792 { ac_try='test -s conftest.$ac_objext' 7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7794 (eval $ac_try) 2>&5 7795 ac_status=$? 7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7797 (exit $ac_status); }; }; then 7798 tcl_cv_struct_stat64=yes 7799else 7800 echo "$as_me: failed program was:" >&5 7801sed 's/^/| /' conftest.$ac_ext >&5 7802 7803tcl_cv_struct_stat64=no 7804fi 7805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7806fi 7807echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 7808echo "${ECHO_T}$tcl_cv_struct_stat64" >&6 7809 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 7810 7811cat >>confdefs.h <<\_ACEOF 7812#define HAVE_STRUCT_STAT64 1 7813_ACEOF 7814 7815 fi 7816 7817 7818 7819for ac_func in open64 lseek64 7820do 7821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7822echo "$as_me:$LINENO: checking for $ac_func" >&5 7823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7824if eval "test \"\${$as_ac_var+set}\" = set"; then 7825 echo $ECHO_N "(cached) $ECHO_C" >&6 7826else 7827 cat >conftest.$ac_ext <<_ACEOF 7828/* confdefs.h. */ 7829_ACEOF 7830cat confdefs.h >>conftest.$ac_ext 7831cat >>conftest.$ac_ext <<_ACEOF 7832/* end confdefs.h. */ 7833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7834 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7835#define $ac_func innocuous_$ac_func 7836 7837/* System header to define __stub macros and hopefully few prototypes, 7838 which can conflict with char $ac_func (); below. 7839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7840 <limits.h> exists even on freestanding compilers. */ 7841 7842#ifdef __STDC__ 7843# include <limits.h> 7844#else 7845# include <assert.h> 7846#endif 7847 7848#undef $ac_func 7849 7850/* Override any gcc2 internal prototype to avoid an error. */ 7851#ifdef __cplusplus 7852extern "C" 7853{ 7854#endif 7855/* We use char because int might match the return type of a gcc2 7856 builtin and then its argument prototype would still apply. */ 7857char $ac_func (); 7858/* The GNU C library defines this for functions which it implements 7859 to always fail with ENOSYS. Some functions are actually named 7860 something starting with __ and the normal name is an alias. */ 7861#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7862choke me 7863#else 7864char (*f) () = $ac_func; 7865#endif 7866#ifdef __cplusplus 7867} 7868#endif 7869 7870int 7871main () 7872{ 7873return f != $ac_func; 7874 ; 7875 return 0; 7876} 7877_ACEOF 7878rm -f conftest.$ac_objext conftest$ac_exeext 7879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7880 (eval $ac_link) 2>conftest.er1 7881 ac_status=$? 7882 grep -v '^ *+' conftest.er1 >conftest.err 7883 rm -f conftest.er1 7884 cat conftest.err >&5 7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7886 (exit $ac_status); } && 7887 { ac_try='test -z "$ac_c_werror_flag" 7888 || test ! -s conftest.err' 7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7890 (eval $ac_try) 2>&5 7891 ac_status=$? 7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 (exit $ac_status); }; } && 7894 { ac_try='test -s conftest$ac_exeext' 7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7896 (eval $ac_try) 2>&5 7897 ac_status=$? 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 (exit $ac_status); }; }; then 7900 eval "$as_ac_var=yes" 7901else 7902 echo "$as_me: failed program was:" >&5 7903sed 's/^/| /' conftest.$ac_ext >&5 7904 7905eval "$as_ac_var=no" 7906fi 7907rm -f conftest.err conftest.$ac_objext \ 7908 conftest$ac_exeext conftest.$ac_ext 7909fi 7910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7912if test `eval echo '${'$as_ac_var'}'` = yes; then 7913 cat >>confdefs.h <<_ACEOF 7914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7915_ACEOF 7916 7917fi 7918done 7919 7920 echo "$as_me:$LINENO: checking for off64_t" >&5 7921echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 7922 if test "${tcl_cv_type_off64_t+set}" = set; then 7923 echo $ECHO_N "(cached) $ECHO_C" >&6 7924else 7925 7926 cat >conftest.$ac_ext <<_ACEOF 7927/* confdefs.h. */ 7928_ACEOF 7929cat confdefs.h >>conftest.$ac_ext 7930cat >>conftest.$ac_ext <<_ACEOF 7931/* end confdefs.h. */ 7932#include <sys/types.h> 7933int 7934main () 7935{ 7936off64_t offset; 7937 7938 ; 7939 return 0; 7940} 7941_ACEOF 7942rm -f conftest.$ac_objext 7943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7944 (eval $ac_compile) 2>conftest.er1 7945 ac_status=$? 7946 grep -v '^ *+' conftest.er1 >conftest.err 7947 rm -f conftest.er1 7948 cat conftest.err >&5 7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7950 (exit $ac_status); } && 7951 { ac_try='test -z "$ac_c_werror_flag" 7952 || test ! -s conftest.err' 7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7954 (eval $ac_try) 2>&5 7955 ac_status=$? 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); }; } && 7958 { ac_try='test -s conftest.$ac_objext' 7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7960 (eval $ac_try) 2>&5 7961 ac_status=$? 7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7963 (exit $ac_status); }; }; then 7964 tcl_cv_type_off64_t=yes 7965else 7966 echo "$as_me: failed program was:" >&5 7967sed 's/^/| /' conftest.$ac_ext >&5 7968 7969tcl_cv_type_off64_t=no 7970fi 7971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7972fi 7973 7974 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 7975 test "x${ac_cv_func_lseek64}" = "xyes" && \ 7976 test "x${ac_cv_func_open64}" = "xyes" ; then 7977 7978cat >>confdefs.h <<\_ACEOF 7979#define HAVE_TYPE_OFF64_T 1 7980_ACEOF 7981 7982 echo "$as_me:$LINENO: result: yes" >&5 7983echo "${ECHO_T}yes" >&6 7984 else 7985 echo "$as_me:$LINENO: result: no" >&5 7986echo "${ECHO_T}no" >&6 7987 fi 7988 fi 7989 7990 7991#-------------------------------------------------------------------- 7992# Check endianness because we can optimize some operations 7993#-------------------------------------------------------------------- 7994 7995echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 7996echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 7997if test "${ac_cv_c_bigendian+set}" = set; then 7998 echo $ECHO_N "(cached) $ECHO_C" >&6 7999else 8000 # See if sys/param.h defines the BYTE_ORDER macro. 8001cat >conftest.$ac_ext <<_ACEOF 8002/* confdefs.h. */ 8003_ACEOF 8004cat confdefs.h >>conftest.$ac_ext 8005cat >>conftest.$ac_ext <<_ACEOF 8006/* end confdefs.h. */ 8007#include <sys/types.h> 8008#include <sys/param.h> 8009 8010int 8011main () 8012{ 8013#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8014 bogus endian macros 8015#endif 8016 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021rm -f conftest.$ac_objext 8022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8023 (eval $ac_compile) 2>conftest.er1 8024 ac_status=$? 8025 grep -v '^ *+' conftest.er1 >conftest.err 8026 rm -f conftest.er1 8027 cat conftest.err >&5 8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8029 (exit $ac_status); } && 8030 { ac_try='test -z "$ac_c_werror_flag" 8031 || test ! -s conftest.err' 8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8033 (eval $ac_try) 2>&5 8034 ac_status=$? 8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8036 (exit $ac_status); }; } && 8037 { ac_try='test -s conftest.$ac_objext' 8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8039 (eval $ac_try) 2>&5 8040 ac_status=$? 8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8042 (exit $ac_status); }; }; then 8043 # It does; now see whether it defined to BIG_ENDIAN or not. 8044cat >conftest.$ac_ext <<_ACEOF 8045/* confdefs.h. */ 8046_ACEOF 8047cat confdefs.h >>conftest.$ac_ext 8048cat >>conftest.$ac_ext <<_ACEOF 8049/* end confdefs.h. */ 8050#include <sys/types.h> 8051#include <sys/param.h> 8052 8053int 8054main () 8055{ 8056#if BYTE_ORDER != BIG_ENDIAN 8057 not big endian 8058#endif 8059 8060 ; 8061 return 0; 8062} 8063_ACEOF 8064rm -f conftest.$ac_objext 8065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8066 (eval $ac_compile) 2>conftest.er1 8067 ac_status=$? 8068 grep -v '^ *+' conftest.er1 >conftest.err 8069 rm -f conftest.er1 8070 cat conftest.err >&5 8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8072 (exit $ac_status); } && 8073 { ac_try='test -z "$ac_c_werror_flag" 8074 || test ! -s conftest.err' 8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8076 (eval $ac_try) 2>&5 8077 ac_status=$? 8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8079 (exit $ac_status); }; } && 8080 { ac_try='test -s conftest.$ac_objext' 8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8082 (eval $ac_try) 2>&5 8083 ac_status=$? 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 (exit $ac_status); }; }; then 8086 ac_cv_c_bigendian=yes 8087else 8088 echo "$as_me: failed program was:" >&5 8089sed 's/^/| /' conftest.$ac_ext >&5 8090 8091ac_cv_c_bigendian=no 8092fi 8093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8094else 8095 echo "$as_me: failed program was:" >&5 8096sed 's/^/| /' conftest.$ac_ext >&5 8097 8098# It does not; compile a test program. 8099if test "$cross_compiling" = yes; then 8100 # try to guess the endianness by grepping values into an object file 8101 ac_cv_c_bigendian=unknown 8102 cat >conftest.$ac_ext <<_ACEOF 8103/* confdefs.h. */ 8104_ACEOF 8105cat confdefs.h >>conftest.$ac_ext 8106cat >>conftest.$ac_ext <<_ACEOF 8107/* end confdefs.h. */ 8108short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8109short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8110void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8111short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8112short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8113void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8114int 8115main () 8116{ 8117 _ascii (); _ebcdic (); 8118 ; 8119 return 0; 8120} 8121_ACEOF 8122rm -f conftest.$ac_objext 8123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8124 (eval $ac_compile) 2>conftest.er1 8125 ac_status=$? 8126 grep -v '^ *+' conftest.er1 >conftest.err 8127 rm -f conftest.er1 8128 cat conftest.err >&5 8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8130 (exit $ac_status); } && 8131 { ac_try='test -z "$ac_c_werror_flag" 8132 || test ! -s conftest.err' 8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8134 (eval $ac_try) 2>&5 8135 ac_status=$? 8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8137 (exit $ac_status); }; } && 8138 { ac_try='test -s conftest.$ac_objext' 8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8140 (eval $ac_try) 2>&5 8141 ac_status=$? 8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8143 (exit $ac_status); }; }; then 8144 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 8145 ac_cv_c_bigendian=yes 8146fi 8147if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8148 if test "$ac_cv_c_bigendian" = unknown; then 8149 ac_cv_c_bigendian=no 8150 else 8151 # finding both strings is unlikely to happen, but who knows? 8152 ac_cv_c_bigendian=unknown 8153 fi 8154fi 8155else 8156 echo "$as_me: failed program was:" >&5 8157sed 's/^/| /' conftest.$ac_ext >&5 8158 8159fi 8160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8161else 8162 cat >conftest.$ac_ext <<_ACEOF 8163/* confdefs.h. */ 8164_ACEOF 8165cat confdefs.h >>conftest.$ac_ext 8166cat >>conftest.$ac_ext <<_ACEOF 8167/* end confdefs.h. */ 8168int 8169main () 8170{ 8171 /* Are we little or big endian? From Harbison&Steele. */ 8172 union 8173 { 8174 long l; 8175 char c[sizeof (long)]; 8176 } u; 8177 u.l = 1; 8178 exit (u.c[sizeof (long) - 1] == 1); 8179} 8180_ACEOF 8181rm -f conftest$ac_exeext 8182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8183 (eval $ac_link) 2>&5 8184 ac_status=$? 8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8188 (eval $ac_try) 2>&5 8189 ac_status=$? 8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8191 (exit $ac_status); }; }; then 8192 ac_cv_c_bigendian=no 8193else 8194 echo "$as_me: program exited with status $ac_status" >&5 8195echo "$as_me: failed program was:" >&5 8196sed 's/^/| /' conftest.$ac_ext >&5 8197 8198( exit $ac_status ) 8199ac_cv_c_bigendian=yes 8200fi 8201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8202fi 8203fi 8204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8205fi 8206echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8207echo "${ECHO_T}$ac_cv_c_bigendian" >&6 8208case $ac_cv_c_bigendian in 8209 yes) 8210 8211cat >>confdefs.h <<\_ACEOF 8212#define WORDS_BIGENDIAN 1 8213_ACEOF 8214 ;; 8215 no) 8216 ;; 8217 *) 8218 { { echo "$as_me:$LINENO: error: unknown endianness 8219presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8220echo "$as_me: error: unknown endianness 8221presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8222 { (exit 1); exit 1; }; } ;; 8223esac 8224 8225 8226#------------------------------------------------------------------------ 8227# If Tcl and Tk are installed in different places, adjust the library 8228# search path to reflect this. 8229#------------------------------------------------------------------------ 8230 8231LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}' 8232 8233if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then 8234 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib" 8235fi 8236 8237if test "$TCL_PREFIX" != "$prefix"; then 8238 { echo "$as_me:$LINENO: WARNING: 8239 Different --prefix selected for Tk and Tcl! 8240 [package require Tk] may not work correctly in tclsh." >&5 8241echo "$as_me: WARNING: 8242 Different --prefix selected for Tk and Tcl! 8243 [package require Tk] may not work correctly in tclsh." >&2;} 8244fi 8245 8246#-------------------------------------------------------------------- 8247# Include sys/select.h if it exists and if it supplies things 8248# that appear to be useful and aren't already in sys/types.h. 8249# This appears to be true only on the RS/6000 under AIX. Some 8250# systems like OSF/1 have a sys/select.h that's of no use, and 8251# other systems like SCO UNIX have a sys/select.h that's 8252# pernicious. If "fd_set" isn't defined anywhere then set a 8253# special flag. 8254#-------------------------------------------------------------------- 8255 8256echo "$as_me:$LINENO: checking for fd_set in sys/types" >&5 8257echo $ECHO_N "checking for fd_set in sys/types... $ECHO_C" >&6 8258if test "${tcl_cv_type_fd_set+set}" = set; then 8259 echo $ECHO_N "(cached) $ECHO_C" >&6 8260else 8261 8262 cat >conftest.$ac_ext <<_ACEOF 8263/* confdefs.h. */ 8264_ACEOF 8265cat confdefs.h >>conftest.$ac_ext 8266cat >>conftest.$ac_ext <<_ACEOF 8267/* end confdefs.h. */ 8268#include <sys/types.h> 8269int 8270main () 8271{ 8272fd_set readMask, writeMask; 8273 ; 8274 return 0; 8275} 8276_ACEOF 8277rm -f conftest.$ac_objext 8278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8279 (eval $ac_compile) 2>conftest.er1 8280 ac_status=$? 8281 grep -v '^ *+' conftest.er1 >conftest.err 8282 rm -f conftest.er1 8283 cat conftest.err >&5 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 (exit $ac_status); } && 8286 { ac_try='test -z "$ac_c_werror_flag" 8287 || test ! -s conftest.err' 8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8289 (eval $ac_try) 2>&5 8290 ac_status=$? 8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8292 (exit $ac_status); }; } && 8293 { ac_try='test -s conftest.$ac_objext' 8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8295 (eval $ac_try) 2>&5 8296 ac_status=$? 8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8298 (exit $ac_status); }; }; then 8299 tcl_cv_type_fd_set=yes 8300else 8301 echo "$as_me: failed program was:" >&5 8302sed 's/^/| /' conftest.$ac_ext >&5 8303 8304tcl_cv_type_fd_set=no 8305fi 8306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8307fi 8308echo "$as_me:$LINENO: result: $tcl_cv_type_fd_set" >&5 8309echo "${ECHO_T}$tcl_cv_type_fd_set" >&6 8310tk_ok=$tcl_cv_type_fd_set 8311if test $tk_ok = no; then 8312 echo "$as_me:$LINENO: checking for fd_mask in sys/select" >&5 8313echo $ECHO_N "checking for fd_mask in sys/select... $ECHO_C" >&6 8314if test "${tcl_cv_grep_fd_mask+set}" = set; then 8315 echo $ECHO_N "(cached) $ECHO_C" >&6 8316else 8317 8318 cat >conftest.$ac_ext <<_ACEOF 8319/* confdefs.h. */ 8320_ACEOF 8321cat confdefs.h >>conftest.$ac_ext 8322cat >>conftest.$ac_ext <<_ACEOF 8323/* end confdefs.h. */ 8324#include <sys/select.h> 8325 8326_ACEOF 8327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8328 $EGREP "fd_mask" >/dev/null 2>&1; then 8329 tcl_cv_grep_fd_mask=present 8330else 8331 tcl_cv_grep_fd_mask=missing 8332fi 8333rm -f conftest* 8334 8335fi 8336echo "$as_me:$LINENO: result: $tcl_cv_grep_fd_mask" >&5 8337echo "${ECHO_T}$tcl_cv_grep_fd_mask" >&6 8338 if test $tcl_cv_grep_fd_mask = present; then 8339 8340cat >>confdefs.h <<\_ACEOF 8341#define HAVE_SYS_SELECT_H 1 8342_ACEOF 8343 8344 tk_ok=yes 8345 fi 8346fi 8347if test $tk_ok = no; then 8348 8349cat >>confdefs.h <<\_ACEOF 8350#define NO_FD_SET 1 8351_ACEOF 8352 8353fi 8354 8355#------------------------------------------------------------------------------ 8356# Find out all about time handling differences. 8357#------------------------------------------------------------------------------ 8358 8359 8360for ac_header in sys/time.h 8361do 8362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8363if eval "test \"\${$as_ac_Header+set}\" = set"; then 8364 echo "$as_me:$LINENO: checking for $ac_header" >&5 8365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8366if eval "test \"\${$as_ac_Header+set}\" = set"; then 8367 echo $ECHO_N "(cached) $ECHO_C" >&6 8368fi 8369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8371else 8372 # Is the header compilable? 8373echo "$as_me:$LINENO: checking $ac_header usability" >&5 8374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8375cat >conftest.$ac_ext <<_ACEOF 8376/* confdefs.h. */ 8377_ACEOF 8378cat confdefs.h >>conftest.$ac_ext 8379cat >>conftest.$ac_ext <<_ACEOF 8380/* end confdefs.h. */ 8381$ac_includes_default 8382#include <$ac_header> 8383_ACEOF 8384rm -f conftest.$ac_objext 8385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8386 (eval $ac_compile) 2>conftest.er1 8387 ac_status=$? 8388 grep -v '^ *+' conftest.er1 >conftest.err 8389 rm -f conftest.er1 8390 cat conftest.err >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); } && 8393 { ac_try='test -z "$ac_c_werror_flag" 8394 || test ! -s conftest.err' 8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8396 (eval $ac_try) 2>&5 8397 ac_status=$? 8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8399 (exit $ac_status); }; } && 8400 { ac_try='test -s conftest.$ac_objext' 8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8402 (eval $ac_try) 2>&5 8403 ac_status=$? 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8405 (exit $ac_status); }; }; then 8406 ac_header_compiler=yes 8407else 8408 echo "$as_me: failed program was:" >&5 8409sed 's/^/| /' conftest.$ac_ext >&5 8410 8411ac_header_compiler=no 8412fi 8413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8415echo "${ECHO_T}$ac_header_compiler" >&6 8416 8417# Is the header present? 8418echo "$as_me:$LINENO: checking $ac_header presence" >&5 8419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8420cat >conftest.$ac_ext <<_ACEOF 8421/* confdefs.h. */ 8422_ACEOF 8423cat confdefs.h >>conftest.$ac_ext 8424cat >>conftest.$ac_ext <<_ACEOF 8425/* end confdefs.h. */ 8426#include <$ac_header> 8427_ACEOF 8428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8430 ac_status=$? 8431 grep -v '^ *+' conftest.er1 >conftest.err 8432 rm -f conftest.er1 8433 cat conftest.err >&5 8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8435 (exit $ac_status); } >/dev/null; then 8436 if test -s conftest.err; then 8437 ac_cpp_err=$ac_c_preproc_warn_flag 8438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8439 else 8440 ac_cpp_err= 8441 fi 8442else 8443 ac_cpp_err=yes 8444fi 8445if test -z "$ac_cpp_err"; then 8446 ac_header_preproc=yes 8447else 8448 echo "$as_me: failed program was:" >&5 8449sed 's/^/| /' conftest.$ac_ext >&5 8450 8451 ac_header_preproc=no 8452fi 8453rm -f conftest.err conftest.$ac_ext 8454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8455echo "${ECHO_T}$ac_header_preproc" >&6 8456 8457# So? What about this header? 8458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8459 yes:no: ) 8460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8464 ac_header_preproc=yes 8465 ;; 8466 no:yes:* ) 8467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8470echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8474echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8479 ( 8480 cat <<\_ASBOX 8481## ----------------------------- ## 8482## Report this to the tk lists. ## 8483## ----------------------------- ## 8484_ASBOX 8485 ) | 8486 sed "s/^/$as_me: WARNING: /" >&2 8487 ;; 8488esac 8489echo "$as_me:$LINENO: checking for $ac_header" >&5 8490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8491if eval "test \"\${$as_ac_Header+set}\" = set"; then 8492 echo $ECHO_N "(cached) $ECHO_C" >&6 8493else 8494 eval "$as_ac_Header=\$ac_header_preproc" 8495fi 8496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8498 8499fi 8500if test `eval echo '${'$as_ac_Header'}'` = yes; then 8501 cat >>confdefs.h <<_ACEOF 8502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8503_ACEOF 8504 8505fi 8506 8507done 8508 8509echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 8510echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 8511if test "${ac_cv_header_time+set}" = set; then 8512 echo $ECHO_N "(cached) $ECHO_C" >&6 8513else 8514 cat >conftest.$ac_ext <<_ACEOF 8515/* confdefs.h. */ 8516_ACEOF 8517cat confdefs.h >>conftest.$ac_ext 8518cat >>conftest.$ac_ext <<_ACEOF 8519/* end confdefs.h. */ 8520#include <sys/types.h> 8521#include <sys/time.h> 8522#include <time.h> 8523 8524int 8525main () 8526{ 8527if ((struct tm *) 0) 8528return 0; 8529 ; 8530 return 0; 8531} 8532_ACEOF 8533rm -f conftest.$ac_objext 8534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8535 (eval $ac_compile) 2>conftest.er1 8536 ac_status=$? 8537 grep -v '^ *+' conftest.er1 >conftest.err 8538 rm -f conftest.er1 8539 cat conftest.err >&5 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8541 (exit $ac_status); } && 8542 { ac_try='test -z "$ac_c_werror_flag" 8543 || test ! -s conftest.err' 8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8545 (eval $ac_try) 2>&5 8546 ac_status=$? 8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); }; } && 8549 { ac_try='test -s conftest.$ac_objext' 8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8551 (eval $ac_try) 2>&5 8552 ac_status=$? 8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8554 (exit $ac_status); }; }; then 8555 ac_cv_header_time=yes 8556else 8557 echo "$as_me: failed program was:" >&5 8558sed 's/^/| /' conftest.$ac_ext >&5 8559 8560ac_cv_header_time=no 8561fi 8562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8563fi 8564echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8565echo "${ECHO_T}$ac_cv_header_time" >&6 8566if test $ac_cv_header_time = yes; then 8567 8568cat >>confdefs.h <<\_ACEOF 8569#define TIME_WITH_SYS_TIME 1 8570_ACEOF 8571 8572fi 8573 8574 8575#-------------------------------------------------------------------- 8576# Under Solaris 2.4, strtod returns the wrong value for the 8577# terminating character under some conditions. Check for this 8578# and if the problem exists use a substitute procedure 8579# "fixstrtod" (provided by Tcl) that corrects the error. 8580#-------------------------------------------------------------------- 8581 8582 8583 echo "$as_me:$LINENO: checking for strtod" >&5 8584echo $ECHO_N "checking for strtod... $ECHO_C" >&6 8585if test "${ac_cv_func_strtod+set}" = set; then 8586 echo $ECHO_N "(cached) $ECHO_C" >&6 8587else 8588 cat >conftest.$ac_ext <<_ACEOF 8589/* confdefs.h. */ 8590_ACEOF 8591cat confdefs.h >>conftest.$ac_ext 8592cat >>conftest.$ac_ext <<_ACEOF 8593/* end confdefs.h. */ 8594/* Define strtod to an innocuous variant, in case <limits.h> declares strtod. 8595 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8596#define strtod innocuous_strtod 8597 8598/* System header to define __stub macros and hopefully few prototypes, 8599 which can conflict with char strtod (); below. 8600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8601 <limits.h> exists even on freestanding compilers. */ 8602 8603#ifdef __STDC__ 8604# include <limits.h> 8605#else 8606# include <assert.h> 8607#endif 8608 8609#undef strtod 8610 8611/* Override any gcc2 internal prototype to avoid an error. */ 8612#ifdef __cplusplus 8613extern "C" 8614{ 8615#endif 8616/* We use char because int might match the return type of a gcc2 8617 builtin and then its argument prototype would still apply. */ 8618char strtod (); 8619/* The GNU C library defines this for functions which it implements 8620 to always fail with ENOSYS. Some functions are actually named 8621 something starting with __ and the normal name is an alias. */ 8622#if defined (__stub_strtod) || defined (__stub___strtod) 8623choke me 8624#else 8625char (*f) () = strtod; 8626#endif 8627#ifdef __cplusplus 8628} 8629#endif 8630 8631int 8632main () 8633{ 8634return f != strtod; 8635 ; 8636 return 0; 8637} 8638_ACEOF 8639rm -f conftest.$ac_objext conftest$ac_exeext 8640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8641 (eval $ac_link) 2>conftest.er1 8642 ac_status=$? 8643 grep -v '^ *+' conftest.er1 >conftest.err 8644 rm -f conftest.er1 8645 cat conftest.err >&5 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8647 (exit $ac_status); } && 8648 { ac_try='test -z "$ac_c_werror_flag" 8649 || test ! -s conftest.err' 8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8651 (eval $ac_try) 2>&5 8652 ac_status=$? 8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8654 (exit $ac_status); }; } && 8655 { ac_try='test -s conftest$ac_exeext' 8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8657 (eval $ac_try) 2>&5 8658 ac_status=$? 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8660 (exit $ac_status); }; }; then 8661 ac_cv_func_strtod=yes 8662else 8663 echo "$as_me: failed program was:" >&5 8664sed 's/^/| /' conftest.$ac_ext >&5 8665 8666ac_cv_func_strtod=no 8667fi 8668rm -f conftest.err conftest.$ac_objext \ 8669 conftest$ac_exeext conftest.$ac_ext 8670fi 8671echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 8672echo "${ECHO_T}$ac_cv_func_strtod" >&6 8673if test $ac_cv_func_strtod = yes; then 8674 tcl_strtod=1 8675else 8676 tcl_strtod=0 8677fi 8678 8679 if test "$tcl_strtod" = 1; then 8680 echo "$as_me:$LINENO: checking for Solaris2.4/Tru64 strtod bugs" >&5 8681echo $ECHO_N "checking for Solaris2.4/Tru64 strtod bugs... $ECHO_C" >&6 8682if test "${tcl_cv_strtod_buggy+set}" = set; then 8683 echo $ECHO_N "(cached) $ECHO_C" >&6 8684else 8685 8686 if test "$cross_compiling" = yes; then 8687 tcl_cv_strtod_buggy=buggy 8688else 8689 cat >conftest.$ac_ext <<_ACEOF 8690/* confdefs.h. */ 8691_ACEOF 8692cat confdefs.h >>conftest.$ac_ext 8693cat >>conftest.$ac_ext <<_ACEOF 8694/* end confdefs.h. */ 8695 8696 extern double strtod(); 8697 int main() { 8698 char *infString="Inf", *nanString="NaN", *spaceString=" "; 8699 char *term; 8700 double value; 8701 value = strtod(infString, &term); 8702 if ((term != infString) && (term[-1] == 0)) { 8703 exit(1); 8704 } 8705 value = strtod(nanString, &term); 8706 if ((term != nanString) && (term[-1] == 0)) { 8707 exit(1); 8708 } 8709 value = strtod(spaceString, &term); 8710 if (term == (spaceString+1)) { 8711 exit(1); 8712 } 8713 exit(0); 8714 } 8715_ACEOF 8716rm -f conftest$ac_exeext 8717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8718 (eval $ac_link) 2>&5 8719 ac_status=$? 8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8723 (eval $ac_try) 2>&5 8724 ac_status=$? 8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8726 (exit $ac_status); }; }; then 8727 tcl_cv_strtod_buggy=ok 8728else 8729 echo "$as_me: program exited with status $ac_status" >&5 8730echo "$as_me: failed program was:" >&5 8731sed 's/^/| /' conftest.$ac_ext >&5 8732 8733( exit $ac_status ) 8734tcl_cv_strtod_buggy=buggy 8735fi 8736rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8737fi 8738fi 8739echo "$as_me:$LINENO: result: $tcl_cv_strtod_buggy" >&5 8740echo "${ECHO_T}$tcl_cv_strtod_buggy" >&6 8741 if test "$tcl_cv_strtod_buggy" = buggy; then 8742 case $LIBOBJS in 8743 "fixstrtod.$ac_objext" | \ 8744 *" fixstrtod.$ac_objext" | \ 8745 "fixstrtod.$ac_objext "* | \ 8746 *" fixstrtod.$ac_objext "* ) ;; 8747 *) LIBOBJS="$LIBOBJS fixstrtod.$ac_objext" ;; 8748esac 8749 8750 USE_COMPAT=1 8751 8752cat >>confdefs.h <<\_ACEOF 8753#define strtod fixstrtod 8754_ACEOF 8755 8756 fi 8757 fi 8758 8759 8760#-------------------------------------------------------------------- 8761# Check for various typedefs and provide substitutes if 8762# they don't exist. 8763#-------------------------------------------------------------------- 8764 8765echo "$as_me:$LINENO: checking for mode_t" >&5 8766echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 8767if test "${ac_cv_type_mode_t+set}" = set; then 8768 echo $ECHO_N "(cached) $ECHO_C" >&6 8769else 8770 cat >conftest.$ac_ext <<_ACEOF 8771/* confdefs.h. */ 8772_ACEOF 8773cat confdefs.h >>conftest.$ac_ext 8774cat >>conftest.$ac_ext <<_ACEOF 8775/* end confdefs.h. */ 8776$ac_includes_default 8777int 8778main () 8779{ 8780if ((mode_t *) 0) 8781 return 0; 8782if (sizeof (mode_t)) 8783 return 0; 8784 ; 8785 return 0; 8786} 8787_ACEOF 8788rm -f conftest.$ac_objext 8789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8790 (eval $ac_compile) 2>conftest.er1 8791 ac_status=$? 8792 grep -v '^ *+' conftest.er1 >conftest.err 8793 rm -f conftest.er1 8794 cat conftest.err >&5 8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8796 (exit $ac_status); } && 8797 { ac_try='test -z "$ac_c_werror_flag" 8798 || test ! -s conftest.err' 8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8800 (eval $ac_try) 2>&5 8801 ac_status=$? 8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8803 (exit $ac_status); }; } && 8804 { ac_try='test -s conftest.$ac_objext' 8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8806 (eval $ac_try) 2>&5 8807 ac_status=$? 8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8809 (exit $ac_status); }; }; then 8810 ac_cv_type_mode_t=yes 8811else 8812 echo "$as_me: failed program was:" >&5 8813sed 's/^/| /' conftest.$ac_ext >&5 8814 8815ac_cv_type_mode_t=no 8816fi 8817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8818fi 8819echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 8820echo "${ECHO_T}$ac_cv_type_mode_t" >&6 8821if test $ac_cv_type_mode_t = yes; then 8822 : 8823else 8824 8825cat >>confdefs.h <<_ACEOF 8826#define mode_t int 8827_ACEOF 8828 8829fi 8830 8831echo "$as_me:$LINENO: checking for pid_t" >&5 8832echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 8833if test "${ac_cv_type_pid_t+set}" = set; then 8834 echo $ECHO_N "(cached) $ECHO_C" >&6 8835else 8836 cat >conftest.$ac_ext <<_ACEOF 8837/* confdefs.h. */ 8838_ACEOF 8839cat confdefs.h >>conftest.$ac_ext 8840cat >>conftest.$ac_ext <<_ACEOF 8841/* end confdefs.h. */ 8842$ac_includes_default 8843int 8844main () 8845{ 8846if ((pid_t *) 0) 8847 return 0; 8848if (sizeof (pid_t)) 8849 return 0; 8850 ; 8851 return 0; 8852} 8853_ACEOF 8854rm -f conftest.$ac_objext 8855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8856 (eval $ac_compile) 2>conftest.er1 8857 ac_status=$? 8858 grep -v '^ *+' conftest.er1 >conftest.err 8859 rm -f conftest.er1 8860 cat conftest.err >&5 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8862 (exit $ac_status); } && 8863 { ac_try='test -z "$ac_c_werror_flag" 8864 || test ! -s conftest.err' 8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8866 (eval $ac_try) 2>&5 8867 ac_status=$? 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8869 (exit $ac_status); }; } && 8870 { ac_try='test -s conftest.$ac_objext' 8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8872 (eval $ac_try) 2>&5 8873 ac_status=$? 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 (exit $ac_status); }; }; then 8876 ac_cv_type_pid_t=yes 8877else 8878 echo "$as_me: failed program was:" >&5 8879sed 's/^/| /' conftest.$ac_ext >&5 8880 8881ac_cv_type_pid_t=no 8882fi 8883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8884fi 8885echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 8886echo "${ECHO_T}$ac_cv_type_pid_t" >&6 8887if test $ac_cv_type_pid_t = yes; then 8888 : 8889else 8890 8891cat >>confdefs.h <<_ACEOF 8892#define pid_t int 8893_ACEOF 8894 8895fi 8896 8897echo "$as_me:$LINENO: checking for size_t" >&5 8898echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8899if test "${ac_cv_type_size_t+set}" = set; then 8900 echo $ECHO_N "(cached) $ECHO_C" >&6 8901else 8902 cat >conftest.$ac_ext <<_ACEOF 8903/* confdefs.h. */ 8904_ACEOF 8905cat confdefs.h >>conftest.$ac_ext 8906cat >>conftest.$ac_ext <<_ACEOF 8907/* end confdefs.h. */ 8908$ac_includes_default 8909int 8910main () 8911{ 8912if ((size_t *) 0) 8913 return 0; 8914if (sizeof (size_t)) 8915 return 0; 8916 ; 8917 return 0; 8918} 8919_ACEOF 8920rm -f conftest.$ac_objext 8921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8922 (eval $ac_compile) 2>conftest.er1 8923 ac_status=$? 8924 grep -v '^ *+' conftest.er1 >conftest.err 8925 rm -f conftest.er1 8926 cat conftest.err >&5 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); } && 8929 { ac_try='test -z "$ac_c_werror_flag" 8930 || test ! -s conftest.err' 8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8932 (eval $ac_try) 2>&5 8933 ac_status=$? 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 (exit $ac_status); }; } && 8936 { ac_try='test -s conftest.$ac_objext' 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8938 (eval $ac_try) 2>&5 8939 ac_status=$? 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8941 (exit $ac_status); }; }; then 8942 ac_cv_type_size_t=yes 8943else 8944 echo "$as_me: failed program was:" >&5 8945sed 's/^/| /' conftest.$ac_ext >&5 8946 8947ac_cv_type_size_t=no 8948fi 8949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8950fi 8951echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8952echo "${ECHO_T}$ac_cv_type_size_t" >&6 8953if test $ac_cv_type_size_t = yes; then 8954 : 8955else 8956 8957cat >>confdefs.h <<_ACEOF 8958#define size_t unsigned 8959_ACEOF 8960 8961fi 8962 8963echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 8964echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 8965if test "${ac_cv_type_uid_t+set}" = set; then 8966 echo $ECHO_N "(cached) $ECHO_C" >&6 8967else 8968 cat >conftest.$ac_ext <<_ACEOF 8969/* confdefs.h. */ 8970_ACEOF 8971cat confdefs.h >>conftest.$ac_ext 8972cat >>conftest.$ac_ext <<_ACEOF 8973/* end confdefs.h. */ 8974#include <sys/types.h> 8975 8976_ACEOF 8977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8978 $EGREP "uid_t" >/dev/null 2>&1; then 8979 ac_cv_type_uid_t=yes 8980else 8981 ac_cv_type_uid_t=no 8982fi 8983rm -f conftest* 8984 8985fi 8986echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 8987echo "${ECHO_T}$ac_cv_type_uid_t" >&6 8988if test $ac_cv_type_uid_t = no; then 8989 8990cat >>confdefs.h <<\_ACEOF 8991#define uid_t int 8992_ACEOF 8993 8994 8995cat >>confdefs.h <<\_ACEOF 8996#define gid_t int 8997_ACEOF 8998 8999fi 9000 9001 9002echo "$as_me:$LINENO: checking for intptr_t" >&5 9003echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 9004if test "${ac_cv_type_intptr_t+set}" = set; then 9005 echo $ECHO_N "(cached) $ECHO_C" >&6 9006else 9007 cat >conftest.$ac_ext <<_ACEOF 9008/* confdefs.h. */ 9009_ACEOF 9010cat confdefs.h >>conftest.$ac_ext 9011cat >>conftest.$ac_ext <<_ACEOF 9012/* end confdefs.h. */ 9013$ac_includes_default 9014int 9015main () 9016{ 9017if ((intptr_t *) 0) 9018 return 0; 9019if (sizeof (intptr_t)) 9020 return 0; 9021 ; 9022 return 0; 9023} 9024_ACEOF 9025rm -f conftest.$ac_objext 9026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9027 (eval $ac_compile) 2>conftest.er1 9028 ac_status=$? 9029 grep -v '^ *+' conftest.er1 >conftest.err 9030 rm -f conftest.er1 9031 cat conftest.err >&5 9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9033 (exit $ac_status); } && 9034 { ac_try='test -z "$ac_c_werror_flag" 9035 || test ! -s conftest.err' 9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9037 (eval $ac_try) 2>&5 9038 ac_status=$? 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9040 (exit $ac_status); }; } && 9041 { ac_try='test -s conftest.$ac_objext' 9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9043 (eval $ac_try) 2>&5 9044 ac_status=$? 9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9046 (exit $ac_status); }; }; then 9047 ac_cv_type_intptr_t=yes 9048else 9049 echo "$as_me: failed program was:" >&5 9050sed 's/^/| /' conftest.$ac_ext >&5 9051 9052ac_cv_type_intptr_t=no 9053fi 9054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9055fi 9056echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 9057echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 9058if test $ac_cv_type_intptr_t = yes; then 9059 9060 9061cat >>confdefs.h <<\_ACEOF 9062#define HAVE_INTPTR_T 1 9063_ACEOF 9064 9065else 9066 9067 echo "$as_me:$LINENO: checking for pointer-size signed integer type" >&5 9068echo $ECHO_N "checking for pointer-size signed integer type... $ECHO_C" >&6 9069if test "${tcl_cv_intptr_t+set}" = set; then 9070 echo $ECHO_N "(cached) $ECHO_C" >&6 9071else 9072 9073 for tcl_cv_intptr_t in "int" "long" "long long" none; do 9074 if test "$tcl_cv_intptr_t" != none; then 9075 cat >conftest.$ac_ext <<_ACEOF 9076/* confdefs.h. */ 9077_ACEOF 9078cat confdefs.h >>conftest.$ac_ext 9079cat >>conftest.$ac_ext <<_ACEOF 9080/* end confdefs.h. */ 9081$ac_includes_default 9082int 9083main () 9084{ 9085static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; 9086test_array [0] = 0 9087 9088 ; 9089 return 0; 9090} 9091_ACEOF 9092rm -f conftest.$ac_objext 9093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9094 (eval $ac_compile) 2>conftest.er1 9095 ac_status=$? 9096 grep -v '^ *+' conftest.er1 >conftest.err 9097 rm -f conftest.er1 9098 cat conftest.err >&5 9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9100 (exit $ac_status); } && 9101 { ac_try='test -z "$ac_c_werror_flag" 9102 || test ! -s conftest.err' 9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9104 (eval $ac_try) 2>&5 9105 ac_status=$? 9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9107 (exit $ac_status); }; } && 9108 { ac_try='test -s conftest.$ac_objext' 9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9110 (eval $ac_try) 2>&5 9111 ac_status=$? 9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9113 (exit $ac_status); }; }; then 9114 tcl_ok=yes 9115else 9116 echo "$as_me: failed program was:" >&5 9117sed 's/^/| /' conftest.$ac_ext >&5 9118 9119tcl_ok=no 9120fi 9121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9122 test "$tcl_ok" = yes && break; fi 9123 done 9124fi 9125echo "$as_me:$LINENO: result: $tcl_cv_intptr_t" >&5 9126echo "${ECHO_T}$tcl_cv_intptr_t" >&6 9127 if test "$tcl_cv_intptr_t" != none; then 9128 9129cat >>confdefs.h <<_ACEOF 9130#define intptr_t $tcl_cv_intptr_t 9131_ACEOF 9132 9133 fi 9134 9135fi 9136 9137echo "$as_me:$LINENO: checking for uintptr_t" >&5 9138echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 9139if test "${ac_cv_type_uintptr_t+set}" = set; then 9140 echo $ECHO_N "(cached) $ECHO_C" >&6 9141else 9142 cat >conftest.$ac_ext <<_ACEOF 9143/* confdefs.h. */ 9144_ACEOF 9145cat confdefs.h >>conftest.$ac_ext 9146cat >>conftest.$ac_ext <<_ACEOF 9147/* end confdefs.h. */ 9148$ac_includes_default 9149int 9150main () 9151{ 9152if ((uintptr_t *) 0) 9153 return 0; 9154if (sizeof (uintptr_t)) 9155 return 0; 9156 ; 9157 return 0; 9158} 9159_ACEOF 9160rm -f conftest.$ac_objext 9161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9162 (eval $ac_compile) 2>conftest.er1 9163 ac_status=$? 9164 grep -v '^ *+' conftest.er1 >conftest.err 9165 rm -f conftest.er1 9166 cat conftest.err >&5 9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9168 (exit $ac_status); } && 9169 { ac_try='test -z "$ac_c_werror_flag" 9170 || test ! -s conftest.err' 9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9172 (eval $ac_try) 2>&5 9173 ac_status=$? 9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9175 (exit $ac_status); }; } && 9176 { ac_try='test -s conftest.$ac_objext' 9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9178 (eval $ac_try) 2>&5 9179 ac_status=$? 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); }; }; then 9182 ac_cv_type_uintptr_t=yes 9183else 9184 echo "$as_me: failed program was:" >&5 9185sed 's/^/| /' conftest.$ac_ext >&5 9186 9187ac_cv_type_uintptr_t=no 9188fi 9189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9190fi 9191echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 9192echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 9193if test $ac_cv_type_uintptr_t = yes; then 9194 9195 9196cat >>confdefs.h <<\_ACEOF 9197#define HAVE_UINTPTR_T 1 9198_ACEOF 9199 9200else 9201 9202 echo "$as_me:$LINENO: checking for pointer-size unsigned integer type" >&5 9203echo $ECHO_N "checking for pointer-size unsigned integer type... $ECHO_C" >&6 9204if test "${tcl_cv_uintptr_t+set}" = set; then 9205 echo $ECHO_N "(cached) $ECHO_C" >&6 9206else 9207 9208 for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \ 9209 none; do 9210 if test "$tcl_cv_uintptr_t" != none; then 9211 cat >conftest.$ac_ext <<_ACEOF 9212/* confdefs.h. */ 9213_ACEOF 9214cat confdefs.h >>conftest.$ac_ext 9215cat >>conftest.$ac_ext <<_ACEOF 9216/* end confdefs.h. */ 9217$ac_includes_default 9218int 9219main () 9220{ 9221static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))]; 9222test_array [0] = 0 9223 9224 ; 9225 return 0; 9226} 9227_ACEOF 9228rm -f conftest.$ac_objext 9229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9230 (eval $ac_compile) 2>conftest.er1 9231 ac_status=$? 9232 grep -v '^ *+' conftest.er1 >conftest.err 9233 rm -f conftest.er1 9234 cat conftest.err >&5 9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9236 (exit $ac_status); } && 9237 { ac_try='test -z "$ac_c_werror_flag" 9238 || test ! -s conftest.err' 9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9240 (eval $ac_try) 2>&5 9241 ac_status=$? 9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9243 (exit $ac_status); }; } && 9244 { ac_try='test -s conftest.$ac_objext' 9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9246 (eval $ac_try) 2>&5 9247 ac_status=$? 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 (exit $ac_status); }; }; then 9250 tcl_ok=yes 9251else 9252 echo "$as_me: failed program was:" >&5 9253sed 's/^/| /' conftest.$ac_ext >&5 9254 9255tcl_ok=no 9256fi 9257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9258 test "$tcl_ok" = yes && break; fi 9259 done 9260fi 9261echo "$as_me:$LINENO: result: $tcl_cv_uintptr_t" >&5 9262echo "${ECHO_T}$tcl_cv_uintptr_t" >&6 9263 if test "$tcl_cv_uintptr_t" != none; then 9264 9265cat >>confdefs.h <<_ACEOF 9266#define uintptr_t $tcl_cv_uintptr_t 9267_ACEOF 9268 9269 fi 9270 9271fi 9272 9273 9274#------------------------------------------- 9275# In OS/390 struct pwd has no pw_gecos field 9276#------------------------------------------- 9277 9278echo "$as_me:$LINENO: checking pw_gecos in struct pwd" >&5 9279echo $ECHO_N "checking pw_gecos in struct pwd... $ECHO_C" >&6 9280if test "${tcl_cv_pwd_pw_gecos+set}" = set; then 9281 echo $ECHO_N "(cached) $ECHO_C" >&6 9282else 9283 9284 cat >conftest.$ac_ext <<_ACEOF 9285/* confdefs.h. */ 9286_ACEOF 9287cat confdefs.h >>conftest.$ac_ext 9288cat >>conftest.$ac_ext <<_ACEOF 9289/* end confdefs.h. */ 9290#include <pwd.h> 9291int 9292main () 9293{ 9294struct passwd pwd; pwd.pw_gecos; 9295 ; 9296 return 0; 9297} 9298_ACEOF 9299rm -f conftest.$ac_objext 9300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9301 (eval $ac_compile) 2>conftest.er1 9302 ac_status=$? 9303 grep -v '^ *+' conftest.er1 >conftest.err 9304 rm -f conftest.er1 9305 cat conftest.err >&5 9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9307 (exit $ac_status); } && 9308 { ac_try='test -z "$ac_c_werror_flag" 9309 || test ! -s conftest.err' 9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9311 (eval $ac_try) 2>&5 9312 ac_status=$? 9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9314 (exit $ac_status); }; } && 9315 { ac_try='test -s conftest.$ac_objext' 9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9317 (eval $ac_try) 2>&5 9318 ac_status=$? 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); }; }; then 9321 tcl_cv_pwd_pw_gecos=yes 9322else 9323 echo "$as_me: failed program was:" >&5 9324sed 's/^/| /' conftest.$ac_ext >&5 9325 9326tcl_cv_pwd_pw_gecos=no 9327fi 9328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9329fi 9330echo "$as_me:$LINENO: result: $tcl_cv_pwd_pw_gecos" >&5 9331echo "${ECHO_T}$tcl_cv_pwd_pw_gecos" >&6 9332if test $tcl_cv_pwd_pw_gecos = yes; then 9333 9334cat >>confdefs.h <<\_ACEOF 9335#define HAVE_PW_GECOS 1 9336_ACEOF 9337 9338fi 9339 9340#-------------------------------------------------------------------- 9341# On Mac OS X, we can build either with X11 or with Aqua 9342#-------------------------------------------------------------------- 9343 9344if test "`uname -s`" = "Darwin" ; then 9345 echo "$as_me:$LINENO: checking whether to use Aqua" >&5 9346echo $ECHO_N "checking whether to use Aqua... $ECHO_C" >&6 9347 # Check whether --enable-aqua or --disable-aqua was given. 9348if test "${enable_aqua+set}" = set; then 9349 enableval="$enable_aqua" 9350 tk_aqua=$enableval 9351else 9352 tk_aqua=no 9353fi; 9354 if test $tk_aqua = yes; then 9355 if test $tcl_corefoundation = no; then 9356 { echo "$as_me:$LINENO: WARNING: Aqua can only be used when CoreFoundation is available" >&5 9357echo "$as_me: WARNING: Aqua can only be used when CoreFoundation is available" >&2;} 9358 tk_aqua=no 9359 fi 9360 if test ! -d /System/Library/Frameworks/Cocoa.framework; then 9361 { echo "$as_me:$LINENO: WARNING: Aqua can only be used when Cocoa is available" >&5 9362echo "$as_me: WARNING: Aqua can only be used when Cocoa is available" >&2;} 9363 tk_aqua=no 9364 fi 9365 if test "`uname -r | awk -F. '{print $1}'`" -lt 9; then 9366 { echo "$as_me:$LINENO: WARNING: Aqua requires Mac OS X 10.5 or later" >&5 9367echo "$as_me: WARNING: Aqua requires Mac OS X 10.5 or later" >&2;} 9368 tk_aqua=no 9369 fi 9370 fi 9371 echo "$as_me:$LINENO: result: $tk_aqua" >&5 9372echo "${ECHO_T}$tk_aqua" >&6 9373 if test "$fat_32_64" = yes; then 9374 if test $tk_aqua = no; then 9375 echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9376echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6 9377if test "${tcl_cv_lib_x11_64+set}" = set; then 9378 echo $ECHO_N "(cached) $ECHO_C" >&6 9379else 9380 9381 for v in CFLAGS CPPFLAGS LDFLAGS; do 9382 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9383 done 9384 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9385 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9386 cat >conftest.$ac_ext <<_ACEOF 9387/* confdefs.h. */ 9388_ACEOF 9389cat confdefs.h >>conftest.$ac_ext 9390cat >>conftest.$ac_ext <<_ACEOF 9391/* end confdefs.h. */ 9392#include <X11/Xlib.h> 9393int 9394main () 9395{ 9396XrmInitialize(); 9397 ; 9398 return 0; 9399} 9400_ACEOF 9401rm -f conftest.$ac_objext conftest$ac_exeext 9402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9403 (eval $ac_link) 2>conftest.er1 9404 ac_status=$? 9405 grep -v '^ *+' conftest.er1 >conftest.err 9406 rm -f conftest.er1 9407 cat conftest.err >&5 9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9409 (exit $ac_status); } && 9410 { ac_try='test -z "$ac_c_werror_flag" 9411 || test ! -s conftest.err' 9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9413 (eval $ac_try) 2>&5 9414 ac_status=$? 9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9416 (exit $ac_status); }; } && 9417 { ac_try='test -s conftest$ac_exeext' 9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9419 (eval $ac_try) 2>&5 9420 ac_status=$? 9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9422 (exit $ac_status); }; }; then 9423 tcl_cv_lib_x11_64=yes 9424else 9425 echo "$as_me: failed program was:" >&5 9426sed 's/^/| /' conftest.$ac_ext >&5 9427 9428tcl_cv_lib_x11_64=no 9429fi 9430rm -f conftest.err conftest.$ac_objext \ 9431 conftest$ac_exeext conftest.$ac_ext 9432 for v in CFLAGS CPPFLAGS LDFLAGS; do 9433 eval $v'="$hold_'$v'"' 9434 done 9435fi 9436echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9437echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6 9438 fi 9439 # remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit 9440 # fat builds if configuration does not support 64-bit. 9441 if test "$tcl_cv_lib_x11_64" = no; then 9442 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9443echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9444 for v in CFLAGS CPPFLAGS LDFLAGS; do 9445 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9446 done 9447 fi 9448 fi 9449 if test $tk_aqua = no; then 9450 # check if weak linking whole libraries is possible. 9451 echo "$as_me:$LINENO: checking if ld accepts -weak-l flag" >&5 9452echo $ECHO_N "checking if ld accepts -weak-l flag... $ECHO_C" >&6 9453if test "${tcl_cv_ld_weak_l+set}" = set; then 9454 echo $ECHO_N "(cached) $ECHO_C" >&6 9455else 9456 9457 hold_ldflags=$LDFLAGS 9458 LDFLAGS="$LDFLAGS -Wl,-weak-lm" 9459 cat >conftest.$ac_ext <<_ACEOF 9460/* confdefs.h. */ 9461_ACEOF 9462cat confdefs.h >>conftest.$ac_ext 9463cat >>conftest.$ac_ext <<_ACEOF 9464/* end confdefs.h. */ 9465#include <math.h> 9466int 9467main () 9468{ 9469double f = sin(1.0); 9470 ; 9471 return 0; 9472} 9473_ACEOF 9474rm -f conftest.$ac_objext conftest$ac_exeext 9475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9476 (eval $ac_link) 2>conftest.er1 9477 ac_status=$? 9478 grep -v '^ *+' conftest.er1 >conftest.err 9479 rm -f conftest.er1 9480 cat conftest.err >&5 9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9482 (exit $ac_status); } && 9483 { ac_try='test -z "$ac_c_werror_flag" 9484 || test ! -s conftest.err' 9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9486 (eval $ac_try) 2>&5 9487 ac_status=$? 9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 (exit $ac_status); }; } && 9490 { ac_try='test -s conftest$ac_exeext' 9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9492 (eval $ac_try) 2>&5 9493 ac_status=$? 9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9495 (exit $ac_status); }; }; then 9496 tcl_cv_ld_weak_l=yes 9497else 9498 echo "$as_me: failed program was:" >&5 9499sed 's/^/| /' conftest.$ac_ext >&5 9500 9501tcl_cv_ld_weak_l=no 9502fi 9503rm -f conftest.err conftest.$ac_objext \ 9504 conftest$ac_exeext conftest.$ac_ext 9505 LDFLAGS=$hold_ldflags 9506fi 9507echo "$as_me:$LINENO: result: $tcl_cv_ld_weak_l" >&5 9508echo "${ECHO_T}$tcl_cv_ld_weak_l" >&6 9509 fi 9510 9511for ac_header in AvailabilityMacros.h 9512do 9513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9514if eval "test \"\${$as_ac_Header+set}\" = set"; then 9515 echo "$as_me:$LINENO: checking for $ac_header" >&5 9516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9517if eval "test \"\${$as_ac_Header+set}\" = set"; then 9518 echo $ECHO_N "(cached) $ECHO_C" >&6 9519fi 9520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9522else 9523 # Is the header compilable? 9524echo "$as_me:$LINENO: checking $ac_header usability" >&5 9525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9526cat >conftest.$ac_ext <<_ACEOF 9527/* confdefs.h. */ 9528_ACEOF 9529cat confdefs.h >>conftest.$ac_ext 9530cat >>conftest.$ac_ext <<_ACEOF 9531/* end confdefs.h. */ 9532$ac_includes_default 9533#include <$ac_header> 9534_ACEOF 9535rm -f conftest.$ac_objext 9536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9537 (eval $ac_compile) 2>conftest.er1 9538 ac_status=$? 9539 grep -v '^ *+' conftest.er1 >conftest.err 9540 rm -f conftest.er1 9541 cat conftest.err >&5 9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 (exit $ac_status); } && 9544 { ac_try='test -z "$ac_c_werror_flag" 9545 || test ! -s conftest.err' 9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9547 (eval $ac_try) 2>&5 9548 ac_status=$? 9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9550 (exit $ac_status); }; } && 9551 { ac_try='test -s conftest.$ac_objext' 9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9553 (eval $ac_try) 2>&5 9554 ac_status=$? 9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9556 (exit $ac_status); }; }; then 9557 ac_header_compiler=yes 9558else 9559 echo "$as_me: failed program was:" >&5 9560sed 's/^/| /' conftest.$ac_ext >&5 9561 9562ac_header_compiler=no 9563fi 9564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9566echo "${ECHO_T}$ac_header_compiler" >&6 9567 9568# Is the header present? 9569echo "$as_me:$LINENO: checking $ac_header presence" >&5 9570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9571cat >conftest.$ac_ext <<_ACEOF 9572/* confdefs.h. */ 9573_ACEOF 9574cat confdefs.h >>conftest.$ac_ext 9575cat >>conftest.$ac_ext <<_ACEOF 9576/* end confdefs.h. */ 9577#include <$ac_header> 9578_ACEOF 9579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9581 ac_status=$? 9582 grep -v '^ *+' conftest.er1 >conftest.err 9583 rm -f conftest.er1 9584 cat conftest.err >&5 9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9586 (exit $ac_status); } >/dev/null; then 9587 if test -s conftest.err; then 9588 ac_cpp_err=$ac_c_preproc_warn_flag 9589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9590 else 9591 ac_cpp_err= 9592 fi 9593else 9594 ac_cpp_err=yes 9595fi 9596if test -z "$ac_cpp_err"; then 9597 ac_header_preproc=yes 9598else 9599 echo "$as_me: failed program was:" >&5 9600sed 's/^/| /' conftest.$ac_ext >&5 9601 9602 ac_header_preproc=no 9603fi 9604rm -f conftest.err conftest.$ac_ext 9605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9606echo "${ECHO_T}$ac_header_preproc" >&6 9607 9608# So? What about this header? 9609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9610 yes:no: ) 9611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9615 ac_header_preproc=yes 9616 ;; 9617 no:yes:* ) 9618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9630 ( 9631 cat <<\_ASBOX 9632## ----------------------------- ## 9633## Report this to the tk lists. ## 9634## ----------------------------- ## 9635_ASBOX 9636 ) | 9637 sed "s/^/$as_me: WARNING: /" >&2 9638 ;; 9639esac 9640echo "$as_me:$LINENO: checking for $ac_header" >&5 9641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9642if eval "test \"\${$as_ac_Header+set}\" = set"; then 9643 echo $ECHO_N "(cached) $ECHO_C" >&6 9644else 9645 eval "$as_ac_Header=\$ac_header_preproc" 9646fi 9647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9649 9650fi 9651if test `eval echo '${'$as_ac_Header'}'` = yes; then 9652 cat >>confdefs.h <<_ACEOF 9653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9654_ACEOF 9655 9656fi 9657 9658done 9659 9660 if test "$ac_cv_header_AvailabilityMacros_h" = yes; then 9661 echo "$as_me:$LINENO: checking if weak import is available" >&5 9662echo $ECHO_N "checking if weak import is available... $ECHO_C" >&6 9663if test "${tcl_cv_cc_weak_import+set}" = set; then 9664 echo $ECHO_N "(cached) $ECHO_C" >&6 9665else 9666 9667 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9668 cat >conftest.$ac_ext <<_ACEOF 9669/* confdefs.h. */ 9670_ACEOF 9671cat confdefs.h >>conftest.$ac_ext 9672cat >>conftest.$ac_ext <<_ACEOF 9673/* end confdefs.h. */ 9674 9675 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 9676 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 9677 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 9678 #endif 9679 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020 9680 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020 9681 #endif 9682 int rand(void) __attribute__((weak_import)); 9683 9684int 9685main () 9686{ 9687rand(); 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692rm -f conftest.$ac_objext conftest$ac_exeext 9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9694 (eval $ac_link) 2>conftest.er1 9695 ac_status=$? 9696 grep -v '^ *+' conftest.er1 >conftest.err 9697 rm -f conftest.er1 9698 cat conftest.err >&5 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); } && 9701 { ac_try='test -z "$ac_c_werror_flag" 9702 || test ! -s conftest.err' 9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9704 (eval $ac_try) 2>&5 9705 ac_status=$? 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); }; } && 9708 { ac_try='test -s conftest$ac_exeext' 9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9710 (eval $ac_try) 2>&5 9711 ac_status=$? 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 (exit $ac_status); }; }; then 9714 tcl_cv_cc_weak_import=yes 9715else 9716 echo "$as_me: failed program was:" >&5 9717sed 's/^/| /' conftest.$ac_ext >&5 9718 9719tcl_cv_cc_weak_import=no 9720fi 9721rm -f conftest.err conftest.$ac_objext \ 9722 conftest$ac_exeext conftest.$ac_ext 9723 CFLAGS=$hold_cflags 9724fi 9725echo "$as_me:$LINENO: result: $tcl_cv_cc_weak_import" >&5 9726echo "${ECHO_T}$tcl_cv_cc_weak_import" >&6 9727 if test $tcl_cv_cc_weak_import = yes; then 9728 9729cat >>confdefs.h <<\_ACEOF 9730#define HAVE_WEAK_IMPORT 1 9731_ACEOF 9732 9733 fi 9734 echo "$as_me:$LINENO: checking if Darwin SUSv3 extensions are available" >&5 9735echo $ECHO_N "checking if Darwin SUSv3 extensions are available... $ECHO_C" >&6 9736if test "${tcl_cv_cc_darwin_c_source+set}" = set; then 9737 echo $ECHO_N "(cached) $ECHO_C" >&6 9738else 9739 9740 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9741 cat >conftest.$ac_ext <<_ACEOF 9742/* confdefs.h. */ 9743_ACEOF 9744cat confdefs.h >>conftest.$ac_ext 9745cat >>conftest.$ac_ext <<_ACEOF 9746/* end confdefs.h. */ 9747 9748 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 9749 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 9750 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 9751 #endif 9752 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050 9753 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050 9754 #endif 9755 #define _DARWIN_C_SOURCE 1 9756 #include <sys/cdefs.h> 9757 9758int 9759main () 9760{ 9761 9762 ; 9763 return 0; 9764} 9765_ACEOF 9766rm -f conftest.$ac_objext 9767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9768 (eval $ac_compile) 2>conftest.er1 9769 ac_status=$? 9770 grep -v '^ *+' conftest.er1 >conftest.err 9771 rm -f conftest.er1 9772 cat conftest.err >&5 9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9774 (exit $ac_status); } && 9775 { ac_try='test -z "$ac_c_werror_flag" 9776 || test ! -s conftest.err' 9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9778 (eval $ac_try) 2>&5 9779 ac_status=$? 9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9781 (exit $ac_status); }; } && 9782 { ac_try='test -s conftest.$ac_objext' 9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9784 (eval $ac_try) 2>&5 9785 ac_status=$? 9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9787 (exit $ac_status); }; }; then 9788 tcl_cv_cc_darwin_c_source=yes 9789else 9790 echo "$as_me: failed program was:" >&5 9791sed 's/^/| /' conftest.$ac_ext >&5 9792 9793tcl_cv_cc_darwin_c_source=no 9794fi 9795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9796 CFLAGS=$hold_cflags 9797fi 9798echo "$as_me:$LINENO: result: $tcl_cv_cc_darwin_c_source" >&5 9799echo "${ECHO_T}$tcl_cv_cc_darwin_c_source" >&6 9800 if test $tcl_cv_cc_darwin_c_source = yes; then 9801 9802cat >>confdefs.h <<\_ACEOF 9803#define _DARWIN_C_SOURCE 1 9804_ACEOF 9805 9806 fi 9807 fi 9808else 9809 tk_aqua=no 9810fi 9811 9812if test $tk_aqua = yes; then 9813 9814cat >>confdefs.h <<\_ACEOF 9815#define MAC_OSX_TK 1 9816_ACEOF 9817 9818 LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit" 9819 EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c -fobjc-gc' 9820 TK_WINDOWINGSYSTEM=AQUA 9821 if test -n "${enable_symbols}" -a "${enable_symbols}" != no; then 9822 9823cat >>confdefs.h <<\_ACEOF 9824#define TK_MAC_DEBUG 1 9825_ACEOF 9826 9827 fi 9828else 9829 #-------------------------------------------------------------------- 9830 # Locate the X11 header files and the X11 library archive. Try 9831 # the ac_path_x macro first, but if it doesn't find the X stuff 9832 # (e.g. because there's no xmkmf program) then check through 9833 # a list of possible directories. Under some conditions the 9834 # autoconf macro will return an include directory that contains 9835 # no include files, so double-check its result just to be safe. 9836 #-------------------------------------------------------------------- 9837 9838 9839 echo "$as_me:$LINENO: checking for X" >&5 9840echo $ECHO_N "checking for X... $ECHO_C" >&6 9841 9842 9843# Check whether --with-x or --without-x was given. 9844if test "${with_x+set}" = set; then 9845 withval="$with_x" 9846 9847fi; 9848# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9849if test "x$with_x" = xno; then 9850 # The user explicitly disabled X. 9851 have_x=disabled 9852else 9853 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9854 # Both variables are already set. 9855 have_x=yes 9856 else 9857 if test "${ac_cv_have_x+set}" = set; then 9858 echo $ECHO_N "(cached) $ECHO_C" >&6 9859else 9860 # One or both of the vars are not set, and there is no cached value. 9861ac_x_includes=no ac_x_libraries=no 9862rm -fr conftest.dir 9863if mkdir conftest.dir; then 9864 cd conftest.dir 9865 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9866 cat >Imakefile <<'_ACEOF' 9867acfindx: 9868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9869_ACEOF 9870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9874 for ac_extension in a so sl; do 9875 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 9876 test -f $ac_im_libdir/libX11.$ac_extension; then 9877 ac_im_usrlibdir=$ac_im_libdir; break 9878 fi 9879 done 9880 # Screen out bogus values from the imake configuration. They are 9881 # bogus both because they are the default anyway, and because 9882 # using them would break gcc on systems where it needs fixed includes. 9883 case $ac_im_incroot in 9884 /usr/include) ;; 9885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9886 esac 9887 case $ac_im_usrlibdir in 9888 /usr/lib | /lib) ;; 9889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9890 esac 9891 fi 9892 cd .. 9893 rm -fr conftest.dir 9894fi 9895 9896# Standard set of common directories for X headers. 9897# Check X11 before X11Rn because it is often a symlink to the current release. 9898ac_x_header_dirs=' 9899/usr/X11/include 9900/usr/X11R6/include 9901/usr/X11R5/include 9902/usr/X11R4/include 9903 9904/usr/include/X11 9905/usr/include/X11R6 9906/usr/include/X11R5 9907/usr/include/X11R4 9908 9909/usr/local/X11/include 9910/usr/local/X11R6/include 9911/usr/local/X11R5/include 9912/usr/local/X11R4/include 9913 9914/usr/local/include/X11 9915/usr/local/include/X11R6 9916/usr/local/include/X11R5 9917/usr/local/include/X11R4 9918 9919/usr/X386/include 9920/usr/x386/include 9921/usr/XFree86/include/X11 9922 9923/usr/include 9924/usr/local/include 9925/usr/unsupported/include 9926/usr/athena/include 9927/usr/local/x11r5/include 9928/usr/lpp/Xamples/include 9929 9930/usr/openwin/include 9931/usr/openwin/share/include' 9932 9933if test "$ac_x_includes" = no; then 9934 # Guess where to find include files, by looking for Intrinsic.h. 9935 # First, try using that file with no special directory specified. 9936 cat >conftest.$ac_ext <<_ACEOF 9937/* confdefs.h. */ 9938_ACEOF 9939cat confdefs.h >>conftest.$ac_ext 9940cat >>conftest.$ac_ext <<_ACEOF 9941/* end confdefs.h. */ 9942#include <X11/Intrinsic.h> 9943_ACEOF 9944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9946 ac_status=$? 9947 grep -v '^ *+' conftest.er1 >conftest.err 9948 rm -f conftest.er1 9949 cat conftest.err >&5 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); } >/dev/null; then 9952 if test -s conftest.err; then 9953 ac_cpp_err=$ac_c_preproc_warn_flag 9954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9955 else 9956 ac_cpp_err= 9957 fi 9958else 9959 ac_cpp_err=yes 9960fi 9961if test -z "$ac_cpp_err"; then 9962 # We can compile using X headers with no special include directory. 9963ac_x_includes= 9964else 9965 echo "$as_me: failed program was:" >&5 9966sed 's/^/| /' conftest.$ac_ext >&5 9967 9968 for ac_dir in $ac_x_header_dirs; do 9969 if test -r "$ac_dir/X11/Intrinsic.h"; then 9970 ac_x_includes=$ac_dir 9971 break 9972 fi 9973done 9974fi 9975rm -f conftest.err conftest.$ac_ext 9976fi # $ac_x_includes = no 9977 9978if test "$ac_x_libraries" = no; then 9979 # Check for the libraries. 9980 # See if we find them without any special options. 9981 # Don't add to $LIBS permanently. 9982 ac_save_LIBS=$LIBS 9983 LIBS="-lXt $LIBS" 9984 cat >conftest.$ac_ext <<_ACEOF 9985/* confdefs.h. */ 9986_ACEOF 9987cat confdefs.h >>conftest.$ac_ext 9988cat >>conftest.$ac_ext <<_ACEOF 9989/* end confdefs.h. */ 9990#include <X11/Intrinsic.h> 9991int 9992main () 9993{ 9994XtMalloc (0) 9995 ; 9996 return 0; 9997} 9998_ACEOF 9999rm -f conftest.$ac_objext conftest$ac_exeext 10000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10001 (eval $ac_link) 2>conftest.er1 10002 ac_status=$? 10003 grep -v '^ *+' conftest.er1 >conftest.err 10004 rm -f conftest.er1 10005 cat conftest.err >&5 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); } && 10008 { ac_try='test -z "$ac_c_werror_flag" 10009 || test ! -s conftest.err' 10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10011 (eval $ac_try) 2>&5 10012 ac_status=$? 10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10014 (exit $ac_status); }; } && 10015 { ac_try='test -s conftest$ac_exeext' 10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10017 (eval $ac_try) 2>&5 10018 ac_status=$? 10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10020 (exit $ac_status); }; }; then 10021 LIBS=$ac_save_LIBS 10022# We can link X programs with no special library path. 10023ac_x_libraries= 10024else 10025 echo "$as_me: failed program was:" >&5 10026sed 's/^/| /' conftest.$ac_ext >&5 10027 10028LIBS=$ac_save_LIBS 10029for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10030do 10031 # Don't even attempt the hair of trying to link an X program! 10032 for ac_extension in a so sl; do 10033 if test -r $ac_dir/libXt.$ac_extension; then 10034 ac_x_libraries=$ac_dir 10035 break 2 10036 fi 10037 done 10038done 10039fi 10040rm -f conftest.err conftest.$ac_objext \ 10041 conftest$ac_exeext conftest.$ac_ext 10042fi # $ac_x_libraries = no 10043 10044if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 10045 # Didn't find X anywhere. Cache the known absence of X. 10046 ac_cv_have_x="have_x=no" 10047else 10048 # Record where we found X for the cache. 10049 ac_cv_have_x="have_x=yes \ 10050 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 10051fi 10052fi 10053 10054 fi 10055 eval "$ac_cv_have_x" 10056fi # $with_x != no 10057 10058if test "$have_x" != yes; then 10059 echo "$as_me:$LINENO: result: $have_x" >&5 10060echo "${ECHO_T}$have_x" >&6 10061 no_x=yes 10062else 10063 # If each of the values was on the command line, it overrides each guess. 10064 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10065 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10066 # Update the cache value to reflect the command line values. 10067 ac_cv_have_x="have_x=yes \ 10068 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10069 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 10070echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10071fi 10072 10073 not_really_there="" 10074 if test "$no_x" = ""; then 10075 if test "$x_includes" = ""; then 10076 cat >conftest.$ac_ext <<_ACEOF 10077/* confdefs.h. */ 10078_ACEOF 10079cat confdefs.h >>conftest.$ac_ext 10080cat >>conftest.$ac_ext <<_ACEOF 10081/* end confdefs.h. */ 10082#include <X11/XIntrinsic.h> 10083_ACEOF 10084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10086 ac_status=$? 10087 grep -v '^ *+' conftest.er1 >conftest.err 10088 rm -f conftest.er1 10089 cat conftest.err >&5 10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10091 (exit $ac_status); } >/dev/null; then 10092 if test -s conftest.err; then 10093 ac_cpp_err=$ac_c_preproc_warn_flag 10094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10095 else 10096 ac_cpp_err= 10097 fi 10098else 10099 ac_cpp_err=yes 10100fi 10101if test -z "$ac_cpp_err"; then 10102 : 10103else 10104 echo "$as_me: failed program was:" >&5 10105sed 's/^/| /' conftest.$ac_ext >&5 10106 10107 not_really_there="yes" 10108fi 10109rm -f conftest.err conftest.$ac_ext 10110 else 10111 if test ! -r $x_includes/X11/Intrinsic.h; then 10112 not_really_there="yes" 10113 fi 10114 fi 10115 fi 10116 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 10117 echo "$as_me:$LINENO: checking for X11 header files" >&5 10118echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6 10119 found_xincludes="no" 10120 cat >conftest.$ac_ext <<_ACEOF 10121/* confdefs.h. */ 10122_ACEOF 10123cat confdefs.h >>conftest.$ac_ext 10124cat >>conftest.$ac_ext <<_ACEOF 10125/* end confdefs.h. */ 10126#include <X11/Intrinsic.h> 10127_ACEOF 10128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10130 ac_status=$? 10131 grep -v '^ *+' conftest.er1 >conftest.err 10132 rm -f conftest.er1 10133 cat conftest.err >&5 10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10135 (exit $ac_status); } >/dev/null; then 10136 if test -s conftest.err; then 10137 ac_cpp_err=$ac_c_preproc_warn_flag 10138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10139 else 10140 ac_cpp_err= 10141 fi 10142else 10143 ac_cpp_err=yes 10144fi 10145if test -z "$ac_cpp_err"; then 10146 found_xincludes="yes" 10147else 10148 echo "$as_me: failed program was:" >&5 10149sed 's/^/| /' conftest.$ac_ext >&5 10150 10151 found_xincludes="no" 10152fi 10153rm -f conftest.err conftest.$ac_ext 10154 if test "$found_xincludes" = "no"; then 10155 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" 10156 for i in $dirs ; do 10157 if test -r $i/X11/Intrinsic.h; then 10158 echo "$as_me:$LINENO: result: $i" >&5 10159echo "${ECHO_T}$i" >&6 10160 XINCLUDES=" -I$i" 10161 found_xincludes="yes" 10162 break 10163 fi 10164 done 10165 fi 10166 else 10167 if test "$x_includes" != ""; then 10168 XINCLUDES="-I$x_includes" 10169 found_xincludes="yes" 10170 fi 10171 fi 10172 if test "$found_xincludes" = "no"; then 10173 echo "$as_me:$LINENO: result: couldn't find any!" >&5 10174echo "${ECHO_T}couldn't find any!" >&6 10175 fi 10176 10177 if test "$no_x" = yes; then 10178 echo "$as_me:$LINENO: checking for X11 libraries" >&5 10179echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6 10180 XLIBSW=nope 10181 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" 10182 for i in $dirs ; do 10183 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 10184 echo "$as_me:$LINENO: result: $i" >&5 10185echo "${ECHO_T}$i" >&6 10186 XLIBSW="-L$i -lX11" 10187 x_libraries="$i" 10188 break 10189 fi 10190 done 10191 else 10192 if test "$x_libraries" = ""; then 10193 XLIBSW=-lX11 10194 else 10195 XLIBSW="-L$x_libraries -lX11" 10196 fi 10197 fi 10198 if test "$XLIBSW" = nope ; then 10199 echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 10200echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6 10201if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 10202 echo $ECHO_N "(cached) $ECHO_C" >&6 10203else 10204 ac_check_lib_save_LIBS=$LIBS 10205LIBS="-lXwindow $LIBS" 10206cat >conftest.$ac_ext <<_ACEOF 10207/* confdefs.h. */ 10208_ACEOF 10209cat confdefs.h >>conftest.$ac_ext 10210cat >>conftest.$ac_ext <<_ACEOF 10211/* end confdefs.h. */ 10212 10213/* Override any gcc2 internal prototype to avoid an error. */ 10214#ifdef __cplusplus 10215extern "C" 10216#endif 10217/* We use char because int might match the return type of a gcc2 10218 builtin and then its argument prototype would still apply. */ 10219char XCreateWindow (); 10220int 10221main () 10222{ 10223XCreateWindow (); 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228rm -f conftest.$ac_objext conftest$ac_exeext 10229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10230 (eval $ac_link) 2>conftest.er1 10231 ac_status=$? 10232 grep -v '^ *+' conftest.er1 >conftest.err 10233 rm -f conftest.er1 10234 cat conftest.err >&5 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10236 (exit $ac_status); } && 10237 { ac_try='test -z "$ac_c_werror_flag" 10238 || test ! -s conftest.err' 10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10240 (eval $ac_try) 2>&5 10241 ac_status=$? 10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10243 (exit $ac_status); }; } && 10244 { ac_try='test -s conftest$ac_exeext' 10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10246 (eval $ac_try) 2>&5 10247 ac_status=$? 10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10249 (exit $ac_status); }; }; then 10250 ac_cv_lib_Xwindow_XCreateWindow=yes 10251else 10252 echo "$as_me: failed program was:" >&5 10253sed 's/^/| /' conftest.$ac_ext >&5 10254 10255ac_cv_lib_Xwindow_XCreateWindow=no 10256fi 10257rm -f conftest.err conftest.$ac_objext \ 10258 conftest$ac_exeext conftest.$ac_ext 10259LIBS=$ac_check_lib_save_LIBS 10260fi 10261echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 10262echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6 10263if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 10264 XLIBSW=-lXwindow 10265fi 10266 10267 fi 10268 if test "$XLIBSW" = nope ; then 10269 echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 10270echo "${ECHO_T}could not find any! Using -lX11." >&6 10271 XLIBSW=-lX11 10272 fi 10273 10274 TK_WINDOWINGSYSTEM=X11 10275fi 10276 10277#-------------------------------------------------------------------- 10278# Various manipulations on the search path used at runtime to 10279# find shared libraries: 10280# 1. If the X library binaries are in a non-standard directory, 10281# add the X library location into that search path. 10282# 2. On systems such as AIX and Ultrix that use "-L" as the 10283# search path option, colons cannot be used to separate 10284# directories from each other. Change colons to " -L". 10285# 3. Create two sets of search flags, one for use in cc lines 10286# and the other for when the linker is invoked directly. In 10287# the second case, '-Wl,' must be stripped off and commas must 10288# be replaced by spaces. 10289#-------------------------------------------------------------------- 10290 10291if test "x${x_libraries}" != "x"; then 10292 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${x_libraries}" 10293fi 10294if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then 10295 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'` 10296fi 10297 10298#-------------------------------------------------------------------- 10299# Check for the existence of various libraries. The order here 10300# is important, so that then end up in the right order in the 10301# command line generated by make. The -lsocket and -lnsl libraries 10302# require a couple of special tricks: 10303# 1. Use "connect" and "accept" to check for -lsocket, and 10304# "gethostbyname" to check for -lnsl. 10305# 2. Use each function name only once: can't redo a check because 10306# autoconf caches the results of the last check and won't redo it. 10307# 3. Use -lnsl and -lsocket only if they supply procedures that 10308# aren't already present in the normal libraries. This is because 10309# IRIX 5.2 has libraries, but they aren't needed and they're 10310# bogus: they goof up name resolution if used. 10311# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 10312# To get around this problem, check for both libraries together 10313# if -lsocket doesn't work by itself. 10314#-------------------------------------------------------------------- 10315 10316if test $tk_aqua = no; then 10317 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 10318echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 10319if test "${ac_cv_lib_Xbsd_main+set}" = set; then 10320 echo $ECHO_N "(cached) $ECHO_C" >&6 10321else 10322 ac_check_lib_save_LIBS=$LIBS 10323LIBS="-lXbsd $LIBS" 10324cat >conftest.$ac_ext <<_ACEOF 10325/* confdefs.h. */ 10326_ACEOF 10327cat confdefs.h >>conftest.$ac_ext 10328cat >>conftest.$ac_ext <<_ACEOF 10329/* end confdefs.h. */ 10330 10331 10332int 10333main () 10334{ 10335main (); 10336 ; 10337 return 0; 10338} 10339_ACEOF 10340rm -f conftest.$ac_objext conftest$ac_exeext 10341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10342 (eval $ac_link) 2>conftest.er1 10343 ac_status=$? 10344 grep -v '^ *+' conftest.er1 >conftest.err 10345 rm -f conftest.er1 10346 cat conftest.err >&5 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10348 (exit $ac_status); } && 10349 { ac_try='test -z "$ac_c_werror_flag" 10350 || test ! -s conftest.err' 10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10352 (eval $ac_try) 2>&5 10353 ac_status=$? 10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10355 (exit $ac_status); }; } && 10356 { ac_try='test -s conftest$ac_exeext' 10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10358 (eval $ac_try) 2>&5 10359 ac_status=$? 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10361 (exit $ac_status); }; }; then 10362 ac_cv_lib_Xbsd_main=yes 10363else 10364 echo "$as_me: failed program was:" >&5 10365sed 's/^/| /' conftest.$ac_ext >&5 10366 10367ac_cv_lib_Xbsd_main=no 10368fi 10369rm -f conftest.err conftest.$ac_objext \ 10370 conftest$ac_exeext conftest.$ac_ext 10371LIBS=$ac_check_lib_save_LIBS 10372fi 10373echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 10374echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 10375if test $ac_cv_lib_Xbsd_main = yes; then 10376 LIBS="$LIBS -lXbsd" 10377fi 10378 10379fi 10380 10381#-------------------------------------------------------------------- 10382# One more check related to the X libraries. The standard releases 10383# of Ultrix don't support the "xauth" mechanism, so send won't work 10384# unless TK_NO_SECURITY is defined. However, there are usually copies 10385# of the MIT X server available as well, which do support xauth. 10386# Check for the MIT stuff and use it if it exists. 10387# 10388# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1) 10389# because it can't deal with the "-" in the library name. 10390#-------------------------------------------------------------------- 10391 10392if test -d /usr/include/mit -a $tk_aqua = no; then 10393 echo "$as_me:$LINENO: checking MIT X libraries" >&5 10394echo $ECHO_N "checking MIT X libraries... $ECHO_C" >&6 10395 tk_oldCFlags=$CFLAGS 10396 CFLAGS="$CFLAGS -I/usr/include/mit" 10397 tk_oldLibs=$LIBS 10398 LIBS="$LIBS -lX11-mit" 10399 cat >conftest.$ac_ext <<_ACEOF 10400/* confdefs.h. */ 10401_ACEOF 10402cat confdefs.h >>conftest.$ac_ext 10403cat >>conftest.$ac_ext <<_ACEOF 10404/* end confdefs.h. */ 10405 10406 #include <X11/Xlib.h> 10407 10408int 10409main () 10410{ 10411 10412 XOpenDisplay(0); 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418rm -f conftest.$ac_objext conftest$ac_exeext 10419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10420 (eval $ac_link) 2>conftest.er1 10421 ac_status=$? 10422 grep -v '^ *+' conftest.er1 >conftest.err 10423 rm -f conftest.er1 10424 cat conftest.err >&5 10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10426 (exit $ac_status); } && 10427 { ac_try='test -z "$ac_c_werror_flag" 10428 || test ! -s conftest.err' 10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10430 (eval $ac_try) 2>&5 10431 ac_status=$? 10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10433 (exit $ac_status); }; } && 10434 { ac_try='test -s conftest$ac_exeext' 10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10436 (eval $ac_try) 2>&5 10437 ac_status=$? 10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10439 (exit $ac_status); }; }; then 10440 10441 echo "$as_me:$LINENO: result: yes" >&5 10442echo "${ECHO_T}yes" >&6 10443 XLIBSW="-lX11-mit" 10444 XINCLUDES="-I/usr/include/mit" 10445 10446else 10447 echo "$as_me: failed program was:" >&5 10448sed 's/^/| /' conftest.$ac_ext >&5 10449 10450echo "$as_me:$LINENO: result: no" >&5 10451echo "${ECHO_T}no" >&6 10452fi 10453rm -f conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455 CFLAGS=$tk_oldCFlags 10456 LIBS=$tk_oldLibs 10457fi 10458 10459#-------------------------------------------------------------------- 10460# Check whether the header and library for the XScreenSaver 10461# extension are available, and set HAVE_XSS if so. 10462# XScreenSaver is needed for Tk_GetUserInactiveTime(). 10463#-------------------------------------------------------------------- 10464 10465if test $tk_aqua = no; then 10466 tk_oldCFlags=$CFLAGS 10467 CFLAGS="$CFLAGS $XINCLUDES" 10468 tk_oldLibs=$LIBS 10469 LIBS="$tk_oldLibs $XLIBSW" 10470 xss_header_found=no 10471 xss_lib_found=no 10472 echo "$as_me:$LINENO: checking whether to try to use XScreenSaver" >&5 10473echo $ECHO_N "checking whether to try to use XScreenSaver... $ECHO_C" >&6 10474 # Check whether --enable-xss or --disable-xss was given. 10475if test "${enable_xss+set}" = set; then 10476 enableval="$enable_xss" 10477 enable_xss=$enableval 10478else 10479 enable_xss=yes 10480fi; 10481 if test "$enable_xss" = "no" ; then 10482 echo "$as_me:$LINENO: result: $enable_xss" >&5 10483echo "${ECHO_T}$enable_xss" >&6 10484 else 10485 echo "$as_me:$LINENO: result: $enable_xss" >&5 10486echo "${ECHO_T}$enable_xss" >&6 10487 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5 10488echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6 10489if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then 10490 echo $ECHO_N "(cached) $ECHO_C" >&6 10491else 10492 cat >conftest.$ac_ext <<_ACEOF 10493/* confdefs.h. */ 10494_ACEOF 10495cat confdefs.h >>conftest.$ac_ext 10496cat >>conftest.$ac_ext <<_ACEOF 10497/* end confdefs.h. */ 10498#include <X11/Xlib.h> 10499 10500#include <X11/extensions/scrnsaver.h> 10501_ACEOF 10502rm -f conftest.$ac_objext 10503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10504 (eval $ac_compile) 2>conftest.er1 10505 ac_status=$? 10506 grep -v '^ *+' conftest.er1 >conftest.err 10507 rm -f conftest.er1 10508 cat conftest.err >&5 10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10510 (exit $ac_status); } && 10511 { ac_try='test -z "$ac_c_werror_flag" 10512 || test ! -s conftest.err' 10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10514 (eval $ac_try) 2>&5 10515 ac_status=$? 10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10517 (exit $ac_status); }; } && 10518 { ac_try='test -s conftest.$ac_objext' 10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10520 (eval $ac_try) 2>&5 10521 ac_status=$? 10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10523 (exit $ac_status); }; }; then 10524 ac_cv_header_X11_extensions_scrnsaver_h=yes 10525else 10526 echo "$as_me: failed program was:" >&5 10527sed 's/^/| /' conftest.$ac_ext >&5 10528 10529ac_cv_header_X11_extensions_scrnsaver_h=no 10530fi 10531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10532fi 10533echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5 10534echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6 10535if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then 10536 10537 xss_header_found=yes 10538 10539fi 10540 10541 10542 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo" >&5 10543echo $ECHO_N "checking for XScreenSaverQueryInfo... $ECHO_C" >&6 10544if test "${ac_cv_func_XScreenSaverQueryInfo+set}" = set; then 10545 echo $ECHO_N "(cached) $ECHO_C" >&6 10546else 10547 cat >conftest.$ac_ext <<_ACEOF 10548/* confdefs.h. */ 10549_ACEOF 10550cat confdefs.h >>conftest.$ac_ext 10551cat >>conftest.$ac_ext <<_ACEOF 10552/* end confdefs.h. */ 10553/* Define XScreenSaverQueryInfo to an innocuous variant, in case <limits.h> declares XScreenSaverQueryInfo. 10554 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10555#define XScreenSaverQueryInfo innocuous_XScreenSaverQueryInfo 10556 10557/* System header to define __stub macros and hopefully few prototypes, 10558 which can conflict with char XScreenSaverQueryInfo (); below. 10559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10560 <limits.h> exists even on freestanding compilers. */ 10561 10562#ifdef __STDC__ 10563# include <limits.h> 10564#else 10565# include <assert.h> 10566#endif 10567 10568#undef XScreenSaverQueryInfo 10569 10570/* Override any gcc2 internal prototype to avoid an error. */ 10571#ifdef __cplusplus 10572extern "C" 10573{ 10574#endif 10575/* We use char because int might match the return type of a gcc2 10576 builtin and then its argument prototype would still apply. */ 10577char XScreenSaverQueryInfo (); 10578/* The GNU C library defines this for functions which it implements 10579 to always fail with ENOSYS. Some functions are actually named 10580 something starting with __ and the normal name is an alias. */ 10581#if defined (__stub_XScreenSaverQueryInfo) || defined (__stub___XScreenSaverQueryInfo) 10582choke me 10583#else 10584char (*f) () = XScreenSaverQueryInfo; 10585#endif 10586#ifdef __cplusplus 10587} 10588#endif 10589 10590int 10591main () 10592{ 10593return f != XScreenSaverQueryInfo; 10594 ; 10595 return 0; 10596} 10597_ACEOF 10598rm -f conftest.$ac_objext conftest$ac_exeext 10599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10600 (eval $ac_link) 2>conftest.er1 10601 ac_status=$? 10602 grep -v '^ *+' conftest.er1 >conftest.err 10603 rm -f conftest.er1 10604 cat conftest.err >&5 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10606 (exit $ac_status); } && 10607 { ac_try='test -z "$ac_c_werror_flag" 10608 || test ! -s conftest.err' 10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10610 (eval $ac_try) 2>&5 10611 ac_status=$? 10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10613 (exit $ac_status); }; } && 10614 { ac_try='test -s conftest$ac_exeext' 10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10616 (eval $ac_try) 2>&5 10617 ac_status=$? 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); }; }; then 10620 ac_cv_func_XScreenSaverQueryInfo=yes 10621else 10622 echo "$as_me: failed program was:" >&5 10623sed 's/^/| /' conftest.$ac_ext >&5 10624 10625ac_cv_func_XScreenSaverQueryInfo=no 10626fi 10627rm -f conftest.err conftest.$ac_objext \ 10628 conftest$ac_exeext conftest.$ac_ext 10629fi 10630echo "$as_me:$LINENO: result: $ac_cv_func_XScreenSaverQueryInfo" >&5 10631echo "${ECHO_T}$ac_cv_func_XScreenSaverQueryInfo" >&6 10632if test $ac_cv_func_XScreenSaverQueryInfo = yes; then 10633 : 10634else 10635 10636 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXext" >&5 10637echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXext... $ECHO_C" >&6 10638if test "${ac_cv_lib_Xext_XScreenSaverQueryInfo+set}" = set; then 10639 echo $ECHO_N "(cached) $ECHO_C" >&6 10640else 10641 ac_check_lib_save_LIBS=$LIBS 10642LIBS="-lXext $LIBS" 10643cat >conftest.$ac_ext <<_ACEOF 10644/* confdefs.h. */ 10645_ACEOF 10646cat confdefs.h >>conftest.$ac_ext 10647cat >>conftest.$ac_ext <<_ACEOF 10648/* end confdefs.h. */ 10649 10650/* Override any gcc2 internal prototype to avoid an error. */ 10651#ifdef __cplusplus 10652extern "C" 10653#endif 10654/* We use char because int might match the return type of a gcc2 10655 builtin and then its argument prototype would still apply. */ 10656char XScreenSaverQueryInfo (); 10657int 10658main () 10659{ 10660XScreenSaverQueryInfo (); 10661 ; 10662 return 0; 10663} 10664_ACEOF 10665rm -f conftest.$ac_objext conftest$ac_exeext 10666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10667 (eval $ac_link) 2>conftest.er1 10668 ac_status=$? 10669 grep -v '^ *+' conftest.er1 >conftest.err 10670 rm -f conftest.er1 10671 cat conftest.err >&5 10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10673 (exit $ac_status); } && 10674 { ac_try='test -z "$ac_c_werror_flag" 10675 || test ! -s conftest.err' 10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10677 (eval $ac_try) 2>&5 10678 ac_status=$? 10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10680 (exit $ac_status); }; } && 10681 { ac_try='test -s conftest$ac_exeext' 10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10683 (eval $ac_try) 2>&5 10684 ac_status=$? 10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10686 (exit $ac_status); }; }; then 10687 ac_cv_lib_Xext_XScreenSaverQueryInfo=yes 10688else 10689 echo "$as_me: failed program was:" >&5 10690sed 's/^/| /' conftest.$ac_ext >&5 10691 10692ac_cv_lib_Xext_XScreenSaverQueryInfo=no 10693fi 10694rm -f conftest.err conftest.$ac_objext \ 10695 conftest$ac_exeext conftest.$ac_ext 10696LIBS=$ac_check_lib_save_LIBS 10697fi 10698echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverQueryInfo" >&5 10699echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverQueryInfo" >&6 10700if test $ac_cv_lib_Xext_XScreenSaverQueryInfo = yes; then 10701 10702 XLIBSW="$XLIBSW -lXext" 10703 xss_lib_found=yes 10704 10705else 10706 10707 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXss" >&5 10708echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXss... $ECHO_C" >&6 10709if test "${ac_cv_lib_Xss_XScreenSaverQueryInfo+set}" = set; then 10710 echo $ECHO_N "(cached) $ECHO_C" >&6 10711else 10712 ac_check_lib_save_LIBS=$LIBS 10713LIBS="-lXss -lXext $LIBS" 10714cat >conftest.$ac_ext <<_ACEOF 10715/* confdefs.h. */ 10716_ACEOF 10717cat confdefs.h >>conftest.$ac_ext 10718cat >>conftest.$ac_ext <<_ACEOF 10719/* end confdefs.h. */ 10720 10721/* Override any gcc2 internal prototype to avoid an error. */ 10722#ifdef __cplusplus 10723extern "C" 10724#endif 10725/* We use char because int might match the return type of a gcc2 10726 builtin and then its argument prototype would still apply. */ 10727char XScreenSaverQueryInfo (); 10728int 10729main () 10730{ 10731XScreenSaverQueryInfo (); 10732 ; 10733 return 0; 10734} 10735_ACEOF 10736rm -f conftest.$ac_objext conftest$ac_exeext 10737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10738 (eval $ac_link) 2>conftest.er1 10739 ac_status=$? 10740 grep -v '^ *+' conftest.er1 >conftest.err 10741 rm -f conftest.er1 10742 cat conftest.err >&5 10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10744 (exit $ac_status); } && 10745 { ac_try='test -z "$ac_c_werror_flag" 10746 || test ! -s conftest.err' 10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10748 (eval $ac_try) 2>&5 10749 ac_status=$? 10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10751 (exit $ac_status); }; } && 10752 { ac_try='test -s conftest$ac_exeext' 10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10754 (eval $ac_try) 2>&5 10755 ac_status=$? 10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10757 (exit $ac_status); }; }; then 10758 ac_cv_lib_Xss_XScreenSaverQueryInfo=yes 10759else 10760 echo "$as_me: failed program was:" >&5 10761sed 's/^/| /' conftest.$ac_ext >&5 10762 10763ac_cv_lib_Xss_XScreenSaverQueryInfo=no 10764fi 10765rm -f conftest.err conftest.$ac_objext \ 10766 conftest$ac_exeext conftest.$ac_ext 10767LIBS=$ac_check_lib_save_LIBS 10768fi 10769echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverQueryInfo" >&5 10770echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverQueryInfo" >&6 10771if test $ac_cv_lib_Xss_XScreenSaverQueryInfo = yes; then 10772 10773 if test "$tcl_cv_ld_weak_l" = yes; then 10774 # On Darwin, weak link libXss if possible, 10775 # as it is only available on Tiger or later. 10776 XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext" 10777 else 10778 XLIBSW="$XLIBSW -lXss -lXext" 10779 fi 10780 xss_lib_found=yes 10781 10782fi 10783 10784 10785fi 10786 10787 10788fi 10789 10790 fi 10791 if test $enable_xss = yes -a $xss_lib_found = yes -a $xss_header_found = yes; then 10792 10793cat >>confdefs.h <<\_ACEOF 10794#define HAVE_XSS 1 10795_ACEOF 10796 10797 fi 10798 CFLAGS=$tk_oldCFlags 10799 LIBS=$tk_oldLibs 10800fi 10801 10802#-------------------------------------------------------------------- 10803# Check for freetype / fontconfig / Xft support. 10804#-------------------------------------------------------------------- 10805 10806if test $tk_aqua = no; then 10807 echo "$as_me:$LINENO: checking whether to use xft" >&5 10808echo $ECHO_N "checking whether to use xft... $ECHO_C" >&6 10809 # Check whether --enable-xft or --disable-xft was given. 10810if test "${enable_xft+set}" = set; then 10811 enableval="$enable_xft" 10812 enable_xft=$enableval 10813else 10814 enable_xft="default" 10815fi; 10816 XFT_CFLAGS="" 10817 XFT_LIBS="" 10818 if test "$enable_xft" = "no" ; then 10819 echo "$as_me:$LINENO: result: $enable_xft" >&5 10820echo "${ECHO_T}$enable_xft" >&6 10821 else 10822 found_xft="yes" 10823 XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no" 10824 XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no" 10825 if test "$found_xft" = "no" ; then 10826 found_xft=yes 10827 XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no" 10828 XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no" 10829 fi 10830 echo "$as_me:$LINENO: result: $found_xft" >&5 10831echo "${ECHO_T}$found_xft" >&6 10832 if test "$found_xft" = "yes" ; then 10833 tk_oldCFlags=$CFLAGS 10834 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10835 tk_oldLibs=$LIBS 10836 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 10837 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 10838echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 10839if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then 10840 echo $ECHO_N "(cached) $ECHO_C" >&6 10841else 10842 cat >conftest.$ac_ext <<_ACEOF 10843/* confdefs.h. */ 10844_ACEOF 10845cat confdefs.h >>conftest.$ac_ext 10846cat >>conftest.$ac_ext <<_ACEOF 10847/* end confdefs.h. */ 10848#include <X11/Xlib.h> 10849 10850#include <X11/Xft/Xft.h> 10851_ACEOF 10852rm -f conftest.$ac_objext 10853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10854 (eval $ac_compile) 2>conftest.er1 10855 ac_status=$? 10856 grep -v '^ *+' conftest.er1 >conftest.err 10857 rm -f conftest.er1 10858 cat conftest.err >&5 10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10860 (exit $ac_status); } && 10861 { ac_try='test -z "$ac_c_werror_flag" 10862 || test ! -s conftest.err' 10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10864 (eval $ac_try) 2>&5 10865 ac_status=$? 10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10867 (exit $ac_status); }; } && 10868 { ac_try='test -s conftest.$ac_objext' 10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10870 (eval $ac_try) 2>&5 10871 ac_status=$? 10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10873 (exit $ac_status); }; }; then 10874 ac_cv_header_X11_Xft_Xft_h=yes 10875else 10876 echo "$as_me: failed program was:" >&5 10877sed 's/^/| /' conftest.$ac_ext >&5 10878 10879ac_cv_header_X11_Xft_Xft_h=no 10880fi 10881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10882fi 10883echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 10884echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 10885if test $ac_cv_header_X11_Xft_Xft_h = yes; then 10886 : 10887else 10888 10889 found_xft=no 10890 10891fi 10892 10893 10894 CFLAGS=$tk_oldCFlags 10895 LIBS=$tk_oldLibs 10896 fi 10897 if test "$found_xft" = "yes" ; then 10898 tk_oldCFlags=$CFLAGS 10899 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10900 tk_oldLibs=$LIBS 10901 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 10902 10903echo "$as_me:$LINENO: checking for FT_New_Face in -lXft" >&5 10904echo $ECHO_N "checking for FT_New_Face in -lXft... $ECHO_C" >&6 10905if test "${ac_cv_lib_Xft_FT_New_Face+set}" = set; then 10906 echo $ECHO_N "(cached) $ECHO_C" >&6 10907else 10908 ac_check_lib_save_LIBS=$LIBS 10909LIBS="-lXft $LIBS" 10910cat >conftest.$ac_ext <<_ACEOF 10911/* confdefs.h. */ 10912_ACEOF 10913cat confdefs.h >>conftest.$ac_ext 10914cat >>conftest.$ac_ext <<_ACEOF 10915/* end confdefs.h. */ 10916 10917/* Override any gcc2 internal prototype to avoid an error. */ 10918#ifdef __cplusplus 10919extern "C" 10920#endif 10921/* We use char because int might match the return type of a gcc2 10922 builtin and then its argument prototype would still apply. */ 10923char FT_New_Face (); 10924int 10925main () 10926{ 10927FT_New_Face (); 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932rm -f conftest.$ac_objext conftest$ac_exeext 10933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10934 (eval $ac_link) 2>conftest.er1 10935 ac_status=$? 10936 grep -v '^ *+' conftest.er1 >conftest.err 10937 rm -f conftest.er1 10938 cat conftest.err >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 (exit $ac_status); } && 10941 { ac_try='test -z "$ac_c_werror_flag" 10942 || test ! -s conftest.err' 10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10944 (eval $ac_try) 2>&5 10945 ac_status=$? 10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10947 (exit $ac_status); }; } && 10948 { ac_try='test -s conftest$ac_exeext' 10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10950 (eval $ac_try) 2>&5 10951 ac_status=$? 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); }; }; then 10954 ac_cv_lib_Xft_FT_New_Face=yes 10955else 10956 echo "$as_me: failed program was:" >&5 10957sed 's/^/| /' conftest.$ac_ext >&5 10958 10959ac_cv_lib_Xft_FT_New_Face=no 10960fi 10961rm -f conftest.err conftest.$ac_objext \ 10962 conftest$ac_exeext conftest.$ac_ext 10963LIBS=$ac_check_lib_save_LIBS 10964fi 10965echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_FT_New_Face" >&5 10966echo "${ECHO_T}$ac_cv_lib_Xft_FT_New_Face" >&6 10967if test $ac_cv_lib_Xft_FT_New_Face = yes; then 10968 cat >>confdefs.h <<_ACEOF 10969#define HAVE_LIBXFT 1 10970_ACEOF 10971 10972 LIBS="-lXft $LIBS" 10973 10974else 10975 10976 found_xft=no 10977 10978fi 10979 10980 CFLAGS=$tk_oldCFlags 10981 LIBS=$tk_oldLibs 10982 fi 10983 if test "$found_xft" = "no" ; then 10984 if test "$enable_xft" = "yes" ; then 10985 { echo "$as_me:$LINENO: WARNING: Can't find xft configuration, or xft is unusable" >&5 10986echo "$as_me: WARNING: Can't find xft configuration, or xft is unusable" >&2;} 10987 fi 10988 enable_xft=no 10989 XFT_CFLAGS="" 10990 XFT_LIBS="" 10991 else 10992 enable_xft=yes 10993 fi 10994 fi 10995 if test $enable_xft = "yes" ; then 10996 UNIX_FONT_OBJS=tkUnixRFont.o 10997 10998cat >>confdefs.h <<\_ACEOF 10999#define HAVE_XFT 1 11000_ACEOF 11001 11002 else 11003 UNIX_FONT_OBJS=tkUnixFont.o 11004 fi 11005 11006 11007 11008fi 11009 11010#-------------------------------------------------------------------- 11011# Figure out whether "char" is unsigned. If so, set a 11012# #define for __CHAR_UNSIGNED__. 11013#-------------------------------------------------------------------- 11014 11015 11016echo "$as_me:$LINENO: checking whether char is unsigned" >&5 11017echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 11018if test "${ac_cv_c_char_unsigned+set}" = set; then 11019 echo $ECHO_N "(cached) $ECHO_C" >&6 11020else 11021 cat >conftest.$ac_ext <<_ACEOF 11022/* confdefs.h. */ 11023_ACEOF 11024cat confdefs.h >>conftest.$ac_ext 11025cat >>conftest.$ac_ext <<_ACEOF 11026/* end confdefs.h. */ 11027$ac_includes_default 11028int 11029main () 11030{ 11031static int test_array [1 - 2 * !(((char) -1) < 0)]; 11032test_array [0] = 0 11033 11034 ; 11035 return 0; 11036} 11037_ACEOF 11038rm -f conftest.$ac_objext 11039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11040 (eval $ac_compile) 2>conftest.er1 11041 ac_status=$? 11042 grep -v '^ *+' conftest.er1 >conftest.err 11043 rm -f conftest.er1 11044 cat conftest.err >&5 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); } && 11047 { ac_try='test -z "$ac_c_werror_flag" 11048 || test ! -s conftest.err' 11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11050 (eval $ac_try) 2>&5 11051 ac_status=$? 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11053 (exit $ac_status); }; } && 11054 { ac_try='test -s conftest.$ac_objext' 11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11056 (eval $ac_try) 2>&5 11057 ac_status=$? 11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 (exit $ac_status); }; }; then 11060 ac_cv_c_char_unsigned=no 11061else 11062 echo "$as_me: failed program was:" >&5 11063sed 's/^/| /' conftest.$ac_ext >&5 11064 11065ac_cv_c_char_unsigned=yes 11066fi 11067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11068fi 11069echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 11070echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 11071if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 11072 cat >>confdefs.h <<\_ACEOF 11073#define __CHAR_UNSIGNED__ 1 11074_ACEOF 11075 11076fi 11077 11078 11079#-------------------------------------------------------------------- 11080# The statements below define a collection of symbols related to 11081# building libtk as a shared library instead of a static library. 11082#-------------------------------------------------------------------- 11083 11084eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}" 11085eval eval "TK_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}" 11086eval "TK_LIB_FILE=libtk${LIB_SUFFIX}" 11087 11088# tkConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed 11089# since on some platforms TK_LIB_FILE contains shell escapes. 11090 11091eval "TK_LIB_FILE=${TK_LIB_FILE}" 11092 11093if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then 11094 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_STUB_LIB_SPEC}" 11095 TCL_STUB_FLAGS="-DUSE_TCL_STUBS" 11096fi 11097 11098TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' 11099PRIVATE_INCLUDE_DIR='$(includedir)' 11100HTML_DIR='$(DISTDIR)/html' 11101TK_PKG_DIR='tk$(VERSION)' 11102TK_RSRC_FILE='tk$(VERSION).rsrc' 11103WISH_RSRC_FILE='wish$(VERSION).rsrc' 11104 11105# Note: in the following variable, it's important to use the absolute 11106# path name of the Tcl directory rather than "..": this is because 11107# AIX remembers this path and will attempt to use it at run-time to look 11108# up the Tcl library. 11109 11110if test "`uname -s`" = "Darwin" ; then 11111 11112 if test "`uname -s`" = "Darwin" ; then 11113 echo "$as_me:$LINENO: checking how to package libraries" >&5 11114echo $ECHO_N "checking how to package libraries... $ECHO_C" >&6 11115 # Check whether --enable-framework or --disable-framework was given. 11116if test "${enable_framework+set}" = set; then 11117 enableval="$enable_framework" 11118 enable_framework=$enableval 11119else 11120 enable_framework=no 11121fi; 11122 if test $enable_framework = yes; then 11123 if test $SHARED_BUILD = 0; then 11124 { echo "$as_me:$LINENO: WARNING: Frameworks can only be built if --enable-shared is yes" >&5 11125echo "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;} 11126 enable_framework=no 11127 fi 11128 if test $tcl_corefoundation = no; then 11129 { echo "$as_me:$LINENO: WARNING: Frameworks can only be used when CoreFoundation is available" >&5 11130echo "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;} 11131 enable_framework=no 11132 fi 11133 fi 11134 if test $enable_framework = yes; then 11135 echo "$as_me:$LINENO: result: framework" >&5 11136echo "${ECHO_T}framework" >&6 11137 FRAMEWORK_BUILD=1 11138 else 11139 if test $SHARED_BUILD = 1; then 11140 echo "$as_me:$LINENO: result: shared library" >&5 11141echo "${ECHO_T}shared library" >&6 11142 else 11143 echo "$as_me:$LINENO: result: static library" >&5 11144echo "${ECHO_T}static library" >&6 11145 fi 11146 FRAMEWORK_BUILD=0 11147 fi 11148 fi 11149 11150 TK_SHLIB_LD_EXTRAS="-compatibility_version ${TK_VERSION} -current_version ${TK_VERSION}`echo ${TK_PATCH_LEVEL} | awk '{match($0, "\\\.[0-9]+"); print substr($0,RSTART,RLENGTH)}'`" 11151 TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -install_name "${DYLIB_INSTALL_DIR}"/${TK_LIB_FILE} -unexported_symbols_list $$(f=$(TK_LIB_FILE).E && nm -gp tkMacOSX*.o 2>/dev/null | awk "/^[0-9a-f]+ . \.objc/ {print \$$3}" > $$f && nm -gjp "$(TCL_BIN_DIR)"/$(TCL_STUB_LIB_FILE) | grep ^_[^_] >> $$f && echo $$f)' 11152 echo "$LDFLAGS " | grep -q -- '-prebind ' && TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -seg1addr 0xb000000' 11153 TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tk-Info.plist' 11154 EXTRA_WISH_LIBS='-sectcreate __TEXT __info_plist Wish-Info.plist' 11155 EXTRA_APP_CC_SWITCHES="${EXTRA_APP_CC_SWITCHES}"' -mdynamic-no-pic' 11156 ac_config_files="$ac_config_files Tk-Info.plist:../macosx/Tk-Info.plist.in Wish-Info.plist:../macosx/Wish-Info.plist.in" 11157 11158 for l in ${LOCALES}; do CFBUNDLELOCALIZATIONS="${CFBUNDLELOCALIZATIONS}<string>$l</string>"; done 11159 TK_YEAR="`date +%Y`" 11160fi 11161 11162if test "$FRAMEWORK_BUILD" = "1" ; then 11163 11164cat >>confdefs.h <<\_ACEOF 11165#define TK_FRAMEWORK 1 11166_ACEOF 11167 11168 # Construct a fake local framework structure to make linking with 11169 # '-framework Tk' and running of tktest work 11170 ac_config_commands="$ac_config_commands Tk.framework" 11171 11172 LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH" 11173 if test "${libdir}" = '${exec_prefix}/lib'; then 11174 # override libdir default 11175 libdir="/Library/Frameworks" 11176 fi 11177 TK_LIB_FILE="Tk" 11178 TK_LIB_FLAG="-framework Tk" 11179 TK_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tk" 11180 TK_LIB_SPEC="-F${libdir} -framework Tk" 11181 libdir="${libdir}/Tk.framework/Versions/\${VERSION}" 11182 TK_LIBRARY="${libdir}/Resources/Scripts" 11183 TK_PKG_DIR="Resources/Scripts" 11184 TK_RSRC_FILE="Tk.rsrc" 11185 WISH_RSRC_FILE="Wish.rsrc" 11186 includedir="${libdir}/Headers" 11187 PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders" 11188 HTML_DIR="${libdir}/Resources/Documentation/Reference/Tk" 11189 EXTRA_INSTALL="install-private-headers html-tk" 11190 EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)"/TkTOC.html' 11191 EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources" && mkdir -p "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tk-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"' 11192 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing license.terms to $(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) "$(TOP_DIR)/license.terms" "$(LIB_INSTALL_DIR)/Resources"' 11193 if test $tk_aqua = yes; then 11194 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Images to $(LIB_INSTALL_DIR)/Resources" && mkdir -p "$(LIB_INSTALL_DIR)/Resources" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)/Resources"; done' 11195 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing wish$(VERSION) script to $(INSTALL_ROOT)/'"${bindir}"'" && mkdir -p "$(INSTALL_ROOT)/'"${bindir}"'" && printf > "$(INSTALL_ROOT)/'"${bindir}"'/wish$(VERSION)" "#!/bin/sh\n\"\$$(dirname \$$0)'"`eval d="${bindir}"; echo "$d" | sed -e 's#/[^/][^/]*#/..#g'`"'$(bindir)/Wish\" \"\$$@\"" && chmod +x "$(INSTALL_ROOT)/'"${bindir}"'/wish$(VERSION)"' 11196 bindir="${libdir}/Resources/Wish.app/Contents/MacOS" 11197 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Info.plist to $(BIN_INSTALL_DIR)/.." && $(INSTALL_DATA) Wish-Info.plist "$(BIN_INSTALL_DIR)/../Info.plist" && mv -f "$(BIN_INSTALL_DIR)/wish$(VERSION)" "$(BIN_INSTALL_DIR)/Wish"' 11198 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.icns to $(BIN_INSTALL_DIR)/../Resources" && mkdir -p "$(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Tk.icns" "$(BIN_INSTALL_DIR)/../Resources/Wish.icns"' 11199 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing Wish.sdef to $(BIN_INSTALL_DIR)/../Resources" && $(INSTALL_DATA) "$(MAC_OSX_DIR)/Wish.sdef" "$(BIN_INSTALL_DIR)/../Resources"' 11200 fi 11201 EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Finalizing Tk.framework" && rm -f "$(LIB_INSTALL_DIR)/../Current" && ln -s "$(VERSION)" "$(LIB_INSTALL_DIR)/../Current" && for f in "$(LIB_FILE)" tkConfig.sh Resources Headers PrivateHeaders; do rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/Current/$$f" "$(LIB_INSTALL_DIR)/../.."; done && f="$(STUB_LIB_FILE)" && rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/$(VERSION)/$$f" "$(LIB_INSTALL_DIR)/../.."' 11202 # Don't use AC_DEFINE for the following as the framework version define 11203 # needs to go into the Makefile even when using autoheader, so that we 11204 # can pick up a potential make override of VERSION. Also, don't put this 11205 # into CFLAGS as it should not go into tkConfig.sh 11206 EXTRA_CC_SWITCHES="$EXTRA_CC_SWITCHES"' -DTK_FRAMEWORK_VERSION=\"$(VERSION)\"' 11207else 11208 if test $tk_aqua = yes; then 11209 EXTRA_INSTALL_BINARIES='@echo "Installing Images to $(LIB_INSTALL_DIR)" && mkdir -p "$(LIB_INSTALL_DIR)" && for i in Tk.tiff Tk.icns; do $(INSTALL_DATA) "$(MAC_OSX_DIR)/$$i" "$(LIB_INSTALL_DIR)"; done' 11210 fi 11211 # libdir must be a fully qualified path and not ${exec_prefix}/lib 11212 eval libdir="$libdir" 11213 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 11214 TK_LIB_FLAG="-ltk${TK_VERSION}" 11215 else 11216 TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`" 11217 fi 11218 TK_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_LIB_FLAG}" 11219 TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}" 11220fi 11221 11222#-------------------------------------------------------------------- 11223# The statements below define various symbols relating to Tk 11224# stub support. 11225#-------------------------------------------------------------------- 11226 11227# Replace ${VERSION} with contents of ${TK_VERSION} 11228eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}" 11229eval "TK_STUB_LIB_DIR=${libdir}" 11230 11231if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 11232 TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}" 11233else 11234 TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`" 11235fi 11236 11237TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 11238TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}" 11239TK_BUILD_STUB_LIB_PATH="`pwd`/${TK_STUB_LIB_FILE}" 11240TK_STUB_LIB_PATH="${TK_STUB_LIB_DIR}/${TK_STUB_LIB_FILE}" 11241 11242# Install time header dir can be set via --includedir 11243eval "TK_INCLUDE_SPEC=\"-I${includedir}\"" 11244 11245#------------------------------------------------------------------------ 11246# tkConfig.sh refers to this by a different name 11247#------------------------------------------------------------------------ 11248 11249TK_SHARED_BUILD=${SHARED_BUILD} 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 ac_config_files="$ac_config_files Makefile:../unix/Makefile.in tkConfig.sh:../unix/tkConfig.sh.in" 11302 11303cat >confcache <<\_ACEOF 11304# This file is a shell script that caches the results of configure 11305# tests run on this system so they can be shared between configure 11306# scripts and configure runs, see configure's option --config-cache. 11307# It is not useful on other systems. If it contains results you don't 11308# want to keep, you may remove or edit it. 11309# 11310# config.status only pays attention to the cache file if you give it 11311# the --recheck option to rerun configure. 11312# 11313# `ac_cv_env_foo' variables (set or unset) will be overridden when 11314# loading this file, other *unset* `ac_cv_foo' will be assigned the 11315# following values. 11316 11317_ACEOF 11318 11319# The following way of writing the cache mishandles newlines in values, 11320# but we know of no workaround that is simple, portable, and efficient. 11321# So, don't put newlines in cache variables' values. 11322# Ultrix sh set writes to stderr and can't be redirected directly, 11323# and sets the high bit in the cache file unless we assign to the vars. 11324{ 11325 (set) 2>&1 | 11326 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11327 *ac_space=\ *) 11328 # `set' does not quote correctly, so add quotes (double-quote 11329 # substitution turns \\\\ into \\, and sed turns \\ into \). 11330 sed -n \ 11331 "s/'/'\\\\''/g; 11332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11333 ;; 11334 *) 11335 # `set' quotes correctly as required by POSIX, so do not add quotes. 11336 sed -n \ 11337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11338 ;; 11339 esac; 11340} | 11341 sed ' 11342 t clear 11343 : clear 11344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11345 t end 11346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11347 : end' >>confcache 11348if diff $cache_file confcache >/dev/null 2>&1; then :; else 11349 if test -w $cache_file; then 11350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11351 cat confcache >$cache_file 11352 else 11353 echo "not updating unwritable cache $cache_file" 11354 fi 11355fi 11356rm -f confcache 11357 11358test "x$prefix" = xNONE && prefix=$ac_default_prefix 11359# Let make expand exec_prefix. 11360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11361 11362# VPATH may cause trouble with some makes, so we remove $(srcdir), 11363# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11364# trailing colons and then remove the whole line if VPATH becomes empty 11365# (actually we leave an empty line to preserve line numbers). 11366if test "x$srcdir" = x.; then 11367 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11368s/:*\$(srcdir):*/:/; 11369s/:*\${srcdir}:*/:/; 11370s/:*@srcdir@:*/:/; 11371s/^\([^=]*=[ ]*\):*/\1/; 11372s/:*$//; 11373s/^[^=]*=[ ]*$//; 11374}' 11375fi 11376 11377DEFS=-DHAVE_CONFIG_H 11378 11379ac_libobjs= 11380ac_ltlibobjs= 11381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11382 # 1. Remove the extension, and $U if already installed. 11383 ac_i=`echo "$ac_i" | 11384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11385 # 2. Add them. 11386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11388done 11389LIBOBJS=$ac_libobjs 11390 11391LTLIBOBJS=$ac_ltlibobjs 11392 11393 11394DEFS="-DHAVE_TK_CONFIG_H -imacros tkConfig.h" 11395CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11396 11397: ${CONFIG_STATUS=./config.status} 11398ac_clean_files_save=$ac_clean_files 11399ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11400{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11401echo "$as_me: creating $CONFIG_STATUS" >&6;} 11402cat >$CONFIG_STATUS <<_ACEOF 11403#! $SHELL 11404# Generated by $as_me. 11405# Run this file to recreate the current configuration. 11406# Compiler output produced by configure, useful for debugging 11407# configure, is in config.log if it exists. 11408 11409debug=false 11410ac_cs_recheck=false 11411ac_cs_silent=false 11412SHELL=\${CONFIG_SHELL-$SHELL} 11413_ACEOF 11414 11415cat >>$CONFIG_STATUS <<\_ACEOF 11416## --------------------- ## 11417## M4sh Initialization. ## 11418## --------------------- ## 11419 11420# Be Bourne compatible 11421if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11422 emulate sh 11423 NULLCMD=: 11424 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11425 # is contrary to our usage. Disable this feature. 11426 alias -g '${1+"$@"}'='"$@"' 11427elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11428 set -o posix 11429fi 11430DUALCASE=1; export DUALCASE # for MKS sh 11431 11432# Support unset when possible. 11433if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11434 as_unset=unset 11435else 11436 as_unset=false 11437fi 11438 11439 11440# Work around bugs in pre-3.0 UWIN ksh. 11441$as_unset ENV MAIL MAILPATH 11442PS1='$ ' 11443PS2='> ' 11444PS4='+ ' 11445 11446# NLS nuisances. 11447for as_var in \ 11448 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11449 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11450 LC_TELEPHONE LC_TIME 11451do 11452 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11453 eval $as_var=C; export $as_var 11454 else 11455 $as_unset $as_var 11456 fi 11457done 11458 11459# Required to use basename. 11460if expr a : '\(a\)' >/dev/null 2>&1; then 11461 as_expr=expr 11462else 11463 as_expr=false 11464fi 11465 11466if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11467 as_basename=basename 11468else 11469 as_basename=false 11470fi 11471 11472 11473# Name of the executable. 11474as_me=`$as_basename "$0" || 11475$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11476 X"$0" : 'X\(//\)$' \| \ 11477 X"$0" : 'X\(/\)$' \| \ 11478 . : '\(.\)' 2>/dev/null || 11479echo X/"$0" | 11480 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11481 /^X\/\(\/\/\)$/{ s//\1/; q; } 11482 /^X\/\(\/\).*/{ s//\1/; q; } 11483 s/.*/./; q'` 11484 11485 11486# PATH needs CR, and LINENO needs CR and PATH. 11487# Avoid depending upon Character Ranges. 11488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11491as_cr_digits='0123456789' 11492as_cr_alnum=$as_cr_Letters$as_cr_digits 11493 11494# The user is always right. 11495if test "${PATH_SEPARATOR+set}" != set; then 11496 echo "#! /bin/sh" >conf$$.sh 11497 echo "exit 0" >>conf$$.sh 11498 chmod +x conf$$.sh 11499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11500 PATH_SEPARATOR=';' 11501 else 11502 PATH_SEPARATOR=: 11503 fi 11504 rm -f conf$$.sh 11505fi 11506 11507 11508 as_lineno_1=$LINENO 11509 as_lineno_2=$LINENO 11510 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11511 test "x$as_lineno_1" != "x$as_lineno_2" && 11512 test "x$as_lineno_3" = "x$as_lineno_2" || { 11513 # Find who we are. Look in the path if we contain no path at all 11514 # relative or not. 11515 case $0 in 11516 *[\\/]* ) as_myself=$0 ;; 11517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11518for as_dir in $PATH 11519do 11520 IFS=$as_save_IFS 11521 test -z "$as_dir" && as_dir=. 11522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11523done 11524 11525 ;; 11526 esac 11527 # We did not find ourselves, most probably we were run as `sh COMMAND' 11528 # in which case we are not to be found in the path. 11529 if test "x$as_myself" = x; then 11530 as_myself=$0 11531 fi 11532 if test ! -f "$as_myself"; then 11533 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11534echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11535 { (exit 1); exit 1; }; } 11536 fi 11537 case $CONFIG_SHELL in 11538 '') 11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11540for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11541do 11542 IFS=$as_save_IFS 11543 test -z "$as_dir" && as_dir=. 11544 for as_base in sh bash ksh sh5; do 11545 case $as_dir in 11546 /*) 11547 if ("$as_dir/$as_base" -c ' 11548 as_lineno_1=$LINENO 11549 as_lineno_2=$LINENO 11550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11551 test "x$as_lineno_1" != "x$as_lineno_2" && 11552 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11553 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11554 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11555 CONFIG_SHELL=$as_dir/$as_base 11556 export CONFIG_SHELL 11557 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11558 fi;; 11559 esac 11560 done 11561done 11562;; 11563 esac 11564 11565 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11566 # uniformly replaced by the line number. The first 'sed' inserts a 11567 # line-number line before each line; the second 'sed' does the real 11568 # work. The second script uses 'N' to pair each line-number line 11569 # with the numbered line, and appends trailing '-' during 11570 # substitution so that $LINENO is not a special case at line end. 11571 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11572 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11573 sed '=' <$as_myself | 11574 sed ' 11575 N 11576 s,$,-, 11577 : loop 11578 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11579 t loop 11580 s,-$,, 11581 s,^['$as_cr_digits']*\n,, 11582 ' >$as_me.lineno && 11583 chmod +x $as_me.lineno || 11584 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11585echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11586 { (exit 1); exit 1; }; } 11587 11588 # Don't try to exec as it changes $[0], causing all sort of problems 11589 # (the dirname of $[0] is not the place where we might find the 11590 # original and so on. Autoconf is especially sensible to this). 11591 . ./$as_me.lineno 11592 # Exit status is that of the last command. 11593 exit 11594} 11595 11596 11597case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11598 *c*,-n*) ECHO_N= ECHO_C=' 11599' ECHO_T=' ' ;; 11600 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11601 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11602esac 11603 11604if expr a : '\(a\)' >/dev/null 2>&1; then 11605 as_expr=expr 11606else 11607 as_expr=false 11608fi 11609 11610rm -f conf$$ conf$$.exe conf$$.file 11611echo >conf$$.file 11612if ln -s conf$$.file conf$$ 2>/dev/null; then 11613 # We could just check for DJGPP; but this test a) works b) is more generic 11614 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11615 if test -f conf$$.exe; then 11616 # Don't use ln at all; we don't have any links 11617 as_ln_s='cp -p' 11618 else 11619 as_ln_s='ln -s' 11620 fi 11621elif ln conf$$.file conf$$ 2>/dev/null; then 11622 as_ln_s=ln 11623else 11624 as_ln_s='cp -p' 11625fi 11626rm -f conf$$ conf$$.exe conf$$.file 11627 11628if mkdir -p . 2>/dev/null; then 11629 as_mkdir_p=: 11630else 11631 test -d ./-p && rmdir ./-p 11632 as_mkdir_p=false 11633fi 11634 11635as_executable_p="test -f" 11636 11637# Sed expression to map a string onto a valid CPP name. 11638as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11639 11640# Sed expression to map a string onto a valid variable name. 11641as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11642 11643 11644# IFS 11645# We need space, tab and new line, in precisely that order. 11646as_nl=' 11647' 11648IFS=" $as_nl" 11649 11650# CDPATH. 11651$as_unset CDPATH 11652 11653exec 6>&1 11654 11655# Open the log real soon, to keep \$[0] and so on meaningful, and to 11656# report actual input values of CONFIG_FILES etc. instead of their 11657# values after options handling. Logging --version etc. is OK. 11658exec 5>>config.log 11659{ 11660 echo 11661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11662## Running $as_me. ## 11663_ASBOX 11664} >&5 11665cat >&5 <<_CSEOF 11666 11667This file was extended by tk $as_me 8.5, which was 11668generated by GNU Autoconf 2.59. Invocation command line was 11669 11670 CONFIG_FILES = $CONFIG_FILES 11671 CONFIG_HEADERS = $CONFIG_HEADERS 11672 CONFIG_LINKS = $CONFIG_LINKS 11673 CONFIG_COMMANDS = $CONFIG_COMMANDS 11674 $ $0 $@ 11675 11676_CSEOF 11677echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11678echo >&5 11679_ACEOF 11680 11681# Files that config.status was made for. 11682if test -n "$ac_config_files"; then 11683 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11684fi 11685 11686if test -n "$ac_config_headers"; then 11687 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11688fi 11689 11690if test -n "$ac_config_links"; then 11691 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11692fi 11693 11694if test -n "$ac_config_commands"; then 11695 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11696fi 11697 11698cat >>$CONFIG_STATUS <<\_ACEOF 11699 11700ac_cs_usage="\ 11701\`$as_me' instantiates files from templates according to the 11702current configuration. 11703 11704Usage: $0 [OPTIONS] [FILE]... 11705 11706 -h, --help print this help, then exit 11707 -V, --version print version number, then exit 11708 -q, --quiet do not print progress messages 11709 -d, --debug don't remove temporary files 11710 --recheck update $as_me by reconfiguring in the same conditions 11711 --file=FILE[:TEMPLATE] 11712 instantiate the configuration file FILE 11713 --header=FILE[:TEMPLATE] 11714 instantiate the configuration header FILE 11715 11716Configuration files: 11717$config_files 11718 11719Configuration headers: 11720$config_headers 11721 11722Configuration commands: 11723$config_commands 11724 11725Report bugs to <bug-autoconf@gnu.org>." 11726_ACEOF 11727 11728cat >>$CONFIG_STATUS <<_ACEOF 11729ac_cs_version="\\ 11730tk config.status 8.5 11731configured by $0, generated by GNU Autoconf 2.59, 11732 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11733 11734Copyright (C) 2003 Free Software Foundation, Inc. 11735This config.status script is free software; the Free Software Foundation 11736gives unlimited permission to copy, distribute and modify it." 11737srcdir=$srcdir 11738_ACEOF 11739 11740cat >>$CONFIG_STATUS <<\_ACEOF 11741# If no file are specified by the user, then we need to provide default 11742# value. By we need to know if files were specified by the user. 11743ac_need_defaults=: 11744while test $# != 0 11745do 11746 case $1 in 11747 --*=*) 11748 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11749 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11750 ac_shift=: 11751 ;; 11752 -*) 11753 ac_option=$1 11754 ac_optarg=$2 11755 ac_shift=shift 11756 ;; 11757 *) # This is not an option, so the user has probably given explicit 11758 # arguments. 11759 ac_option=$1 11760 ac_need_defaults=false;; 11761 esac 11762 11763 case $ac_option in 11764 # Handling of the options. 11765_ACEOF 11766cat >>$CONFIG_STATUS <<\_ACEOF 11767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11768 ac_cs_recheck=: ;; 11769 --version | --vers* | -V ) 11770 echo "$ac_cs_version"; exit 0 ;; 11771 --he | --h) 11772 # Conflict between --help and --header 11773 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11774Try \`$0 --help' for more information." >&5 11775echo "$as_me: error: ambiguous option: $1 11776Try \`$0 --help' for more information." >&2;} 11777 { (exit 1); exit 1; }; };; 11778 --help | --hel | -h ) 11779 echo "$ac_cs_usage"; exit 0 ;; 11780 --debug | --d* | -d ) 11781 debug=: ;; 11782 --file | --fil | --fi | --f ) 11783 $ac_shift 11784 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11785 ac_need_defaults=false;; 11786 --header | --heade | --head | --hea ) 11787 $ac_shift 11788 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11789 ac_need_defaults=false;; 11790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11791 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11792 ac_cs_silent=: ;; 11793 11794 # This is an error. 11795 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11796Try \`$0 --help' for more information." >&5 11797echo "$as_me: error: unrecognized option: $1 11798Try \`$0 --help' for more information." >&2;} 11799 { (exit 1); exit 1; }; } ;; 11800 11801 *) ac_config_targets="$ac_config_targets $1" ;; 11802 11803 esac 11804 shift 11805done 11806 11807ac_configure_extra_args= 11808 11809if $ac_cs_silent; then 11810 exec 6>/dev/null 11811 ac_configure_extra_args="$ac_configure_extra_args --silent" 11812fi 11813 11814_ACEOF 11815cat >>$CONFIG_STATUS <<_ACEOF 11816if \$ac_cs_recheck; then 11817 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11818 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11819fi 11820 11821_ACEOF 11822 11823cat >>$CONFIG_STATUS <<_ACEOF 11824# 11825# INIT-COMMANDS section. 11826# 11827 11828VERSION=${TK_VERSION} && tk_aqua=${tk_aqua} 11829 11830_ACEOF 11831 11832 11833 11834cat >>$CONFIG_STATUS <<\_ACEOF 11835for ac_config_target in $ac_config_targets 11836do 11837 case "$ac_config_target" in 11838 # Handling of arguments. 11839 "Tk-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Tk-Info.plist:../macosx/Tk-Info.plist.in" ;; 11840 "Wish-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Wish-Info.plist:../macosx/Wish-Info.plist.in" ;; 11841 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;; 11842 "tkConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tkConfig.sh:../unix/tkConfig.sh.in" ;; 11843 "Tk.framework" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Tk.framework" ;; 11844 "tkConfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS tkConfig.h:../unix/tkConfig.h.in" ;; 11845 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11846echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11847 { (exit 1); exit 1; }; };; 11848 esac 11849done 11850 11851# If the user did not use the arguments to specify the items to instantiate, 11852# then the envvar interface is used. Set only those that are not. 11853# We use the long form for the default assignment because of an extremely 11854# bizarre bug on SunOS 4.1.3. 11855if $ac_need_defaults; then 11856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11859fi 11860 11861# Have a temporary directory for convenience. Make it in the build tree 11862# simply because there is no reason to put it here, and in addition, 11863# creating and moving files from /tmp can sometimes cause problems. 11864# Create a temporary directory, and hook for its removal unless debugging. 11865$debug || 11866{ 11867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11868 trap '{ (exit 1); exit 1; }' 1 2 13 15 11869} 11870 11871# Create a (secure) tmp directory for tmp files. 11872 11873{ 11874 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11875 test -n "$tmp" && test -d "$tmp" 11876} || 11877{ 11878 tmp=./confstat$$-$RANDOM 11879 (umask 077 && mkdir $tmp) 11880} || 11881{ 11882 echo "$me: cannot create a temporary directory in ." >&2 11883 { (exit 1); exit 1; } 11884} 11885 11886_ACEOF 11887 11888cat >>$CONFIG_STATUS <<_ACEOF 11889 11890# 11891# CONFIG_FILES section. 11892# 11893 11894# No need to generate the scripts if there are no CONFIG_FILES. 11895# This happens for instance when ./config.status config.h 11896if test -n "\$CONFIG_FILES"; then 11897 # Protect against being on the right side of a sed subst in config.status. 11898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11900s,@SHELL@,$SHELL,;t t 11901s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11902s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11903s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11904s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11905s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11906s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11907s,@exec_prefix@,$exec_prefix,;t t 11908s,@prefix@,$prefix,;t t 11909s,@program_transform_name@,$program_transform_name,;t t 11910s,@bindir@,$bindir,;t t 11911s,@sbindir@,$sbindir,;t t 11912s,@libexecdir@,$libexecdir,;t t 11913s,@datadir@,$datadir,;t t 11914s,@sysconfdir@,$sysconfdir,;t t 11915s,@sharedstatedir@,$sharedstatedir,;t t 11916s,@localstatedir@,$localstatedir,;t t 11917s,@libdir@,$libdir,;t t 11918s,@includedir@,$includedir,;t t 11919s,@oldincludedir@,$oldincludedir,;t t 11920s,@infodir@,$infodir,;t t 11921s,@mandir@,$mandir,;t t 11922s,@build_alias@,$build_alias,;t t 11923s,@host_alias@,$host_alias,;t t 11924s,@target_alias@,$target_alias,;t t 11925s,@DEFS@,$DEFS,;t t 11926s,@ECHO_C@,$ECHO_C,;t t 11927s,@ECHO_N@,$ECHO_N,;t t 11928s,@ECHO_T@,$ECHO_T,;t t 11929s,@LIBS@,$LIBS,;t t 11930s,@TCL_VERSION@,$TCL_VERSION,;t t 11931s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t 11932s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 11933s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 11934s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 11935s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 11936s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 11937s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 11938s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 11939s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 11940s,@TCLSH_PROG@,$TCLSH_PROG,;t t 11941s,@BUILD_TCLSH@,$BUILD_TCLSH,;t t 11942s,@MAN_FLAGS@,$MAN_FLAGS,;t t 11943s,@CC@,$CC,;t t 11944s,@CFLAGS@,$CFLAGS,;t t 11945s,@LDFLAGS@,$LDFLAGS,;t t 11946s,@CPPFLAGS@,$CPPFLAGS,;t t 11947s,@ac_ct_CC@,$ac_ct_CC,;t t 11948s,@EXEEXT@,$EXEEXT,;t t 11949s,@OBJEXT@,$OBJEXT,;t t 11950s,@CPP@,$CPP,;t t 11951s,@EGREP@,$EGREP,;t t 11952s,@TCL_THREADS@,$TCL_THREADS,;t t 11953s,@RANLIB@,$RANLIB,;t t 11954s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11955s,@AR@,$AR,;t t 11956s,@TCL_LIBS@,$TCL_LIBS,;t t 11957s,@DL_LIBS@,$DL_LIBS,;t t 11958s,@DL_OBJS@,$DL_OBJS,;t t 11959s,@PLAT_OBJS@,$PLAT_OBJS,;t t 11960s,@PLAT_SRCS@,$PLAT_SRCS,;t t 11961s,@LDAIX_SRC@,$LDAIX_SRC,;t t 11962s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 11963s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 11964s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 11965s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t 11966s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t 11967s,@CC_SEARCH_FLAGS@,$CC_SEARCH_FLAGS,;t t 11968s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t 11969s,@STLIB_LD@,$STLIB_LD,;t t 11970s,@SHLIB_LD@,$SHLIB_LD,;t t 11971s,@TCL_SHLIB_LD_EXTRAS@,$TCL_SHLIB_LD_EXTRAS,;t t 11972s,@TK_SHLIB_LD_EXTRAS@,$TK_SHLIB_LD_EXTRAS,;t t 11973s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 11974s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 11975s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t 11976s,@MAKE_LIB@,$MAKE_LIB,;t t 11977s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 11978s,@INSTALL_LIB@,$INSTALL_LIB,;t t 11979s,@INSTALL_STUB_LIB@,$INSTALL_STUB_LIB,;t t 11980s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 11981s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 11982s,@LIBOBJS@,$LIBOBJS,;t t 11983s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t 11984s,@XFT_LIBS@,$XFT_LIBS,;t t 11985s,@UNIX_FONT_OBJS@,$UNIX_FONT_OBJS,;t t 11986s,@TK_VERSION@,$TK_VERSION,;t t 11987s,@TK_MAJOR_VERSION@,$TK_MAJOR_VERSION,;t t 11988s,@TK_MINOR_VERSION@,$TK_MINOR_VERSION,;t t 11989s,@TK_PATCH_LEVEL@,$TK_PATCH_LEVEL,;t t 11990s,@TK_YEAR@,$TK_YEAR,;t t 11991s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t 11992s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t 11993s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 11994s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t 11995s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t 11996s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t 11997s,@TK_STUB_LIB_PATH@,$TK_STUB_LIB_PATH,;t t 11998s,@TK_INCLUDE_SPEC@,$TK_INCLUDE_SPEC,;t t 11999s,@TK_BUILD_STUB_LIB_SPEC@,$TK_BUILD_STUB_LIB_SPEC,;t t 12000s,@TK_BUILD_STUB_LIB_PATH@,$TK_BUILD_STUB_LIB_PATH,;t t 12001s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t 12002s,@TK_SHARED_BUILD@,$TK_SHARED_BUILD,;t t 12003s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t 12004s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t 12005s,@TCL_STUB_FLAGS@,$TCL_STUB_FLAGS,;t t 12006s,@XINCLUDES@,$XINCLUDES,;t t 12007s,@XLIBSW@,$XLIBSW,;t t 12008s,@LOCALES@,$LOCALES,;t t 12009s,@TK_WINDOWINGSYSTEM@,$TK_WINDOWINGSYSTEM,;t t 12010s,@TK_PKG_DIR@,$TK_PKG_DIR,;t t 12011s,@TK_LIBRARY@,$TK_LIBRARY,;t t 12012s,@PRIVATE_INCLUDE_DIR@,$PRIVATE_INCLUDE_DIR,;t t 12013s,@HTML_DIR@,$HTML_DIR,;t t 12014s,@EXTRA_CC_SWITCHES@,$EXTRA_CC_SWITCHES,;t t 12015s,@EXTRA_APP_CC_SWITCHES@,$EXTRA_APP_CC_SWITCHES,;t t 12016s,@EXTRA_INSTALL@,$EXTRA_INSTALL,;t t 12017s,@EXTRA_INSTALL_BINARIES@,$EXTRA_INSTALL_BINARIES,;t t 12018s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;t t 12019s,@EXTRA_WISH_LIBS@,$EXTRA_WISH_LIBS,;t t 12020s,@CFBUNDLELOCALIZATIONS@,$CFBUNDLELOCALIZATIONS,;t t 12021s,@TK_RSRC_FILE@,$TK_RSRC_FILE,;t t 12022s,@WISH_RSRC_FILE@,$WISH_RSRC_FILE,;t t 12023s,@LIB_RSRC_FILE@,$LIB_RSRC_FILE,;t t 12024s,@APP_RSRC_FILE@,$APP_RSRC_FILE,;t t 12025s,@REZ@,$REZ,;t t 12026s,@REZ_FLAGS@,$REZ_FLAGS,;t t 12027s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12028CEOF 12029 12030_ACEOF 12031 12032 cat >>$CONFIG_STATUS <<\_ACEOF 12033 # Split the substitutions into bite-sized pieces for seds with 12034 # small command number limits, like on Digital OSF/1 and HP-UX. 12035 ac_max_sed_lines=48 12036 ac_sed_frag=1 # Number of current file. 12037 ac_beg=1 # First line for current file. 12038 ac_end=$ac_max_sed_lines # Line after last line for current file. 12039 ac_more_lines=: 12040 ac_sed_cmds= 12041 while $ac_more_lines; do 12042 if test $ac_beg -gt 1; then 12043 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12044 else 12045 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12046 fi 12047 if test ! -s $tmp/subs.frag; then 12048 ac_more_lines=false 12049 else 12050 # The purpose of the label and of the branching condition is to 12051 # speed up the sed processing (if there are no `@' at all, there 12052 # is no need to browse any of the substitutions). 12053 # These are the two extra sed commands mentioned above. 12054 (echo ':t 12055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12056 if test -z "$ac_sed_cmds"; then 12057 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12058 else 12059 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12060 fi 12061 ac_sed_frag=`expr $ac_sed_frag + 1` 12062 ac_beg=$ac_end 12063 ac_end=`expr $ac_end + $ac_max_sed_lines` 12064 fi 12065 done 12066 if test -z "$ac_sed_cmds"; then 12067 ac_sed_cmds=cat 12068 fi 12069fi # test -n "$CONFIG_FILES" 12070 12071_ACEOF 12072cat >>$CONFIG_STATUS <<\_ACEOF 12073for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12075 case $ac_file in 12076 - | *:- | *:-:* ) # input from stdin 12077 cat >$tmp/stdin 12078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12082 * ) ac_file_in=$ac_file.in ;; 12083 esac 12084 12085 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12086 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12088 X"$ac_file" : 'X\(//\)[^/]' \| \ 12089 X"$ac_file" : 'X\(//\)$' \| \ 12090 X"$ac_file" : 'X\(/\)' \| \ 12091 . : '\(.\)' 2>/dev/null || 12092echo X"$ac_file" | 12093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12094 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12095 /^X\(\/\/\)$/{ s//\1/; q; } 12096 /^X\(\/\).*/{ s//\1/; q; } 12097 s/.*/./; q'` 12098 { if $as_mkdir_p; then 12099 mkdir -p "$ac_dir" 12100 else 12101 as_dir="$ac_dir" 12102 as_dirs= 12103 while test ! -d "$as_dir"; do 12104 as_dirs="$as_dir $as_dirs" 12105 as_dir=`(dirname "$as_dir") 2>/dev/null || 12106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12107 X"$as_dir" : 'X\(//\)[^/]' \| \ 12108 X"$as_dir" : 'X\(//\)$' \| \ 12109 X"$as_dir" : 'X\(/\)' \| \ 12110 . : '\(.\)' 2>/dev/null || 12111echo X"$as_dir" | 12112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12113 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12114 /^X\(\/\/\)$/{ s//\1/; q; } 12115 /^X\(\/\).*/{ s//\1/; q; } 12116 s/.*/./; q'` 12117 done 12118 test ! -n "$as_dirs" || mkdir $as_dirs 12119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12120echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12121 { (exit 1); exit 1; }; }; } 12122 12123 ac_builddir=. 12124 12125if test "$ac_dir" != .; then 12126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12127 # A "../" for each directory in $ac_dir_suffix. 12128 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12129else 12130 ac_dir_suffix= ac_top_builddir= 12131fi 12132 12133case $srcdir in 12134 .) # No --srcdir option. We are building in place. 12135 ac_srcdir=. 12136 if test -z "$ac_top_builddir"; then 12137 ac_top_srcdir=. 12138 else 12139 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12140 fi ;; 12141 [\\/]* | ?:[\\/]* ) # Absolute path. 12142 ac_srcdir=$srcdir$ac_dir_suffix; 12143 ac_top_srcdir=$srcdir ;; 12144 *) # Relative path. 12145 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12146 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12147esac 12148 12149# Do not use `cd foo && pwd` to compute absolute paths, because 12150# the directories may not exist. 12151case `pwd` in 12152.) ac_abs_builddir="$ac_dir";; 12153*) 12154 case "$ac_dir" in 12155 .) ac_abs_builddir=`pwd`;; 12156 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12157 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12158 esac;; 12159esac 12160case $ac_abs_builddir in 12161.) ac_abs_top_builddir=${ac_top_builddir}.;; 12162*) 12163 case ${ac_top_builddir}. in 12164 .) ac_abs_top_builddir=$ac_abs_builddir;; 12165 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12166 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12167 esac;; 12168esac 12169case $ac_abs_builddir in 12170.) ac_abs_srcdir=$ac_srcdir;; 12171*) 12172 case $ac_srcdir in 12173 .) ac_abs_srcdir=$ac_abs_builddir;; 12174 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12175 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12176 esac;; 12177esac 12178case $ac_abs_builddir in 12179.) ac_abs_top_srcdir=$ac_top_srcdir;; 12180*) 12181 case $ac_top_srcdir in 12182 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12183 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12184 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12185 esac;; 12186esac 12187 12188 12189 12190 if test x"$ac_file" != x-; then 12191 { echo "$as_me:$LINENO: creating $ac_file" >&5 12192echo "$as_me: creating $ac_file" >&6;} 12193 rm -f "$ac_file" 12194 fi 12195 # Let's still pretend it is `configure' which instantiates (i.e., don't 12196 # use $as_me), people would be surprised to read: 12197 # /* config.h. Generated by config.status. */ 12198 if test x"$ac_file" = x-; then 12199 configure_input= 12200 else 12201 configure_input="$ac_file. " 12202 fi 12203 configure_input=$configure_input"Generated from `echo $ac_file_in | 12204 sed 's,.*/,,'` by configure." 12205 12206 # First look for the input files in the build tree, otherwise in the 12207 # src tree. 12208 ac_file_inputs=`IFS=: 12209 for f in $ac_file_in; do 12210 case $f in 12211 -) echo $tmp/stdin ;; 12212 [\\/$]*) 12213 # Absolute (can't be DOS-style, as IFS=:) 12214 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12215echo "$as_me: error: cannot find input file: $f" >&2;} 12216 { (exit 1); exit 1; }; } 12217 echo "$f";; 12218 *) # Relative 12219 if test -f "$f"; then 12220 # Build tree 12221 echo "$f" 12222 elif test -f "$srcdir/$f"; then 12223 # Source tree 12224 echo "$srcdir/$f" 12225 else 12226 # /dev/null tree 12227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12228echo "$as_me: error: cannot find input file: $f" >&2;} 12229 { (exit 1); exit 1; }; } 12230 fi;; 12231 esac 12232 done` || { (exit 1); exit 1; } 12233_ACEOF 12234cat >>$CONFIG_STATUS <<_ACEOF 12235 sed "$ac_vpsub 12236$extrasub 12237_ACEOF 12238cat >>$CONFIG_STATUS <<\_ACEOF 12239:t 12240/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12241s,@configure_input@,$configure_input,;t t 12242s,@srcdir@,$ac_srcdir,;t t 12243s,@abs_srcdir@,$ac_abs_srcdir,;t t 12244s,@top_srcdir@,$ac_top_srcdir,;t t 12245s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12246s,@builddir@,$ac_builddir,;t t 12247s,@abs_builddir@,$ac_abs_builddir,;t t 12248s,@top_builddir@,$ac_top_builddir,;t t 12249s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12250" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12251 rm -f $tmp/stdin 12252 if test x"$ac_file" != x-; then 12253 mv $tmp/out $ac_file 12254 else 12255 cat $tmp/out 12256 rm -f $tmp/out 12257 fi 12258 12259done 12260_ACEOF 12261cat >>$CONFIG_STATUS <<\_ACEOF 12262 12263# 12264# CONFIG_HEADER section. 12265# 12266 12267# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12268# NAME is the cpp macro being defined and VALUE is the value it is being given. 12269# 12270# ac_d sets the value in "#define NAME VALUE" lines. 12271ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12272ac_dB='[ ].*$,\1#\2' 12273ac_dC=' ' 12274ac_dD=',;t' 12275# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12276ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12277ac_uB='$,\1#\2define\3' 12278ac_uC=' ' 12279ac_uD=',;t' 12280 12281for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 12282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12283 case $ac_file in 12284 - | *:- | *:-:* ) # input from stdin 12285 cat >$tmp/stdin 12286 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12287 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12288 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12290 * ) ac_file_in=$ac_file.in ;; 12291 esac 12292 12293 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12294echo "$as_me: creating $ac_file" >&6;} 12295 12296 # First look for the input files in the build tree, otherwise in the 12297 # src tree. 12298 ac_file_inputs=`IFS=: 12299 for f in $ac_file_in; do 12300 case $f in 12301 -) echo $tmp/stdin ;; 12302 [\\/$]*) 12303 # Absolute (can't be DOS-style, as IFS=:) 12304 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12305echo "$as_me: error: cannot find input file: $f" >&2;} 12306 { (exit 1); exit 1; }; } 12307 # Do quote $f, to prevent DOS paths from being IFS'd. 12308 echo "$f";; 12309 *) # Relative 12310 if test -f "$f"; then 12311 # Build tree 12312 echo "$f" 12313 elif test -f "$srcdir/$f"; then 12314 # Source tree 12315 echo "$srcdir/$f" 12316 else 12317 # /dev/null tree 12318 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12319echo "$as_me: error: cannot find input file: $f" >&2;} 12320 { (exit 1); exit 1; }; } 12321 fi;; 12322 esac 12323 done` || { (exit 1); exit 1; } 12324 # Remove the trailing spaces. 12325 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12326 12327_ACEOF 12328 12329# Transform confdefs.h into two sed scripts, `conftest.defines' and 12330# `conftest.undefs', that substitutes the proper values into 12331# config.h.in to produce config.h. The first handles `#define' 12332# templates, and the second `#undef' templates. 12333# And first: Protect against being on the right side of a sed subst in 12334# config.status. Protect against being in an unquoted here document 12335# in config.status. 12336rm -f conftest.defines conftest.undefs 12337# Using a here document instead of a string reduces the quoting nightmare. 12338# Putting comments in sed scripts is not portable. 12339# 12340# `end' is used to avoid that the second main sed command (meant for 12341# 0-ary CPP macros) applies to n-ary macro definitions. 12342# See the Autoconf documentation for `clear'. 12343cat >confdef2sed.sed <<\_ACEOF 12344s/[\\&,]/\\&/g 12345s,[\\$`],\\&,g 12346t clear 12347: clear 12348s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12349t end 12350s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12351: end 12352_ACEOF 12353# If some macros were called several times there might be several times 12354# the same #defines, which is useless. Nevertheless, we may not want to 12355# sort them, since we want the *last* AC-DEFINE to be honored. 12356uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12357sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12358rm -f confdef2sed.sed 12359 12360# This sed command replaces #undef with comments. This is necessary, for 12361# example, in the case of _POSIX_SOURCE, which is predefined and required 12362# on some systems where configure will not decide to define it. 12363cat >>conftest.undefs <<\_ACEOF 12364s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12365_ACEOF 12366 12367# Break up conftest.defines because some shells have a limit on the size 12368# of here documents, and old seds have small limits too (100 cmds). 12369echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12370echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12371echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12372echo ' :' >>$CONFIG_STATUS 12373rm -f conftest.tail 12374while grep . conftest.defines >/dev/null 12375do 12376 # Write a limited-size here document to $tmp/defines.sed. 12377 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12378 # Speed up: don't consider the non `#define' lines. 12379 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12380 # Work around the forget-to-reset-the-flag bug. 12381 echo 't clr' >>$CONFIG_STATUS 12382 echo ': clr' >>$CONFIG_STATUS 12383 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12384 echo 'CEOF 12385 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12386 rm -f $tmp/in 12387 mv $tmp/out $tmp/in 12388' >>$CONFIG_STATUS 12389 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12390 rm -f conftest.defines 12391 mv conftest.tail conftest.defines 12392done 12393rm -f conftest.defines 12394echo ' fi # grep' >>$CONFIG_STATUS 12395echo >>$CONFIG_STATUS 12396 12397# Break up conftest.undefs because some shells have a limit on the size 12398# of here documents, and old seds have small limits too (100 cmds). 12399echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12400rm -f conftest.tail 12401while grep . conftest.undefs >/dev/null 12402do 12403 # Write a limited-size here document to $tmp/undefs.sed. 12404 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12405 # Speed up: don't consider the non `#undef' 12406 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12407 # Work around the forget-to-reset-the-flag bug. 12408 echo 't clr' >>$CONFIG_STATUS 12409 echo ': clr' >>$CONFIG_STATUS 12410 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12411 echo 'CEOF 12412 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12413 rm -f $tmp/in 12414 mv $tmp/out $tmp/in 12415' >>$CONFIG_STATUS 12416 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12417 rm -f conftest.undefs 12418 mv conftest.tail conftest.undefs 12419done 12420rm -f conftest.undefs 12421 12422cat >>$CONFIG_STATUS <<\_ACEOF 12423 # Let's still pretend it is `configure' which instantiates (i.e., don't 12424 # use $as_me), people would be surprised to read: 12425 # /* config.h. Generated by config.status. */ 12426 if test x"$ac_file" = x-; then 12427 echo "/* Generated by configure. */" >$tmp/config.h 12428 else 12429 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12430 fi 12431 cat $tmp/in >>$tmp/config.h 12432 rm -f $tmp/in 12433 if test x"$ac_file" != x-; then 12434 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12436echo "$as_me: $ac_file is unchanged" >&6;} 12437 else 12438 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12439$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12440 X"$ac_file" : 'X\(//\)[^/]' \| \ 12441 X"$ac_file" : 'X\(//\)$' \| \ 12442 X"$ac_file" : 'X\(/\)' \| \ 12443 . : '\(.\)' 2>/dev/null || 12444echo X"$ac_file" | 12445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12446 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12447 /^X\(\/\/\)$/{ s//\1/; q; } 12448 /^X\(\/\).*/{ s//\1/; q; } 12449 s/.*/./; q'` 12450 { if $as_mkdir_p; then 12451 mkdir -p "$ac_dir" 12452 else 12453 as_dir="$ac_dir" 12454 as_dirs= 12455 while test ! -d "$as_dir"; do 12456 as_dirs="$as_dir $as_dirs" 12457 as_dir=`(dirname "$as_dir") 2>/dev/null || 12458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12459 X"$as_dir" : 'X\(//\)[^/]' \| \ 12460 X"$as_dir" : 'X\(//\)$' \| \ 12461 X"$as_dir" : 'X\(/\)' \| \ 12462 . : '\(.\)' 2>/dev/null || 12463echo X"$as_dir" | 12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12465 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12466 /^X\(\/\/\)$/{ s//\1/; q; } 12467 /^X\(\/\).*/{ s//\1/; q; } 12468 s/.*/./; q'` 12469 done 12470 test ! -n "$as_dirs" || mkdir $as_dirs 12471 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12472echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12473 { (exit 1); exit 1; }; }; } 12474 12475 rm -f $ac_file 12476 mv $tmp/config.h $ac_file 12477 fi 12478 else 12479 cat $tmp/config.h 12480 rm -f $tmp/config.h 12481 fi 12482done 12483_ACEOF 12484cat >>$CONFIG_STATUS <<\_ACEOF 12485 12486# 12487# CONFIG_COMMANDS section. 12488# 12489for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12490 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12491 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12492 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12493$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12494 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12495 X"$ac_dest" : 'X\(//\)$' \| \ 12496 X"$ac_dest" : 'X\(/\)' \| \ 12497 . : '\(.\)' 2>/dev/null || 12498echo X"$ac_dest" | 12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12500 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12501 /^X\(\/\/\)$/{ s//\1/; q; } 12502 /^X\(\/\).*/{ s//\1/; q; } 12503 s/.*/./; q'` 12504 { if $as_mkdir_p; then 12505 mkdir -p "$ac_dir" 12506 else 12507 as_dir="$ac_dir" 12508 as_dirs= 12509 while test ! -d "$as_dir"; do 12510 as_dirs="$as_dir $as_dirs" 12511 as_dir=`(dirname "$as_dir") 2>/dev/null || 12512$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12513 X"$as_dir" : 'X\(//\)[^/]' \| \ 12514 X"$as_dir" : 'X\(//\)$' \| \ 12515 X"$as_dir" : 'X\(/\)' \| \ 12516 . : '\(.\)' 2>/dev/null || 12517echo X"$as_dir" | 12518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12519 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12520 /^X\(\/\/\)$/{ s//\1/; q; } 12521 /^X\(\/\).*/{ s//\1/; q; } 12522 s/.*/./; q'` 12523 done 12524 test ! -n "$as_dirs" || mkdir $as_dirs 12525 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12526echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12527 { (exit 1); exit 1; }; }; } 12528 12529 ac_builddir=. 12530 12531if test "$ac_dir" != .; then 12532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12533 # A "../" for each directory in $ac_dir_suffix. 12534 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12535else 12536 ac_dir_suffix= ac_top_builddir= 12537fi 12538 12539case $srcdir in 12540 .) # No --srcdir option. We are building in place. 12541 ac_srcdir=. 12542 if test -z "$ac_top_builddir"; then 12543 ac_top_srcdir=. 12544 else 12545 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12546 fi ;; 12547 [\\/]* | ?:[\\/]* ) # Absolute path. 12548 ac_srcdir=$srcdir$ac_dir_suffix; 12549 ac_top_srcdir=$srcdir ;; 12550 *) # Relative path. 12551 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12552 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12553esac 12554 12555# Do not use `cd foo && pwd` to compute absolute paths, because 12556# the directories may not exist. 12557case `pwd` in 12558.) ac_abs_builddir="$ac_dir";; 12559*) 12560 case "$ac_dir" in 12561 .) ac_abs_builddir=`pwd`;; 12562 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12563 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12564 esac;; 12565esac 12566case $ac_abs_builddir in 12567.) ac_abs_top_builddir=${ac_top_builddir}.;; 12568*) 12569 case ${ac_top_builddir}. in 12570 .) ac_abs_top_builddir=$ac_abs_builddir;; 12571 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12572 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12573 esac;; 12574esac 12575case $ac_abs_builddir in 12576.) ac_abs_srcdir=$ac_srcdir;; 12577*) 12578 case $ac_srcdir in 12579 .) ac_abs_srcdir=$ac_abs_builddir;; 12580 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12581 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12582 esac;; 12583esac 12584case $ac_abs_builddir in 12585.) ac_abs_top_srcdir=$ac_top_srcdir;; 12586*) 12587 case $ac_top_srcdir in 12588 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12589 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12590 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12591 esac;; 12592esac 12593 12594 12595 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12596echo "$as_me: executing $ac_dest commands" >&6;} 12597 case $ac_dest in 12598 Tk.framework ) n=Tk && 12599 f=$n.framework && v=Versions/$VERSION && 12600 rm -rf $f && mkdir -p $f/$v/Resources && 12601 ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v && 12602 ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist && 12603 if test $tk_aqua = yes; then ln -s ../../../../$n.rsrc $f/$v/Resources; fi && 12604 unset n f v 12605 ;; 12606 esac 12607done 12608_ACEOF 12609 12610cat >>$CONFIG_STATUS <<\_ACEOF 12611 12612{ (exit 0); exit 0; } 12613_ACEOF 12614chmod +x $CONFIG_STATUS 12615ac_clean_files=$ac_clean_files_save 12616 12617 12618# configure is writing to config.log, and then calls config.status. 12619# config.status does its own redirection, appending to config.log. 12620# Unfortunately, on DOS this fails, as config.log is still kept open 12621# by configure, so config.status won't be able to write to it; its 12622# output is simply discarded. So we exec the FD to /dev/null, 12623# effectively closing config.log, so it can be properly (re)opened and 12624# appended to by config.status. When coming back to configure, we 12625# need to make the FD available again. 12626if test "$no_create" != yes; then 12627 ac_cs_success=: 12628 ac_config_status_args= 12629 test "$silent" = yes && 12630 ac_config_status_args="$ac_config_status_args --quiet" 12631 exec 5>/dev/null 12632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12633 exec 5>>config.log 12634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12635 # would make configure fail if this is the last instruction. 12636 $ac_cs_success || { (exit 1); exit 1; } 12637fi 12638 12639 12640