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_LIB_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 1338TK_VERSION=8.5 1339TK_MAJOR_VERSION=8 1340TK_MINOR_VERSION=5 1341TK_PATCH_LEVEL=".9" 1342VERSION=${TK_VERSION} 1343LOCALES="cs da de el en en_gb eo es fr hu it nl pl pt ru sv" 1344 1345#-------------------------------------------------------------------- 1346# Find and load the tclConfig.sh file 1347#-------------------------------------------------------------------- 1348 1349 1350 # 1351 # Ok, lets find the tcl configuration 1352 # First, look for one uninstalled. 1353 # the alternative search directory is invoked by --with-tcl 1354 # 1355 1356 if test x"${no_tcl}" = x ; then 1357 # we reset no_tcl in case something fails here 1358 no_tcl=true 1359 1360# Check whether --with-tcl or --without-tcl was given. 1361if test "${with_tcl+set}" = set; then 1362 withval="$with_tcl" 1363 with_tclconfig="${withval}" 1364fi; 1365 echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1366echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 1367 if test "${ac_cv_c_tclconfig+set}" = set; then 1368 echo $ECHO_N "(cached) $ECHO_C" >&6 1369else 1370 1371 1372 # First check to see if --with-tcl was specified. 1373 if test x"${with_tclconfig}" != x ; then 1374 case "${with_tclconfig}" in 1375 */tclConfig.sh ) 1376 if test -f "${with_tclconfig}"; then 1377 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1378echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1379 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1380 fi ;; 1381 esac 1382 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1383 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1384 else 1385 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1386echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1387 { (exit 1); exit 1; }; } 1388 fi 1389 fi 1390 1391 # then check for a private Tcl installation 1392 if test x"${ac_cv_c_tclconfig}" = x ; then 1393 for i in \ 1394 ../tcl \ 1395 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1396 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1397 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1398 ../../tcl \ 1399 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1400 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1401 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 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` ; do 1406 if test -f "$i/unix/tclConfig.sh" ; then 1407 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1408 break 1409 fi 1410 done 1411 fi 1412 1413 # on Darwin, check in Framework installation locations 1414 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1415 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1416 `ls -d /Library/Frameworks 2>/dev/null` \ 1417 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1418 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1419 ; do 1420 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1421 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1422 break 1423 fi 1424 done 1425 fi 1426 1427 # check in a few common install locations 1428 if test x"${ac_cv_c_tclconfig}" = x ; then 1429 for i in `ls -d ${libdir} 2>/dev/null` \ 1430 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 1431 `ls -d ${prefix}/lib 2>/dev/null` \ 1432 `ls -d /usr/local/lib 2>/dev/null` \ 1433 `ls -d /usr/contrib/lib 2>/dev/null` \ 1434 `ls -d /usr/lib 2>/dev/null` \ 1435 `ls -d /usr/lib64 2>/dev/null` \ 1436 ; do 1437 if test -f "$i/tclConfig.sh" ; then 1438 ac_cv_c_tclconfig="`(cd $i; pwd)`" 1439 break 1440 fi 1441 done 1442 fi 1443 1444 # check in a few other private locations 1445 if test x"${ac_cv_c_tclconfig}" = x ; then 1446 for i in \ 1447 ${srcdir}/../tcl \ 1448 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1449 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 1450 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 1451 if test -f "$i/unix/tclConfig.sh" ; then 1452 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1453 break 1454 fi 1455 done 1456 fi 1457 1458fi 1459 1460 1461 if test x"${ac_cv_c_tclconfig}" = x ; then 1462 TCL_BIN_DIR="# no Tcl configs found" 1463 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 1464echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 1465 exit 0 1466 else 1467 no_tcl= 1468 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 1469 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 1470echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 1471 fi 1472 fi 1473 1474 1475 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 1476echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 1477 1478 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 1479 echo "$as_me:$LINENO: result: loading" >&5 1480echo "${ECHO_T}loading" >&6 1481 . "${TCL_BIN_DIR}/tclConfig.sh" 1482 else 1483 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 1484echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 1485 fi 1486 1487 # eval is required to do the TCL_DBGX substitution 1488 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 1489 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 1490 1491 # If the TCL_BIN_DIR is the build directory (not the install directory), 1492 # then set the common variable name to the value of the build variables. 1493 # For example, the variable TCL_LIB_SPEC will be set to the value 1494 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 1495 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 1496 # installed and uninstalled version of Tcl. 1497 if test -f "${TCL_BIN_DIR}/Makefile" ; then 1498 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 1499 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 1500 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 1501 elif test "`uname -s`" = "Darwin"; then 1502 # If Tcl was built as a framework, attempt to use the libraries 1503 # from the framework at the given location so that linking works 1504 # against Tcl.framework installed in an arbitary location. 1505 case ${TCL_DEFS} in 1506 *TCL_FRAMEWORK*) 1507 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 1508 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 1509 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 1510 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 1511 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 1512 break 1513 fi 1514 done 1515 fi 1516 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 1517 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 1518 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 1519 fi 1520 ;; 1521 esac 1522 fi 1523 1524 # eval is required to do the TCL_DBGX substitution 1525 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 1526 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 1527 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 1528 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 echo "$as_me:$LINENO: checking for tclsh" >&5 1546echo $ECHO_N "checking for tclsh... $ECHO_C" >&6 1547 if test "${ac_cv_path_tclsh+set}" = set; then 1548 echo $ECHO_N "(cached) $ECHO_C" >&6 1549else 1550 1551 search_path=`echo ${PATH} | sed -e 's/:/ /g'` 1552 for dir in $search_path ; do 1553 for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \ 1554 `ls -r $dir/tclsh* 2> /dev/null` ; do 1555 if test x"$ac_cv_path_tclsh" = x ; then 1556 if test -f "$j" ; then 1557 ac_cv_path_tclsh=$j 1558 break 1559 fi 1560 fi 1561 done 1562 done 1563 1564fi 1565 1566 1567 if test -f "$ac_cv_path_tclsh" ; then 1568 TCLSH_PROG="$ac_cv_path_tclsh" 1569 echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5 1570echo "${ECHO_T}$TCLSH_PROG" >&6 1571 else 1572 # It is not an error if an installed version of Tcl can't be located. 1573 TCLSH_PROG="" 1574 echo "$as_me:$LINENO: result: No tclsh found on PATH" >&5 1575echo "${ECHO_T}No tclsh found on PATH" >&6 1576 fi 1577 1578 1579 1580 echo "$as_me:$LINENO: checking for tclsh in Tcl build directory" >&5 1581echo $ECHO_N "checking for tclsh in Tcl build directory... $ECHO_C" >&6 1582 BUILD_TCLSH="${TCL_BIN_DIR}"/tclsh 1583 echo "$as_me:$LINENO: result: $BUILD_TCLSH" >&5 1584echo "${ECHO_T}$BUILD_TCLSH" >&6 1585 1586 1587 1588if test "${TCL_VERSION}" != "${TK_VERSION}"; then 1589 { { echo "$as_me:$LINENO: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. 1590Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}. 1591Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&5 1592echo "$as_me: error: ${TCL_BIN_DIR}/tclConfig.sh is for Tcl ${TCL_VERSION}. 1593Tk ${TK_VERSION}${TK_PATCH_LEVEL} needs Tcl ${TK_VERSION}. 1594Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl ${TK_VERSION}." >&2;} 1595 { (exit 1); exit 1; }; } 1596fi 1597 1598#------------------------------------------------------------------------ 1599# Handle the --prefix=... option 1600#------------------------------------------------------------------------ 1601 1602if test "${prefix}" = "NONE"; then 1603 prefix="$TCL_PREFIX" 1604fi 1605if test "${exec_prefix}" = "NONE"; then 1606 exec_prefix=$prefix 1607fi 1608# Make sure srcdir is fully qualified! 1609srcdir="`cd "$srcdir" ; pwd`" 1610TK_SRC_DIR="`cd "$srcdir"/..; pwd`" 1611 1612#------------------------------------------------------------------------ 1613# Compress and/or soft link the manpages? 1614#------------------------------------------------------------------------ 1615 1616 1617 echo "$as_me:$LINENO: checking whether to use symlinks for manpages" >&5 1618echo $ECHO_N "checking whether to use symlinks for manpages... $ECHO_C" >&6 1619 # Check whether --enable-man-symlinks or --disable-man-symlinks was given. 1620if test "${enable_man_symlinks+set}" = set; then 1621 enableval="$enable_man_symlinks" 1622 test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks" 1623else 1624 enableval="no" 1625fi; 1626 echo "$as_me:$LINENO: result: $enableval" >&5 1627echo "${ECHO_T}$enableval" >&6 1628 1629 echo "$as_me:$LINENO: checking whether to compress the manpages" >&5 1630echo $ECHO_N "checking whether to compress the manpages... $ECHO_C" >&6 1631 # Check whether --enable-man-compression or --disable-man-compression was given. 1632if test "${enable_man_compression+set}" = set; then 1633 enableval="$enable_man_compression" 1634 case $enableval in 1635 yes) { { echo "$as_me:$LINENO: error: missing argument to --enable-man-compression" >&5 1636echo "$as_me: error: missing argument to --enable-man-compression" >&2;} 1637 { (exit 1); exit 1; }; };; 1638 no) ;; 1639 *) MAN_FLAGS="$MAN_FLAGS --compress $enableval";; 1640 esac 1641else 1642 enableval="no" 1643fi; 1644 echo "$as_me:$LINENO: result: $enableval" >&5 1645echo "${ECHO_T}$enableval" >&6 1646 if test "$enableval" != "no"; then 1647 echo "$as_me:$LINENO: checking for compressed file suffix" >&5 1648echo $ECHO_N "checking for compressed file suffix... $ECHO_C" >&6 1649 touch TeST 1650 $enableval TeST 1651 Z=`ls TeST* | sed 's/^....//'` 1652 rm -f TeST* 1653 MAN_FLAGS="$MAN_FLAGS --extension $Z" 1654 echo "$as_me:$LINENO: result: $Z" >&5 1655echo "${ECHO_T}$Z" >&6 1656 fi 1657 1658 echo "$as_me:$LINENO: checking whether to add a package name suffix for the manpages" >&5 1659echo $ECHO_N "checking whether to add a package name suffix for the manpages... $ECHO_C" >&6 1660 # Check whether --enable-man-suffix or --disable-man-suffix was given. 1661if test "${enable_man_suffix+set}" = set; then 1662 enableval="$enable_man_suffix" 1663 case $enableval in 1664 yes) enableval="tk" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 1665 no) ;; 1666 *) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; 1667 esac 1668else 1669 enableval="no" 1670fi; 1671 echo "$as_me:$LINENO: result: $enableval" >&5 1672echo "${ECHO_T}$enableval" >&6 1673 1674 1675 1676 1677#------------------------------------------------------------------------ 1678# Standard compiler checks 1679#------------------------------------------------------------------------ 1680 1681# If the user did not set CFLAGS, set it now to keep 1682# the AC_PROG_CC macro from adding "-g -O2". 1683if test "${CFLAGS+set}" != "set" ; then 1684 CFLAGS="" 1685fi 1686 1687ac_ext=c 1688ac_cpp='$CPP $CPPFLAGS' 1689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1691ac_compiler_gnu=$ac_cv_c_compiler_gnu 1692if test -n "$ac_tool_prefix"; then 1693 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1694set dummy ${ac_tool_prefix}gcc; ac_word=$2 1695echo "$as_me:$LINENO: checking for $ac_word" >&5 1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1697if test "${ac_cv_prog_CC+set}" = set; then 1698 echo $ECHO_N "(cached) $ECHO_C" >&6 1699else 1700 if test -n "$CC"; then 1701 ac_cv_prog_CC="$CC" # Let the user override the test. 1702else 1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1704for as_dir in $PATH 1705do 1706 IFS=$as_save_IFS 1707 test -z "$as_dir" && as_dir=. 1708 for ac_exec_ext in '' $ac_executable_extensions; do 1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1710 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1712 break 2 1713 fi 1714done 1715done 1716 1717fi 1718fi 1719CC=$ac_cv_prog_CC 1720if test -n "$CC"; then 1721 echo "$as_me:$LINENO: result: $CC" >&5 1722echo "${ECHO_T}$CC" >&6 1723else 1724 echo "$as_me:$LINENO: result: no" >&5 1725echo "${ECHO_T}no" >&6 1726fi 1727 1728fi 1729if test -z "$ac_cv_prog_CC"; then 1730 ac_ct_CC=$CC 1731 # Extract the first word of "gcc", so it can be a program name with args. 1732set dummy gcc; ac_word=$2 1733echo "$as_me:$LINENO: checking for $ac_word" >&5 1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1736 echo $ECHO_N "(cached) $ECHO_C" >&6 1737else 1738 if test -n "$ac_ct_CC"; then 1739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1740else 1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1742for as_dir in $PATH 1743do 1744 IFS=$as_save_IFS 1745 test -z "$as_dir" && as_dir=. 1746 for ac_exec_ext in '' $ac_executable_extensions; do 1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1748 ac_cv_prog_ac_ct_CC="gcc" 1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1750 break 2 1751 fi 1752done 1753done 1754 1755fi 1756fi 1757ac_ct_CC=$ac_cv_prog_ac_ct_CC 1758if test -n "$ac_ct_CC"; then 1759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1760echo "${ECHO_T}$ac_ct_CC" >&6 1761else 1762 echo "$as_me:$LINENO: result: no" >&5 1763echo "${ECHO_T}no" >&6 1764fi 1765 1766 CC=$ac_ct_CC 1767else 1768 CC="$ac_cv_prog_CC" 1769fi 1770 1771if test -z "$CC"; then 1772 if test -n "$ac_tool_prefix"; then 1773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1774set dummy ${ac_tool_prefix}cc; ac_word=$2 1775echo "$as_me:$LINENO: checking for $ac_word" >&5 1776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1777if test "${ac_cv_prog_CC+set}" = set; then 1778 echo $ECHO_N "(cached) $ECHO_C" >&6 1779else 1780 if test -n "$CC"; then 1781 ac_cv_prog_CC="$CC" # Let the user override the test. 1782else 1783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1784for as_dir in $PATH 1785do 1786 IFS=$as_save_IFS 1787 test -z "$as_dir" && as_dir=. 1788 for ac_exec_ext in '' $ac_executable_extensions; do 1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1790 ac_cv_prog_CC="${ac_tool_prefix}cc" 1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1792 break 2 1793 fi 1794done 1795done 1796 1797fi 1798fi 1799CC=$ac_cv_prog_CC 1800if test -n "$CC"; then 1801 echo "$as_me:$LINENO: result: $CC" >&5 1802echo "${ECHO_T}$CC" >&6 1803else 1804 echo "$as_me:$LINENO: result: no" >&5 1805echo "${ECHO_T}no" >&6 1806fi 1807 1808fi 1809if test -z "$ac_cv_prog_CC"; then 1810 ac_ct_CC=$CC 1811 # Extract the first word of "cc", so it can be a program name with args. 1812set dummy cc; ac_word=$2 1813echo "$as_me:$LINENO: checking for $ac_word" >&5 1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1816 echo $ECHO_N "(cached) $ECHO_C" >&6 1817else 1818 if test -n "$ac_ct_CC"; then 1819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1820else 1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1822for as_dir in $PATH 1823do 1824 IFS=$as_save_IFS 1825 test -z "$as_dir" && as_dir=. 1826 for ac_exec_ext in '' $ac_executable_extensions; do 1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1828 ac_cv_prog_ac_ct_CC="cc" 1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1830 break 2 1831 fi 1832done 1833done 1834 1835fi 1836fi 1837ac_ct_CC=$ac_cv_prog_ac_ct_CC 1838if test -n "$ac_ct_CC"; then 1839 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1840echo "${ECHO_T}$ac_ct_CC" >&6 1841else 1842 echo "$as_me:$LINENO: result: no" >&5 1843echo "${ECHO_T}no" >&6 1844fi 1845 1846 CC=$ac_ct_CC 1847else 1848 CC="$ac_cv_prog_CC" 1849fi 1850 1851fi 1852if test -z "$CC"; then 1853 # Extract the first word of "cc", so it can be a program name with args. 1854set dummy cc; ac_word=$2 1855echo "$as_me:$LINENO: checking for $ac_word" >&5 1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1857if test "${ac_cv_prog_CC+set}" = set; then 1858 echo $ECHO_N "(cached) $ECHO_C" >&6 1859else 1860 if test -n "$CC"; then 1861 ac_cv_prog_CC="$CC" # Let the user override the test. 1862else 1863 ac_prog_rejected=no 1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1865for as_dir in $PATH 1866do 1867 IFS=$as_save_IFS 1868 test -z "$as_dir" && as_dir=. 1869 for ac_exec_ext in '' $ac_executable_extensions; do 1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1872 ac_prog_rejected=yes 1873 continue 1874 fi 1875 ac_cv_prog_CC="cc" 1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1877 break 2 1878 fi 1879done 1880done 1881 1882if test $ac_prog_rejected = yes; then 1883 # We found a bogon in the path, so make sure we never use it. 1884 set dummy $ac_cv_prog_CC 1885 shift 1886 if test $# != 0; then 1887 # We chose a different compiler from the bogus one. 1888 # However, it has the same basename, so the bogon will be chosen 1889 # first if we set CC to just the basename; use the full file name. 1890 shift 1891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1892 fi 1893fi 1894fi 1895fi 1896CC=$ac_cv_prog_CC 1897if test -n "$CC"; then 1898 echo "$as_me:$LINENO: result: $CC" >&5 1899echo "${ECHO_T}$CC" >&6 1900else 1901 echo "$as_me:$LINENO: result: no" >&5 1902echo "${ECHO_T}no" >&6 1903fi 1904 1905fi 1906if test -z "$CC"; then 1907 if test -n "$ac_tool_prefix"; then 1908 for ac_prog in cl 1909 do 1910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1911set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1912echo "$as_me:$LINENO: checking for $ac_word" >&5 1913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1914if test "${ac_cv_prog_CC+set}" = set; then 1915 echo $ECHO_N "(cached) $ECHO_C" >&6 1916else 1917 if test -n "$CC"; then 1918 ac_cv_prog_CC="$CC" # Let the user override the test. 1919else 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 for ac_exec_ext in '' $ac_executable_extensions; do 1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1929 break 2 1930 fi 1931done 1932done 1933 1934fi 1935fi 1936CC=$ac_cv_prog_CC 1937if test -n "$CC"; then 1938 echo "$as_me:$LINENO: result: $CC" >&5 1939echo "${ECHO_T}$CC" >&6 1940else 1941 echo "$as_me:$LINENO: result: no" >&5 1942echo "${ECHO_T}no" >&6 1943fi 1944 1945 test -n "$CC" && break 1946 done 1947fi 1948if test -z "$CC"; then 1949 ac_ct_CC=$CC 1950 for ac_prog in cl 1951do 1952 # Extract the first word of "$ac_prog", so it can be a program name with args. 1953set dummy $ac_prog; ac_word=$2 1954echo "$as_me:$LINENO: checking for $ac_word" >&5 1955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1956if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958else 1959 if test -n "$ac_ct_CC"; then 1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1961else 1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963for as_dir in $PATH 1964do 1965 IFS=$as_save_IFS 1966 test -z "$as_dir" && as_dir=. 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 ac_cv_prog_ac_ct_CC="$ac_prog" 1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1971 break 2 1972 fi 1973done 1974done 1975 1976fi 1977fi 1978ac_ct_CC=$ac_cv_prog_ac_ct_CC 1979if test -n "$ac_ct_CC"; then 1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1981echo "${ECHO_T}$ac_ct_CC" >&6 1982else 1983 echo "$as_me:$LINENO: result: no" >&5 1984echo "${ECHO_T}no" >&6 1985fi 1986 1987 test -n "$ac_ct_CC" && break 1988done 1989 1990 CC=$ac_ct_CC 1991fi 1992 1993fi 1994 1995 1996test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1997See \`config.log' for more details." >&5 1998echo "$as_me: error: no acceptable C compiler found in \$PATH 1999See \`config.log' for more details." >&2;} 2000 { (exit 1); exit 1; }; } 2001 2002# Provide some information about the compiler. 2003echo "$as_me:$LINENO:" \ 2004 "checking for C compiler version" >&5 2005ac_compiler=`set X $ac_compile; echo $2` 2006{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2007 (eval $ac_compiler --version </dev/null >&5) 2>&5 2008 ac_status=$? 2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2010 (exit $ac_status); } 2011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2012 (eval $ac_compiler -v </dev/null >&5) 2>&5 2013 ac_status=$? 2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2015 (exit $ac_status); } 2016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2017 (eval $ac_compiler -V </dev/null >&5) 2>&5 2018 ac_status=$? 2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2020 (exit $ac_status); } 2021 2022cat >conftest.$ac_ext <<_ACEOF 2023/* confdefs.h. */ 2024_ACEOF 2025cat confdefs.h >>conftest.$ac_ext 2026cat >>conftest.$ac_ext <<_ACEOF 2027/* end confdefs.h. */ 2028 2029int 2030main () 2031{ 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037ac_clean_files_save=$ac_clean_files 2038ac_clean_files="$ac_clean_files a.out a.exe b.out" 2039# Try to create an executable without -o first, disregard a.out. 2040# It will help us diagnose broken compilers, and finding out an intuition 2041# of exeext. 2042echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2043echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2044ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2045if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2046 (eval $ac_link_default) 2>&5 2047 ac_status=$? 2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2049 (exit $ac_status); }; then 2050 # Find the output, starting from the most likely. This scheme is 2051# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2052# resort. 2053 2054# Be careful to initialize this variable, since it used to be cached. 2055# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2056ac_cv_exeext= 2057# b.out is created by i960 compilers. 2058for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2059do 2060 test -f "$ac_file" || continue 2061 case $ac_file in 2062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2063 ;; 2064 conftest.$ac_ext ) 2065 # This is the source file. 2066 ;; 2067 [ab].out ) 2068 # We found the default executable, but exeext='' is most 2069 # certainly right. 2070 break;; 2071 *.* ) 2072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2073 # FIXME: I believe we export ac_cv_exeext for Libtool, 2074 # but it would be cool to find out if it's true. Does anybody 2075 # maintain Libtool? --akim. 2076 export ac_cv_exeext 2077 break;; 2078 * ) 2079 break;; 2080 esac 2081done 2082else 2083 echo "$as_me: failed program was:" >&5 2084sed 's/^/| /' conftest.$ac_ext >&5 2085 2086{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2087See \`config.log' for more details." >&5 2088echo "$as_me: error: C compiler cannot create executables 2089See \`config.log' for more details." >&2;} 2090 { (exit 77); exit 77; }; } 2091fi 2092 2093ac_exeext=$ac_cv_exeext 2094echo "$as_me:$LINENO: result: $ac_file" >&5 2095echo "${ECHO_T}$ac_file" >&6 2096 2097# Check the compiler produces executables we can run. If not, either 2098# the compiler is broken, or we cross compile. 2099echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2100echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2101# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2102# If not cross compiling, check that we can run a simple program. 2103if test "$cross_compiling" != yes; then 2104 if { ac_try='./$ac_file' 2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2106 (eval $ac_try) 2>&5 2107 ac_status=$? 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); }; }; then 2110 cross_compiling=no 2111 else 2112 if test "$cross_compiling" = maybe; then 2113 cross_compiling=yes 2114 else 2115 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2116If you meant to cross compile, use \`--host'. 2117See \`config.log' for more details." >&5 2118echo "$as_me: error: cannot run C compiled programs. 2119If you meant to cross compile, use \`--host'. 2120See \`config.log' for more details." >&2;} 2121 { (exit 1); exit 1; }; } 2122 fi 2123 fi 2124fi 2125echo "$as_me:$LINENO: result: yes" >&5 2126echo "${ECHO_T}yes" >&6 2127 2128rm -f a.out a.exe conftest$ac_cv_exeext b.out 2129ac_clean_files=$ac_clean_files_save 2130# Check the compiler produces executables we can run. If not, either 2131# the compiler is broken, or we cross compile. 2132echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2133echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2134echo "$as_me:$LINENO: result: $cross_compiling" >&5 2135echo "${ECHO_T}$cross_compiling" >&6 2136 2137echo "$as_me:$LINENO: checking for suffix of executables" >&5 2138echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2140 (eval $ac_link) 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); }; then 2144 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2145# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2146# work properly (i.e., refer to `conftest.exe'), while it won't with 2147# `rm'. 2148for ac_file in conftest.exe conftest conftest.*; do 2149 test -f "$ac_file" || continue 2150 case $ac_file in 2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2153 export ac_cv_exeext 2154 break;; 2155 * ) break;; 2156 esac 2157done 2158else 2159 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2160See \`config.log' for more details." >&5 2161echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2162See \`config.log' for more details." >&2;} 2163 { (exit 1); exit 1; }; } 2164fi 2165 2166rm -f conftest$ac_cv_exeext 2167echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2168echo "${ECHO_T}$ac_cv_exeext" >&6 2169 2170rm -f conftest.$ac_ext 2171EXEEXT=$ac_cv_exeext 2172ac_exeext=$EXEEXT 2173echo "$as_me:$LINENO: checking for suffix of object files" >&5 2174echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2175if test "${ac_cv_objext+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 cat >conftest.$ac_ext <<_ACEOF 2179/* confdefs.h. */ 2180_ACEOF 2181cat confdefs.h >>conftest.$ac_ext 2182cat >>conftest.$ac_ext <<_ACEOF 2183/* end confdefs.h. */ 2184 2185int 2186main () 2187{ 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193rm -f conftest.o conftest.obj 2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2195 (eval $ac_compile) 2>&5 2196 ac_status=$? 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2198 (exit $ac_status); }; then 2199 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2200 case $ac_file in 2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2203 break;; 2204 esac 2205done 2206else 2207 echo "$as_me: failed program was:" >&5 2208sed 's/^/| /' conftest.$ac_ext >&5 2209 2210{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2211See \`config.log' for more details." >&5 2212echo "$as_me: error: cannot compute suffix of object files: cannot compile 2213See \`config.log' for more details." >&2;} 2214 { (exit 1); exit 1; }; } 2215fi 2216 2217rm -f conftest.$ac_cv_objext conftest.$ac_ext 2218fi 2219echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2220echo "${ECHO_T}$ac_cv_objext" >&6 2221OBJEXT=$ac_cv_objext 2222ac_objext=$OBJEXT 2223echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2224echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2225if test "${ac_cv_c_compiler_gnu+set}" = set; then 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 2227else 2228 cat >conftest.$ac_ext <<_ACEOF 2229/* confdefs.h. */ 2230_ACEOF 2231cat confdefs.h >>conftest.$ac_ext 2232cat >>conftest.$ac_ext <<_ACEOF 2233/* end confdefs.h. */ 2234 2235int 2236main () 2237{ 2238#ifndef __GNUC__ 2239 choke me 2240#endif 2241 2242 ; 2243 return 0; 2244} 2245_ACEOF 2246rm -f conftest.$ac_objext 2247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2248 (eval $ac_compile) 2>conftest.er1 2249 ac_status=$? 2250 grep -v '^ *+' conftest.er1 >conftest.err 2251 rm -f conftest.er1 2252 cat conftest.err >&5 2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2254 (exit $ac_status); } && 2255 { ac_try='test -z "$ac_c_werror_flag" 2256 || test ! -s conftest.err' 2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2258 (eval $ac_try) 2>&5 2259 ac_status=$? 2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2261 (exit $ac_status); }; } && 2262 { ac_try='test -s conftest.$ac_objext' 2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2264 (eval $ac_try) 2>&5 2265 ac_status=$? 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2267 (exit $ac_status); }; }; then 2268 ac_compiler_gnu=yes 2269else 2270 echo "$as_me: failed program was:" >&5 2271sed 's/^/| /' conftest.$ac_ext >&5 2272 2273ac_compiler_gnu=no 2274fi 2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2276ac_cv_c_compiler_gnu=$ac_compiler_gnu 2277 2278fi 2279echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2280echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2281GCC=`test $ac_compiler_gnu = yes && echo yes` 2282ac_test_CFLAGS=${CFLAGS+set} 2283ac_save_CFLAGS=$CFLAGS 2284CFLAGS="-g" 2285echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2286echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2287if test "${ac_cv_prog_cc_g+set}" = set; then 2288 echo $ECHO_N "(cached) $ECHO_C" >&6 2289else 2290 cat >conftest.$ac_ext <<_ACEOF 2291/* confdefs.h. */ 2292_ACEOF 2293cat confdefs.h >>conftest.$ac_ext 2294cat >>conftest.$ac_ext <<_ACEOF 2295/* end confdefs.h. */ 2296 2297int 2298main () 2299{ 2300 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305rm -f conftest.$ac_objext 2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2307 (eval $ac_compile) 2>conftest.er1 2308 ac_status=$? 2309 grep -v '^ *+' conftest.er1 >conftest.err 2310 rm -f conftest.er1 2311 cat conftest.err >&5 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); } && 2314 { ac_try='test -z "$ac_c_werror_flag" 2315 || test ! -s conftest.err' 2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2317 (eval $ac_try) 2>&5 2318 ac_status=$? 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); }; } && 2321 { ac_try='test -s conftest.$ac_objext' 2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2323 (eval $ac_try) 2>&5 2324 ac_status=$? 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); }; }; then 2327 ac_cv_prog_cc_g=yes 2328else 2329 echo "$as_me: failed program was:" >&5 2330sed 's/^/| /' conftest.$ac_ext >&5 2331 2332ac_cv_prog_cc_g=no 2333fi 2334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2335fi 2336echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2337echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2338if test "$ac_test_CFLAGS" = set; then 2339 CFLAGS=$ac_save_CFLAGS 2340elif test $ac_cv_prog_cc_g = yes; then 2341 if test "$GCC" = yes; then 2342 CFLAGS="-g -O2" 2343 else 2344 CFLAGS="-g" 2345 fi 2346else 2347 if test "$GCC" = yes; then 2348 CFLAGS="-O2" 2349 else 2350 CFLAGS= 2351 fi 2352fi 2353echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2354echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2355if test "${ac_cv_prog_cc_stdc+set}" = set; then 2356 echo $ECHO_N "(cached) $ECHO_C" >&6 2357else 2358 ac_cv_prog_cc_stdc=no 2359ac_save_CC=$CC 2360cat >conftest.$ac_ext <<_ACEOF 2361/* confdefs.h. */ 2362_ACEOF 2363cat confdefs.h >>conftest.$ac_ext 2364cat >>conftest.$ac_ext <<_ACEOF 2365/* end confdefs.h. */ 2366#include <stdarg.h> 2367#include <stdio.h> 2368#include <sys/types.h> 2369#include <sys/stat.h> 2370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2371struct buf { int x; }; 2372FILE * (*rcsopen) (struct buf *, struct stat *, int); 2373static char *e (p, i) 2374 char **p; 2375 int i; 2376{ 2377 return p[i]; 2378} 2379static char *f (char * (*g) (char **, int), char **p, ...) 2380{ 2381 char *s; 2382 va_list v; 2383 va_start (v,p); 2384 s = g (p, va_arg (v,int)); 2385 va_end (v); 2386 return s; 2387} 2388 2389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2390 function prototypes and stuff, but not '\xHH' hex character constants. 2391 These don't provoke an error unfortunately, instead are silently treated 2392 as 'x'. The following induces an error, until -std1 is added to get 2393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2394 array size at least. It's necessary to write '\x00'==0 to get something 2395 that's true only with -std1. */ 2396int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2397 2398int test (int i, double x); 2399struct s1 {int (*f) (int a);}; 2400struct s2 {int (*f) (double a);}; 2401int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2402int argc; 2403char **argv; 2404int 2405main () 2406{ 2407return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2408 ; 2409 return 0; 2410} 2411_ACEOF 2412# Don't try gcc -ansi; that turns off useful extensions and 2413# breaks some systems' header files. 2414# AIX -qlanglvl=ansi 2415# Ultrix and OSF/1 -std1 2416# HP-UX 10.20 and later -Ae 2417# HP-UX older versions -Aa -D_HPUX_SOURCE 2418# SVR4 -Xc -D__EXTENSIONS__ 2419for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2420do 2421 CC="$ac_save_CC $ac_arg" 2422 rm -f conftest.$ac_objext 2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2424 (eval $ac_compile) 2>conftest.er1 2425 ac_status=$? 2426 grep -v '^ *+' conftest.er1 >conftest.err 2427 rm -f conftest.er1 2428 cat conftest.err >&5 2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2430 (exit $ac_status); } && 2431 { ac_try='test -z "$ac_c_werror_flag" 2432 || test ! -s conftest.err' 2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2434 (eval $ac_try) 2>&5 2435 ac_status=$? 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); }; } && 2438 { ac_try='test -s conftest.$ac_objext' 2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2440 (eval $ac_try) 2>&5 2441 ac_status=$? 2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2443 (exit $ac_status); }; }; then 2444 ac_cv_prog_cc_stdc=$ac_arg 2445break 2446else 2447 echo "$as_me: failed program was:" >&5 2448sed 's/^/| /' conftest.$ac_ext >&5 2449 2450fi 2451rm -f conftest.err conftest.$ac_objext 2452done 2453rm -f conftest.$ac_ext conftest.$ac_objext 2454CC=$ac_save_CC 2455 2456fi 2457 2458case "x$ac_cv_prog_cc_stdc" in 2459 x|xno) 2460 echo "$as_me:$LINENO: result: none needed" >&5 2461echo "${ECHO_T}none needed" >&6 ;; 2462 *) 2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2464echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2465 CC="$CC $ac_cv_prog_cc_stdc" ;; 2466esac 2467 2468# Some people use a C++ compiler to compile C. Since we use `exit', 2469# in C++ we need to declare it. In case someone uses the same compiler 2470# for both compiling C and C++ we need to have the C++ compiler decide 2471# the declaration of exit, since it's the most demanding environment. 2472cat >conftest.$ac_ext <<_ACEOF 2473#ifndef __cplusplus 2474 choke me 2475#endif 2476_ACEOF 2477rm -f conftest.$ac_objext 2478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2479 (eval $ac_compile) 2>conftest.er1 2480 ac_status=$? 2481 grep -v '^ *+' conftest.er1 >conftest.err 2482 rm -f conftest.er1 2483 cat conftest.err >&5 2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2485 (exit $ac_status); } && 2486 { ac_try='test -z "$ac_c_werror_flag" 2487 || test ! -s conftest.err' 2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2489 (eval $ac_try) 2>&5 2490 ac_status=$? 2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2492 (exit $ac_status); }; } && 2493 { ac_try='test -s conftest.$ac_objext' 2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2495 (eval $ac_try) 2>&5 2496 ac_status=$? 2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2498 (exit $ac_status); }; }; then 2499 for ac_declaration in \ 2500 '' \ 2501 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2502 'extern "C" void std::exit (int); using std::exit;' \ 2503 'extern "C" void exit (int) throw ();' \ 2504 'extern "C" void exit (int);' \ 2505 'void exit (int);' 2506do 2507 cat >conftest.$ac_ext <<_ACEOF 2508/* confdefs.h. */ 2509_ACEOF 2510cat confdefs.h >>conftest.$ac_ext 2511cat >>conftest.$ac_ext <<_ACEOF 2512/* end confdefs.h. */ 2513$ac_declaration 2514#include <stdlib.h> 2515int 2516main () 2517{ 2518exit (42); 2519 ; 2520 return 0; 2521} 2522_ACEOF 2523rm -f conftest.$ac_objext 2524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2525 (eval $ac_compile) 2>conftest.er1 2526 ac_status=$? 2527 grep -v '^ *+' conftest.er1 >conftest.err 2528 rm -f conftest.er1 2529 cat conftest.err >&5 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); } && 2532 { ac_try='test -z "$ac_c_werror_flag" 2533 || test ! -s conftest.err' 2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535 (eval $ac_try) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; } && 2539 { ac_try='test -s conftest.$ac_objext' 2540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2541 (eval $ac_try) 2>&5 2542 ac_status=$? 2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2544 (exit $ac_status); }; }; then 2545 : 2546else 2547 echo "$as_me: failed program was:" >&5 2548sed 's/^/| /' conftest.$ac_ext >&5 2549 2550continue 2551fi 2552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2553 cat >conftest.$ac_ext <<_ACEOF 2554/* confdefs.h. */ 2555_ACEOF 2556cat confdefs.h >>conftest.$ac_ext 2557cat >>conftest.$ac_ext <<_ACEOF 2558/* end confdefs.h. */ 2559$ac_declaration 2560int 2561main () 2562{ 2563exit (42); 2564 ; 2565 return 0; 2566} 2567_ACEOF 2568rm -f conftest.$ac_objext 2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2570 (eval $ac_compile) 2>conftest.er1 2571 ac_status=$? 2572 grep -v '^ *+' conftest.er1 >conftest.err 2573 rm -f conftest.er1 2574 cat conftest.err >&5 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); } && 2577 { ac_try='test -z "$ac_c_werror_flag" 2578 || test ! -s conftest.err' 2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2580 (eval $ac_try) 2>&5 2581 ac_status=$? 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); }; } && 2584 { ac_try='test -s conftest.$ac_objext' 2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2586 (eval $ac_try) 2>&5 2587 ac_status=$? 2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2589 (exit $ac_status); }; }; then 2590 break 2591else 2592 echo "$as_me: failed program was:" >&5 2593sed 's/^/| /' conftest.$ac_ext >&5 2594 2595fi 2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2597done 2598rm -f conftest* 2599if test -n "$ac_declaration"; then 2600 echo '#ifdef __cplusplus' >>confdefs.h 2601 echo $ac_declaration >>confdefs.h 2602 echo '#endif' >>confdefs.h 2603fi 2604 2605else 2606 echo "$as_me: failed program was:" >&5 2607sed 's/^/| /' conftest.$ac_ext >&5 2608 2609fi 2610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2611ac_ext=c 2612ac_cpp='$CPP $CPPFLAGS' 2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2615ac_compiler_gnu=$ac_cv_c_compiler_gnu 2616 2617 2618# limits header checks must come early to prevent 2619# an autoconf bug that throws errors on configure 2620 2621ac_ext=c 2622ac_cpp='$CPP $CPPFLAGS' 2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2627echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2628# On Suns, sometimes $CPP names a directory. 2629if test -n "$CPP" && test -d "$CPP"; then 2630 CPP= 2631fi 2632if test -z "$CPP"; then 2633 if test "${ac_cv_prog_CPP+set}" = set; then 2634 echo $ECHO_N "(cached) $ECHO_C" >&6 2635else 2636 # Double quotes because CPP needs to be expanded 2637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2638 do 2639 ac_preproc_ok=false 2640for ac_c_preproc_warn_flag in '' yes 2641do 2642 # Use a header file that comes with gcc, so configuring glibc 2643 # with a fresh cross-compiler works. 2644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2645 # <limits.h> exists even on freestanding compilers. 2646 # On the NeXT, cc -E runs the code through the compiler's parser, 2647 # not just through cpp. "Syntax error" is here to catch this case. 2648 cat >conftest.$ac_ext <<_ACEOF 2649/* confdefs.h. */ 2650_ACEOF 2651cat confdefs.h >>conftest.$ac_ext 2652cat >>conftest.$ac_ext <<_ACEOF 2653/* end confdefs.h. */ 2654#ifdef __STDC__ 2655# include <limits.h> 2656#else 2657# include <assert.h> 2658#endif 2659 Syntax error 2660_ACEOF 2661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2663 ac_status=$? 2664 grep -v '^ *+' conftest.er1 >conftest.err 2665 rm -f conftest.er1 2666 cat conftest.err >&5 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); } >/dev/null; then 2669 if test -s conftest.err; then 2670 ac_cpp_err=$ac_c_preproc_warn_flag 2671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2672 else 2673 ac_cpp_err= 2674 fi 2675else 2676 ac_cpp_err=yes 2677fi 2678if test -z "$ac_cpp_err"; then 2679 : 2680else 2681 echo "$as_me: failed program was:" >&5 2682sed 's/^/| /' conftest.$ac_ext >&5 2683 2684 # Broken: fails on valid input. 2685continue 2686fi 2687rm -f conftest.err conftest.$ac_ext 2688 2689 # OK, works on sane cases. Now check whether non-existent headers 2690 # can be detected and how. 2691 cat >conftest.$ac_ext <<_ACEOF 2692/* confdefs.h. */ 2693_ACEOF 2694cat confdefs.h >>conftest.$ac_ext 2695cat >>conftest.$ac_ext <<_ACEOF 2696/* end confdefs.h. */ 2697#include <ac_nonexistent.h> 2698_ACEOF 2699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2701 ac_status=$? 2702 grep -v '^ *+' conftest.er1 >conftest.err 2703 rm -f conftest.er1 2704 cat conftest.err >&5 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); } >/dev/null; then 2707 if test -s conftest.err; then 2708 ac_cpp_err=$ac_c_preproc_warn_flag 2709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2710 else 2711 ac_cpp_err= 2712 fi 2713else 2714 ac_cpp_err=yes 2715fi 2716if test -z "$ac_cpp_err"; then 2717 # Broken: success on invalid input. 2718continue 2719else 2720 echo "$as_me: failed program was:" >&5 2721sed 's/^/| /' conftest.$ac_ext >&5 2722 2723 # Passes both tests. 2724ac_preproc_ok=: 2725break 2726fi 2727rm -f conftest.err conftest.$ac_ext 2728 2729done 2730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2731rm -f conftest.err conftest.$ac_ext 2732if $ac_preproc_ok; then 2733 break 2734fi 2735 2736 done 2737 ac_cv_prog_CPP=$CPP 2738 2739fi 2740 CPP=$ac_cv_prog_CPP 2741else 2742 ac_cv_prog_CPP=$CPP 2743fi 2744echo "$as_me:$LINENO: result: $CPP" >&5 2745echo "${ECHO_T}$CPP" >&6 2746ac_preproc_ok=false 2747for ac_c_preproc_warn_flag in '' yes 2748do 2749 # Use a header file that comes with gcc, so configuring glibc 2750 # with a fresh cross-compiler works. 2751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2752 # <limits.h> exists even on freestanding compilers. 2753 # On the NeXT, cc -E runs the code through the compiler's parser, 2754 # not just through cpp. "Syntax error" is here to catch this case. 2755 cat >conftest.$ac_ext <<_ACEOF 2756/* confdefs.h. */ 2757_ACEOF 2758cat confdefs.h >>conftest.$ac_ext 2759cat >>conftest.$ac_ext <<_ACEOF 2760/* end confdefs.h. */ 2761#ifdef __STDC__ 2762# include <limits.h> 2763#else 2764# include <assert.h> 2765#endif 2766 Syntax error 2767_ACEOF 2768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2770 ac_status=$? 2771 grep -v '^ *+' conftest.er1 >conftest.err 2772 rm -f conftest.er1 2773 cat conftest.err >&5 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); } >/dev/null; then 2776 if test -s conftest.err; then 2777 ac_cpp_err=$ac_c_preproc_warn_flag 2778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2779 else 2780 ac_cpp_err= 2781 fi 2782else 2783 ac_cpp_err=yes 2784fi 2785if test -z "$ac_cpp_err"; then 2786 : 2787else 2788 echo "$as_me: failed program was:" >&5 2789sed 's/^/| /' conftest.$ac_ext >&5 2790 2791 # Broken: fails on valid input. 2792continue 2793fi 2794rm -f conftest.err conftest.$ac_ext 2795 2796 # OK, works on sane cases. Now check whether non-existent headers 2797 # can be detected and how. 2798 cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804#include <ac_nonexistent.h> 2805_ACEOF 2806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2808 ac_status=$? 2809 grep -v '^ *+' conftest.er1 >conftest.err 2810 rm -f conftest.er1 2811 cat conftest.err >&5 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); } >/dev/null; then 2814 if test -s conftest.err; then 2815 ac_cpp_err=$ac_c_preproc_warn_flag 2816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2817 else 2818 ac_cpp_err= 2819 fi 2820else 2821 ac_cpp_err=yes 2822fi 2823if test -z "$ac_cpp_err"; then 2824 # Broken: success on invalid input. 2825continue 2826else 2827 echo "$as_me: failed program was:" >&5 2828sed 's/^/| /' conftest.$ac_ext >&5 2829 2830 # Passes both tests. 2831ac_preproc_ok=: 2832break 2833fi 2834rm -f conftest.err conftest.$ac_ext 2835 2836done 2837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2838rm -f conftest.err conftest.$ac_ext 2839if $ac_preproc_ok; then 2840 : 2841else 2842 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2843See \`config.log' for more details." >&5 2844echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2845See \`config.log' for more details." >&2;} 2846 { (exit 1); exit 1; }; } 2847fi 2848 2849ac_ext=c 2850ac_cpp='$CPP $CPPFLAGS' 2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2853ac_compiler_gnu=$ac_cv_c_compiler_gnu 2854 2855 2856echo "$as_me:$LINENO: checking for egrep" >&5 2857echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2858if test "${ac_cv_prog_egrep+set}" = set; then 2859 echo $ECHO_N "(cached) $ECHO_C" >&6 2860else 2861 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2862 then ac_cv_prog_egrep='grep -E' 2863 else ac_cv_prog_egrep='egrep' 2864 fi 2865fi 2866echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2867echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2868 EGREP=$ac_cv_prog_egrep 2869 2870 2871echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2872echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2873if test "${ac_cv_header_stdc+set}" = set; then 2874 echo $ECHO_N "(cached) $ECHO_C" >&6 2875else 2876 cat >conftest.$ac_ext <<_ACEOF 2877/* confdefs.h. */ 2878_ACEOF 2879cat confdefs.h >>conftest.$ac_ext 2880cat >>conftest.$ac_ext <<_ACEOF 2881/* end confdefs.h. */ 2882#include <stdlib.h> 2883#include <stdarg.h> 2884#include <string.h> 2885#include <float.h> 2886 2887int 2888main () 2889{ 2890 2891 ; 2892 return 0; 2893} 2894_ACEOF 2895rm -f conftest.$ac_objext 2896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2897 (eval $ac_compile) 2>conftest.er1 2898 ac_status=$? 2899 grep -v '^ *+' conftest.er1 >conftest.err 2900 rm -f conftest.er1 2901 cat conftest.err >&5 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); } && 2904 { ac_try='test -z "$ac_c_werror_flag" 2905 || test ! -s conftest.err' 2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2907 (eval $ac_try) 2>&5 2908 ac_status=$? 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); }; } && 2911 { ac_try='test -s conftest.$ac_objext' 2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2913 (eval $ac_try) 2>&5 2914 ac_status=$? 2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2916 (exit $ac_status); }; }; then 2917 ac_cv_header_stdc=yes 2918else 2919 echo "$as_me: failed program was:" >&5 2920sed 's/^/| /' conftest.$ac_ext >&5 2921 2922ac_cv_header_stdc=no 2923fi 2924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2925 2926if test $ac_cv_header_stdc = yes; then 2927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2928 cat >conftest.$ac_ext <<_ACEOF 2929/* confdefs.h. */ 2930_ACEOF 2931cat confdefs.h >>conftest.$ac_ext 2932cat >>conftest.$ac_ext <<_ACEOF 2933/* end confdefs.h. */ 2934#include <string.h> 2935 2936_ACEOF 2937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2938 $EGREP "memchr" >/dev/null 2>&1; then 2939 : 2940else 2941 ac_cv_header_stdc=no 2942fi 2943rm -f conftest* 2944 2945fi 2946 2947if test $ac_cv_header_stdc = yes; then 2948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2949 cat >conftest.$ac_ext <<_ACEOF 2950/* confdefs.h. */ 2951_ACEOF 2952cat confdefs.h >>conftest.$ac_ext 2953cat >>conftest.$ac_ext <<_ACEOF 2954/* end confdefs.h. */ 2955#include <stdlib.h> 2956 2957_ACEOF 2958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2959 $EGREP "free" >/dev/null 2>&1; then 2960 : 2961else 2962 ac_cv_header_stdc=no 2963fi 2964rm -f conftest* 2965 2966fi 2967 2968if test $ac_cv_header_stdc = yes; then 2969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2970 if test "$cross_compiling" = yes; then 2971 : 2972else 2973 cat >conftest.$ac_ext <<_ACEOF 2974/* confdefs.h. */ 2975_ACEOF 2976cat confdefs.h >>conftest.$ac_ext 2977cat >>conftest.$ac_ext <<_ACEOF 2978/* end confdefs.h. */ 2979#include <ctype.h> 2980#if ((' ' & 0x0FF) == 0x020) 2981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2983#else 2984# define ISLOWER(c) \ 2985 (('a' <= (c) && (c) <= 'i') \ 2986 || ('j' <= (c) && (c) <= 'r') \ 2987 || ('s' <= (c) && (c) <= 'z')) 2988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2989#endif 2990 2991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2992int 2993main () 2994{ 2995 int i; 2996 for (i = 0; i < 256; i++) 2997 if (XOR (islower (i), ISLOWER (i)) 2998 || toupper (i) != TOUPPER (i)) 2999 exit(2); 3000 exit (0); 3001} 3002_ACEOF 3003rm -f conftest$ac_exeext 3004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3005 (eval $ac_link) 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3010 (eval $ac_try) 2>&5 3011 ac_status=$? 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); }; }; then 3014 : 3015else 3016 echo "$as_me: program exited with status $ac_status" >&5 3017echo "$as_me: failed program was:" >&5 3018sed 's/^/| /' conftest.$ac_ext >&5 3019 3020( exit $ac_status ) 3021ac_cv_header_stdc=no 3022fi 3023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3024fi 3025fi 3026fi 3027echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3028echo "${ECHO_T}$ac_cv_header_stdc" >&6 3029if test $ac_cv_header_stdc = yes; then 3030 3031cat >>confdefs.h <<\_ACEOF 3032#define STDC_HEADERS 1 3033_ACEOF 3034 3035fi 3036 3037# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3048 inttypes.h stdint.h unistd.h 3049do 3050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3051echo "$as_me:$LINENO: checking for $ac_header" >&5 3052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3053if eval "test \"\${$as_ac_Header+set}\" = set"; then 3054 echo $ECHO_N "(cached) $ECHO_C" >&6 3055else 3056 cat >conftest.$ac_ext <<_ACEOF 3057/* confdefs.h. */ 3058_ACEOF 3059cat confdefs.h >>conftest.$ac_ext 3060cat >>conftest.$ac_ext <<_ACEOF 3061/* end confdefs.h. */ 3062$ac_includes_default 3063 3064#include <$ac_header> 3065_ACEOF 3066rm -f conftest.$ac_objext 3067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3068 (eval $ac_compile) 2>conftest.er1 3069 ac_status=$? 3070 grep -v '^ *+' conftest.er1 >conftest.err 3071 rm -f conftest.er1 3072 cat conftest.err >&5 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); } && 3075 { ac_try='test -z "$ac_c_werror_flag" 3076 || test ! -s conftest.err' 3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3078 (eval $ac_try) 2>&5 3079 ac_status=$? 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3081 (exit $ac_status); }; } && 3082 { ac_try='test -s conftest.$ac_objext' 3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3084 (eval $ac_try) 2>&5 3085 ac_status=$? 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); }; }; then 3088 eval "$as_ac_Header=yes" 3089else 3090 echo "$as_me: failed program was:" >&5 3091sed 's/^/| /' conftest.$ac_ext >&5 3092 3093eval "$as_ac_Header=no" 3094fi 3095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3096fi 3097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3099if test `eval echo '${'$as_ac_Header'}'` = yes; then 3100 cat >>confdefs.h <<_ACEOF 3101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3102_ACEOF 3103 3104fi 3105 3106done 3107 3108 3109if test "${ac_cv_header_limits_h+set}" = set; then 3110 echo "$as_me:$LINENO: checking for limits.h" >&5 3111echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 3112if test "${ac_cv_header_limits_h+set}" = set; then 3113 echo $ECHO_N "(cached) $ECHO_C" >&6 3114fi 3115echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 3116echo "${ECHO_T}$ac_cv_header_limits_h" >&6 3117else 3118 # Is the header compilable? 3119echo "$as_me:$LINENO: checking limits.h usability" >&5 3120echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6 3121cat >conftest.$ac_ext <<_ACEOF 3122/* confdefs.h. */ 3123_ACEOF 3124cat confdefs.h >>conftest.$ac_ext 3125cat >>conftest.$ac_ext <<_ACEOF 3126/* end confdefs.h. */ 3127$ac_includes_default 3128#include <limits.h> 3129_ACEOF 3130rm -f conftest.$ac_objext 3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3132 (eval $ac_compile) 2>conftest.er1 3133 ac_status=$? 3134 grep -v '^ *+' conftest.er1 >conftest.err 3135 rm -f conftest.er1 3136 cat conftest.err >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); } && 3139 { ac_try='test -z "$ac_c_werror_flag" 3140 || test ! -s conftest.err' 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3142 (eval $ac_try) 2>&5 3143 ac_status=$? 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); }; } && 3146 { ac_try='test -s conftest.$ac_objext' 3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3148 (eval $ac_try) 2>&5 3149 ac_status=$? 3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3151 (exit $ac_status); }; }; then 3152 ac_header_compiler=yes 3153else 3154 echo "$as_me: failed program was:" >&5 3155sed 's/^/| /' conftest.$ac_ext >&5 3156 3157ac_header_compiler=no 3158fi 3159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3161echo "${ECHO_T}$ac_header_compiler" >&6 3162 3163# Is the header present? 3164echo "$as_me:$LINENO: checking limits.h presence" >&5 3165echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6 3166cat >conftest.$ac_ext <<_ACEOF 3167/* confdefs.h. */ 3168_ACEOF 3169cat confdefs.h >>conftest.$ac_ext 3170cat >>conftest.$ac_ext <<_ACEOF 3171/* end confdefs.h. */ 3172#include <limits.h> 3173_ACEOF 3174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3176 ac_status=$? 3177 grep -v '^ *+' conftest.er1 >conftest.err 3178 rm -f conftest.er1 3179 cat conftest.err >&5 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } >/dev/null; then 3182 if test -s conftest.err; then 3183 ac_cpp_err=$ac_c_preproc_warn_flag 3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3185 else 3186 ac_cpp_err= 3187 fi 3188else 3189 ac_cpp_err=yes 3190fi 3191if test -z "$ac_cpp_err"; then 3192 ac_header_preproc=yes 3193else 3194 echo "$as_me: failed program was:" >&5 3195sed 's/^/| /' conftest.$ac_ext >&5 3196 3197 ac_header_preproc=no 3198fi 3199rm -f conftest.err conftest.$ac_ext 3200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3201echo "${ECHO_T}$ac_header_preproc" >&6 3202 3203# So? What about this header? 3204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3205 yes:no: ) 3206 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 3207echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3208 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 3209echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 3210 ac_header_preproc=yes 3211 ;; 3212 no:yes:* ) 3213 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 3214echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 3215 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 3216echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 3217 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 3218echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 3219 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 3220echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 3221 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 3222echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 3223 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 3224echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 3225 ( 3226 cat <<\_ASBOX 3227## ----------------------------- ## 3228## Report this to the tk lists. ## 3229## ----------------------------- ## 3230_ASBOX 3231 ) | 3232 sed "s/^/$as_me: WARNING: /" >&2 3233 ;; 3234esac 3235echo "$as_me:$LINENO: checking for limits.h" >&5 3236echo $ECHO_N "checking for limits.h... $ECHO_C" >&6 3237if test "${ac_cv_header_limits_h+set}" = set; then 3238 echo $ECHO_N "(cached) $ECHO_C" >&6 3239else 3240 ac_cv_header_limits_h=$ac_header_preproc 3241fi 3242echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 3243echo "${ECHO_T}$ac_cv_header_limits_h" >&6 3244 3245fi 3246if test $ac_cv_header_limits_h = yes; then 3247 3248cat >>confdefs.h <<\_ACEOF 3249#define HAVE_LIMITS_H 1 3250_ACEOF 3251 3252else 3253 3254cat >>confdefs.h <<\_ACEOF 3255#define NO_LIMITS_H 1 3256_ACEOF 3257 3258fi 3259 3260 3261 3262#-------------------------------------------------------------------- 3263# Supply a substitute for stdlib.h if it doesn't define strtol, 3264# strtoul, or strtod (which it doesn't in some versions of SunOS). 3265#-------------------------------------------------------------------- 3266 3267if test "${ac_cv_header_stdlib_h+set}" = set; then 3268 echo "$as_me:$LINENO: checking for stdlib.h" >&5 3269echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 3270if test "${ac_cv_header_stdlib_h+set}" = set; then 3271 echo $ECHO_N "(cached) $ECHO_C" >&6 3272fi 3273echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 3274echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 3275else 3276 # Is the header compilable? 3277echo "$as_me:$LINENO: checking stdlib.h usability" >&5 3278echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 3279cat >conftest.$ac_ext <<_ACEOF 3280/* confdefs.h. */ 3281_ACEOF 3282cat confdefs.h >>conftest.$ac_ext 3283cat >>conftest.$ac_ext <<_ACEOF 3284/* end confdefs.h. */ 3285$ac_includes_default 3286#include <stdlib.h> 3287_ACEOF 3288rm -f conftest.$ac_objext 3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3290 (eval $ac_compile) 2>conftest.er1 3291 ac_status=$? 3292 grep -v '^ *+' conftest.er1 >conftest.err 3293 rm -f conftest.er1 3294 cat conftest.err >&5 3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3296 (exit $ac_status); } && 3297 { ac_try='test -z "$ac_c_werror_flag" 3298 || test ! -s conftest.err' 3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3300 (eval $ac_try) 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); }; } && 3304 { ac_try='test -s conftest.$ac_objext' 3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3306 (eval $ac_try) 2>&5 3307 ac_status=$? 3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); }; }; then 3310 ac_header_compiler=yes 3311else 3312 echo "$as_me: failed program was:" >&5 3313sed 's/^/| /' conftest.$ac_ext >&5 3314 3315ac_header_compiler=no 3316fi 3317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3319echo "${ECHO_T}$ac_header_compiler" >&6 3320 3321# Is the header present? 3322echo "$as_me:$LINENO: checking stdlib.h presence" >&5 3323echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 3324cat >conftest.$ac_ext <<_ACEOF 3325/* confdefs.h. */ 3326_ACEOF 3327cat confdefs.h >>conftest.$ac_ext 3328cat >>conftest.$ac_ext <<_ACEOF 3329/* end confdefs.h. */ 3330#include <stdlib.h> 3331_ACEOF 3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3334 ac_status=$? 3335 grep -v '^ *+' conftest.er1 >conftest.err 3336 rm -f conftest.er1 3337 cat conftest.err >&5 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } >/dev/null; then 3340 if test -s conftest.err; then 3341 ac_cpp_err=$ac_c_preproc_warn_flag 3342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3343 else 3344 ac_cpp_err= 3345 fi 3346else 3347 ac_cpp_err=yes 3348fi 3349if test -z "$ac_cpp_err"; then 3350 ac_header_preproc=yes 3351else 3352 echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 ac_header_preproc=no 3356fi 3357rm -f conftest.err conftest.$ac_ext 3358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3359echo "${ECHO_T}$ac_header_preproc" >&6 3360 3361# So? What about this header? 3362case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3363 yes:no: ) 3364 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 3365echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3366 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 3367echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 3368 ac_header_preproc=yes 3369 ;; 3370 no:yes:* ) 3371 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 3372echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 3373 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 3374echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 3375 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 3376echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 3377 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 3378echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 3379 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 3380echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 3381 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 3382echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 3383 ( 3384 cat <<\_ASBOX 3385## ----------------------------- ## 3386## Report this to the tk lists. ## 3387## ----------------------------- ## 3388_ASBOX 3389 ) | 3390 sed "s/^/$as_me: WARNING: /" >&2 3391 ;; 3392esac 3393echo "$as_me:$LINENO: checking for stdlib.h" >&5 3394echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 3395if test "${ac_cv_header_stdlib_h+set}" = set; then 3396 echo $ECHO_N "(cached) $ECHO_C" >&6 3397else 3398 ac_cv_header_stdlib_h=$ac_header_preproc 3399fi 3400echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 3401echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 3402 3403fi 3404if test $ac_cv_header_stdlib_h = yes; then 3405 tk_ok=1 3406else 3407 tk_ok=0 3408fi 3409 3410 3411cat >conftest.$ac_ext <<_ACEOF 3412/* confdefs.h. */ 3413_ACEOF 3414cat confdefs.h >>conftest.$ac_ext 3415cat >>conftest.$ac_ext <<_ACEOF 3416/* end confdefs.h. */ 3417#include <stdlib.h> 3418 3419_ACEOF 3420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3421 $EGREP "strtol" >/dev/null 2>&1; then 3422 : 3423else 3424 tk_ok=0 3425fi 3426rm -f conftest* 3427 3428cat >conftest.$ac_ext <<_ACEOF 3429/* confdefs.h. */ 3430_ACEOF 3431cat confdefs.h >>conftest.$ac_ext 3432cat >>conftest.$ac_ext <<_ACEOF 3433/* end confdefs.h. */ 3434#include <stdlib.h> 3435 3436_ACEOF 3437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3438 $EGREP "strtoul" >/dev/null 2>&1; then 3439 : 3440else 3441 tk_ok=0 3442fi 3443rm -f conftest* 3444 3445cat >conftest.$ac_ext <<_ACEOF 3446/* confdefs.h. */ 3447_ACEOF 3448cat confdefs.h >>conftest.$ac_ext 3449cat >>conftest.$ac_ext <<_ACEOF 3450/* end confdefs.h. */ 3451#include <stdlib.h> 3452 3453_ACEOF 3454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3455 $EGREP "strtod" >/dev/null 2>&1; then 3456 : 3457else 3458 tk_ok=0 3459fi 3460rm -f conftest* 3461 3462if test $tk_ok = 0; then 3463 3464cat >>confdefs.h <<\_ACEOF 3465#define NO_STDLIB_H 1 3466_ACEOF 3467 3468fi 3469 3470#------------------------------------------------------------------------ 3471# If we're using GCC, see if the compiler understands -pipe. If so, use it. 3472# It makes compiling go faster. (This is only a performance feature.) 3473#------------------------------------------------------------------------ 3474 3475if test -z "$no_pipe" && test -n "$GCC"; then 3476 echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 3477echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6 3478if test "${tcl_cv_cc_pipe+set}" = set; then 3479 echo $ECHO_N "(cached) $ECHO_C" >&6 3480else 3481 3482 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 3483 cat >conftest.$ac_ext <<_ACEOF 3484/* confdefs.h. */ 3485_ACEOF 3486cat confdefs.h >>conftest.$ac_ext 3487cat >>conftest.$ac_ext <<_ACEOF 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498rm -f conftest.$ac_objext 3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3500 (eval $ac_compile) 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } && 3507 { ac_try='test -z "$ac_c_werror_flag" 3508 || test ! -s conftest.err' 3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3510 (eval $ac_try) 2>&5 3511 ac_status=$? 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); }; } && 3514 { ac_try='test -s conftest.$ac_objext' 3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3516 (eval $ac_try) 2>&5 3517 ac_status=$? 3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3519 (exit $ac_status); }; }; then 3520 tcl_cv_cc_pipe=yes 3521else 3522 echo "$as_me: failed program was:" >&5 3523sed 's/^/| /' conftest.$ac_ext >&5 3524 3525tcl_cv_cc_pipe=no 3526fi 3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3528 CFLAGS=$hold_cflags 3529fi 3530echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 3531echo "${ECHO_T}$tcl_cv_cc_pipe" >&6 3532 if test $tcl_cv_cc_pipe = yes; then 3533 CFLAGS="$CFLAGS -pipe" 3534 fi 3535fi 3536 3537#------------------------------------------------------------------------ 3538# Threads support - this auto-enables if Tcl was compiled threaded 3539#------------------------------------------------------------------------ 3540 3541 3542 # Check whether --enable-threads or --disable-threads was given. 3543if test "${enable_threads+set}" = set; then 3544 enableval="$enable_threads" 3545 tcl_ok=$enableval 3546else 3547 tcl_ok=no 3548fi; 3549 3550 if test "${TCL_THREADS}" = 1; then 3551 tcl_threaded_core=1; 3552 fi 3553 3554 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 3555 TCL_THREADS=1 3556 # USE_THREAD_ALLOC tells us to try the special thread-based 3557 # allocator that significantly reduces lock contention 3558 3559cat >>confdefs.h <<\_ACEOF 3560#define USE_THREAD_ALLOC 1 3561_ACEOF 3562 3563 3564cat >>confdefs.h <<\_ACEOF 3565#define _REENTRANT 1 3566_ACEOF 3567 3568 if test "`uname -s`" = "SunOS" ; then 3569 3570cat >>confdefs.h <<\_ACEOF 3571#define _POSIX_PTHREAD_SEMANTICS 1 3572_ACEOF 3573 3574 fi 3575 3576cat >>confdefs.h <<\_ACEOF 3577#define _THREAD_SAFE 1 3578_ACEOF 3579 3580 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 3581echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 3582if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 3583 echo $ECHO_N "(cached) $ECHO_C" >&6 3584else 3585 ac_check_lib_save_LIBS=$LIBS 3586LIBS="-lpthread $LIBS" 3587cat >conftest.$ac_ext <<_ACEOF 3588/* confdefs.h. */ 3589_ACEOF 3590cat confdefs.h >>conftest.$ac_ext 3591cat >>conftest.$ac_ext <<_ACEOF 3592/* end confdefs.h. */ 3593 3594/* Override any gcc2 internal prototype to avoid an error. */ 3595#ifdef __cplusplus 3596extern "C" 3597#endif 3598/* We use char because int might match the return type of a gcc2 3599 builtin and then its argument prototype would still apply. */ 3600char pthread_mutex_init (); 3601int 3602main () 3603{ 3604pthread_mutex_init (); 3605 ; 3606 return 0; 3607} 3608_ACEOF 3609rm -f conftest.$ac_objext conftest$ac_exeext 3610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3611 (eval $ac_link) 2>conftest.er1 3612 ac_status=$? 3613 grep -v '^ *+' conftest.er1 >conftest.err 3614 rm -f conftest.er1 3615 cat conftest.err >&5 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); } && 3618 { ac_try='test -z "$ac_c_werror_flag" 3619 || test ! -s conftest.err' 3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3621 (eval $ac_try) 2>&5 3622 ac_status=$? 3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3624 (exit $ac_status); }; } && 3625 { ac_try='test -s conftest$ac_exeext' 3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3627 (eval $ac_try) 2>&5 3628 ac_status=$? 3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3630 (exit $ac_status); }; }; then 3631 ac_cv_lib_pthread_pthread_mutex_init=yes 3632else 3633 echo "$as_me: failed program was:" >&5 3634sed 's/^/| /' conftest.$ac_ext >&5 3635 3636ac_cv_lib_pthread_pthread_mutex_init=no 3637fi 3638rm -f conftest.err conftest.$ac_objext \ 3639 conftest$ac_exeext conftest.$ac_ext 3640LIBS=$ac_check_lib_save_LIBS 3641fi 3642echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 3643echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 3644if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 3645 tcl_ok=yes 3646else 3647 tcl_ok=no 3648fi 3649 3650 if test "$tcl_ok" = "no"; then 3651 # Check a little harder for __pthread_mutex_init in the same 3652 # library, as some systems hide it there until pthread.h is 3653 # defined. We could alternatively do an AC_TRY_COMPILE with 3654 # pthread.h, but that will work with libpthread really doesn't 3655 # exist, like AIX 4.2. [Bug: 4359] 3656 echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 3657echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6 3658if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 3659 echo $ECHO_N "(cached) $ECHO_C" >&6 3660else 3661 ac_check_lib_save_LIBS=$LIBS 3662LIBS="-lpthread $LIBS" 3663cat >conftest.$ac_ext <<_ACEOF 3664/* confdefs.h. */ 3665_ACEOF 3666cat confdefs.h >>conftest.$ac_ext 3667cat >>conftest.$ac_ext <<_ACEOF 3668/* end confdefs.h. */ 3669 3670/* Override any gcc2 internal prototype to avoid an error. */ 3671#ifdef __cplusplus 3672extern "C" 3673#endif 3674/* We use char because int might match the return type of a gcc2 3675 builtin and then its argument prototype would still apply. */ 3676char __pthread_mutex_init (); 3677int 3678main () 3679{ 3680__pthread_mutex_init (); 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685rm -f conftest.$ac_objext conftest$ac_exeext 3686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3687 (eval $ac_link) 2>conftest.er1 3688 ac_status=$? 3689 grep -v '^ *+' conftest.er1 >conftest.err 3690 rm -f conftest.er1 3691 cat conftest.err >&5 3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3693 (exit $ac_status); } && 3694 { ac_try='test -z "$ac_c_werror_flag" 3695 || test ! -s conftest.err' 3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3697 (eval $ac_try) 2>&5 3698 ac_status=$? 3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3700 (exit $ac_status); }; } && 3701 { ac_try='test -s conftest$ac_exeext' 3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3703 (eval $ac_try) 2>&5 3704 ac_status=$? 3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3706 (exit $ac_status); }; }; then 3707 ac_cv_lib_pthread___pthread_mutex_init=yes 3708else 3709 echo "$as_me: failed program was:" >&5 3710sed 's/^/| /' conftest.$ac_ext >&5 3711 3712ac_cv_lib_pthread___pthread_mutex_init=no 3713fi 3714rm -f conftest.err conftest.$ac_objext \ 3715 conftest$ac_exeext conftest.$ac_ext 3716LIBS=$ac_check_lib_save_LIBS 3717fi 3718echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 3719echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6 3720if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 3721 tcl_ok=yes 3722else 3723 tcl_ok=no 3724fi 3725 3726 fi 3727 3728 if test "$tcl_ok" = "yes"; then 3729 # The space is needed 3730 THREADS_LIBS=" -lpthread" 3731 else 3732 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 3733echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6 3734if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736else 3737 ac_check_lib_save_LIBS=$LIBS 3738LIBS="-lpthreads $LIBS" 3739cat >conftest.$ac_ext <<_ACEOF 3740/* confdefs.h. */ 3741_ACEOF 3742cat confdefs.h >>conftest.$ac_ext 3743cat >>conftest.$ac_ext <<_ACEOF 3744/* end confdefs.h. */ 3745 3746/* Override any gcc2 internal prototype to avoid an error. */ 3747#ifdef __cplusplus 3748extern "C" 3749#endif 3750/* We use char because int might match the return type of a gcc2 3751 builtin and then its argument prototype would still apply. */ 3752char pthread_mutex_init (); 3753int 3754main () 3755{ 3756pthread_mutex_init (); 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761rm -f conftest.$ac_objext conftest$ac_exeext 3762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3763 (eval $ac_link) 2>conftest.er1 3764 ac_status=$? 3765 grep -v '^ *+' conftest.er1 >conftest.err 3766 rm -f conftest.er1 3767 cat conftest.err >&5 3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3769 (exit $ac_status); } && 3770 { ac_try='test -z "$ac_c_werror_flag" 3771 || test ! -s conftest.err' 3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3773 (eval $ac_try) 2>&5 3774 ac_status=$? 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3776 (exit $ac_status); }; } && 3777 { ac_try='test -s conftest$ac_exeext' 3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3779 (eval $ac_try) 2>&5 3780 ac_status=$? 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); }; }; then 3783 ac_cv_lib_pthreads_pthread_mutex_init=yes 3784else 3785 echo "$as_me: failed program was:" >&5 3786sed 's/^/| /' conftest.$ac_ext >&5 3787 3788ac_cv_lib_pthreads_pthread_mutex_init=no 3789fi 3790rm -f conftest.err conftest.$ac_objext \ 3791 conftest$ac_exeext conftest.$ac_ext 3792LIBS=$ac_check_lib_save_LIBS 3793fi 3794echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 3795echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6 3796if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 3797 tcl_ok=yes 3798else 3799 tcl_ok=no 3800fi 3801 3802 if test "$tcl_ok" = "yes"; then 3803 # The space is needed 3804 THREADS_LIBS=" -lpthreads" 3805 else 3806 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 3807echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6 3808if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 ac_check_lib_save_LIBS=$LIBS 3812LIBS="-lc $LIBS" 3813cat >conftest.$ac_ext <<_ACEOF 3814/* confdefs.h. */ 3815_ACEOF 3816cat confdefs.h >>conftest.$ac_ext 3817cat >>conftest.$ac_ext <<_ACEOF 3818/* end confdefs.h. */ 3819 3820/* Override any gcc2 internal prototype to avoid an error. */ 3821#ifdef __cplusplus 3822extern "C" 3823#endif 3824/* We use char because int might match the return type of a gcc2 3825 builtin and then its argument prototype would still apply. */ 3826char pthread_mutex_init (); 3827int 3828main () 3829{ 3830pthread_mutex_init (); 3831 ; 3832 return 0; 3833} 3834_ACEOF 3835rm -f conftest.$ac_objext conftest$ac_exeext 3836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3837 (eval $ac_link) 2>conftest.er1 3838 ac_status=$? 3839 grep -v '^ *+' conftest.er1 >conftest.err 3840 rm -f conftest.er1 3841 cat conftest.err >&5 3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 (exit $ac_status); } && 3844 { ac_try='test -z "$ac_c_werror_flag" 3845 || test ! -s conftest.err' 3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3847 (eval $ac_try) 2>&5 3848 ac_status=$? 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); }; } && 3851 { ac_try='test -s conftest$ac_exeext' 3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3853 (eval $ac_try) 2>&5 3854 ac_status=$? 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3856 (exit $ac_status); }; }; then 3857 ac_cv_lib_c_pthread_mutex_init=yes 3858else 3859 echo "$as_me: failed program was:" >&5 3860sed 's/^/| /' conftest.$ac_ext >&5 3861 3862ac_cv_lib_c_pthread_mutex_init=no 3863fi 3864rm -f conftest.err conftest.$ac_objext \ 3865 conftest$ac_exeext conftest.$ac_ext 3866LIBS=$ac_check_lib_save_LIBS 3867fi 3868echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 3869echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6 3870if test $ac_cv_lib_c_pthread_mutex_init = yes; then 3871 tcl_ok=yes 3872else 3873 tcl_ok=no 3874fi 3875 3876 if test "$tcl_ok" = "no"; then 3877 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 3878echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6 3879if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 3880 echo $ECHO_N "(cached) $ECHO_C" >&6 3881else 3882 ac_check_lib_save_LIBS=$LIBS 3883LIBS="-lc_r $LIBS" 3884cat >conftest.$ac_ext <<_ACEOF 3885/* confdefs.h. */ 3886_ACEOF 3887cat confdefs.h >>conftest.$ac_ext 3888cat >>conftest.$ac_ext <<_ACEOF 3889/* end confdefs.h. */ 3890 3891/* Override any gcc2 internal prototype to avoid an error. */ 3892#ifdef __cplusplus 3893extern "C" 3894#endif 3895/* We use char because int might match the return type of a gcc2 3896 builtin and then its argument prototype would still apply. */ 3897char pthread_mutex_init (); 3898int 3899main () 3900{ 3901pthread_mutex_init (); 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906rm -f conftest.$ac_objext conftest$ac_exeext 3907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3908 (eval $ac_link) 2>conftest.er1 3909 ac_status=$? 3910 grep -v '^ *+' conftest.er1 >conftest.err 3911 rm -f conftest.er1 3912 cat conftest.err >&5 3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3914 (exit $ac_status); } && 3915 { ac_try='test -z "$ac_c_werror_flag" 3916 || test ! -s conftest.err' 3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3918 (eval $ac_try) 2>&5 3919 ac_status=$? 3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3921 (exit $ac_status); }; } && 3922 { ac_try='test -s conftest$ac_exeext' 3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3924 (eval $ac_try) 2>&5 3925 ac_status=$? 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); }; }; then 3928 ac_cv_lib_c_r_pthread_mutex_init=yes 3929else 3930 echo "$as_me: failed program was:" >&5 3931sed 's/^/| /' conftest.$ac_ext >&5 3932 3933ac_cv_lib_c_r_pthread_mutex_init=no 3934fi 3935rm -f conftest.err conftest.$ac_objext \ 3936 conftest$ac_exeext conftest.$ac_ext 3937LIBS=$ac_check_lib_save_LIBS 3938fi 3939echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 3940echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6 3941if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 3942 tcl_ok=yes 3943else 3944 tcl_ok=no 3945fi 3946 3947 if test "$tcl_ok" = "yes"; then 3948 # The space is needed 3949 THREADS_LIBS=" -pthread" 3950 else 3951 TCL_THREADS=0 3952 { 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 3953echo "$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;} 3954 fi 3955 fi 3956 fi 3957 fi 3958 3959 # Does the pthread-implementation provide 3960 # 'pthread_attr_setstacksize' ? 3961 3962 ac_saved_libs=$LIBS 3963 LIBS="$LIBS $THREADS_LIBS" 3964 3965for ac_func in pthread_attr_setstacksize 3966do 3967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3968echo "$as_me:$LINENO: checking for $ac_func" >&5 3969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3970if eval "test \"\${$as_ac_var+set}\" = set"; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 cat >conftest.$ac_ext <<_ACEOF 3974/* confdefs.h. */ 3975_ACEOF 3976cat confdefs.h >>conftest.$ac_ext 3977cat >>conftest.$ac_ext <<_ACEOF 3978/* end confdefs.h. */ 3979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3980 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3981#define $ac_func innocuous_$ac_func 3982 3983/* System header to define __stub macros and hopefully few prototypes, 3984 which can conflict with char $ac_func (); below. 3985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3986 <limits.h> exists even on freestanding compilers. */ 3987 3988#ifdef __STDC__ 3989# include <limits.h> 3990#else 3991# include <assert.h> 3992#endif 3993 3994#undef $ac_func 3995 3996/* Override any gcc2 internal prototype to avoid an error. */ 3997#ifdef __cplusplus 3998extern "C" 3999{ 4000#endif 4001/* We use char because int might match the return type of a gcc2 4002 builtin and then its argument prototype would still apply. */ 4003char $ac_func (); 4004/* The GNU C library defines this for functions which it implements 4005 to always fail with ENOSYS. Some functions are actually named 4006 something starting with __ and the normal name is an alias. */ 4007#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4008choke me 4009#else 4010char (*f) () = $ac_func; 4011#endif 4012#ifdef __cplusplus 4013} 4014#endif 4015 4016int 4017main () 4018{ 4019return f != $ac_func; 4020 ; 4021 return 0; 4022} 4023_ACEOF 4024rm -f conftest.$ac_objext conftest$ac_exeext 4025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4026 (eval $ac_link) 2>conftest.er1 4027 ac_status=$? 4028 grep -v '^ *+' conftest.er1 >conftest.err 4029 rm -f conftest.er1 4030 cat conftest.err >&5 4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4032 (exit $ac_status); } && 4033 { ac_try='test -z "$ac_c_werror_flag" 4034 || test ! -s conftest.err' 4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4036 (eval $ac_try) 2>&5 4037 ac_status=$? 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4039 (exit $ac_status); }; } && 4040 { ac_try='test -s conftest$ac_exeext' 4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4042 (eval $ac_try) 2>&5 4043 ac_status=$? 4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4045 (exit $ac_status); }; }; then 4046 eval "$as_ac_var=yes" 4047else 4048 echo "$as_me: failed program was:" >&5 4049sed 's/^/| /' conftest.$ac_ext >&5 4050 4051eval "$as_ac_var=no" 4052fi 4053rm -f conftest.err conftest.$ac_objext \ 4054 conftest$ac_exeext conftest.$ac_ext 4055fi 4056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4058if test `eval echo '${'$as_ac_var'}'` = yes; then 4059 cat >>confdefs.h <<_ACEOF 4060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4061_ACEOF 4062 4063fi 4064done 4065 4066 echo "$as_me:$LINENO: checking for pthread_attr_get_np" >&5 4067echo $ECHO_N "checking for pthread_attr_get_np... $ECHO_C" >&6 4068if test "${ac_cv_func_pthread_attr_get_np+set}" = set; then 4069 echo $ECHO_N "(cached) $ECHO_C" >&6 4070else 4071 cat >conftest.$ac_ext <<_ACEOF 4072/* confdefs.h. */ 4073_ACEOF 4074cat confdefs.h >>conftest.$ac_ext 4075cat >>conftest.$ac_ext <<_ACEOF 4076/* end confdefs.h. */ 4077/* Define pthread_attr_get_np to an innocuous variant, in case <limits.h> declares pthread_attr_get_np. 4078 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4079#define pthread_attr_get_np innocuous_pthread_attr_get_np 4080 4081/* System header to define __stub macros and hopefully few prototypes, 4082 which can conflict with char pthread_attr_get_np (); below. 4083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4084 <limits.h> exists even on freestanding compilers. */ 4085 4086#ifdef __STDC__ 4087# include <limits.h> 4088#else 4089# include <assert.h> 4090#endif 4091 4092#undef pthread_attr_get_np 4093 4094/* Override any gcc2 internal prototype to avoid an error. */ 4095#ifdef __cplusplus 4096extern "C" 4097{ 4098#endif 4099/* We use char because int might match the return type of a gcc2 4100 builtin and then its argument prototype would still apply. */ 4101char pthread_attr_get_np (); 4102/* The GNU C library defines this for functions which it implements 4103 to always fail with ENOSYS. Some functions are actually named 4104 something starting with __ and the normal name is an alias. */ 4105#if defined (__stub_pthread_attr_get_np) || defined (__stub___pthread_attr_get_np) 4106choke me 4107#else 4108char (*f) () = pthread_attr_get_np; 4109#endif 4110#ifdef __cplusplus 4111} 4112#endif 4113 4114int 4115main () 4116{ 4117return f != pthread_attr_get_np; 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122rm -f conftest.$ac_objext conftest$ac_exeext 4123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4124 (eval $ac_link) 2>conftest.er1 4125 ac_status=$? 4126 grep -v '^ *+' conftest.er1 >conftest.err 4127 rm -f conftest.er1 4128 cat conftest.err >&5 4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4130 (exit $ac_status); } && 4131 { ac_try='test -z "$ac_c_werror_flag" 4132 || test ! -s conftest.err' 4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4134 (eval $ac_try) 2>&5 4135 ac_status=$? 4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4137 (exit $ac_status); }; } && 4138 { ac_try='test -s conftest$ac_exeext' 4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4140 (eval $ac_try) 2>&5 4141 ac_status=$? 4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4143 (exit $ac_status); }; }; then 4144 ac_cv_func_pthread_attr_get_np=yes 4145else 4146 echo "$as_me: failed program was:" >&5 4147sed 's/^/| /' conftest.$ac_ext >&5 4148 4149ac_cv_func_pthread_attr_get_np=no 4150fi 4151rm -f conftest.err conftest.$ac_objext \ 4152 conftest$ac_exeext conftest.$ac_ext 4153fi 4154echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_get_np" >&5 4155echo "${ECHO_T}$ac_cv_func_pthread_attr_get_np" >&6 4156if test $ac_cv_func_pthread_attr_get_np = yes; then 4157 tcl_ok=yes 4158else 4159 tcl_ok=no 4160fi 4161 4162 if test $tcl_ok = yes ; then 4163 4164cat >>confdefs.h <<\_ACEOF 4165#define HAVE_PTHREAD_ATTR_GET_NP 1 4166_ACEOF 4167 4168 echo "$as_me:$LINENO: checking for pthread_attr_get_np declaration" >&5 4169echo $ECHO_N "checking for pthread_attr_get_np declaration... $ECHO_C" >&6 4170if test "${tcl_cv_grep_pthread_attr_get_np+set}" = set; then 4171 echo $ECHO_N "(cached) $ECHO_C" >&6 4172else 4173 4174 cat >conftest.$ac_ext <<_ACEOF 4175/* confdefs.h. */ 4176_ACEOF 4177cat confdefs.h >>conftest.$ac_ext 4178cat >>conftest.$ac_ext <<_ACEOF 4179/* end confdefs.h. */ 4180#include <pthread.h> 4181 4182_ACEOF 4183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4184 $EGREP "pthread_attr_get_np" >/dev/null 2>&1; then 4185 tcl_cv_grep_pthread_attr_get_np=present 4186else 4187 tcl_cv_grep_pthread_attr_get_np=missing 4188fi 4189rm -f conftest* 4190 4191fi 4192echo "$as_me:$LINENO: result: $tcl_cv_grep_pthread_attr_get_np" >&5 4193echo "${ECHO_T}$tcl_cv_grep_pthread_attr_get_np" >&6 4194 if test $tcl_cv_grep_pthread_attr_get_np = missing ; then 4195 4196cat >>confdefs.h <<\_ACEOF 4197#define ATTRGETNP_NOT_DECLARED 1 4198_ACEOF 4199 4200 fi 4201 else 4202 echo "$as_me:$LINENO: checking for pthread_getattr_np" >&5 4203echo $ECHO_N "checking for pthread_getattr_np... $ECHO_C" >&6 4204if test "${ac_cv_func_pthread_getattr_np+set}" = set; then 4205 echo $ECHO_N "(cached) $ECHO_C" >&6 4206else 4207 cat >conftest.$ac_ext <<_ACEOF 4208/* confdefs.h. */ 4209_ACEOF 4210cat confdefs.h >>conftest.$ac_ext 4211cat >>conftest.$ac_ext <<_ACEOF 4212/* end confdefs.h. */ 4213/* Define pthread_getattr_np to an innocuous variant, in case <limits.h> declares pthread_getattr_np. 4214 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4215#define pthread_getattr_np innocuous_pthread_getattr_np 4216 4217/* System header to define __stub macros and hopefully few prototypes, 4218 which can conflict with char pthread_getattr_np (); below. 4219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4220 <limits.h> exists even on freestanding compilers. */ 4221 4222#ifdef __STDC__ 4223# include <limits.h> 4224#else 4225# include <assert.h> 4226#endif 4227 4228#undef pthread_getattr_np 4229 4230/* Override any gcc2 internal prototype to avoid an error. */ 4231#ifdef __cplusplus 4232extern "C" 4233{ 4234#endif 4235/* We use char because int might match the return type of a gcc2 4236 builtin and then its argument prototype would still apply. */ 4237char pthread_getattr_np (); 4238/* The GNU C library defines this for functions which it implements 4239 to always fail with ENOSYS. Some functions are actually named 4240 something starting with __ and the normal name is an alias. */ 4241#if defined (__stub_pthread_getattr_np) || defined (__stub___pthread_getattr_np) 4242choke me 4243#else 4244char (*f) () = pthread_getattr_np; 4245#endif 4246#ifdef __cplusplus 4247} 4248#endif 4249 4250int 4251main () 4252{ 4253return f != pthread_getattr_np; 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258rm -f conftest.$ac_objext conftest$ac_exeext 4259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4260 (eval $ac_link) 2>conftest.er1 4261 ac_status=$? 4262 grep -v '^ *+' conftest.er1 >conftest.err 4263 rm -f conftest.er1 4264 cat conftest.err >&5 4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4266 (exit $ac_status); } && 4267 { ac_try='test -z "$ac_c_werror_flag" 4268 || test ! -s conftest.err' 4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4270 (eval $ac_try) 2>&5 4271 ac_status=$? 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); }; } && 4274 { ac_try='test -s conftest$ac_exeext' 4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4276 (eval $ac_try) 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); }; }; then 4280 ac_cv_func_pthread_getattr_np=yes 4281else 4282 echo "$as_me: failed program was:" >&5 4283sed 's/^/| /' conftest.$ac_ext >&5 4284 4285ac_cv_func_pthread_getattr_np=no 4286fi 4287rm -f conftest.err conftest.$ac_objext \ 4288 conftest$ac_exeext conftest.$ac_ext 4289fi 4290echo "$as_me:$LINENO: result: $ac_cv_func_pthread_getattr_np" >&5 4291echo "${ECHO_T}$ac_cv_func_pthread_getattr_np" >&6 4292if test $ac_cv_func_pthread_getattr_np = yes; then 4293 tcl_ok=yes 4294else 4295 tcl_ok=no 4296fi 4297 4298 if test $tcl_ok = yes ; then 4299 4300cat >>confdefs.h <<\_ACEOF 4301#define HAVE_PTHREAD_GETATTR_NP 1 4302_ACEOF 4303 4304 echo "$as_me:$LINENO: checking for pthread_getattr_np declaration" >&5 4305echo $ECHO_N "checking for pthread_getattr_np declaration... $ECHO_C" >&6 4306if test "${tcl_cv_grep_pthread_getattr_np+set}" = set; then 4307 echo $ECHO_N "(cached) $ECHO_C" >&6 4308else 4309 4310 cat >conftest.$ac_ext <<_ACEOF 4311/* confdefs.h. */ 4312_ACEOF 4313cat confdefs.h >>conftest.$ac_ext 4314cat >>conftest.$ac_ext <<_ACEOF 4315/* end confdefs.h. */ 4316#include <pthread.h> 4317 4318_ACEOF 4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4320 $EGREP "pthread_getattr_np" >/dev/null 2>&1; then 4321 tcl_cv_grep_pthread_getattr_np=present 4322else 4323 tcl_cv_grep_pthread_getattr_np=missing 4324fi 4325rm -f conftest* 4326 4327fi 4328echo "$as_me:$LINENO: result: $tcl_cv_grep_pthread_getattr_np" >&5 4329echo "${ECHO_T}$tcl_cv_grep_pthread_getattr_np" >&6 4330 if test $tcl_cv_grep_pthread_getattr_np = missing ; then 4331 4332cat >>confdefs.h <<\_ACEOF 4333#define GETATTRNP_NOT_DECLARED 1 4334_ACEOF 4335 4336 fi 4337 fi 4338 fi 4339 if test $tcl_ok = no; then 4340 # Darwin thread stacksize API 4341 4342for ac_func in pthread_get_stacksize_np 4343do 4344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4345echo "$as_me:$LINENO: checking for $ac_func" >&5 4346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4347if eval "test \"\${$as_ac_var+set}\" = set"; then 4348 echo $ECHO_N "(cached) $ECHO_C" >&6 4349else 4350 cat >conftest.$ac_ext <<_ACEOF 4351/* confdefs.h. */ 4352_ACEOF 4353cat confdefs.h >>conftest.$ac_ext 4354cat >>conftest.$ac_ext <<_ACEOF 4355/* end confdefs.h. */ 4356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4357 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4358#define $ac_func innocuous_$ac_func 4359 4360/* System header to define __stub macros and hopefully few prototypes, 4361 which can conflict with char $ac_func (); below. 4362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4363 <limits.h> exists even on freestanding compilers. */ 4364 4365#ifdef __STDC__ 4366# include <limits.h> 4367#else 4368# include <assert.h> 4369#endif 4370 4371#undef $ac_func 4372 4373/* Override any gcc2 internal prototype to avoid an error. */ 4374#ifdef __cplusplus 4375extern "C" 4376{ 4377#endif 4378/* We use char because int might match the return type of a gcc2 4379 builtin and then its argument prototype would still apply. */ 4380char $ac_func (); 4381/* The GNU C library defines this for functions which it implements 4382 to always fail with ENOSYS. Some functions are actually named 4383 something starting with __ and the normal name is an alias. */ 4384#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4385choke me 4386#else 4387char (*f) () = $ac_func; 4388#endif 4389#ifdef __cplusplus 4390} 4391#endif 4392 4393int 4394main () 4395{ 4396return f != $ac_func; 4397 ; 4398 return 0; 4399} 4400_ACEOF 4401rm -f conftest.$ac_objext conftest$ac_exeext 4402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4403 (eval $ac_link) 2>conftest.er1 4404 ac_status=$? 4405 grep -v '^ *+' conftest.er1 >conftest.err 4406 rm -f conftest.er1 4407 cat conftest.err >&5 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); } && 4410 { ac_try='test -z "$ac_c_werror_flag" 4411 || test ! -s conftest.err' 4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4413 (eval $ac_try) 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); }; } && 4417 { ac_try='test -s conftest$ac_exeext' 4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4419 (eval $ac_try) 2>&5 4420 ac_status=$? 4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4422 (exit $ac_status); }; }; then 4423 eval "$as_ac_var=yes" 4424else 4425 echo "$as_me: failed program was:" >&5 4426sed 's/^/| /' conftest.$ac_ext >&5 4427 4428eval "$as_ac_var=no" 4429fi 4430rm -f conftest.err conftest.$ac_objext \ 4431 conftest$ac_exeext conftest.$ac_ext 4432fi 4433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4435if test `eval echo '${'$as_ac_var'}'` = yes; then 4436 cat >>confdefs.h <<_ACEOF 4437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4438_ACEOF 4439 4440fi 4441done 4442 4443 fi 4444 LIBS=$ac_saved_libs 4445 else 4446 TCL_THREADS=0 4447 fi 4448 # Do checking message here to not mess up interleaved configure output 4449 echo "$as_me:$LINENO: checking for building with threads" >&5 4450echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 4451 if test "${TCL_THREADS}" = 1; then 4452 4453cat >>confdefs.h <<\_ACEOF 4454#define TCL_THREADS 1 4455_ACEOF 4456 4457 if test "${tcl_threaded_core}" = 1; then 4458 echo "$as_me:$LINENO: result: yes (threaded core)" >&5 4459echo "${ECHO_T}yes (threaded core)" >&6 4460 else 4461 echo "$as_me:$LINENO: result: yes" >&5 4462echo "${ECHO_T}yes" >&6 4463 fi 4464 else 4465 echo "$as_me:$LINENO: result: no (default)" >&5 4466echo "${ECHO_T}no (default)" >&6 4467 fi 4468 4469 4470 4471 4472# Add the threads support libraries 4473LIBS="$LIBS$THREADS_LIBS" 4474 4475 4476 echo "$as_me:$LINENO: checking how to build libraries" >&5 4477echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 4478 # Check whether --enable-shared or --disable-shared was given. 4479if test "${enable_shared+set}" = set; then 4480 enableval="$enable_shared" 4481 tcl_ok=$enableval 4482else 4483 tcl_ok=yes 4484fi; 4485 4486 if test "${enable_shared+set}" = set; then 4487 enableval="$enable_shared" 4488 tcl_ok=$enableval 4489 else 4490 tcl_ok=yes 4491 fi 4492 4493 if test "$tcl_ok" = "yes" ; then 4494 echo "$as_me:$LINENO: result: shared" >&5 4495echo "${ECHO_T}shared" >&6 4496 SHARED_BUILD=1 4497 else 4498 echo "$as_me:$LINENO: result: static" >&5 4499echo "${ECHO_T}static" >&6 4500 SHARED_BUILD=0 4501 4502cat >>confdefs.h <<\_ACEOF 4503#define STATIC_BUILD 1 4504_ACEOF 4505 4506 fi 4507 4508 4509#-------------------------------------------------------------------- 4510# The statements below define a collection of compile flags. This 4511# macro depends on the value of SHARED_BUILD, and should be called 4512# after SC_ENABLE_SHARED checks the configure switches. 4513#-------------------------------------------------------------------- 4514 4515if test -n "$ac_tool_prefix"; then 4516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4517set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4518echo "$as_me:$LINENO: checking for $ac_word" >&5 4519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4520if test "${ac_cv_prog_RANLIB+set}" = set; then 4521 echo $ECHO_N "(cached) $ECHO_C" >&6 4522else 4523 if test -n "$RANLIB"; then 4524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4525else 4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4535 break 2 4536 fi 4537done 4538done 4539 4540fi 4541fi 4542RANLIB=$ac_cv_prog_RANLIB 4543if test -n "$RANLIB"; then 4544 echo "$as_me:$LINENO: result: $RANLIB" >&5 4545echo "${ECHO_T}$RANLIB" >&6 4546else 4547 echo "$as_me:$LINENO: result: no" >&5 4548echo "${ECHO_T}no" >&6 4549fi 4550 4551fi 4552if test -z "$ac_cv_prog_RANLIB"; then 4553 ac_ct_RANLIB=$RANLIB 4554 # Extract the first word of "ranlib", so it can be a program name with args. 4555set dummy ranlib; ac_word=$2 4556echo "$as_me:$LINENO: checking for $ac_word" >&5 4557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4558if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4559 echo $ECHO_N "(cached) $ECHO_C" >&6 4560else 4561 if test -n "$ac_ct_RANLIB"; then 4562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4563else 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4571 ac_cv_prog_ac_ct_RANLIB="ranlib" 4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4573 break 2 4574 fi 4575done 4576done 4577 4578 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4579fi 4580fi 4581ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4582if test -n "$ac_ct_RANLIB"; then 4583 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4584echo "${ECHO_T}$ac_ct_RANLIB" >&6 4585else 4586 echo "$as_me:$LINENO: result: no" >&5 4587echo "${ECHO_T}no" >&6 4588fi 4589 4590 RANLIB=$ac_ct_RANLIB 4591else 4592 RANLIB="$ac_cv_prog_RANLIB" 4593fi 4594 4595 4596 4597 # Step 0.a: Enable 64 bit support? 4598 4599 echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 4600echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 4601 # Check whether --enable-64bit or --disable-64bit was given. 4602if test "${enable_64bit+set}" = set; then 4603 enableval="$enable_64bit" 4604 do64bit=$enableval 4605else 4606 do64bit=no 4607fi; 4608 echo "$as_me:$LINENO: result: $do64bit" >&5 4609echo "${ECHO_T}$do64bit" >&6 4610 4611 # Step 0.b: Enable Solaris 64 bit VIS support? 4612 4613 echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 4614echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6 4615 # Check whether --enable-64bit-vis or --disable-64bit-vis was given. 4616if test "${enable_64bit_vis+set}" = set; then 4617 enableval="$enable_64bit_vis" 4618 do64bitVIS=$enableval 4619else 4620 do64bitVIS=no 4621fi; 4622 echo "$as_me:$LINENO: result: $do64bitVIS" >&5 4623echo "${ECHO_T}$do64bitVIS" >&6 4624 # Force 64bit on with VIS 4625 if test "$do64bitVIS" = "yes"; then 4626 do64bit=yes 4627fi 4628 4629 4630 # Step 0.c: Check if visibility support is available. Do this here so 4631 # that platform specific alternatives can be used below if this fails. 4632 4633 echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 4634echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6 4635if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4637else 4638 4639 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 4640 cat >conftest.$ac_ext <<_ACEOF 4641/* confdefs.h. */ 4642_ACEOF 4643cat confdefs.h >>conftest.$ac_ext 4644cat >>conftest.$ac_ext <<_ACEOF 4645/* end confdefs.h. */ 4646 4647 extern __attribute__((__visibility__("hidden"))) void f(void); 4648 void f(void) {} 4649int 4650main () 4651{ 4652f(); 4653 ; 4654 return 0; 4655} 4656_ACEOF 4657rm -f conftest.$ac_objext conftest$ac_exeext 4658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4659 (eval $ac_link) 2>conftest.er1 4660 ac_status=$? 4661 grep -v '^ *+' conftest.er1 >conftest.err 4662 rm -f conftest.er1 4663 cat conftest.err >&5 4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4665 (exit $ac_status); } && 4666 { ac_try='test -z "$ac_c_werror_flag" 4667 || test ! -s conftest.err' 4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4669 (eval $ac_try) 2>&5 4670 ac_status=$? 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); }; } && 4673 { ac_try='test -s conftest$ac_exeext' 4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4675 (eval $ac_try) 2>&5 4676 ac_status=$? 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); }; }; then 4679 tcl_cv_cc_visibility_hidden=yes 4680else 4681 echo "$as_me: failed program was:" >&5 4682sed 's/^/| /' conftest.$ac_ext >&5 4683 4684tcl_cv_cc_visibility_hidden=no 4685fi 4686rm -f conftest.err conftest.$ac_objext \ 4687 conftest$ac_exeext conftest.$ac_ext 4688 CFLAGS=$hold_cflags 4689fi 4690echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 4691echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6 4692 if test $tcl_cv_cc_visibility_hidden = yes; then 4693 4694 4695cat >>confdefs.h <<\_ACEOF 4696#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 4697_ACEOF 4698 4699 4700fi 4701 4702 4703 # Step 0.d: Disable -rpath support? 4704 4705 echo "$as_me:$LINENO: checking if rpath support is requested" >&5 4706echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6 4707 # Check whether --enable-rpath or --disable-rpath was given. 4708if test "${enable_rpath+set}" = set; then 4709 enableval="$enable_rpath" 4710 doRpath=$enableval 4711else 4712 doRpath=yes 4713fi; 4714 echo "$as_me:$LINENO: result: $doRpath" >&5 4715echo "${ECHO_T}$doRpath" >&6 4716 4717 # Step 1: set the variable "system" to hold the name and version number 4718 # for the system. 4719 4720 4721 echo "$as_me:$LINENO: checking system version" >&5 4722echo $ECHO_N "checking system version... $ECHO_C" >&6 4723if test "${tcl_cv_sys_version+set}" = set; then 4724 echo $ECHO_N "(cached) $ECHO_C" >&6 4725else 4726 4727 if test -f /usr/lib/NextStep/software_version; then 4728 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 4729 else 4730 tcl_cv_sys_version=`uname -s`-`uname -r` 4731 if test "$?" -ne 0 ; then 4732 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 4733echo "$as_me: WARNING: can't find uname command" >&2;} 4734 tcl_cv_sys_version=unknown 4735 else 4736 # Special check for weird MP-RAS system (uname returns weird 4737 # results, and the version is kept in special file). 4738 4739 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 4740 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 4741 fi 4742 if test "`uname -s`" = "AIX" ; then 4743 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 4744 fi 4745 fi 4746 fi 4747 4748fi 4749echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 4750echo "${ECHO_T}$tcl_cv_sys_version" >&6 4751 system=$tcl_cv_sys_version 4752 4753 4754 # Step 2: check for existence of -ldl library. This is needed because 4755 # Linux can use either -ldl or -ldld for dynamic loading. 4756 4757 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4758echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4759if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4760 echo $ECHO_N "(cached) $ECHO_C" >&6 4761else 4762 ac_check_lib_save_LIBS=$LIBS 4763LIBS="-ldl $LIBS" 4764cat >conftest.$ac_ext <<_ACEOF 4765/* confdefs.h. */ 4766_ACEOF 4767cat confdefs.h >>conftest.$ac_ext 4768cat >>conftest.$ac_ext <<_ACEOF 4769/* end confdefs.h. */ 4770 4771/* Override any gcc2 internal prototype to avoid an error. */ 4772#ifdef __cplusplus 4773extern "C" 4774#endif 4775/* We use char because int might match the return type of a gcc2 4776 builtin and then its argument prototype would still apply. */ 4777char dlopen (); 4778int 4779main () 4780{ 4781dlopen (); 4782 ; 4783 return 0; 4784} 4785_ACEOF 4786rm -f conftest.$ac_objext conftest$ac_exeext 4787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4788 (eval $ac_link) 2>conftest.er1 4789 ac_status=$? 4790 grep -v '^ *+' conftest.er1 >conftest.err 4791 rm -f conftest.er1 4792 cat conftest.err >&5 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); } && 4795 { ac_try='test -z "$ac_c_werror_flag" 4796 || test ! -s conftest.err' 4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4798 (eval $ac_try) 2>&5 4799 ac_status=$? 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; } && 4802 { ac_try='test -s conftest$ac_exeext' 4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4804 (eval $ac_try) 2>&5 4805 ac_status=$? 4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4807 (exit $ac_status); }; }; then 4808 ac_cv_lib_dl_dlopen=yes 4809else 4810 echo "$as_me: failed program was:" >&5 4811sed 's/^/| /' conftest.$ac_ext >&5 4812 4813ac_cv_lib_dl_dlopen=no 4814fi 4815rm -f conftest.err conftest.$ac_objext \ 4816 conftest$ac_exeext conftest.$ac_ext 4817LIBS=$ac_check_lib_save_LIBS 4818fi 4819echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4820echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4821if test $ac_cv_lib_dl_dlopen = yes; then 4822 have_dl=yes 4823else 4824 have_dl=no 4825fi 4826 4827 4828 # Require ranlib early so we can override it in special cases below. 4829 if test x"${SHLIB_VERSION}" = x; then 4830 SHLIB_VERSION="1.0" 4831fi 4832 4833 4834 4835 4836 # Step 3: set configuration options based on system name and version. 4837 4838 do64bit_ok=no 4839 LDFLAGS_ORIG="$LDFLAGS" 4840 # When ld needs options to work in 64-bit mode, put them in 4841 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 4842 # is disabled by the user. [Bug 1016796] 4843 LDFLAGS_ARCH="" 4844 UNSHARED_LIB_SUFFIX="" 4845 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 4846 ECHO_VERSION='`echo ${VERSION}`' 4847 TCL_LIB_VERSIONS_OK=ok 4848 CFLAGS_DEBUG=-g 4849 CFLAGS_OPTIMIZE=-O 4850 if test "$GCC" = yes; then 4851 4852 CFLAGS_WARNING="-Wall" 4853 4854else 4855 CFLAGS_WARNING="" 4856fi 4857 4858 # Extract the first word of "ar", so it can be a program name with args. 4859set dummy ar; ac_word=$2 4860echo "$as_me:$LINENO: checking for $ac_word" >&5 4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4862if test "${ac_cv_prog_AR+set}" = set; then 4863 echo $ECHO_N "(cached) $ECHO_C" >&6 4864else 4865 if test -n "$AR"; then 4866 ac_cv_prog_AR="$AR" # Let the user override the test. 4867else 4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869for as_dir in $PATH 4870do 4871 IFS=$as_save_IFS 4872 test -z "$as_dir" && as_dir=. 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4875 ac_cv_prog_AR="ar" 4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4877 break 2 4878 fi 4879done 4880done 4881 4882fi 4883fi 4884AR=$ac_cv_prog_AR 4885if test -n "$AR"; then 4886 echo "$as_me:$LINENO: result: $AR" >&5 4887echo "${ECHO_T}$AR" >&6 4888else 4889 echo "$as_me:$LINENO: result: no" >&5 4890echo "${ECHO_T}no" >&6 4891fi 4892 4893 if test "${AR}" = ""; then 4894 4895 { { echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5 4896echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;} 4897 { (exit 1); exit 1; }; } 4898 4899fi 4900 4901 STLIB_LD='${AR} cr' 4902 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 4903 PLAT_OBJS="" 4904 PLAT_SRCS="" 4905 LDAIX_SRC="" 4906 case $system in 4907 AIX-*) 4908 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 4909 4910 # AIX requires the _r compiler when gcc isn't being used 4911 case "${CC}" in 4912 *_r|*_r\ *) 4913 # ok ... 4914 ;; 4915 *) 4916 # Make sure only first arg gets _r 4917 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 4918 ;; 4919 esac 4920 echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 4921echo "${ECHO_T}Using $CC for compiling with threads" >&6 4922 4923fi 4924 4925 LIBS="$LIBS -lc" 4926 SHLIB_CFLAGS="" 4927 # Note: need the LIBS below, otherwise Tk won't find Tcl's 4928 # symbols when dynamically loaded into tclsh. 4929 SHLIB_LD_LIBS='${LIBS}' 4930 SHLIB_SUFFIX=".so" 4931 4932 DL_OBJS="tclLoadDl.o" 4933 LD_LIBRARY_PATH_VAR="LIBPATH" 4934 4935 # ldAix No longer needed with use of -bexpall/-brtl 4936 # but some extensions may still reference it 4937 LDAIX_SRC='$(UNIX_DIR)/ldAix' 4938 4939 # Check to enable 64-bit flags for compiler/linker 4940 if test "$do64bit" = yes; then 4941 4942 if test "$GCC" = yes; then 4943 4944 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 4945echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4946 4947else 4948 4949 do64bit_ok=yes 4950 CFLAGS="$CFLAGS -q64" 4951 LDFLAGS_ARCH="-q64" 4952 RANLIB="${RANLIB} -X64" 4953 AR="${AR} -X64" 4954 SHLIB_LD_FLAGS="-b64" 4955 4956fi 4957 4958 4959fi 4960 4961 4962 if test "`uname -m`" = ia64; then 4963 4964 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 4965 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 4966 # AIX-5 has dl* in libc.so 4967 DL_LIBS="" 4968 if test "$GCC" = yes; then 4969 4970 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 4971 4972else 4973 4974 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 4975 4976fi 4977 4978 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 4979 4980else 4981 4982 if test "$GCC" = yes; then 4983 4984 SHLIB_LD='${CC} -shared -Wl,-bexpall' 4985 4986else 4987 4988 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 4989 LDFLAGS="$LDFLAGS -brtl" 4990 4991fi 4992 4993 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 4994 DL_LIBS="-ldl" 4995 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4996 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4997 4998fi 4999 5000 ;; 5001 BeOS*) 5002 SHLIB_CFLAGS="-fPIC" 5003 SHLIB_LD='${CC} -nostart' 5004 SHLIB_LD_LIBS='${LIBS}' 5005 SHLIB_SUFFIX=".so" 5006 DL_OBJS="tclLoadDl.o" 5007 DL_LIBS="-ldl" 5008 5009 #----------------------------------------------------------- 5010 # Check for inet_ntoa in -lbind, for BeOS (which also needs 5011 # -lsocket, even if the network functions are in -lnet which 5012 # is always linked to, for compatibility. 5013 #----------------------------------------------------------- 5014 echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 5015echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6 5016if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 5017 echo $ECHO_N "(cached) $ECHO_C" >&6 5018else 5019 ac_check_lib_save_LIBS=$LIBS 5020LIBS="-lbind $LIBS" 5021cat >conftest.$ac_ext <<_ACEOF 5022/* confdefs.h. */ 5023_ACEOF 5024cat confdefs.h >>conftest.$ac_ext 5025cat >>conftest.$ac_ext <<_ACEOF 5026/* end confdefs.h. */ 5027 5028/* Override any gcc2 internal prototype to avoid an error. */ 5029#ifdef __cplusplus 5030extern "C" 5031#endif 5032/* We use char because int might match the return type of a gcc2 5033 builtin and then its argument prototype would still apply. */ 5034char inet_ntoa (); 5035int 5036main () 5037{ 5038inet_ntoa (); 5039 ; 5040 return 0; 5041} 5042_ACEOF 5043rm -f conftest.$ac_objext conftest$ac_exeext 5044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5045 (eval $ac_link) 2>conftest.er1 5046 ac_status=$? 5047 grep -v '^ *+' conftest.er1 >conftest.err 5048 rm -f conftest.er1 5049 cat conftest.err >&5 5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5051 (exit $ac_status); } && 5052 { ac_try='test -z "$ac_c_werror_flag" 5053 || test ! -s conftest.err' 5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5055 (eval $ac_try) 2>&5 5056 ac_status=$? 5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5058 (exit $ac_status); }; } && 5059 { ac_try='test -s conftest$ac_exeext' 5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5061 (eval $ac_try) 2>&5 5062 ac_status=$? 5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); }; }; then 5065 ac_cv_lib_bind_inet_ntoa=yes 5066else 5067 echo "$as_me: failed program was:" >&5 5068sed 's/^/| /' conftest.$ac_ext >&5 5069 5070ac_cv_lib_bind_inet_ntoa=no 5071fi 5072rm -f conftest.err conftest.$ac_objext \ 5073 conftest$ac_exeext conftest.$ac_ext 5074LIBS=$ac_check_lib_save_LIBS 5075fi 5076echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 5077echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6 5078if test $ac_cv_lib_bind_inet_ntoa = yes; then 5079 LIBS="$LIBS -lbind -lsocket" 5080fi 5081 5082 ;; 5083 BSD/OS-2.1*|BSD/OS-3*) 5084 SHLIB_CFLAGS="" 5085 SHLIB_LD="shlicc -r" 5086 SHLIB_LD_LIBS='${LIBS}' 5087 SHLIB_SUFFIX=".so" 5088 DL_OBJS="tclLoadDl.o" 5089 DL_LIBS="-ldl" 5090 CC_SEARCH_FLAGS="" 5091 LD_SEARCH_FLAGS="" 5092 ;; 5093 BSD/OS-4.*) 5094 SHLIB_CFLAGS="-export-dynamic -fPIC" 5095 SHLIB_LD='${CC} -shared' 5096 SHLIB_LD_LIBS='${LIBS}' 5097 SHLIB_SUFFIX=".so" 5098 DL_OBJS="tclLoadDl.o" 5099 DL_LIBS="-ldl" 5100 LDFLAGS="$LDFLAGS -export-dynamic" 5101 CC_SEARCH_FLAGS="" 5102 LD_SEARCH_FLAGS="" 5103 ;; 5104 CYGWIN_*) 5105 SHLIB_CFLAGS="" 5106 SHLIB_LD='${CC} -shared' 5107 SHLIB_LD_LIBS='${LIBS}' 5108 SHLIB_SUFFIX=".dll" 5109 DL_OBJS="tclLoadDl.o" 5110 DL_LIBS="-ldl" 5111 CC_SEARCH_FLAGS="" 5112 LD_SEARCH_FLAGS="" 5113 ;; 5114 dgux*) 5115 SHLIB_CFLAGS="-K PIC" 5116 SHLIB_LD='${CC} -G' 5117 SHLIB_LD_LIBS="" 5118 SHLIB_SUFFIX=".so" 5119 DL_OBJS="tclLoadDl.o" 5120 DL_LIBS="-ldl" 5121 CC_SEARCH_FLAGS="" 5122 LD_SEARCH_FLAGS="" 5123 ;; 5124 Haiku*) 5125 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5126 SHLIB_CFLAGS="-fPIC" 5127 SHLIB_LD_LIBS='${LIBS}' 5128 SHLIB_SUFFIX=".so" 5129 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 5130 DL_OBJS="tclLoadDl.o" 5131 DL_LIBS="-lroot" 5132 echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 5133echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6 5134if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 5135 echo $ECHO_N "(cached) $ECHO_C" >&6 5136else 5137 ac_check_lib_save_LIBS=$LIBS 5138LIBS="-lnetwork $LIBS" 5139cat >conftest.$ac_ext <<_ACEOF 5140/* confdefs.h. */ 5141_ACEOF 5142cat confdefs.h >>conftest.$ac_ext 5143cat >>conftest.$ac_ext <<_ACEOF 5144/* end confdefs.h. */ 5145 5146/* Override any gcc2 internal prototype to avoid an error. */ 5147#ifdef __cplusplus 5148extern "C" 5149#endif 5150/* We use char because int might match the return type of a gcc2 5151 builtin and then its argument prototype would still apply. */ 5152char inet_ntoa (); 5153int 5154main () 5155{ 5156inet_ntoa (); 5157 ; 5158 return 0; 5159} 5160_ACEOF 5161rm -f conftest.$ac_objext conftest$ac_exeext 5162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5163 (eval $ac_link) 2>conftest.er1 5164 ac_status=$? 5165 grep -v '^ *+' conftest.er1 >conftest.err 5166 rm -f conftest.er1 5167 cat conftest.err >&5 5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5169 (exit $ac_status); } && 5170 { ac_try='test -z "$ac_c_werror_flag" 5171 || test ! -s conftest.err' 5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5173 (eval $ac_try) 2>&5 5174 ac_status=$? 5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5176 (exit $ac_status); }; } && 5177 { ac_try='test -s conftest$ac_exeext' 5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5179 (eval $ac_try) 2>&5 5180 ac_status=$? 5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 (exit $ac_status); }; }; then 5183 ac_cv_lib_network_inet_ntoa=yes 5184else 5185 echo "$as_me: failed program was:" >&5 5186sed 's/^/| /' conftest.$ac_ext >&5 5187 5188ac_cv_lib_network_inet_ntoa=no 5189fi 5190rm -f conftest.err conftest.$ac_objext \ 5191 conftest$ac_exeext conftest.$ac_ext 5192LIBS=$ac_check_lib_save_LIBS 5193fi 5194echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 5195echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6 5196if test $ac_cv_lib_network_inet_ntoa = yes; then 5197 LIBS="$LIBS -lnetwork" 5198fi 5199 5200 ;; 5201 HP-UX-*.11.*) 5202 # Use updated header definitions where possible 5203 5204cat >>confdefs.h <<\_ACEOF 5205#define _XOPEN_SOURCE_EXTENDED 1 5206_ACEOF 5207 5208 5209cat >>confdefs.h <<\_ACEOF 5210#define _XOPEN_SOURCE 1 5211_ACEOF 5212 5213 LIBS="$LIBS -lxnet" # Use the XOPEN network library 5214 5215 if test "`uname -m`" = ia64; then 5216 5217 SHLIB_SUFFIX=".so" 5218 5219else 5220 5221 SHLIB_SUFFIX=".sl" 5222 5223fi 5224 5225 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 5226echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5227if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5228 echo $ECHO_N "(cached) $ECHO_C" >&6 5229else 5230 ac_check_lib_save_LIBS=$LIBS 5231LIBS="-ldld $LIBS" 5232cat >conftest.$ac_ext <<_ACEOF 5233/* confdefs.h. */ 5234_ACEOF 5235cat confdefs.h >>conftest.$ac_ext 5236cat >>conftest.$ac_ext <<_ACEOF 5237/* end confdefs.h. */ 5238 5239/* Override any gcc2 internal prototype to avoid an error. */ 5240#ifdef __cplusplus 5241extern "C" 5242#endif 5243/* We use char because int might match the return type of a gcc2 5244 builtin and then its argument prototype would still apply. */ 5245char shl_load (); 5246int 5247main () 5248{ 5249shl_load (); 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254rm -f conftest.$ac_objext conftest$ac_exeext 5255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5256 (eval $ac_link) 2>conftest.er1 5257 ac_status=$? 5258 grep -v '^ *+' conftest.er1 >conftest.err 5259 rm -f conftest.er1 5260 cat conftest.err >&5 5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5262 (exit $ac_status); } && 5263 { ac_try='test -z "$ac_c_werror_flag" 5264 || test ! -s conftest.err' 5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5266 (eval $ac_try) 2>&5 5267 ac_status=$? 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); }; } && 5270 { ac_try='test -s conftest$ac_exeext' 5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5272 (eval $ac_try) 2>&5 5273 ac_status=$? 5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5275 (exit $ac_status); }; }; then 5276 ac_cv_lib_dld_shl_load=yes 5277else 5278 echo "$as_me: failed program was:" >&5 5279sed 's/^/| /' conftest.$ac_ext >&5 5280 5281ac_cv_lib_dld_shl_load=no 5282fi 5283rm -f conftest.err conftest.$ac_objext \ 5284 conftest$ac_exeext conftest.$ac_ext 5285LIBS=$ac_check_lib_save_LIBS 5286fi 5287echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 5288echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5289if test $ac_cv_lib_dld_shl_load = yes; then 5290 tcl_ok=yes 5291else 5292 tcl_ok=no 5293fi 5294 5295 if test "$tcl_ok" = yes; then 5296 5297 SHLIB_CFLAGS="+z" 5298 SHLIB_LD="ld -b" 5299 SHLIB_LD_LIBS='${LIBS}' 5300 DL_OBJS="tclLoadShl.o" 5301 DL_LIBS="-ldld" 5302 LDFLAGS="$LDFLAGS -Wl,-E" 5303 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5304 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5305 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5306 5307fi 5308 5309 if test "$GCC" = yes; then 5310 5311 SHLIB_LD='${CC} -shared' 5312 SHLIB_LD_LIBS='${LIBS}' 5313 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5314 5315fi 5316 5317 5318 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 5319 #CFLAGS="$CFLAGS +DAportable" 5320 5321 # Check to enable 64-bit flags for compiler/linker 5322 if test "$do64bit" = "yes"; then 5323 5324 if test "$GCC" = yes; then 5325 5326 case `${CC} -dumpmachine` in 5327 hppa64*) 5328 # 64-bit gcc in use. Fix flags for GNU ld. 5329 do64bit_ok=yes 5330 SHLIB_LD='${CC} -shared' 5331 SHLIB_LD_LIBS='${LIBS}' 5332 if test $doRpath = yes; then 5333 5334 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5335fi 5336 5337 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5338 ;; 5339 *) 5340 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 5341echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5342 ;; 5343 esac 5344 5345else 5346 5347 do64bit_ok=yes 5348 CFLAGS="$CFLAGS +DD64" 5349 LDFLAGS_ARCH="+DD64" 5350 5351fi 5352 5353 5354fi 5355 ;; 5356 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 5357 SHLIB_SUFFIX=".sl" 5358 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 5359echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 5360if test "${ac_cv_lib_dld_shl_load+set}" = set; then 5361 echo $ECHO_N "(cached) $ECHO_C" >&6 5362else 5363 ac_check_lib_save_LIBS=$LIBS 5364LIBS="-ldld $LIBS" 5365cat >conftest.$ac_ext <<_ACEOF 5366/* confdefs.h. */ 5367_ACEOF 5368cat confdefs.h >>conftest.$ac_ext 5369cat >>conftest.$ac_ext <<_ACEOF 5370/* end confdefs.h. */ 5371 5372/* Override any gcc2 internal prototype to avoid an error. */ 5373#ifdef __cplusplus 5374extern "C" 5375#endif 5376/* We use char because int might match the return type of a gcc2 5377 builtin and then its argument prototype would still apply. */ 5378char shl_load (); 5379int 5380main () 5381{ 5382shl_load (); 5383 ; 5384 return 0; 5385} 5386_ACEOF 5387rm -f conftest.$ac_objext conftest$ac_exeext 5388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5389 (eval $ac_link) 2>conftest.er1 5390 ac_status=$? 5391 grep -v '^ *+' conftest.er1 >conftest.err 5392 rm -f conftest.er1 5393 cat conftest.err >&5 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } && 5396 { ac_try='test -z "$ac_c_werror_flag" 5397 || test ! -s conftest.err' 5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5399 (eval $ac_try) 2>&5 5400 ac_status=$? 5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5402 (exit $ac_status); }; } && 5403 { ac_try='test -s conftest$ac_exeext' 5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5405 (eval $ac_try) 2>&5 5406 ac_status=$? 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); }; }; then 5409 ac_cv_lib_dld_shl_load=yes 5410else 5411 echo "$as_me: failed program was:" >&5 5412sed 's/^/| /' conftest.$ac_ext >&5 5413 5414ac_cv_lib_dld_shl_load=no 5415fi 5416rm -f conftest.err conftest.$ac_objext \ 5417 conftest$ac_exeext conftest.$ac_ext 5418LIBS=$ac_check_lib_save_LIBS 5419fi 5420echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 5421echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 5422if test $ac_cv_lib_dld_shl_load = yes; then 5423 tcl_ok=yes 5424else 5425 tcl_ok=no 5426fi 5427 5428 if test "$tcl_ok" = yes; then 5429 5430 SHLIB_CFLAGS="+z" 5431 SHLIB_LD="ld -b" 5432 SHLIB_LD_LIBS="" 5433 DL_OBJS="tclLoadShl.o" 5434 DL_LIBS="-ldld" 5435 LDFLAGS="$LDFLAGS -Wl,-E" 5436 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 5437 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 5438 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 5439 5440fi 5441 ;; 5442 IRIX-5.*) 5443 SHLIB_CFLAGS="" 5444 SHLIB_LD="ld -shared -rdata_shared" 5445 SHLIB_LD_LIBS='${LIBS}' 5446 SHLIB_SUFFIX=".so" 5447 DL_OBJS="tclLoadDl.o" 5448 DL_LIBS="" 5449 if test $doRpath = yes; then 5450 5451 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5452 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5453fi 5454 5455 ;; 5456 IRIX-6.*) 5457 SHLIB_CFLAGS="" 5458 SHLIB_LD="ld -n32 -shared -rdata_shared" 5459 SHLIB_LD_LIBS='${LIBS}' 5460 SHLIB_SUFFIX=".so" 5461 DL_OBJS="tclLoadDl.o" 5462 DL_LIBS="" 5463 if test $doRpath = yes; then 5464 5465 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5466 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5467fi 5468 5469 if test "$GCC" = yes; then 5470 5471 CFLAGS="$CFLAGS -mabi=n32" 5472 LDFLAGS="$LDFLAGS -mabi=n32" 5473 5474else 5475 5476 case $system in 5477 IRIX-6.3) 5478 # Use to build 6.2 compatible binaries on 6.3. 5479 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 5480 ;; 5481 *) 5482 CFLAGS="$CFLAGS -n32" 5483 ;; 5484 esac 5485 LDFLAGS="$LDFLAGS -n32" 5486 5487fi 5488 5489 ;; 5490 IRIX64-6.*) 5491 SHLIB_CFLAGS="" 5492 SHLIB_LD="ld -n32 -shared -rdata_shared" 5493 SHLIB_LD_LIBS='${LIBS}' 5494 SHLIB_SUFFIX=".so" 5495 DL_OBJS="tclLoadDl.o" 5496 DL_LIBS="" 5497 if test $doRpath = yes; then 5498 5499 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5500 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5501fi 5502 5503 5504 # Check to enable 64-bit flags for compiler/linker 5505 5506 if test "$do64bit" = yes; then 5507 5508 if test "$GCC" = yes; then 5509 5510 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 5511echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 5512 5513else 5514 5515 do64bit_ok=yes 5516 SHLIB_LD="ld -64 -shared -rdata_shared" 5517 CFLAGS="$CFLAGS -64" 5518 LDFLAGS_ARCH="-64" 5519 5520fi 5521 5522 5523fi 5524 5525 ;; 5526 Linux*) 5527 SHLIB_CFLAGS="-fPIC" 5528 SHLIB_LD_LIBS='${LIBS}' 5529 SHLIB_SUFFIX=".so" 5530 5531 CFLAGS_OPTIMIZE="-O2" 5532 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 5533 # when you inline the string and math operations. Turn this off to 5534 # get rid of the warnings. 5535 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 5536 5537 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 5538 DL_OBJS="tclLoadDl.o" 5539 DL_LIBS="-ldl" 5540 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5541 if test $doRpath = yes; then 5542 5543 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5544fi 5545 5546 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5547 if test "`uname -m`" = "alpha"; then 5548 CFLAGS="$CFLAGS -mieee" 5549fi 5550 5551 if test $do64bit = yes; then 5552 5553 echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 5554echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6 5555if test "${tcl_cv_cc_m64+set}" = set; then 5556 echo $ECHO_N "(cached) $ECHO_C" >&6 5557else 5558 5559 hold_cflags=$CFLAGS 5560 CFLAGS="$CFLAGS -m64" 5561 cat >conftest.$ac_ext <<_ACEOF 5562/* confdefs.h. */ 5563_ACEOF 5564cat confdefs.h >>conftest.$ac_ext 5565cat >>conftest.$ac_ext <<_ACEOF 5566/* end confdefs.h. */ 5567 5568int 5569main () 5570{ 5571 5572 ; 5573 return 0; 5574} 5575_ACEOF 5576rm -f conftest.$ac_objext conftest$ac_exeext 5577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5578 (eval $ac_link) 2>conftest.er1 5579 ac_status=$? 5580 grep -v '^ *+' conftest.er1 >conftest.err 5581 rm -f conftest.er1 5582 cat conftest.err >&5 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); } && 5585 { ac_try='test -z "$ac_c_werror_flag" 5586 || test ! -s conftest.err' 5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5588 (eval $ac_try) 2>&5 5589 ac_status=$? 5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5591 (exit $ac_status); }; } && 5592 { ac_try='test -s conftest$ac_exeext' 5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5594 (eval $ac_try) 2>&5 5595 ac_status=$? 5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5597 (exit $ac_status); }; }; then 5598 tcl_cv_cc_m64=yes 5599else 5600 echo "$as_me: failed program was:" >&5 5601sed 's/^/| /' conftest.$ac_ext >&5 5602 5603tcl_cv_cc_m64=no 5604fi 5605rm -f conftest.err conftest.$ac_objext \ 5606 conftest$ac_exeext conftest.$ac_ext 5607 CFLAGS=$hold_cflags 5608fi 5609echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 5610echo "${ECHO_T}$tcl_cv_cc_m64" >&6 5611 if test $tcl_cv_cc_m64 = yes; then 5612 5613 CFLAGS="$CFLAGS -m64" 5614 do64bit_ok=yes 5615 5616fi 5617 5618 5619fi 5620 5621 5622 # The combo of gcc + glibc has a bug related to inlining of 5623 # functions like strtod(). The -fno-builtin flag should address 5624 # this problem but it does not work. The -fno-inline flag is kind 5625 # of overkill but it works. Disable inlining only when one of the 5626 # files in compat/*.c is being linked in. 5627 5628 if test x"${USE_COMPAT}" != x; then 5629 CFLAGS="$CFLAGS -fno-inline" 5630fi 5631 5632 ;; 5633 GNU*) 5634 SHLIB_CFLAGS="-fPIC" 5635 SHLIB_LD_LIBS='${LIBS}' 5636 SHLIB_SUFFIX=".so" 5637 5638 SHLIB_LD='${CC} -shared' 5639 DL_OBJS="" 5640 DL_LIBS="-ldl" 5641 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 5642 CC_SEARCH_FLAGS="" 5643 LD_SEARCH_FLAGS="" 5644 if test "`uname -m`" = "alpha"; then 5645 CFLAGS="$CFLAGS -mieee" 5646fi 5647 5648 ;; 5649 Lynx*) 5650 SHLIB_CFLAGS="-fPIC" 5651 SHLIB_LD_LIBS='${LIBS}' 5652 SHLIB_SUFFIX=".so" 5653 CFLAGS_OPTIMIZE=-02 5654 SHLIB_LD='${CC} -shared' 5655 DL_OBJS="tclLoadDl.o" 5656 DL_LIBS="-mshared -ldl" 5657 LD_FLAGS="-Wl,--export-dynamic" 5658 if test $doRpath = yes; then 5659 5660 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5661 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5662fi 5663 5664 ;; 5665 MP-RAS-02*) 5666 SHLIB_CFLAGS="-K PIC" 5667 SHLIB_LD='${CC} -G' 5668 SHLIB_LD_LIBS="" 5669 SHLIB_SUFFIX=".so" 5670 DL_OBJS="tclLoadDl.o" 5671 DL_LIBS="-ldl" 5672 CC_SEARCH_FLAGS="" 5673 LD_SEARCH_FLAGS="" 5674 ;; 5675 MP-RAS-*) 5676 SHLIB_CFLAGS="-K PIC" 5677 SHLIB_LD='${CC} -G' 5678 SHLIB_LD_LIBS="" 5679 SHLIB_SUFFIX=".so" 5680 DL_OBJS="tclLoadDl.o" 5681 DL_LIBS="-ldl" 5682 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5683 CC_SEARCH_FLAGS="" 5684 LD_SEARCH_FLAGS="" 5685 ;; 5686 NetBSD-1.*|FreeBSD-[1-2].*) 5687 SHLIB_CFLAGS="-fPIC" 5688 SHLIB_LD="ld -Bshareable -x" 5689 SHLIB_LD_LIBS='${LIBS}' 5690 SHLIB_SUFFIX=".so" 5691 DL_OBJS="tclLoadDl.o" 5692 DL_LIBS="" 5693 if test $doRpath = yes; then 5694 5695 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5696 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5697fi 5698 5699 echo "$as_me:$LINENO: checking for ELF" >&5 5700echo $ECHO_N "checking for ELF... $ECHO_C" >&6 5701if test "${tcl_cv_ld_elf+set}" = set; then 5702 echo $ECHO_N "(cached) $ECHO_C" >&6 5703else 5704 5705 cat >conftest.$ac_ext <<_ACEOF 5706/* confdefs.h. */ 5707_ACEOF 5708cat confdefs.h >>conftest.$ac_ext 5709cat >>conftest.$ac_ext <<_ACEOF 5710/* end confdefs.h. */ 5711 5712#ifdef __ELF__ 5713 yes 5714#endif 5715 5716_ACEOF 5717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5718 $EGREP "yes" >/dev/null 2>&1; then 5719 tcl_cv_ld_elf=yes 5720else 5721 tcl_cv_ld_elf=no 5722fi 5723rm -f conftest* 5724 5725fi 5726echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 5727echo "${ECHO_T}$tcl_cv_ld_elf" >&6 5728 if test $tcl_cv_ld_elf = yes; then 5729 5730 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5731 5732else 5733 5734 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 5735 5736fi 5737 5738 5739 # Ancient FreeBSD doesn't handle version numbers with dots. 5740 5741 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5742 TCL_LIB_VERSIONS_OK=nodots 5743 ;; 5744 OpenBSD-*) 5745 CFLAGS_OPTIMIZE='-O2' 5746 SHLIB_CFLAGS="-fPIC" 5747 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 5748 SHLIB_LD_LIBS='${LIBS}' 5749 SHLIB_SUFFIX=".so" 5750 DL_OBJS="tclLoadDl.o" 5751 DL_LIBS="" 5752 if test $doRpath = yes; then 5753 5754 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5755fi 5756 5757 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5758 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 5759 echo "$as_me:$LINENO: checking for ELF" >&5 5760echo $ECHO_N "checking for ELF... $ECHO_C" >&6 5761if test "${tcl_cv_ld_elf+set}" = set; then 5762 echo $ECHO_N "(cached) $ECHO_C" >&6 5763else 5764 5765 cat >conftest.$ac_ext <<_ACEOF 5766/* confdefs.h. */ 5767_ACEOF 5768cat confdefs.h >>conftest.$ac_ext 5769cat >>conftest.$ac_ext <<_ACEOF 5770/* end confdefs.h. */ 5771 5772#ifdef __ELF__ 5773 yes 5774#endif 5775 5776_ACEOF 5777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5778 $EGREP "yes" >/dev/null 2>&1; then 5779 tcl_cv_ld_elf=yes 5780else 5781 tcl_cv_ld_elf=no 5782fi 5783rm -f conftest* 5784 5785fi 5786echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 5787echo "${ECHO_T}$tcl_cv_ld_elf" >&6 5788 if test $tcl_cv_ld_elf = yes; then 5789 5790 LDFLAGS=-Wl,-export-dynamic 5791 5792else 5793 LDFLAGS="" 5794fi 5795 5796 if test "${TCL_THREADS}" = "1"; then 5797 5798 # OpenBSD builds and links with -pthread, never -lpthread. 5799 LIBS=`echo $LIBS | sed s/-lpthread//` 5800 CFLAGS="$CFLAGS -pthread" 5801 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 5802 5803fi 5804 5805 # OpenBSD doesn't do version numbers with dots. 5806 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5807 TCL_LIB_VERSIONS_OK=nodots 5808 ;; 5809 NetBSD-*|FreeBSD-[3-4].*) 5810 # FreeBSD 3.* and greater have ELF. 5811 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 5812 SHLIB_CFLAGS="-fPIC" 5813 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 5814 SHLIB_LD_LIBS='${LIBS}' 5815 SHLIB_SUFFIX=".so" 5816 DL_OBJS="tclLoadDl.o" 5817 DL_LIBS="" 5818 LDFLAGS="$LDFLAGS -export-dynamic" 5819 if test $doRpath = yes; then 5820 5821 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5822fi 5823 5824 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5825 if test "${TCL_THREADS}" = "1"; then 5826 5827 # The -pthread needs to go in the CFLAGS, not LIBS 5828 LIBS=`echo $LIBS | sed s/-pthread//` 5829 CFLAGS="$CFLAGS -pthread" 5830 LDFLAGS="$LDFLAGS -pthread" 5831 5832fi 5833 5834 case $system in 5835 FreeBSD-3.*) 5836 # FreeBSD-3 doesn't handle version numbers with dots. 5837 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5838 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 5839 TCL_LIB_VERSIONS_OK=nodots 5840 ;; 5841 esac 5842 ;; 5843 FreeBSD-*) 5844 # This configuration from FreeBSD Ports. 5845 SHLIB_CFLAGS="-fPIC" 5846 SHLIB_LD="${CC} -shared" 5847 TCL_SHLIB_LD_EXTRAS="-soname \$@" 5848 SHLIB_LD_LIBS='${LIBS}' 5849 SHLIB_SUFFIX=".so" 5850 DL_OBJS="tclLoadDl.o" 5851 DL_LIBS="" 5852 LDFLAGS="" 5853 if test $doRpath = yes; then 5854 5855 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5856 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5857fi 5858 5859 if test "${TCL_THREADS}" = "1"; then 5860 5861 # The -pthread needs to go in the LDFLAGS, not LIBS 5862 LIBS=`echo $LIBS | sed s/-pthread//` 5863 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 5864 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 5865fi 5866 5867 # Version numbers are dot-stripped by system policy. 5868 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 5869 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 5870 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 5871 TCL_LIB_VERSIONS_OK=nodots 5872 ;; 5873 Darwin-*) 5874 CFLAGS_OPTIMIZE="-Os" 5875 SHLIB_CFLAGS="-fno-common" 5876 # To avoid discrepancies between what headers configure sees during 5877 # preprocessing tests and compiling tests, move any -isysroot and 5878 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 5879 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 5880 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5881 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 5882 CFLAGS="`echo " ${CFLAGS}" | \ 5883 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5884 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 5885 if test $do64bit = yes; then 5886 5887 case `arch` in 5888 ppc) 5889 echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 5890echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6 5891if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 5892 echo $ECHO_N "(cached) $ECHO_C" >&6 5893else 5894 5895 hold_cflags=$CFLAGS 5896 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5897 cat >conftest.$ac_ext <<_ACEOF 5898/* confdefs.h. */ 5899_ACEOF 5900cat confdefs.h >>conftest.$ac_ext 5901cat >>conftest.$ac_ext <<_ACEOF 5902/* end confdefs.h. */ 5903 5904int 5905main () 5906{ 5907 5908 ; 5909 return 0; 5910} 5911_ACEOF 5912rm -f conftest.$ac_objext conftest$ac_exeext 5913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5914 (eval $ac_link) 2>conftest.er1 5915 ac_status=$? 5916 grep -v '^ *+' conftest.er1 >conftest.err 5917 rm -f conftest.er1 5918 cat conftest.err >&5 5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5920 (exit $ac_status); } && 5921 { ac_try='test -z "$ac_c_werror_flag" 5922 || test ! -s conftest.err' 5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5924 (eval $ac_try) 2>&5 5925 ac_status=$? 5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5927 (exit $ac_status); }; } && 5928 { ac_try='test -s conftest$ac_exeext' 5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5930 (eval $ac_try) 2>&5 5931 ac_status=$? 5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5933 (exit $ac_status); }; }; then 5934 tcl_cv_cc_arch_ppc64=yes 5935else 5936 echo "$as_me: failed program was:" >&5 5937sed 's/^/| /' conftest.$ac_ext >&5 5938 5939tcl_cv_cc_arch_ppc64=no 5940fi 5941rm -f conftest.err conftest.$ac_objext \ 5942 conftest$ac_exeext conftest.$ac_ext 5943 CFLAGS=$hold_cflags 5944fi 5945echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 5946echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6 5947 if test $tcl_cv_cc_arch_ppc64 = yes; then 5948 5949 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5950 do64bit_ok=yes 5951 5952fi 5953;; 5954 i386) 5955 echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 5956echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6 5957if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959else 5960 5961 hold_cflags=$CFLAGS 5962 CFLAGS="$CFLAGS -arch x86_64" 5963 cat >conftest.$ac_ext <<_ACEOF 5964/* confdefs.h. */ 5965_ACEOF 5966cat confdefs.h >>conftest.$ac_ext 5967cat >>conftest.$ac_ext <<_ACEOF 5968/* end confdefs.h. */ 5969 5970int 5971main () 5972{ 5973 5974 ; 5975 return 0; 5976} 5977_ACEOF 5978rm -f conftest.$ac_objext conftest$ac_exeext 5979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5980 (eval $ac_link) 2>conftest.er1 5981 ac_status=$? 5982 grep -v '^ *+' conftest.er1 >conftest.err 5983 rm -f conftest.er1 5984 cat conftest.err >&5 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } && 5987 { ac_try='test -z "$ac_c_werror_flag" 5988 || test ! -s conftest.err' 5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5990 (eval $ac_try) 2>&5 5991 ac_status=$? 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); }; } && 5994 { ac_try='test -s conftest$ac_exeext' 5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5996 (eval $ac_try) 2>&5 5997 ac_status=$? 5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5999 (exit $ac_status); }; }; then 6000 tcl_cv_cc_arch_x86_64=yes 6001else 6002 echo "$as_me: failed program was:" >&5 6003sed 's/^/| /' conftest.$ac_ext >&5 6004 6005tcl_cv_cc_arch_x86_64=no 6006fi 6007rm -f conftest.err conftest.$ac_objext \ 6008 conftest$ac_exeext conftest.$ac_ext 6009 CFLAGS=$hold_cflags 6010fi 6011echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 6012echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6 6013 if test $tcl_cv_cc_arch_x86_64 = yes; then 6014 6015 CFLAGS="$CFLAGS -arch x86_64" 6016 do64bit_ok=yes 6017 6018fi 6019;; 6020 *) 6021 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 6022echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 6023 esac 6024 6025else 6026 6027 # Check for combined 32-bit and 64-bit fat build 6028 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 6029 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 6030 6031 fat_32_64=yes 6032fi 6033 6034 6035fi 6036 6037 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 6038 echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 6039echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6 6040if test "${tcl_cv_ld_single_module+set}" = set; then 6041 echo $ECHO_N "(cached) $ECHO_C" >&6 6042else 6043 6044 hold_ldflags=$LDFLAGS 6045 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 6046 cat >conftest.$ac_ext <<_ACEOF 6047/* confdefs.h. */ 6048_ACEOF 6049cat confdefs.h >>conftest.$ac_ext 6050cat >>conftest.$ac_ext <<_ACEOF 6051/* end confdefs.h. */ 6052 6053int 6054main () 6055{ 6056int i; 6057 ; 6058 return 0; 6059} 6060_ACEOF 6061rm -f conftest.$ac_objext conftest$ac_exeext 6062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6063 (eval $ac_link) 2>conftest.er1 6064 ac_status=$? 6065 grep -v '^ *+' conftest.er1 >conftest.err 6066 rm -f conftest.er1 6067 cat conftest.err >&5 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } && 6070 { ac_try='test -z "$ac_c_werror_flag" 6071 || test ! -s conftest.err' 6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6073 (eval $ac_try) 2>&5 6074 ac_status=$? 6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6076 (exit $ac_status); }; } && 6077 { ac_try='test -s conftest$ac_exeext' 6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6079 (eval $ac_try) 2>&5 6080 ac_status=$? 6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); }; }; then 6083 tcl_cv_ld_single_module=yes 6084else 6085 echo "$as_me: failed program was:" >&5 6086sed 's/^/| /' conftest.$ac_ext >&5 6087 6088tcl_cv_ld_single_module=no 6089fi 6090rm -f conftest.err conftest.$ac_objext \ 6091 conftest$ac_exeext conftest.$ac_ext 6092 LDFLAGS=$hold_ldflags 6093fi 6094echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 6095echo "${ECHO_T}$tcl_cv_ld_single_module" >&6 6096 if test $tcl_cv_ld_single_module = yes; then 6097 6098 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 6099 6100fi 6101 6102 SHLIB_LD_LIBS='${LIBS}' 6103 SHLIB_SUFFIX=".dylib" 6104 DL_OBJS="tclLoadDyld.o" 6105 DL_LIBS="" 6106 # Don't use -prebind when building for Mac OS X 10.4 or later only: 6107 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 6108 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 6109 6110 LDFLAGS="$LDFLAGS -prebind" 6111fi 6112 6113 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 6114 echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 6115echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6 6116if test "${tcl_cv_ld_search_paths_first+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 6120 hold_ldflags=$LDFLAGS 6121 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6122 cat >conftest.$ac_ext <<_ACEOF 6123/* confdefs.h. */ 6124_ACEOF 6125cat confdefs.h >>conftest.$ac_ext 6126cat >>conftest.$ac_ext <<_ACEOF 6127/* end confdefs.h. */ 6128 6129int 6130main () 6131{ 6132int i; 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137rm -f conftest.$ac_objext conftest$ac_exeext 6138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6139 (eval $ac_link) 2>conftest.er1 6140 ac_status=$? 6141 grep -v '^ *+' conftest.er1 >conftest.err 6142 rm -f conftest.er1 6143 cat conftest.err >&5 6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6145 (exit $ac_status); } && 6146 { ac_try='test -z "$ac_c_werror_flag" 6147 || test ! -s conftest.err' 6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6149 (eval $ac_try) 2>&5 6150 ac_status=$? 6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6152 (exit $ac_status); }; } && 6153 { ac_try='test -s conftest$ac_exeext' 6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6155 (eval $ac_try) 2>&5 6156 ac_status=$? 6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); }; }; then 6159 tcl_cv_ld_search_paths_first=yes 6160else 6161 echo "$as_me: failed program was:" >&5 6162sed 's/^/| /' conftest.$ac_ext >&5 6163 6164tcl_cv_ld_search_paths_first=no 6165fi 6166rm -f conftest.err conftest.$ac_objext \ 6167 conftest$ac_exeext conftest.$ac_ext 6168 LDFLAGS=$hold_ldflags 6169fi 6170echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 6171echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6 6172 if test $tcl_cv_ld_search_paths_first = yes; then 6173 6174 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6175 6176fi 6177 6178 if test "$tcl_cv_cc_visibility_hidden" != yes; then 6179 6180 6181cat >>confdefs.h <<\_ACEOF 6182#define MODULE_SCOPE __private_extern__ 6183_ACEOF 6184 6185 6186fi 6187 6188 CC_SEARCH_FLAGS="" 6189 LD_SEARCH_FLAGS="" 6190 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 6191 6192cat >>confdefs.h <<\_ACEOF 6193#define MAC_OSX_TCL 1 6194_ACEOF 6195 6196 PLAT_OBJS='${MAC_OSX_OBJS}' 6197 PLAT_SRCS='${MAC_OSX_SRCS}' 6198 echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5 6199echo $ECHO_N "checking whether to use CoreFoundation... $ECHO_C" >&6 6200 # Check whether --enable-corefoundation or --disable-corefoundation was given. 6201if test "${enable_corefoundation+set}" = set; then 6202 enableval="$enable_corefoundation" 6203 tcl_corefoundation=$enableval 6204else 6205 tcl_corefoundation=yes 6206fi; 6207 echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5 6208echo "${ECHO_T}$tcl_corefoundation" >&6 6209 if test $tcl_corefoundation = yes; then 6210 6211 echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5 6212echo $ECHO_N "checking for CoreFoundation.framework... $ECHO_C" >&6 6213if test "${tcl_cv_lib_corefoundation+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215else 6216 6217 hold_libs=$LIBS 6218 if test "$fat_32_64" = yes; then 6219 6220 for v in CFLAGS CPPFLAGS LDFLAGS; do 6221 # On Tiger there is no 64-bit CF, so remove 64-bit 6222 # archs from CFLAGS et al. while testing for 6223 # presence of CF. 64-bit CF is disabled in 6224 # tclUnixPort.h if necessary. 6225 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 6226 done 6227fi 6228 6229 LIBS="$LIBS -framework CoreFoundation" 6230 cat >conftest.$ac_ext <<_ACEOF 6231/* confdefs.h. */ 6232_ACEOF 6233cat confdefs.h >>conftest.$ac_ext 6234cat >>conftest.$ac_ext <<_ACEOF 6235/* end confdefs.h. */ 6236#include <CoreFoundation/CoreFoundation.h> 6237int 6238main () 6239{ 6240CFBundleRef b = CFBundleGetMainBundle(); 6241 ; 6242 return 0; 6243} 6244_ACEOF 6245rm -f conftest.$ac_objext conftest$ac_exeext 6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6247 (eval $ac_link) 2>conftest.er1 6248 ac_status=$? 6249 grep -v '^ *+' conftest.er1 >conftest.err 6250 rm -f conftest.er1 6251 cat conftest.err >&5 6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } && 6254 { ac_try='test -z "$ac_c_werror_flag" 6255 || test ! -s conftest.err' 6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6257 (eval $ac_try) 2>&5 6258 ac_status=$? 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); }; } && 6261 { ac_try='test -s conftest$ac_exeext' 6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6263 (eval $ac_try) 2>&5 6264 ac_status=$? 6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6266 (exit $ac_status); }; }; then 6267 tcl_cv_lib_corefoundation=yes 6268else 6269 echo "$as_me: failed program was:" >&5 6270sed 's/^/| /' conftest.$ac_ext >&5 6271 6272tcl_cv_lib_corefoundation=no 6273fi 6274rm -f conftest.err conftest.$ac_objext \ 6275 conftest$ac_exeext conftest.$ac_ext 6276 if test "$fat_32_64" = yes; then 6277 6278 for v in CFLAGS CPPFLAGS LDFLAGS; do 6279 eval $v'="$hold_'$v'"' 6280 done 6281fi 6282 6283 LIBS=$hold_libs 6284fi 6285echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5 6286echo "${ECHO_T}$tcl_cv_lib_corefoundation" >&6 6287 if test $tcl_cv_lib_corefoundation = yes; then 6288 6289 LIBS="$LIBS -framework CoreFoundation" 6290 6291cat >>confdefs.h <<\_ACEOF 6292#define HAVE_COREFOUNDATION 1 6293_ACEOF 6294 6295 6296else 6297 tcl_corefoundation=no 6298fi 6299 6300 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 6301 6302 echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5 6303echo $ECHO_N "checking for 64-bit CoreFoundation... $ECHO_C" >&6 6304if test "${tcl_cv_lib_corefoundation_64+set}" = set; then 6305 echo $ECHO_N "(cached) $ECHO_C" >&6 6306else 6307 6308 for v in CFLAGS CPPFLAGS LDFLAGS; do 6309 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 6310 done 6311 cat >conftest.$ac_ext <<_ACEOF 6312/* confdefs.h. */ 6313_ACEOF 6314cat confdefs.h >>conftest.$ac_ext 6315cat >>conftest.$ac_ext <<_ACEOF 6316/* end confdefs.h. */ 6317#include <CoreFoundation/CoreFoundation.h> 6318int 6319main () 6320{ 6321CFBundleRef b = CFBundleGetMainBundle(); 6322 ; 6323 return 0; 6324} 6325_ACEOF 6326rm -f conftest.$ac_objext conftest$ac_exeext 6327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6328 (eval $ac_link) 2>conftest.er1 6329 ac_status=$? 6330 grep -v '^ *+' conftest.er1 >conftest.err 6331 rm -f conftest.er1 6332 cat conftest.err >&5 6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6334 (exit $ac_status); } && 6335 { ac_try='test -z "$ac_c_werror_flag" 6336 || test ! -s conftest.err' 6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6338 (eval $ac_try) 2>&5 6339 ac_status=$? 6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6341 (exit $ac_status); }; } && 6342 { ac_try='test -s conftest$ac_exeext' 6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6344 (eval $ac_try) 2>&5 6345 ac_status=$? 6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6347 (exit $ac_status); }; }; then 6348 tcl_cv_lib_corefoundation_64=yes 6349else 6350 echo "$as_me: failed program was:" >&5 6351sed 's/^/| /' conftest.$ac_ext >&5 6352 6353tcl_cv_lib_corefoundation_64=no 6354fi 6355rm -f conftest.err conftest.$ac_objext \ 6356 conftest$ac_exeext conftest.$ac_ext 6357 for v in CFLAGS CPPFLAGS LDFLAGS; do 6358 eval $v'="$hold_'$v'"' 6359 done 6360fi 6361echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5 6362echo "${ECHO_T}$tcl_cv_lib_corefoundation_64" >&6 6363 if test $tcl_cv_lib_corefoundation_64 = no; then 6364 6365 6366cat >>confdefs.h <<\_ACEOF 6367#define NO_COREFOUNDATION_64 1 6368_ACEOF 6369 6370 LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings" 6371 6372fi 6373 6374 6375fi 6376 6377 6378fi 6379 6380 ;; 6381 NEXTSTEP-*) 6382 SHLIB_CFLAGS="" 6383 SHLIB_LD='${CC} -nostdlib -r' 6384 SHLIB_LD_LIBS="" 6385 SHLIB_SUFFIX=".so" 6386 DL_OBJS="tclLoadNext.o" 6387 DL_LIBS="" 6388 CC_SEARCH_FLAGS="" 6389 LD_SEARCH_FLAGS="" 6390 ;; 6391 OS/390-*) 6392 CFLAGS_OPTIMIZE="" # Optimizer is buggy 6393 6394cat >>confdefs.h <<\_ACEOF 6395#define _OE_SOCKETS 1 6396_ACEOF 6397 6398 ;; 6399 OSF1-1.0|OSF1-1.1|OSF1-1.2) 6400 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 6401 SHLIB_CFLAGS="" 6402 # Hack: make package name same as library name 6403 SHLIB_LD='ld -R -export :' 6404 SHLIB_LD_LIBS="" 6405 SHLIB_SUFFIX=".so" 6406 DL_OBJS="tclLoadOSF.o" 6407 DL_LIBS="" 6408 CC_SEARCH_FLAGS="" 6409 LD_SEARCH_FLAGS="" 6410 ;; 6411 OSF1-1.*) 6412 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 6413 SHLIB_CFLAGS="-fPIC" 6414 if test "$SHARED_BUILD" = 1; then 6415 SHLIB_LD="ld -shared" 6416else 6417 6418 SHLIB_LD="ld -non_shared" 6419 6420fi 6421 6422 SHLIB_LD_LIBS="" 6423 SHLIB_SUFFIX=".so" 6424 DL_OBJS="tclLoadDl.o" 6425 DL_LIBS="" 6426 CC_SEARCH_FLAGS="" 6427 LD_SEARCH_FLAGS="" 6428 ;; 6429 OSF1-V*) 6430 # Digital OSF/1 6431 SHLIB_CFLAGS="" 6432 if test "$SHARED_BUILD" = 1; then 6433 6434 SHLIB_LD='ld -shared -expect_unresolved "*"' 6435 6436else 6437 6438 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 6439 6440fi 6441 6442 SHLIB_LD_LIBS='${LIBS}' 6443 SHLIB_SUFFIX=".so" 6444 DL_OBJS="tclLoadDl.o" 6445 DL_LIBS="" 6446 if test $doRpath = yes; then 6447 6448 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6449 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6450fi 6451 6452 if test "$GCC" = yes; then 6453 CFLAGS="$CFLAGS -mieee" 6454else 6455 6456 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 6457fi 6458 6459 # see pthread_intro(3) for pthread support on osf1, k.furukawa 6460 if test "${TCL_THREADS}" = 1; then 6461 6462 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 6463 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 6464 LIBS=`echo $LIBS | sed s/-lpthreads//` 6465 if test "$GCC" = yes; then 6466 6467 LIBS="$LIBS -lpthread -lmach -lexc" 6468 6469else 6470 6471 CFLAGS="$CFLAGS -pthread" 6472 LDFLAGS="$LDFLAGS -pthread" 6473 6474fi 6475 6476 6477fi 6478 6479 ;; 6480 QNX-6*) 6481 # QNX RTP 6482 # This may work for all QNX, but it was only reported for v6. 6483 SHLIB_CFLAGS="-fPIC" 6484 SHLIB_LD="ld -Bshareable -x" 6485 SHLIB_LD_LIBS="" 6486 SHLIB_SUFFIX=".so" 6487 DL_OBJS="tclLoadDl.o" 6488 # dlopen is in -lc on QNX 6489 DL_LIBS="" 6490 CC_SEARCH_FLAGS="" 6491 LD_SEARCH_FLAGS="" 6492 ;; 6493 SCO_SV-3.2*) 6494 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 6495 # this test works, since "uname -s" was non-standard in 3.2.4 and 6496 # below. 6497 if test "$GCC" = yes; then 6498 6499 SHLIB_CFLAGS="-fPIC -melf" 6500 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 6501 6502else 6503 6504 SHLIB_CFLAGS="-Kpic -belf" 6505 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 6506 6507fi 6508 6509 SHLIB_LD="ld -G" 6510 SHLIB_LD_LIBS="" 6511 SHLIB_SUFFIX=".so" 6512 DL_OBJS="tclLoadDl.o" 6513 DL_LIBS="" 6514 CC_SEARCH_FLAGS="" 6515 LD_SEARCH_FLAGS="" 6516 ;; 6517 SINIX*5.4*) 6518 SHLIB_CFLAGS="-K PIC" 6519 SHLIB_LD='${CC} -G' 6520 SHLIB_LD_LIBS="" 6521 SHLIB_SUFFIX=".so" 6522 DL_OBJS="tclLoadDl.o" 6523 DL_LIBS="-ldl" 6524 CC_SEARCH_FLAGS="" 6525 LD_SEARCH_FLAGS="" 6526 ;; 6527 SunOS-4*) 6528 SHLIB_CFLAGS="-PIC" 6529 SHLIB_LD="ld" 6530 SHLIB_LD_LIBS="" 6531 SHLIB_SUFFIX=".so" 6532 DL_OBJS="tclLoadDl.o" 6533 DL_LIBS="-ldl" 6534 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6535 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6536 6537 # SunOS can't handle version numbers with dots in them in library 6538 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 6539 # requires an extra version number at the end of .so file names. 6540 # So, the library has to have a name like libtcl75.so.1.0 6541 6542 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 6543 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6544 TCL_LIB_VERSIONS_OK=nodots 6545 ;; 6546 SunOS-5.[0-6]) 6547 # Careful to not let 5.10+ fall into this case 6548 6549 # Note: If _REENTRANT isn't defined, then Solaris 6550 # won't define thread-safe library routines. 6551 6552 6553cat >>confdefs.h <<\_ACEOF 6554#define _REENTRANT 1 6555_ACEOF 6556 6557 6558cat >>confdefs.h <<\_ACEOF 6559#define _POSIX_PTHREAD_SEMANTICS 1 6560_ACEOF 6561 6562 6563 SHLIB_CFLAGS="-KPIC" 6564 6565 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6566 # symbols when dynamically loaded into tclsh. 6567 6568 SHLIB_LD_LIBS='${LIBS}' 6569 SHLIB_SUFFIX=".so" 6570 DL_OBJS="tclLoadDl.o" 6571 DL_LIBS="-ldl" 6572 if test "$GCC" = yes; then 6573 6574 SHLIB_LD='${CC} -shared' 6575 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6576 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6577 6578else 6579 6580 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6581 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6582 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6583 6584fi 6585 6586 ;; 6587 SunOS-5*) 6588 # Note: If _REENTRANT isn't defined, then Solaris 6589 # won't define thread-safe library routines. 6590 6591 6592cat >>confdefs.h <<\_ACEOF 6593#define _REENTRANT 1 6594_ACEOF 6595 6596 6597cat >>confdefs.h <<\_ACEOF 6598#define _POSIX_PTHREAD_SEMANTICS 1 6599_ACEOF 6600 6601 6602 SHLIB_CFLAGS="-KPIC" 6603 6604 # Check to enable 64-bit flags for compiler/linker 6605 if test "$do64bit" = yes; then 6606 6607 arch=`isainfo` 6608 if test "$arch" = "sparcv9 sparc"; then 6609 6610 if test "$GCC" = yes; then 6611 6612 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 6613 6614 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 6615echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 6616 6617else 6618 6619 do64bit_ok=yes 6620 CFLAGS="$CFLAGS -m64 -mcpu=v9" 6621 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 6622 SHLIB_CFLAGS="-fPIC" 6623 6624fi 6625 6626 6627else 6628 6629 do64bit_ok=yes 6630 if test "$do64bitVIS" = yes; then 6631 6632 CFLAGS="$CFLAGS -xarch=v9a" 6633 LDFLAGS_ARCH="-xarch=v9a" 6634 6635else 6636 6637 CFLAGS="$CFLAGS -xarch=v9" 6638 LDFLAGS_ARCH="-xarch=v9" 6639 6640fi 6641 6642 # Solaris 64 uses this as well 6643 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 6644 6645fi 6646 6647 6648else 6649 if test "$arch" = "amd64 i386"; then 6650 6651 if test "$GCC" = yes; then 6652 6653 case $system in 6654 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 6655 do64bit_ok=yes 6656 CFLAGS="$CFLAGS -m64" 6657 LDFLAGS="$LDFLAGS -m64";; 6658 *) 6659 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 6660echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 6661 esac 6662 6663else 6664 6665 do64bit_ok=yes 6666 case $system in 6667 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 6668 CFLAGS="$CFLAGS -m64" 6669 LDFLAGS="$LDFLAGS -m64";; 6670 *) 6671 CFLAGS="$CFLAGS -xarch=amd64" 6672 LDFLAGS="$LDFLAGS -xarch=amd64";; 6673 esac 6674 6675fi 6676 6677 6678else 6679 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 6680echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 6681fi 6682 6683fi 6684 6685 6686fi 6687 6688 6689 #-------------------------------------------------------------------- 6690 # On Solaris 5.x i386 with the sunpro compiler we need to link 6691 # with sunmath to get floating point rounding control 6692 #-------------------------------------------------------------------- 6693 if test "$GCC" = yes; then 6694 use_sunmath=no 6695else 6696 6697 arch=`isainfo` 6698 echo "$as_me:$LINENO: checking whether to use -lsunmath for fp rounding control" >&5 6699echo $ECHO_N "checking whether to use -lsunmath for fp rounding control... $ECHO_C" >&6 6700 if test "$arch" = "amd64 i386"; then 6701 6702 echo "$as_me:$LINENO: result: yes" >&5 6703echo "${ECHO_T}yes" >&6 6704 MATH_LIBS="-lsunmath $MATH_LIBS" 6705 if test "${ac_cv_header_sunmath_h+set}" = set; then 6706 echo "$as_me:$LINENO: checking for sunmath.h" >&5 6707echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6 6708if test "${ac_cv_header_sunmath_h+set}" = set; then 6709 echo $ECHO_N "(cached) $ECHO_C" >&6 6710fi 6711echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5 6712echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6 6713else 6714 # Is the header compilable? 6715echo "$as_me:$LINENO: checking sunmath.h usability" >&5 6716echo $ECHO_N "checking sunmath.h usability... $ECHO_C" >&6 6717cat >conftest.$ac_ext <<_ACEOF 6718/* confdefs.h. */ 6719_ACEOF 6720cat confdefs.h >>conftest.$ac_ext 6721cat >>conftest.$ac_ext <<_ACEOF 6722/* end confdefs.h. */ 6723$ac_includes_default 6724#include <sunmath.h> 6725_ACEOF 6726rm -f conftest.$ac_objext 6727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6728 (eval $ac_compile) 2>conftest.er1 6729 ac_status=$? 6730 grep -v '^ *+' conftest.er1 >conftest.err 6731 rm -f conftest.er1 6732 cat conftest.err >&5 6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6734 (exit $ac_status); } && 6735 { ac_try='test -z "$ac_c_werror_flag" 6736 || test ! -s conftest.err' 6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6738 (eval $ac_try) 2>&5 6739 ac_status=$? 6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6741 (exit $ac_status); }; } && 6742 { ac_try='test -s conftest.$ac_objext' 6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6744 (eval $ac_try) 2>&5 6745 ac_status=$? 6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6747 (exit $ac_status); }; }; then 6748 ac_header_compiler=yes 6749else 6750 echo "$as_me: failed program was:" >&5 6751sed 's/^/| /' conftest.$ac_ext >&5 6752 6753ac_header_compiler=no 6754fi 6755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6757echo "${ECHO_T}$ac_header_compiler" >&6 6758 6759# Is the header present? 6760echo "$as_me:$LINENO: checking sunmath.h presence" >&5 6761echo $ECHO_N "checking sunmath.h presence... $ECHO_C" >&6 6762cat >conftest.$ac_ext <<_ACEOF 6763/* confdefs.h. */ 6764_ACEOF 6765cat confdefs.h >>conftest.$ac_ext 6766cat >>conftest.$ac_ext <<_ACEOF 6767/* end confdefs.h. */ 6768#include <sunmath.h> 6769_ACEOF 6770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6772 ac_status=$? 6773 grep -v '^ *+' conftest.er1 >conftest.err 6774 rm -f conftest.er1 6775 cat conftest.err >&5 6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6777 (exit $ac_status); } >/dev/null; then 6778 if test -s conftest.err; then 6779 ac_cpp_err=$ac_c_preproc_warn_flag 6780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6781 else 6782 ac_cpp_err= 6783 fi 6784else 6785 ac_cpp_err=yes 6786fi 6787if test -z "$ac_cpp_err"; then 6788 ac_header_preproc=yes 6789else 6790 echo "$as_me: failed program was:" >&5 6791sed 's/^/| /' conftest.$ac_ext >&5 6792 6793 ac_header_preproc=no 6794fi 6795rm -f conftest.err conftest.$ac_ext 6796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6797echo "${ECHO_T}$ac_header_preproc" >&6 6798 6799# So? What about this header? 6800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6801 yes:no: ) 6802 { echo "$as_me:$LINENO: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&5 6803echo "$as_me: WARNING: sunmath.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6804 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the compiler's result" >&5 6805echo "$as_me: WARNING: sunmath.h: proceeding with the compiler's result" >&2;} 6806 ac_header_preproc=yes 6807 ;; 6808 no:yes:* ) 6809 { echo "$as_me:$LINENO: WARNING: sunmath.h: present but cannot be compiled" >&5 6810echo "$as_me: WARNING: sunmath.h: present but cannot be compiled" >&2;} 6811 { echo "$as_me:$LINENO: WARNING: sunmath.h: check for missing prerequisite headers?" >&5 6812echo "$as_me: WARNING: sunmath.h: check for missing prerequisite headers?" >&2;} 6813 { echo "$as_me:$LINENO: WARNING: sunmath.h: see the Autoconf documentation" >&5 6814echo "$as_me: WARNING: sunmath.h: see the Autoconf documentation" >&2;} 6815 { echo "$as_me:$LINENO: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&5 6816echo "$as_me: WARNING: sunmath.h: section \"Present But Cannot Be Compiled\"" >&2;} 6817 { echo "$as_me:$LINENO: WARNING: sunmath.h: proceeding with the preprocessor's result" >&5 6818echo "$as_me: WARNING: sunmath.h: proceeding with the preprocessor's result" >&2;} 6819 { echo "$as_me:$LINENO: WARNING: sunmath.h: in the future, the compiler will take precedence" >&5 6820echo "$as_me: WARNING: sunmath.h: in the future, the compiler will take precedence" >&2;} 6821 ( 6822 cat <<\_ASBOX 6823## ----------------------------- ## 6824## Report this to the tk lists. ## 6825## ----------------------------- ## 6826_ASBOX 6827 ) | 6828 sed "s/^/$as_me: WARNING: /" >&2 6829 ;; 6830esac 6831echo "$as_me:$LINENO: checking for sunmath.h" >&5 6832echo $ECHO_N "checking for sunmath.h... $ECHO_C" >&6 6833if test "${ac_cv_header_sunmath_h+set}" = set; then 6834 echo $ECHO_N "(cached) $ECHO_C" >&6 6835else 6836 ac_cv_header_sunmath_h=$ac_header_preproc 6837fi 6838echo "$as_me:$LINENO: result: $ac_cv_header_sunmath_h" >&5 6839echo "${ECHO_T}$ac_cv_header_sunmath_h" >&6 6840 6841fi 6842 6843 6844 use_sunmath=yes 6845 6846else 6847 6848 echo "$as_me:$LINENO: result: no" >&5 6849echo "${ECHO_T}no" >&6 6850 use_sunmath=no 6851 6852fi 6853 6854 6855fi 6856 6857 6858 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6859 # symbols when dynamically loaded into tclsh. 6860 6861 SHLIB_LD_LIBS='${LIBS}' 6862 SHLIB_SUFFIX=".so" 6863 DL_OBJS="tclLoadDl.o" 6864 DL_LIBS="-ldl" 6865 if test "$GCC" = yes; then 6866 6867 SHLIB_LD='${CC} -shared' 6868 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6869 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6870 if test "$do64bit_ok" = yes; then 6871 6872 if test "$arch" = "sparcv9 sparc"; then 6873 6874 # We need to specify -static-libgcc or we need to 6875 # add the path to the sparv9 libgcc. 6876 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 6877 # for finding sparcv9 libgcc, get the regular libgcc 6878 # path, remove so name and append 'sparcv9' 6879 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 6880 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 6881 6882else 6883 if test "$arch" = "amd64 i386"; then 6884 6885 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 6886 6887fi 6888 6889fi 6890 6891 6892fi 6893 6894 6895else 6896 6897 if test "$use_sunmath" = yes; then 6898 textmode=textoff 6899else 6900 textmode=text 6901fi 6902 6903 case $system in 6904 SunOS-5.[1-9][0-9]*) 6905 SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";; 6906 *) 6907 SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";; 6908 esac 6909 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6910 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6911 6912fi 6913 6914 ;; 6915 UNIX_SV* | UnixWare-5*) 6916 SHLIB_CFLAGS="-KPIC" 6917 SHLIB_LD='${CC} -G' 6918 SHLIB_LD_LIBS="" 6919 SHLIB_SUFFIX=".so" 6920 DL_OBJS="tclLoadDl.o" 6921 DL_LIBS="-ldl" 6922 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 6923 # that don't grok the -Bexport option. Test that it does. 6924 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 6925echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6 6926if test "${tcl_cv_ld_Bexport+set}" = set; then 6927 echo $ECHO_N "(cached) $ECHO_C" >&6 6928else 6929 6930 hold_ldflags=$LDFLAGS 6931 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6932 cat >conftest.$ac_ext <<_ACEOF 6933/* confdefs.h. */ 6934_ACEOF 6935cat confdefs.h >>conftest.$ac_ext 6936cat >>conftest.$ac_ext <<_ACEOF 6937/* end confdefs.h. */ 6938 6939int 6940main () 6941{ 6942int i; 6943 ; 6944 return 0; 6945} 6946_ACEOF 6947rm -f conftest.$ac_objext conftest$ac_exeext 6948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6949 (eval $ac_link) 2>conftest.er1 6950 ac_status=$? 6951 grep -v '^ *+' conftest.er1 >conftest.err 6952 rm -f conftest.er1 6953 cat conftest.err >&5 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6955 (exit $ac_status); } && 6956 { ac_try='test -z "$ac_c_werror_flag" 6957 || test ! -s conftest.err' 6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6959 (eval $ac_try) 2>&5 6960 ac_status=$? 6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6962 (exit $ac_status); }; } && 6963 { ac_try='test -s conftest$ac_exeext' 6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6965 (eval $ac_try) 2>&5 6966 ac_status=$? 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); }; }; then 6969 tcl_cv_ld_Bexport=yes 6970else 6971 echo "$as_me: failed program was:" >&5 6972sed 's/^/| /' conftest.$ac_ext >&5 6973 6974tcl_cv_ld_Bexport=no 6975fi 6976rm -f conftest.err conftest.$ac_objext \ 6977 conftest$ac_exeext conftest.$ac_ext 6978 LDFLAGS=$hold_ldflags 6979fi 6980echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 6981echo "${ECHO_T}$tcl_cv_ld_Bexport" >&6 6982 if test $tcl_cv_ld_Bexport = yes; then 6983 6984 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6985 6986fi 6987 6988 CC_SEARCH_FLAGS="" 6989 LD_SEARCH_FLAGS="" 6990 ;; 6991 esac 6992 6993 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 6994 6995 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 6996echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 6997 6998fi 6999 7000 7001 if test "$do64bit" = yes -a "$do64bit_ok" = yes; then 7002 7003 7004cat >>confdefs.h <<\_ACEOF 7005#define TCL_CFG_DO64BIT 1 7006_ACEOF 7007 7008 7009fi 7010 7011 7012 7013 7014 # Step 4: disable dynamic loading if requested via a command-line switch. 7015 7016 # Check whether --enable-load or --disable-load was given. 7017if test "${enable_load+set}" = set; then 7018 enableval="$enable_load" 7019 tcl_ok=$enableval 7020else 7021 tcl_ok=yes 7022fi; 7023 if test "$tcl_ok" = no; then 7024 DL_OBJS="" 7025fi 7026 7027 7028 if test "x$DL_OBJS" != x; then 7029 BUILD_DLTEST="\$(DLTEST_TARGETS)" 7030else 7031 7032 { echo "$as_me:$LINENO: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 7033echo "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} 7034 SHLIB_CFLAGS="" 7035 SHLIB_LD="" 7036 SHLIB_SUFFIX="" 7037 DL_OBJS="tclLoadNone.o" 7038 DL_LIBS="" 7039 LDFLAGS="$LDFLAGS_ORIG" 7040 CC_SEARCH_FLAGS="" 7041 LD_SEARCH_FLAGS="" 7042 BUILD_DLTEST="" 7043 7044fi 7045 7046 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 7047 7048 # If we're running gcc, then change the C flags for compiling shared 7049 # libraries to the right flags for gcc, instead of those for the 7050 # standard manufacturer compiler. 7051 7052 if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then 7053 7054 case $system in 7055 AIX-*) ;; 7056 BSD/OS*) ;; 7057 CYGWIN_*) ;; 7058 IRIX*) ;; 7059 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 7060 Darwin-*) ;; 7061 SCO_SV-3.2*) ;; 7062 *) SHLIB_CFLAGS="-fPIC" ;; 7063 esac 7064fi 7065 7066 7067 if test "$SHARED_LIB_SUFFIX" = ""; then 7068 7069 SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}' 7070fi 7071 7072 if test "$UNSHARED_LIB_SUFFIX" = ""; then 7073 7074 UNSHARED_LIB_SUFFIX='${VERSION}.a' 7075fi 7076 7077 7078 if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""; then 7079 7080 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 7081 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 7082 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)"/$(LIB_FILE)' 7083 7084else 7085 7086 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 7087 7088 if test "$RANLIB" = ""; then 7089 7090 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 7091 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)"/$(LIB_FILE)' 7092 7093else 7094 7095 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 7096 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)"/$(LIB_FILE) ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(LIB_FILE))' 7097 7098fi 7099 7100 7101fi 7102 7103 7104 # Stub lib does not depend on shared/static configuration 7105 if test "$RANLIB" = ""; then 7106 7107 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 7108 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"' 7109 7110else 7111 7112 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 7113 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)"/$(STUB_LIB_FILE) ; (cd "$(LIB_INSTALL_DIR)" ; $(RANLIB) $(STUB_LIB_FILE))' 7114 7115fi 7116 7117 7118 # Define TCL_LIBS now that we know what DL_LIBS is. 7119 # The trick here is that we don't want to change the value of TCL_LIBS if 7120 # it is already set when tclConfig.sh had been loaded by Tk. 7121 if test "x${TCL_LIBS}" = x; then 7122 7123 TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}" 7124fi 7125 7126 7127 7128 # FIXME: This subst was left in only because the TCL_DL_LIBS 7129 # entry in tclConfig.sh uses it. It is not clear why someone 7130 # would use TCL_DL_LIBS instead of TCL_LIBS. 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156cat >>confdefs.h <<_ACEOF 7157#define TCL_SHLIB_EXT "${SHLIB_SUFFIX}" 7158_ACEOF 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 echo "$as_me:$LINENO: checking for build with symbols" >&5 7170echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 7171 # Check whether --enable-symbols or --disable-symbols was given. 7172if test "${enable_symbols+set}" = set; then 7173 enableval="$enable_symbols" 7174 tcl_ok=$enableval 7175else 7176 tcl_ok=no 7177fi; 7178# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. 7179 DBGX="" 7180 if test "$tcl_ok" = "no"; then 7181 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 7182 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 7183 echo "$as_me:$LINENO: result: no" >&5 7184echo "${ECHO_T}no" >&6 7185 7186cat >>confdefs.h <<\_ACEOF 7187#define TCL_CFG_OPTIMIZED 1 7188_ACEOF 7189 7190 else 7191 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 7192 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 7193 if test "$tcl_ok" = "yes"; then 7194 echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 7195echo "${ECHO_T}yes (standard debugging)" >&6 7196 fi 7197 fi 7198 7199 7200 ### FIXME: Surely TCL_CFG_DEBUG should be set to whether we're debugging? 7201 7202cat >>confdefs.h <<\_ACEOF 7203#define TCL_CFG_DEBUG 1 7204_ACEOF 7205 7206 7207 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 7208 7209cat >>confdefs.h <<\_ACEOF 7210#define TCL_MEM_DEBUG 1 7211_ACEOF 7212 7213 fi 7214 7215 7216 7217 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 7218 if test "$tcl_ok" = "all"; then 7219 echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 7220echo "${ECHO_T}enabled symbols mem debugging" >&6 7221 else 7222 echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 7223echo "${ECHO_T}enabled $tcl_ok debugging" >&6 7224 fi 7225 fi 7226 7227 7228#-------------------------------------------------------------------- 7229# Detect what compiler flags to set for 64-bit support. 7230#-------------------------------------------------------------------- 7231 7232 7233 echo "$as_me:$LINENO: checking for required early compiler flags" >&5 7234echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6 7235 tcl_flags="" 7236 7237 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 7238 echo $ECHO_N "(cached) $ECHO_C" >&6 7239else 7240 cat >conftest.$ac_ext <<_ACEOF 7241/* confdefs.h. */ 7242_ACEOF 7243cat confdefs.h >>conftest.$ac_ext 7244cat >>conftest.$ac_ext <<_ACEOF 7245/* end confdefs.h. */ 7246#include <stdlib.h> 7247int 7248main () 7249{ 7250char *p = (char *)strtoll; char *q = (char *)strtoull; 7251 ; 7252 return 0; 7253} 7254_ACEOF 7255rm -f conftest.$ac_objext 7256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7257 (eval $ac_compile) 2>conftest.er1 7258 ac_status=$? 7259 grep -v '^ *+' conftest.er1 >conftest.err 7260 rm -f conftest.er1 7261 cat conftest.err >&5 7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7263 (exit $ac_status); } && 7264 { ac_try='test -z "$ac_c_werror_flag" 7265 || test ! -s conftest.err' 7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7267 (eval $ac_try) 2>&5 7268 ac_status=$? 7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7270 (exit $ac_status); }; } && 7271 { ac_try='test -s conftest.$ac_objext' 7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7273 (eval $ac_try) 2>&5 7274 ac_status=$? 7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7276 (exit $ac_status); }; }; then 7277 tcl_cv_flag__isoc99_source=no 7278else 7279 echo "$as_me: failed program was:" >&5 7280sed 's/^/| /' conftest.$ac_ext >&5 7281 7282cat >conftest.$ac_ext <<_ACEOF 7283/* confdefs.h. */ 7284_ACEOF 7285cat confdefs.h >>conftest.$ac_ext 7286cat >>conftest.$ac_ext <<_ACEOF 7287/* end confdefs.h. */ 7288#define _ISOC99_SOURCE 1 7289#include <stdlib.h> 7290int 7291main () 7292{ 7293char *p = (char *)strtoll; char *q = (char *)strtoull; 7294 ; 7295 return 0; 7296} 7297_ACEOF 7298rm -f conftest.$ac_objext 7299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7300 (eval $ac_compile) 2>conftest.er1 7301 ac_status=$? 7302 grep -v '^ *+' conftest.er1 >conftest.err 7303 rm -f conftest.er1 7304 cat conftest.err >&5 7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7306 (exit $ac_status); } && 7307 { ac_try='test -z "$ac_c_werror_flag" 7308 || test ! -s conftest.err' 7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7310 (eval $ac_try) 2>&5 7311 ac_status=$? 7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7313 (exit $ac_status); }; } && 7314 { ac_try='test -s conftest.$ac_objext' 7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7316 (eval $ac_try) 2>&5 7317 ac_status=$? 7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7319 (exit $ac_status); }; }; then 7320 tcl_cv_flag__isoc99_source=yes 7321else 7322 echo "$as_me: failed program was:" >&5 7323sed 's/^/| /' conftest.$ac_ext >&5 7324 7325tcl_cv_flag__isoc99_source=no 7326fi 7327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7328fi 7329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7330fi 7331 7332 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 7333 7334cat >>confdefs.h <<\_ACEOF 7335#define _ISOC99_SOURCE 1 7336_ACEOF 7337 7338 tcl_flags="$tcl_flags _ISOC99_SOURCE" 7339 fi 7340 7341 7342 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 7343 echo $ECHO_N "(cached) $ECHO_C" >&6 7344else 7345 cat >conftest.$ac_ext <<_ACEOF 7346/* confdefs.h. */ 7347_ACEOF 7348cat confdefs.h >>conftest.$ac_ext 7349cat >>conftest.$ac_ext <<_ACEOF 7350/* end confdefs.h. */ 7351#include <sys/stat.h> 7352int 7353main () 7354{ 7355struct stat64 buf; int i = stat64("/", &buf); 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360rm -f conftest.$ac_objext 7361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7362 (eval $ac_compile) 2>conftest.er1 7363 ac_status=$? 7364 grep -v '^ *+' conftest.er1 >conftest.err 7365 rm -f conftest.er1 7366 cat conftest.err >&5 7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7368 (exit $ac_status); } && 7369 { ac_try='test -z "$ac_c_werror_flag" 7370 || test ! -s conftest.err' 7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7372 (eval $ac_try) 2>&5 7373 ac_status=$? 7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7375 (exit $ac_status); }; } && 7376 { ac_try='test -s conftest.$ac_objext' 7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7378 (eval $ac_try) 2>&5 7379 ac_status=$? 7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7381 (exit $ac_status); }; }; then 7382 tcl_cv_flag__largefile64_source=no 7383else 7384 echo "$as_me: failed program was:" >&5 7385sed 's/^/| /' conftest.$ac_ext >&5 7386 7387cat >conftest.$ac_ext <<_ACEOF 7388/* confdefs.h. */ 7389_ACEOF 7390cat confdefs.h >>conftest.$ac_ext 7391cat >>conftest.$ac_ext <<_ACEOF 7392/* end confdefs.h. */ 7393#define _LARGEFILE64_SOURCE 1 7394#include <sys/stat.h> 7395int 7396main () 7397{ 7398struct stat64 buf; int i = stat64("/", &buf); 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403rm -f conftest.$ac_objext 7404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7405 (eval $ac_compile) 2>conftest.er1 7406 ac_status=$? 7407 grep -v '^ *+' conftest.er1 >conftest.err 7408 rm -f conftest.er1 7409 cat conftest.err >&5 7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7411 (exit $ac_status); } && 7412 { ac_try='test -z "$ac_c_werror_flag" 7413 || test ! -s conftest.err' 7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7415 (eval $ac_try) 2>&5 7416 ac_status=$? 7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7418 (exit $ac_status); }; } && 7419 { ac_try='test -s conftest.$ac_objext' 7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7421 (eval $ac_try) 2>&5 7422 ac_status=$? 7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7424 (exit $ac_status); }; }; then 7425 tcl_cv_flag__largefile64_source=yes 7426else 7427 echo "$as_me: failed program was:" >&5 7428sed 's/^/| /' conftest.$ac_ext >&5 7429 7430tcl_cv_flag__largefile64_source=no 7431fi 7432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7433fi 7434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7435fi 7436 7437 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 7438 7439cat >>confdefs.h <<\_ACEOF 7440#define _LARGEFILE64_SOURCE 1 7441_ACEOF 7442 7443 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 7444 fi 7445 7446 7447 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 7448 echo $ECHO_N "(cached) $ECHO_C" >&6 7449else 7450 cat >conftest.$ac_ext <<_ACEOF 7451/* confdefs.h. */ 7452_ACEOF 7453cat confdefs.h >>conftest.$ac_ext 7454cat >>conftest.$ac_ext <<_ACEOF 7455/* end confdefs.h. */ 7456#include <sys/stat.h> 7457int 7458main () 7459{ 7460char *p = (char *)open64; 7461 ; 7462 return 0; 7463} 7464_ACEOF 7465rm -f conftest.$ac_objext 7466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7467 (eval $ac_compile) 2>conftest.er1 7468 ac_status=$? 7469 grep -v '^ *+' conftest.er1 >conftest.err 7470 rm -f conftest.er1 7471 cat conftest.err >&5 7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7473 (exit $ac_status); } && 7474 { ac_try='test -z "$ac_c_werror_flag" 7475 || test ! -s conftest.err' 7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7477 (eval $ac_try) 2>&5 7478 ac_status=$? 7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7480 (exit $ac_status); }; } && 7481 { ac_try='test -s conftest.$ac_objext' 7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7483 (eval $ac_try) 2>&5 7484 ac_status=$? 7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7486 (exit $ac_status); }; }; then 7487 tcl_cv_flag__largefile_source64=no 7488else 7489 echo "$as_me: failed program was:" >&5 7490sed 's/^/| /' conftest.$ac_ext >&5 7491 7492cat >conftest.$ac_ext <<_ACEOF 7493/* confdefs.h. */ 7494_ACEOF 7495cat confdefs.h >>conftest.$ac_ext 7496cat >>conftest.$ac_ext <<_ACEOF 7497/* end confdefs.h. */ 7498#define _LARGEFILE_SOURCE64 1 7499#include <sys/stat.h> 7500int 7501main () 7502{ 7503char *p = (char *)open64; 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508rm -f conftest.$ac_objext 7509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7510 (eval $ac_compile) 2>conftest.er1 7511 ac_status=$? 7512 grep -v '^ *+' conftest.er1 >conftest.err 7513 rm -f conftest.er1 7514 cat conftest.err >&5 7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7516 (exit $ac_status); } && 7517 { ac_try='test -z "$ac_c_werror_flag" 7518 || test ! -s conftest.err' 7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7520 (eval $ac_try) 2>&5 7521 ac_status=$? 7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7523 (exit $ac_status); }; } && 7524 { ac_try='test -s conftest.$ac_objext' 7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7526 (eval $ac_try) 2>&5 7527 ac_status=$? 7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7529 (exit $ac_status); }; }; then 7530 tcl_cv_flag__largefile_source64=yes 7531else 7532 echo "$as_me: failed program was:" >&5 7533sed 's/^/| /' conftest.$ac_ext >&5 7534 7535tcl_cv_flag__largefile_source64=no 7536fi 7537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7538fi 7539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7540fi 7541 7542 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 7543 7544cat >>confdefs.h <<\_ACEOF 7545#define _LARGEFILE_SOURCE64 1 7546_ACEOF 7547 7548 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 7549 fi 7550 7551 if test "x${tcl_flags}" = "x" ; then 7552 echo "$as_me:$LINENO: result: none" >&5 7553echo "${ECHO_T}none" >&6 7554 else 7555 echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 7556echo "${ECHO_T}${tcl_flags}" >&6 7557 fi 7558 7559 7560 7561 echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 7562echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6 7563 if test "${tcl_cv_type_64bit+set}" = set; then 7564 echo $ECHO_N "(cached) $ECHO_C" >&6 7565else 7566 7567 tcl_cv_type_64bit=none 7568 # See if the compiler knows natively about __int64 7569 cat >conftest.$ac_ext <<_ACEOF 7570/* confdefs.h. */ 7571_ACEOF 7572cat confdefs.h >>conftest.$ac_ext 7573cat >>conftest.$ac_ext <<_ACEOF 7574/* end confdefs.h. */ 7575 7576int 7577main () 7578{ 7579__int64 value = (__int64) 0; 7580 ; 7581 return 0; 7582} 7583_ACEOF 7584rm -f conftest.$ac_objext 7585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7586 (eval $ac_compile) 2>conftest.er1 7587 ac_status=$? 7588 grep -v '^ *+' conftest.er1 >conftest.err 7589 rm -f conftest.er1 7590 cat conftest.err >&5 7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7592 (exit $ac_status); } && 7593 { ac_try='test -z "$ac_c_werror_flag" 7594 || test ! -s conftest.err' 7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7596 (eval $ac_try) 2>&5 7597 ac_status=$? 7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7599 (exit $ac_status); }; } && 7600 { ac_try='test -s conftest.$ac_objext' 7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7602 (eval $ac_try) 2>&5 7603 ac_status=$? 7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); }; }; then 7606 tcl_type_64bit=__int64 7607else 7608 echo "$as_me: failed program was:" >&5 7609sed 's/^/| /' conftest.$ac_ext >&5 7610 7611tcl_type_64bit="long long" 7612fi 7613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7614 # See if we should use long anyway Note that we substitute in the 7615 # type that is our current guess for a 64-bit type inside this check 7616 # program, so it should be modified only carefully... 7617 cat >conftest.$ac_ext <<_ACEOF 7618/* confdefs.h. */ 7619_ACEOF 7620cat confdefs.h >>conftest.$ac_ext 7621cat >>conftest.$ac_ext <<_ACEOF 7622/* end confdefs.h. */ 7623 7624int 7625main () 7626{ 7627switch (0) { 7628 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 7629 } 7630 ; 7631 return 0; 7632} 7633_ACEOF 7634rm -f conftest.$ac_objext 7635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7636 (eval $ac_compile) 2>conftest.er1 7637 ac_status=$? 7638 grep -v '^ *+' conftest.er1 >conftest.err 7639 rm -f conftest.er1 7640 cat conftest.err >&5 7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); } && 7643 { ac_try='test -z "$ac_c_werror_flag" 7644 || test ! -s conftest.err' 7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7646 (eval $ac_try) 2>&5 7647 ac_status=$? 7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7649 (exit $ac_status); }; } && 7650 { ac_try='test -s conftest.$ac_objext' 7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7652 (eval $ac_try) 2>&5 7653 ac_status=$? 7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7655 (exit $ac_status); }; }; then 7656 tcl_cv_type_64bit=${tcl_type_64bit} 7657else 7658 echo "$as_me: failed program was:" >&5 7659sed 's/^/| /' conftest.$ac_ext >&5 7660 7661fi 7662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7663fi 7664 7665 if test "${tcl_cv_type_64bit}" = none ; then 7666 7667cat >>confdefs.h <<\_ACEOF 7668#define TCL_WIDE_INT_IS_LONG 1 7669_ACEOF 7670 7671 echo "$as_me:$LINENO: result: using long" >&5 7672echo "${ECHO_T}using long" >&6 7673 else 7674 7675cat >>confdefs.h <<_ACEOF 7676#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 7677_ACEOF 7678 7679 echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 7680echo "${ECHO_T}${tcl_cv_type_64bit}" >&6 7681 7682 # Now check for auxiliary declarations 7683 echo "$as_me:$LINENO: checking for struct dirent64" >&5 7684echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6 7685if test "${tcl_cv_struct_dirent64+set}" = set; then 7686 echo $ECHO_N "(cached) $ECHO_C" >&6 7687else 7688 7689 cat >conftest.$ac_ext <<_ACEOF 7690/* confdefs.h. */ 7691_ACEOF 7692cat confdefs.h >>conftest.$ac_ext 7693cat >>conftest.$ac_ext <<_ACEOF 7694/* end confdefs.h. */ 7695#include <sys/types.h> 7696#include <sys/dirent.h> 7697int 7698main () 7699{ 7700struct dirent64 p; 7701 ; 7702 return 0; 7703} 7704_ACEOF 7705rm -f conftest.$ac_objext 7706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7707 (eval $ac_compile) 2>conftest.er1 7708 ac_status=$? 7709 grep -v '^ *+' conftest.er1 >conftest.err 7710 rm -f conftest.er1 7711 cat conftest.err >&5 7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7713 (exit $ac_status); } && 7714 { ac_try='test -z "$ac_c_werror_flag" 7715 || test ! -s conftest.err' 7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7717 (eval $ac_try) 2>&5 7718 ac_status=$? 7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7720 (exit $ac_status); }; } && 7721 { ac_try='test -s conftest.$ac_objext' 7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7723 (eval $ac_try) 2>&5 7724 ac_status=$? 7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7726 (exit $ac_status); }; }; then 7727 tcl_cv_struct_dirent64=yes 7728else 7729 echo "$as_me: failed program was:" >&5 7730sed 's/^/| /' conftest.$ac_ext >&5 7731 7732tcl_cv_struct_dirent64=no 7733fi 7734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7735fi 7736echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 7737echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6 7738 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 7739 7740cat >>confdefs.h <<\_ACEOF 7741#define HAVE_STRUCT_DIRENT64 1 7742_ACEOF 7743 7744 fi 7745 7746 echo "$as_me:$LINENO: checking for struct stat64" >&5 7747echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6 7748if test "${tcl_cv_struct_stat64+set}" = set; then 7749 echo $ECHO_N "(cached) $ECHO_C" >&6 7750else 7751 7752 cat >conftest.$ac_ext <<_ACEOF 7753/* confdefs.h. */ 7754_ACEOF 7755cat confdefs.h >>conftest.$ac_ext 7756cat >>conftest.$ac_ext <<_ACEOF 7757/* end confdefs.h. */ 7758#include <sys/stat.h> 7759int 7760main () 7761{ 7762struct stat64 p; 7763 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768rm -f conftest.$ac_objext 7769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7770 (eval $ac_compile) 2>conftest.er1 7771 ac_status=$? 7772 grep -v '^ *+' conftest.er1 >conftest.err 7773 rm -f conftest.er1 7774 cat conftest.err >&5 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); } && 7777 { ac_try='test -z "$ac_c_werror_flag" 7778 || test ! -s conftest.err' 7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7780 (eval $ac_try) 2>&5 7781 ac_status=$? 7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7783 (exit $ac_status); }; } && 7784 { ac_try='test -s conftest.$ac_objext' 7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7786 (eval $ac_try) 2>&5 7787 ac_status=$? 7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7789 (exit $ac_status); }; }; then 7790 tcl_cv_struct_stat64=yes 7791else 7792 echo "$as_me: failed program was:" >&5 7793sed 's/^/| /' conftest.$ac_ext >&5 7794 7795tcl_cv_struct_stat64=no 7796fi 7797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7798fi 7799echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 7800echo "${ECHO_T}$tcl_cv_struct_stat64" >&6 7801 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 7802 7803cat >>confdefs.h <<\_ACEOF 7804#define HAVE_STRUCT_STAT64 1 7805_ACEOF 7806 7807 fi 7808 7809 7810 7811for ac_func in open64 lseek64 7812do 7813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7814echo "$as_me:$LINENO: checking for $ac_func" >&5 7815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7816if eval "test \"\${$as_ac_var+set}\" = set"; then 7817 echo $ECHO_N "(cached) $ECHO_C" >&6 7818else 7819 cat >conftest.$ac_ext <<_ACEOF 7820/* confdefs.h. */ 7821_ACEOF 7822cat confdefs.h >>conftest.$ac_ext 7823cat >>conftest.$ac_ext <<_ACEOF 7824/* end confdefs.h. */ 7825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7827#define $ac_func innocuous_$ac_func 7828 7829/* System header to define __stub macros and hopefully few prototypes, 7830 which can conflict with char $ac_func (); below. 7831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7832 <limits.h> exists even on freestanding compilers. */ 7833 7834#ifdef __STDC__ 7835# include <limits.h> 7836#else 7837# include <assert.h> 7838#endif 7839 7840#undef $ac_func 7841 7842/* Override any gcc2 internal prototype to avoid an error. */ 7843#ifdef __cplusplus 7844extern "C" 7845{ 7846#endif 7847/* We use char because int might match the return type of a gcc2 7848 builtin and then its argument prototype would still apply. */ 7849char $ac_func (); 7850/* The GNU C library defines this for functions which it implements 7851 to always fail with ENOSYS. Some functions are actually named 7852 something starting with __ and the normal name is an alias. */ 7853#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7854choke me 7855#else 7856char (*f) () = $ac_func; 7857#endif 7858#ifdef __cplusplus 7859} 7860#endif 7861 7862int 7863main () 7864{ 7865return f != $ac_func; 7866 ; 7867 return 0; 7868} 7869_ACEOF 7870rm -f conftest.$ac_objext conftest$ac_exeext 7871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7872 (eval $ac_link) 2>conftest.er1 7873 ac_status=$? 7874 grep -v '^ *+' conftest.er1 >conftest.err 7875 rm -f conftest.er1 7876 cat conftest.err >&5 7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7878 (exit $ac_status); } && 7879 { ac_try='test -z "$ac_c_werror_flag" 7880 || test ! -s conftest.err' 7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7882 (eval $ac_try) 2>&5 7883 ac_status=$? 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); }; } && 7886 { ac_try='test -s conftest$ac_exeext' 7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7888 (eval $ac_try) 2>&5 7889 ac_status=$? 7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7891 (exit $ac_status); }; }; then 7892 eval "$as_ac_var=yes" 7893else 7894 echo "$as_me: failed program was:" >&5 7895sed 's/^/| /' conftest.$ac_ext >&5 7896 7897eval "$as_ac_var=no" 7898fi 7899rm -f conftest.err conftest.$ac_objext \ 7900 conftest$ac_exeext conftest.$ac_ext 7901fi 7902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7904if test `eval echo '${'$as_ac_var'}'` = yes; then 7905 cat >>confdefs.h <<_ACEOF 7906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7907_ACEOF 7908 7909fi 7910done 7911 7912 echo "$as_me:$LINENO: checking for off64_t" >&5 7913echo $ECHO_N "checking for off64_t... $ECHO_C" >&6 7914 if test "${tcl_cv_type_off64_t+set}" = set; then 7915 echo $ECHO_N "(cached) $ECHO_C" >&6 7916else 7917 7918 cat >conftest.$ac_ext <<_ACEOF 7919/* confdefs.h. */ 7920_ACEOF 7921cat confdefs.h >>conftest.$ac_ext 7922cat >>conftest.$ac_ext <<_ACEOF 7923/* end confdefs.h. */ 7924#include <sys/types.h> 7925int 7926main () 7927{ 7928off64_t offset; 7929 7930 ; 7931 return 0; 7932} 7933_ACEOF 7934rm -f conftest.$ac_objext 7935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7936 (eval $ac_compile) 2>conftest.er1 7937 ac_status=$? 7938 grep -v '^ *+' conftest.er1 >conftest.err 7939 rm -f conftest.er1 7940 cat conftest.err >&5 7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7942 (exit $ac_status); } && 7943 { ac_try='test -z "$ac_c_werror_flag" 7944 || test ! -s conftest.err' 7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7946 (eval $ac_try) 2>&5 7947 ac_status=$? 7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7949 (exit $ac_status); }; } && 7950 { ac_try='test -s conftest.$ac_objext' 7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7952 (eval $ac_try) 2>&5 7953 ac_status=$? 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7955 (exit $ac_status); }; }; then 7956 tcl_cv_type_off64_t=yes 7957else 7958 echo "$as_me: failed program was:" >&5 7959sed 's/^/| /' conftest.$ac_ext >&5 7960 7961tcl_cv_type_off64_t=no 7962fi 7963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7964fi 7965 7966 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 7967 test "x${ac_cv_func_lseek64}" = "xyes" && \ 7968 test "x${ac_cv_func_open64}" = "xyes" ; then 7969 7970cat >>confdefs.h <<\_ACEOF 7971#define HAVE_TYPE_OFF64_T 1 7972_ACEOF 7973 7974 echo "$as_me:$LINENO: result: yes" >&5 7975echo "${ECHO_T}yes" >&6 7976 else 7977 echo "$as_me:$LINENO: result: no" >&5 7978echo "${ECHO_T}no" >&6 7979 fi 7980 fi 7981 7982 7983#-------------------------------------------------------------------- 7984# Check endianness because we can optimize some operations 7985#-------------------------------------------------------------------- 7986 7987echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 7988echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 7989if test "${ac_cv_c_bigendian+set}" = set; then 7990 echo $ECHO_N "(cached) $ECHO_C" >&6 7991else 7992 # See if sys/param.h defines the BYTE_ORDER macro. 7993cat >conftest.$ac_ext <<_ACEOF 7994/* confdefs.h. */ 7995_ACEOF 7996cat confdefs.h >>conftest.$ac_ext 7997cat >>conftest.$ac_ext <<_ACEOF 7998/* end confdefs.h. */ 7999#include <sys/types.h> 8000#include <sys/param.h> 8001 8002int 8003main () 8004{ 8005#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8006 bogus endian macros 8007#endif 8008 8009 ; 8010 return 0; 8011} 8012_ACEOF 8013rm -f conftest.$ac_objext 8014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8015 (eval $ac_compile) 2>conftest.er1 8016 ac_status=$? 8017 grep -v '^ *+' conftest.er1 >conftest.err 8018 rm -f conftest.er1 8019 cat conftest.err >&5 8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8021 (exit $ac_status); } && 8022 { ac_try='test -z "$ac_c_werror_flag" 8023 || test ! -s conftest.err' 8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8025 (eval $ac_try) 2>&5 8026 ac_status=$? 8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8028 (exit $ac_status); }; } && 8029 { ac_try='test -s conftest.$ac_objext' 8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8031 (eval $ac_try) 2>&5 8032 ac_status=$? 8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8034 (exit $ac_status); }; }; then 8035 # It does; now see whether it defined to BIG_ENDIAN or not. 8036cat >conftest.$ac_ext <<_ACEOF 8037/* confdefs.h. */ 8038_ACEOF 8039cat confdefs.h >>conftest.$ac_ext 8040cat >>conftest.$ac_ext <<_ACEOF 8041/* end confdefs.h. */ 8042#include <sys/types.h> 8043#include <sys/param.h> 8044 8045int 8046main () 8047{ 8048#if BYTE_ORDER != BIG_ENDIAN 8049 not big endian 8050#endif 8051 8052 ; 8053 return 0; 8054} 8055_ACEOF 8056rm -f conftest.$ac_objext 8057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8058 (eval $ac_compile) 2>conftest.er1 8059 ac_status=$? 8060 grep -v '^ *+' conftest.er1 >conftest.err 8061 rm -f conftest.er1 8062 cat conftest.err >&5 8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8064 (exit $ac_status); } && 8065 { ac_try='test -z "$ac_c_werror_flag" 8066 || test ! -s conftest.err' 8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8068 (eval $ac_try) 2>&5 8069 ac_status=$? 8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8071 (exit $ac_status); }; } && 8072 { ac_try='test -s conftest.$ac_objext' 8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8074 (eval $ac_try) 2>&5 8075 ac_status=$? 8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8077 (exit $ac_status); }; }; then 8078 ac_cv_c_bigendian=yes 8079else 8080 echo "$as_me: failed program was:" >&5 8081sed 's/^/| /' conftest.$ac_ext >&5 8082 8083ac_cv_c_bigendian=no 8084fi 8085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8086else 8087 echo "$as_me: failed program was:" >&5 8088sed 's/^/| /' conftest.$ac_ext >&5 8089 8090# It does not; compile a test program. 8091if test "$cross_compiling" = yes; then 8092 # try to guess the endianness by grepping values into an object file 8093 ac_cv_c_bigendian=unknown 8094 cat >conftest.$ac_ext <<_ACEOF 8095/* confdefs.h. */ 8096_ACEOF 8097cat confdefs.h >>conftest.$ac_ext 8098cat >>conftest.$ac_ext <<_ACEOF 8099/* end confdefs.h. */ 8100short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8101short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8102void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8103short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8104short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8105void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8106int 8107main () 8108{ 8109 _ascii (); _ebcdic (); 8110 ; 8111 return 0; 8112} 8113_ACEOF 8114rm -f conftest.$ac_objext 8115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8116 (eval $ac_compile) 2>conftest.er1 8117 ac_status=$? 8118 grep -v '^ *+' conftest.er1 >conftest.err 8119 rm -f conftest.er1 8120 cat conftest.err >&5 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8122 (exit $ac_status); } && 8123 { ac_try='test -z "$ac_c_werror_flag" 8124 || test ! -s conftest.err' 8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8126 (eval $ac_try) 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); }; } && 8130 { ac_try='test -s conftest.$ac_objext' 8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8132 (eval $ac_try) 2>&5 8133 ac_status=$? 8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8135 (exit $ac_status); }; }; then 8136 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 8137 ac_cv_c_bigendian=yes 8138fi 8139if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8140 if test "$ac_cv_c_bigendian" = unknown; then 8141 ac_cv_c_bigendian=no 8142 else 8143 # finding both strings is unlikely to happen, but who knows? 8144 ac_cv_c_bigendian=unknown 8145 fi 8146fi 8147else 8148 echo "$as_me: failed program was:" >&5 8149sed 's/^/| /' conftest.$ac_ext >&5 8150 8151fi 8152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8153else 8154 cat >conftest.$ac_ext <<_ACEOF 8155/* confdefs.h. */ 8156_ACEOF 8157cat confdefs.h >>conftest.$ac_ext 8158cat >>conftest.$ac_ext <<_ACEOF 8159/* end confdefs.h. */ 8160int 8161main () 8162{ 8163 /* Are we little or big endian? From Harbison&Steele. */ 8164 union 8165 { 8166 long l; 8167 char c[sizeof (long)]; 8168 } u; 8169 u.l = 1; 8170 exit (u.c[sizeof (long) - 1] == 1); 8171} 8172_ACEOF 8173rm -f conftest$ac_exeext 8174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8175 (eval $ac_link) 2>&5 8176 ac_status=$? 8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8180 (eval $ac_try) 2>&5 8181 ac_status=$? 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8183 (exit $ac_status); }; }; then 8184 ac_cv_c_bigendian=no 8185else 8186 echo "$as_me: program exited with status $ac_status" >&5 8187echo "$as_me: failed program was:" >&5 8188sed 's/^/| /' conftest.$ac_ext >&5 8189 8190( exit $ac_status ) 8191ac_cv_c_bigendian=yes 8192fi 8193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8194fi 8195fi 8196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8197fi 8198echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8199echo "${ECHO_T}$ac_cv_c_bigendian" >&6 8200case $ac_cv_c_bigendian in 8201 yes) 8202 8203cat >>confdefs.h <<\_ACEOF 8204#define WORDS_BIGENDIAN 1 8205_ACEOF 8206 ;; 8207 no) 8208 ;; 8209 *) 8210 { { echo "$as_me:$LINENO: error: unknown endianness 8211presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8212echo "$as_me: error: unknown endianness 8213presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8214 { (exit 1); exit 1; }; } ;; 8215esac 8216 8217 8218#------------------------------------------------------------------------ 8219# If Tcl and Tk are installed in different places, adjust the library 8220# search path to reflect this. 8221#------------------------------------------------------------------------ 8222 8223LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}' 8224 8225if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then 8226 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}/lib" 8227fi 8228 8229if test "$TCL_PREFIX" != "$prefix"; then 8230 { echo "$as_me:$LINENO: WARNING: 8231 Different --prefix selected for Tk and Tcl! 8232 [package require Tk] may not work correctly in tclsh." >&5 8233echo "$as_me: WARNING: 8234 Different --prefix selected for Tk and Tcl! 8235 [package require Tk] may not work correctly in tclsh." >&2;} 8236fi 8237 8238#-------------------------------------------------------------------- 8239# Include sys/select.h if it exists and if it supplies things 8240# that appear to be useful and aren't already in sys/types.h. 8241# This appears to be true only on the RS/6000 under AIX. Some 8242# systems like OSF/1 have a sys/select.h that's of no use, and 8243# other systems like SCO UNIX have a sys/select.h that's 8244# pernicious. If "fd_set" isn't defined anywhere then set a 8245# special flag. 8246#-------------------------------------------------------------------- 8247 8248echo "$as_me:$LINENO: checking for fd_set in sys/types" >&5 8249echo $ECHO_N "checking for fd_set in sys/types... $ECHO_C" >&6 8250if test "${tcl_cv_type_fd_set+set}" = set; then 8251 echo $ECHO_N "(cached) $ECHO_C" >&6 8252else 8253 8254 cat >conftest.$ac_ext <<_ACEOF 8255/* confdefs.h. */ 8256_ACEOF 8257cat confdefs.h >>conftest.$ac_ext 8258cat >>conftest.$ac_ext <<_ACEOF 8259/* end confdefs.h. */ 8260#include <sys/types.h> 8261int 8262main () 8263{ 8264fd_set readMask, writeMask; 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269rm -f conftest.$ac_objext 8270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8271 (eval $ac_compile) 2>conftest.er1 8272 ac_status=$? 8273 grep -v '^ *+' conftest.er1 >conftest.err 8274 rm -f conftest.er1 8275 cat conftest.err >&5 8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8277 (exit $ac_status); } && 8278 { ac_try='test -z "$ac_c_werror_flag" 8279 || test ! -s conftest.err' 8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8281 (eval $ac_try) 2>&5 8282 ac_status=$? 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8284 (exit $ac_status); }; } && 8285 { ac_try='test -s conftest.$ac_objext' 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8287 (eval $ac_try) 2>&5 8288 ac_status=$? 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); }; }; then 8291 tcl_cv_type_fd_set=yes 8292else 8293 echo "$as_me: failed program was:" >&5 8294sed 's/^/| /' conftest.$ac_ext >&5 8295 8296tcl_cv_type_fd_set=no 8297fi 8298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8299fi 8300echo "$as_me:$LINENO: result: $tcl_cv_type_fd_set" >&5 8301echo "${ECHO_T}$tcl_cv_type_fd_set" >&6 8302tk_ok=$tcl_cv_type_fd_set 8303if test $tk_ok = no; then 8304 echo "$as_me:$LINENO: checking for fd_mask in sys/select" >&5 8305echo $ECHO_N "checking for fd_mask in sys/select... $ECHO_C" >&6 8306if test "${tcl_cv_grep_fd_mask+set}" = set; then 8307 echo $ECHO_N "(cached) $ECHO_C" >&6 8308else 8309 8310 cat >conftest.$ac_ext <<_ACEOF 8311/* confdefs.h. */ 8312_ACEOF 8313cat confdefs.h >>conftest.$ac_ext 8314cat >>conftest.$ac_ext <<_ACEOF 8315/* end confdefs.h. */ 8316#include <sys/select.h> 8317 8318_ACEOF 8319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8320 $EGREP "fd_mask" >/dev/null 2>&1; then 8321 tcl_cv_grep_fd_mask=present 8322else 8323 tcl_cv_grep_fd_mask=missing 8324fi 8325rm -f conftest* 8326 8327fi 8328echo "$as_me:$LINENO: result: $tcl_cv_grep_fd_mask" >&5 8329echo "${ECHO_T}$tcl_cv_grep_fd_mask" >&6 8330 if test $tcl_cv_grep_fd_mask = present; then 8331 8332cat >>confdefs.h <<\_ACEOF 8333#define HAVE_SYS_SELECT_H 1 8334_ACEOF 8335 8336 tk_ok=yes 8337 fi 8338fi 8339if test $tk_ok = no; then 8340 8341cat >>confdefs.h <<\_ACEOF 8342#define NO_FD_SET 1 8343_ACEOF 8344 8345fi 8346 8347#------------------------------------------------------------------------------ 8348# Find out all about time handling differences. 8349#------------------------------------------------------------------------------ 8350 8351 8352for ac_header in sys/time.h 8353do 8354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8355if eval "test \"\${$as_ac_Header+set}\" = set"; then 8356 echo "$as_me:$LINENO: checking for $ac_header" >&5 8357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8358if eval "test \"\${$as_ac_Header+set}\" = set"; then 8359 echo $ECHO_N "(cached) $ECHO_C" >&6 8360fi 8361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8363else 8364 # Is the header compilable? 8365echo "$as_me:$LINENO: checking $ac_header usability" >&5 8366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8367cat >conftest.$ac_ext <<_ACEOF 8368/* confdefs.h. */ 8369_ACEOF 8370cat confdefs.h >>conftest.$ac_ext 8371cat >>conftest.$ac_ext <<_ACEOF 8372/* end confdefs.h. */ 8373$ac_includes_default 8374#include <$ac_header> 8375_ACEOF 8376rm -f conftest.$ac_objext 8377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8378 (eval $ac_compile) 2>conftest.er1 8379 ac_status=$? 8380 grep -v '^ *+' conftest.er1 >conftest.err 8381 rm -f conftest.er1 8382 cat conftest.err >&5 8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8384 (exit $ac_status); } && 8385 { ac_try='test -z "$ac_c_werror_flag" 8386 || test ! -s conftest.err' 8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8388 (eval $ac_try) 2>&5 8389 ac_status=$? 8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8391 (exit $ac_status); }; } && 8392 { ac_try='test -s conftest.$ac_objext' 8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8394 (eval $ac_try) 2>&5 8395 ac_status=$? 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8397 (exit $ac_status); }; }; then 8398 ac_header_compiler=yes 8399else 8400 echo "$as_me: failed program was:" >&5 8401sed 's/^/| /' conftest.$ac_ext >&5 8402 8403ac_header_compiler=no 8404fi 8405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8407echo "${ECHO_T}$ac_header_compiler" >&6 8408 8409# Is the header present? 8410echo "$as_me:$LINENO: checking $ac_header presence" >&5 8411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8412cat >conftest.$ac_ext <<_ACEOF 8413/* confdefs.h. */ 8414_ACEOF 8415cat confdefs.h >>conftest.$ac_ext 8416cat >>conftest.$ac_ext <<_ACEOF 8417/* end confdefs.h. */ 8418#include <$ac_header> 8419_ACEOF 8420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8422 ac_status=$? 8423 grep -v '^ *+' conftest.er1 >conftest.err 8424 rm -f conftest.er1 8425 cat conftest.err >&5 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 (exit $ac_status); } >/dev/null; then 8428 if test -s conftest.err; then 8429 ac_cpp_err=$ac_c_preproc_warn_flag 8430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8431 else 8432 ac_cpp_err= 8433 fi 8434else 8435 ac_cpp_err=yes 8436fi 8437if test -z "$ac_cpp_err"; then 8438 ac_header_preproc=yes 8439else 8440 echo "$as_me: failed program was:" >&5 8441sed 's/^/| /' conftest.$ac_ext >&5 8442 8443 ac_header_preproc=no 8444fi 8445rm -f conftest.err conftest.$ac_ext 8446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8447echo "${ECHO_T}$ac_header_preproc" >&6 8448 8449# So? What about this header? 8450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8451 yes:no: ) 8452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8456 ac_header_preproc=yes 8457 ;; 8458 no:yes:* ) 8459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8471 ( 8472 cat <<\_ASBOX 8473## ----------------------------- ## 8474## Report this to the tk lists. ## 8475## ----------------------------- ## 8476_ASBOX 8477 ) | 8478 sed "s/^/$as_me: WARNING: /" >&2 8479 ;; 8480esac 8481echo "$as_me:$LINENO: checking for $ac_header" >&5 8482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8483if eval "test \"\${$as_ac_Header+set}\" = set"; then 8484 echo $ECHO_N "(cached) $ECHO_C" >&6 8485else 8486 eval "$as_ac_Header=\$ac_header_preproc" 8487fi 8488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8490 8491fi 8492if test `eval echo '${'$as_ac_Header'}'` = yes; then 8493 cat >>confdefs.h <<_ACEOF 8494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8495_ACEOF 8496 8497fi 8498 8499done 8500 8501echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 8502echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 8503if test "${ac_cv_header_time+set}" = set; then 8504 echo $ECHO_N "(cached) $ECHO_C" >&6 8505else 8506 cat >conftest.$ac_ext <<_ACEOF 8507/* confdefs.h. */ 8508_ACEOF 8509cat confdefs.h >>conftest.$ac_ext 8510cat >>conftest.$ac_ext <<_ACEOF 8511/* end confdefs.h. */ 8512#include <sys/types.h> 8513#include <sys/time.h> 8514#include <time.h> 8515 8516int 8517main () 8518{ 8519if ((struct tm *) 0) 8520return 0; 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525rm -f conftest.$ac_objext 8526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8527 (eval $ac_compile) 2>conftest.er1 8528 ac_status=$? 8529 grep -v '^ *+' conftest.er1 >conftest.err 8530 rm -f conftest.er1 8531 cat conftest.err >&5 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 (exit $ac_status); } && 8534 { ac_try='test -z "$ac_c_werror_flag" 8535 || test ! -s conftest.err' 8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8537 (eval $ac_try) 2>&5 8538 ac_status=$? 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); }; } && 8541 { ac_try='test -s conftest.$ac_objext' 8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8543 (eval $ac_try) 2>&5 8544 ac_status=$? 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8546 (exit $ac_status); }; }; then 8547 ac_cv_header_time=yes 8548else 8549 echo "$as_me: failed program was:" >&5 8550sed 's/^/| /' conftest.$ac_ext >&5 8551 8552ac_cv_header_time=no 8553fi 8554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8555fi 8556echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8557echo "${ECHO_T}$ac_cv_header_time" >&6 8558if test $ac_cv_header_time = yes; then 8559 8560cat >>confdefs.h <<\_ACEOF 8561#define TIME_WITH_SYS_TIME 1 8562_ACEOF 8563 8564fi 8565 8566 8567#-------------------------------------------------------------------- 8568# Under Solaris 2.4, strtod returns the wrong value for the 8569# terminating character under some conditions. Check for this 8570# and if the problem exists use a substitute procedure 8571# "fixstrtod" (provided by Tcl) that corrects the error. 8572#-------------------------------------------------------------------- 8573 8574 8575 echo "$as_me:$LINENO: checking for strtod" >&5 8576echo $ECHO_N "checking for strtod... $ECHO_C" >&6 8577if test "${ac_cv_func_strtod+set}" = set; then 8578 echo $ECHO_N "(cached) $ECHO_C" >&6 8579else 8580 cat >conftest.$ac_ext <<_ACEOF 8581/* confdefs.h. */ 8582_ACEOF 8583cat confdefs.h >>conftest.$ac_ext 8584cat >>conftest.$ac_ext <<_ACEOF 8585/* end confdefs.h. */ 8586/* Define strtod to an innocuous variant, in case <limits.h> declares strtod. 8587 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8588#define strtod innocuous_strtod 8589 8590/* System header to define __stub macros and hopefully few prototypes, 8591 which can conflict with char strtod (); below. 8592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8593 <limits.h> exists even on freestanding compilers. */ 8594 8595#ifdef __STDC__ 8596# include <limits.h> 8597#else 8598# include <assert.h> 8599#endif 8600 8601#undef strtod 8602 8603/* Override any gcc2 internal prototype to avoid an error. */ 8604#ifdef __cplusplus 8605extern "C" 8606{ 8607#endif 8608/* We use char because int might match the return type of a gcc2 8609 builtin and then its argument prototype would still apply. */ 8610char strtod (); 8611/* The GNU C library defines this for functions which it implements 8612 to always fail with ENOSYS. Some functions are actually named 8613 something starting with __ and the normal name is an alias. */ 8614#if defined (__stub_strtod) || defined (__stub___strtod) 8615choke me 8616#else 8617char (*f) () = strtod; 8618#endif 8619#ifdef __cplusplus 8620} 8621#endif 8622 8623int 8624main () 8625{ 8626return f != strtod; 8627 ; 8628 return 0; 8629} 8630_ACEOF 8631rm -f conftest.$ac_objext conftest$ac_exeext 8632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8633 (eval $ac_link) 2>conftest.er1 8634 ac_status=$? 8635 grep -v '^ *+' conftest.er1 >conftest.err 8636 rm -f conftest.er1 8637 cat conftest.err >&5 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); } && 8640 { ac_try='test -z "$ac_c_werror_flag" 8641 || test ! -s conftest.err' 8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8643 (eval $ac_try) 2>&5 8644 ac_status=$? 8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8646 (exit $ac_status); }; } && 8647 { ac_try='test -s conftest$ac_exeext' 8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8649 (eval $ac_try) 2>&5 8650 ac_status=$? 8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8652 (exit $ac_status); }; }; then 8653 ac_cv_func_strtod=yes 8654else 8655 echo "$as_me: failed program was:" >&5 8656sed 's/^/| /' conftest.$ac_ext >&5 8657 8658ac_cv_func_strtod=no 8659fi 8660rm -f conftest.err conftest.$ac_objext \ 8661 conftest$ac_exeext conftest.$ac_ext 8662fi 8663echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 8664echo "${ECHO_T}$ac_cv_func_strtod" >&6 8665if test $ac_cv_func_strtod = yes; then 8666 tcl_strtod=1 8667else 8668 tcl_strtod=0 8669fi 8670 8671 if test "$tcl_strtod" = 1; then 8672 echo "$as_me:$LINENO: checking for Solaris2.4/Tru64 strtod bugs" >&5 8673echo $ECHO_N "checking for Solaris2.4/Tru64 strtod bugs... $ECHO_C" >&6 8674if test "${tcl_cv_strtod_buggy+set}" = set; then 8675 echo $ECHO_N "(cached) $ECHO_C" >&6 8676else 8677 8678 if test "$cross_compiling" = yes; then 8679 tcl_cv_strtod_buggy=buggy 8680else 8681 cat >conftest.$ac_ext <<_ACEOF 8682/* confdefs.h. */ 8683_ACEOF 8684cat confdefs.h >>conftest.$ac_ext 8685cat >>conftest.$ac_ext <<_ACEOF 8686/* end confdefs.h. */ 8687 8688 extern double strtod(); 8689 int main() { 8690 char *infString="Inf", *nanString="NaN", *spaceString=" "; 8691 char *term; 8692 double value; 8693 value = strtod(infString, &term); 8694 if ((term != infString) && (term[-1] == 0)) { 8695 exit(1); 8696 } 8697 value = strtod(nanString, &term); 8698 if ((term != nanString) && (term[-1] == 0)) { 8699 exit(1); 8700 } 8701 value = strtod(spaceString, &term); 8702 if (term == (spaceString+1)) { 8703 exit(1); 8704 } 8705 exit(0); 8706 } 8707_ACEOF 8708rm -f conftest$ac_exeext 8709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8710 (eval $ac_link) 2>&5 8711 ac_status=$? 8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8715 (eval $ac_try) 2>&5 8716 ac_status=$? 8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8718 (exit $ac_status); }; }; then 8719 tcl_cv_strtod_buggy=ok 8720else 8721 echo "$as_me: program exited with status $ac_status" >&5 8722echo "$as_me: failed program was:" >&5 8723sed 's/^/| /' conftest.$ac_ext >&5 8724 8725( exit $ac_status ) 8726tcl_cv_strtod_buggy=buggy 8727fi 8728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8729fi 8730fi 8731echo "$as_me:$LINENO: result: $tcl_cv_strtod_buggy" >&5 8732echo "${ECHO_T}$tcl_cv_strtod_buggy" >&6 8733 if test "$tcl_cv_strtod_buggy" = buggy; then 8734 case $LIBOBJS in 8735 "fixstrtod.$ac_objext" | \ 8736 *" fixstrtod.$ac_objext" | \ 8737 "fixstrtod.$ac_objext "* | \ 8738 *" fixstrtod.$ac_objext "* ) ;; 8739 *) LIBOBJS="$LIBOBJS fixstrtod.$ac_objext" ;; 8740esac 8741 8742 USE_COMPAT=1 8743 8744cat >>confdefs.h <<\_ACEOF 8745#define strtod fixstrtod 8746_ACEOF 8747 8748 fi 8749 fi 8750 8751 8752#-------------------------------------------------------------------- 8753# Check for various typedefs and provide substitutes if 8754# they don't exist. 8755#-------------------------------------------------------------------- 8756 8757echo "$as_me:$LINENO: checking for mode_t" >&5 8758echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 8759if test "${ac_cv_type_mode_t+set}" = set; then 8760 echo $ECHO_N "(cached) $ECHO_C" >&6 8761else 8762 cat >conftest.$ac_ext <<_ACEOF 8763/* confdefs.h. */ 8764_ACEOF 8765cat confdefs.h >>conftest.$ac_ext 8766cat >>conftest.$ac_ext <<_ACEOF 8767/* end confdefs.h. */ 8768$ac_includes_default 8769int 8770main () 8771{ 8772if ((mode_t *) 0) 8773 return 0; 8774if (sizeof (mode_t)) 8775 return 0; 8776 ; 8777 return 0; 8778} 8779_ACEOF 8780rm -f conftest.$ac_objext 8781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8782 (eval $ac_compile) 2>conftest.er1 8783 ac_status=$? 8784 grep -v '^ *+' conftest.er1 >conftest.err 8785 rm -f conftest.er1 8786 cat conftest.err >&5 8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8788 (exit $ac_status); } && 8789 { ac_try='test -z "$ac_c_werror_flag" 8790 || test ! -s conftest.err' 8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8792 (eval $ac_try) 2>&5 8793 ac_status=$? 8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8795 (exit $ac_status); }; } && 8796 { ac_try='test -s conftest.$ac_objext' 8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8798 (eval $ac_try) 2>&5 8799 ac_status=$? 8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8801 (exit $ac_status); }; }; then 8802 ac_cv_type_mode_t=yes 8803else 8804 echo "$as_me: failed program was:" >&5 8805sed 's/^/| /' conftest.$ac_ext >&5 8806 8807ac_cv_type_mode_t=no 8808fi 8809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8810fi 8811echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 8812echo "${ECHO_T}$ac_cv_type_mode_t" >&6 8813if test $ac_cv_type_mode_t = yes; then 8814 : 8815else 8816 8817cat >>confdefs.h <<_ACEOF 8818#define mode_t int 8819_ACEOF 8820 8821fi 8822 8823echo "$as_me:$LINENO: checking for pid_t" >&5 8824echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 8825if test "${ac_cv_type_pid_t+set}" = set; then 8826 echo $ECHO_N "(cached) $ECHO_C" >&6 8827else 8828 cat >conftest.$ac_ext <<_ACEOF 8829/* confdefs.h. */ 8830_ACEOF 8831cat confdefs.h >>conftest.$ac_ext 8832cat >>conftest.$ac_ext <<_ACEOF 8833/* end confdefs.h. */ 8834$ac_includes_default 8835int 8836main () 8837{ 8838if ((pid_t *) 0) 8839 return 0; 8840if (sizeof (pid_t)) 8841 return 0; 8842 ; 8843 return 0; 8844} 8845_ACEOF 8846rm -f conftest.$ac_objext 8847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8848 (eval $ac_compile) 2>conftest.er1 8849 ac_status=$? 8850 grep -v '^ *+' conftest.er1 >conftest.err 8851 rm -f conftest.er1 8852 cat conftest.err >&5 8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8854 (exit $ac_status); } && 8855 { ac_try='test -z "$ac_c_werror_flag" 8856 || test ! -s conftest.err' 8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8858 (eval $ac_try) 2>&5 8859 ac_status=$? 8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8861 (exit $ac_status); }; } && 8862 { ac_try='test -s conftest.$ac_objext' 8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8864 (eval $ac_try) 2>&5 8865 ac_status=$? 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8867 (exit $ac_status); }; }; then 8868 ac_cv_type_pid_t=yes 8869else 8870 echo "$as_me: failed program was:" >&5 8871sed 's/^/| /' conftest.$ac_ext >&5 8872 8873ac_cv_type_pid_t=no 8874fi 8875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8876fi 8877echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 8878echo "${ECHO_T}$ac_cv_type_pid_t" >&6 8879if test $ac_cv_type_pid_t = yes; then 8880 : 8881else 8882 8883cat >>confdefs.h <<_ACEOF 8884#define pid_t int 8885_ACEOF 8886 8887fi 8888 8889echo "$as_me:$LINENO: checking for size_t" >&5 8890echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8891if test "${ac_cv_type_size_t+set}" = set; then 8892 echo $ECHO_N "(cached) $ECHO_C" >&6 8893else 8894 cat >conftest.$ac_ext <<_ACEOF 8895/* confdefs.h. */ 8896_ACEOF 8897cat confdefs.h >>conftest.$ac_ext 8898cat >>conftest.$ac_ext <<_ACEOF 8899/* end confdefs.h. */ 8900$ac_includes_default 8901int 8902main () 8903{ 8904if ((size_t *) 0) 8905 return 0; 8906if (sizeof (size_t)) 8907 return 0; 8908 ; 8909 return 0; 8910} 8911_ACEOF 8912rm -f conftest.$ac_objext 8913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8914 (eval $ac_compile) 2>conftest.er1 8915 ac_status=$? 8916 grep -v '^ *+' conftest.er1 >conftest.err 8917 rm -f conftest.er1 8918 cat conftest.err >&5 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8920 (exit $ac_status); } && 8921 { ac_try='test -z "$ac_c_werror_flag" 8922 || test ! -s conftest.err' 8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8924 (eval $ac_try) 2>&5 8925 ac_status=$? 8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8927 (exit $ac_status); }; } && 8928 { ac_try='test -s conftest.$ac_objext' 8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8930 (eval $ac_try) 2>&5 8931 ac_status=$? 8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 (exit $ac_status); }; }; then 8934 ac_cv_type_size_t=yes 8935else 8936 echo "$as_me: failed program was:" >&5 8937sed 's/^/| /' conftest.$ac_ext >&5 8938 8939ac_cv_type_size_t=no 8940fi 8941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8942fi 8943echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8944echo "${ECHO_T}$ac_cv_type_size_t" >&6 8945if test $ac_cv_type_size_t = yes; then 8946 : 8947else 8948 8949cat >>confdefs.h <<_ACEOF 8950#define size_t unsigned 8951_ACEOF 8952 8953fi 8954 8955echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 8956echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 8957if test "${ac_cv_type_uid_t+set}" = set; then 8958 echo $ECHO_N "(cached) $ECHO_C" >&6 8959else 8960 cat >conftest.$ac_ext <<_ACEOF 8961/* confdefs.h. */ 8962_ACEOF 8963cat confdefs.h >>conftest.$ac_ext 8964cat >>conftest.$ac_ext <<_ACEOF 8965/* end confdefs.h. */ 8966#include <sys/types.h> 8967 8968_ACEOF 8969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8970 $EGREP "uid_t" >/dev/null 2>&1; then 8971 ac_cv_type_uid_t=yes 8972else 8973 ac_cv_type_uid_t=no 8974fi 8975rm -f conftest* 8976 8977fi 8978echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 8979echo "${ECHO_T}$ac_cv_type_uid_t" >&6 8980if test $ac_cv_type_uid_t = no; then 8981 8982cat >>confdefs.h <<\_ACEOF 8983#define uid_t int 8984_ACEOF 8985 8986 8987cat >>confdefs.h <<\_ACEOF 8988#define gid_t int 8989_ACEOF 8990 8991fi 8992 8993 8994echo "$as_me:$LINENO: checking for intptr_t" >&5 8995echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 8996if test "${ac_cv_type_intptr_t+set}" = set; then 8997 echo $ECHO_N "(cached) $ECHO_C" >&6 8998else 8999 cat >conftest.$ac_ext <<_ACEOF 9000/* confdefs.h. */ 9001_ACEOF 9002cat confdefs.h >>conftest.$ac_ext 9003cat >>conftest.$ac_ext <<_ACEOF 9004/* end confdefs.h. */ 9005$ac_includes_default 9006int 9007main () 9008{ 9009if ((intptr_t *) 0) 9010 return 0; 9011if (sizeof (intptr_t)) 9012 return 0; 9013 ; 9014 return 0; 9015} 9016_ACEOF 9017rm -f conftest.$ac_objext 9018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9019 (eval $ac_compile) 2>conftest.er1 9020 ac_status=$? 9021 grep -v '^ *+' conftest.er1 >conftest.err 9022 rm -f conftest.er1 9023 cat conftest.err >&5 9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9025 (exit $ac_status); } && 9026 { ac_try='test -z "$ac_c_werror_flag" 9027 || test ! -s conftest.err' 9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9029 (eval $ac_try) 2>&5 9030 ac_status=$? 9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9032 (exit $ac_status); }; } && 9033 { ac_try='test -s conftest.$ac_objext' 9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9035 (eval $ac_try) 2>&5 9036 ac_status=$? 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); }; }; then 9039 ac_cv_type_intptr_t=yes 9040else 9041 echo "$as_me: failed program was:" >&5 9042sed 's/^/| /' conftest.$ac_ext >&5 9043 9044ac_cv_type_intptr_t=no 9045fi 9046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9047fi 9048echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 9049echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 9050if test $ac_cv_type_intptr_t = yes; then 9051 9052 9053cat >>confdefs.h <<\_ACEOF 9054#define HAVE_INTPTR_T 1 9055_ACEOF 9056 9057else 9058 9059 echo "$as_me:$LINENO: checking for pointer-size signed integer type" >&5 9060echo $ECHO_N "checking for pointer-size signed integer type... $ECHO_C" >&6 9061if test "${tcl_cv_intptr_t+set}" = set; then 9062 echo $ECHO_N "(cached) $ECHO_C" >&6 9063else 9064 9065 for tcl_cv_intptr_t in "int" "long" "long long" none; do 9066 if test "$tcl_cv_intptr_t" != none; then 9067 cat >conftest.$ac_ext <<_ACEOF 9068/* confdefs.h. */ 9069_ACEOF 9070cat confdefs.h >>conftest.$ac_ext 9071cat >>conftest.$ac_ext <<_ACEOF 9072/* end confdefs.h. */ 9073$ac_includes_default 9074int 9075main () 9076{ 9077static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; 9078test_array [0] = 0 9079 9080 ; 9081 return 0; 9082} 9083_ACEOF 9084rm -f conftest.$ac_objext 9085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9086 (eval $ac_compile) 2>conftest.er1 9087 ac_status=$? 9088 grep -v '^ *+' conftest.er1 >conftest.err 9089 rm -f conftest.er1 9090 cat conftest.err >&5 9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9092 (exit $ac_status); } && 9093 { ac_try='test -z "$ac_c_werror_flag" 9094 || test ! -s conftest.err' 9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9096 (eval $ac_try) 2>&5 9097 ac_status=$? 9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9099 (exit $ac_status); }; } && 9100 { ac_try='test -s conftest.$ac_objext' 9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9102 (eval $ac_try) 2>&5 9103 ac_status=$? 9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9105 (exit $ac_status); }; }; then 9106 tcl_ok=yes 9107else 9108 echo "$as_me: failed program was:" >&5 9109sed 's/^/| /' conftest.$ac_ext >&5 9110 9111tcl_ok=no 9112fi 9113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9114 test "$tcl_ok" = yes && break; fi 9115 done 9116fi 9117echo "$as_me:$LINENO: result: $tcl_cv_intptr_t" >&5 9118echo "${ECHO_T}$tcl_cv_intptr_t" >&6 9119 if test "$tcl_cv_intptr_t" != none; then 9120 9121cat >>confdefs.h <<_ACEOF 9122#define intptr_t $tcl_cv_intptr_t 9123_ACEOF 9124 9125 fi 9126 9127fi 9128 9129echo "$as_me:$LINENO: checking for uintptr_t" >&5 9130echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 9131if test "${ac_cv_type_uintptr_t+set}" = set; then 9132 echo $ECHO_N "(cached) $ECHO_C" >&6 9133else 9134 cat >conftest.$ac_ext <<_ACEOF 9135/* confdefs.h. */ 9136_ACEOF 9137cat confdefs.h >>conftest.$ac_ext 9138cat >>conftest.$ac_ext <<_ACEOF 9139/* end confdefs.h. */ 9140$ac_includes_default 9141int 9142main () 9143{ 9144if ((uintptr_t *) 0) 9145 return 0; 9146if (sizeof (uintptr_t)) 9147 return 0; 9148 ; 9149 return 0; 9150} 9151_ACEOF 9152rm -f conftest.$ac_objext 9153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9154 (eval $ac_compile) 2>conftest.er1 9155 ac_status=$? 9156 grep -v '^ *+' conftest.er1 >conftest.err 9157 rm -f conftest.er1 9158 cat conftest.err >&5 9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9160 (exit $ac_status); } && 9161 { ac_try='test -z "$ac_c_werror_flag" 9162 || test ! -s conftest.err' 9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9164 (eval $ac_try) 2>&5 9165 ac_status=$? 9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9167 (exit $ac_status); }; } && 9168 { ac_try='test -s conftest.$ac_objext' 9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9170 (eval $ac_try) 2>&5 9171 ac_status=$? 9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9173 (exit $ac_status); }; }; then 9174 ac_cv_type_uintptr_t=yes 9175else 9176 echo "$as_me: failed program was:" >&5 9177sed 's/^/| /' conftest.$ac_ext >&5 9178 9179ac_cv_type_uintptr_t=no 9180fi 9181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9182fi 9183echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 9184echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 9185if test $ac_cv_type_uintptr_t = yes; then 9186 9187 9188cat >>confdefs.h <<\_ACEOF 9189#define HAVE_UINTPTR_T 1 9190_ACEOF 9191 9192else 9193 9194 echo "$as_me:$LINENO: checking for pointer-size unsigned integer type" >&5 9195echo $ECHO_N "checking for pointer-size unsigned integer type... $ECHO_C" >&6 9196if test "${tcl_cv_uintptr_t+set}" = set; then 9197 echo $ECHO_N "(cached) $ECHO_C" >&6 9198else 9199 9200 for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \ 9201 none; do 9202 if test "$tcl_cv_uintptr_t" != none; then 9203 cat >conftest.$ac_ext <<_ACEOF 9204/* confdefs.h. */ 9205_ACEOF 9206cat confdefs.h >>conftest.$ac_ext 9207cat >>conftest.$ac_ext <<_ACEOF 9208/* end confdefs.h. */ 9209$ac_includes_default 9210int 9211main () 9212{ 9213static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))]; 9214test_array [0] = 0 9215 9216 ; 9217 return 0; 9218} 9219_ACEOF 9220rm -f conftest.$ac_objext 9221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9222 (eval $ac_compile) 2>conftest.er1 9223 ac_status=$? 9224 grep -v '^ *+' conftest.er1 >conftest.err 9225 rm -f conftest.er1 9226 cat conftest.err >&5 9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9228 (exit $ac_status); } && 9229 { ac_try='test -z "$ac_c_werror_flag" 9230 || test ! -s conftest.err' 9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9232 (eval $ac_try) 2>&5 9233 ac_status=$? 9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 (exit $ac_status); }; } && 9236 { ac_try='test -s conftest.$ac_objext' 9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9238 (eval $ac_try) 2>&5 9239 ac_status=$? 9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 (exit $ac_status); }; }; then 9242 tcl_ok=yes 9243else 9244 echo "$as_me: failed program was:" >&5 9245sed 's/^/| /' conftest.$ac_ext >&5 9246 9247tcl_ok=no 9248fi 9249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9250 test "$tcl_ok" = yes && break; fi 9251 done 9252fi 9253echo "$as_me:$LINENO: result: $tcl_cv_uintptr_t" >&5 9254echo "${ECHO_T}$tcl_cv_uintptr_t" >&6 9255 if test "$tcl_cv_uintptr_t" != none; then 9256 9257cat >>confdefs.h <<_ACEOF 9258#define uintptr_t $tcl_cv_uintptr_t 9259_ACEOF 9260 9261 fi 9262 9263fi 9264 9265 9266#------------------------------------------- 9267# In OS/390 struct pwd has no pw_gecos field 9268#------------------------------------------- 9269 9270echo "$as_me:$LINENO: checking pw_gecos in struct pwd" >&5 9271echo $ECHO_N "checking pw_gecos in struct pwd... $ECHO_C" >&6 9272if test "${tcl_cv_pwd_pw_gecos+set}" = set; then 9273 echo $ECHO_N "(cached) $ECHO_C" >&6 9274else 9275 9276 cat >conftest.$ac_ext <<_ACEOF 9277/* confdefs.h. */ 9278_ACEOF 9279cat confdefs.h >>conftest.$ac_ext 9280cat >>conftest.$ac_ext <<_ACEOF 9281/* end confdefs.h. */ 9282#include <pwd.h> 9283int 9284main () 9285{ 9286struct passwd pwd; pwd.pw_gecos; 9287 ; 9288 return 0; 9289} 9290_ACEOF 9291rm -f conftest.$ac_objext 9292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9293 (eval $ac_compile) 2>conftest.er1 9294 ac_status=$? 9295 grep -v '^ *+' conftest.er1 >conftest.err 9296 rm -f conftest.er1 9297 cat conftest.err >&5 9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9299 (exit $ac_status); } && 9300 { ac_try='test -z "$ac_c_werror_flag" 9301 || test ! -s conftest.err' 9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9303 (eval $ac_try) 2>&5 9304 ac_status=$? 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); }; } && 9307 { ac_try='test -s conftest.$ac_objext' 9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9309 (eval $ac_try) 2>&5 9310 ac_status=$? 9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9312 (exit $ac_status); }; }; then 9313 tcl_cv_pwd_pw_gecos=yes 9314else 9315 echo "$as_me: failed program was:" >&5 9316sed 's/^/| /' conftest.$ac_ext >&5 9317 9318tcl_cv_pwd_pw_gecos=no 9319fi 9320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9321fi 9322echo "$as_me:$LINENO: result: $tcl_cv_pwd_pw_gecos" >&5 9323echo "${ECHO_T}$tcl_cv_pwd_pw_gecos" >&6 9324if test $tcl_cv_pwd_pw_gecos = yes; then 9325 9326cat >>confdefs.h <<\_ACEOF 9327#define HAVE_PW_GECOS 1 9328_ACEOF 9329 9330fi 9331 9332#-------------------------------------------------------------------- 9333# On Mac OS X, we can build either with X11 or with Aqua 9334#-------------------------------------------------------------------- 9335 9336if test "`uname -s`" = "Darwin" ; then 9337 echo "$as_me:$LINENO: checking whether to use Aqua" >&5 9338echo $ECHO_N "checking whether to use Aqua... $ECHO_C" >&6 9339 # Check whether --enable-aqua or --disable-aqua was given. 9340if test "${enable_aqua+set}" = set; then 9341 enableval="$enable_aqua" 9342 tk_aqua=$enableval 9343else 9344 tk_aqua=no 9345fi; 9346 if test $tk_aqua = yes; then 9347 if test $tcl_corefoundation = no; then 9348 { echo "$as_me:$LINENO: WARNING: Aqua can only be used when CoreFoundation is available" >&5 9349echo "$as_me: WARNING: Aqua can only be used when CoreFoundation is available" >&2;} 9350 tk_aqua=no 9351 fi 9352 if test ! -d /System/Library/Frameworks/Cocoa.framework; then 9353 { echo "$as_me:$LINENO: WARNING: Aqua can only be used when Cocoa is available" >&5 9354echo "$as_me: WARNING: Aqua can only be used when Cocoa is available" >&2;} 9355 tk_aqua=no 9356 fi 9357 if test "`uname -r | awk -F. '{print $1}'`" -lt 9; then 9358 { echo "$as_me:$LINENO: WARNING: Aqua requires Mac OS X 10.5 or later" >&5 9359echo "$as_me: WARNING: Aqua requires Mac OS X 10.5 or later" >&2;} 9360 tk_aqua=no 9361 fi 9362 fi 9363 echo "$as_me:$LINENO: result: $tk_aqua" >&5 9364echo "${ECHO_T}$tk_aqua" >&6 9365 if test "$fat_32_64" = yes; then 9366 if test $tk_aqua = no; then 9367 echo "$as_me:$LINENO: checking for 64-bit X11" >&5 9368echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6 9369if test "${tcl_cv_lib_x11_64+set}" = set; then 9370 echo $ECHO_N "(cached) $ECHO_C" >&6 9371else 9372 9373 for v in CFLAGS CPPFLAGS LDFLAGS; do 9374 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9375 done 9376 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 9377 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 9378 cat >conftest.$ac_ext <<_ACEOF 9379/* confdefs.h. */ 9380_ACEOF 9381cat confdefs.h >>conftest.$ac_ext 9382cat >>conftest.$ac_ext <<_ACEOF 9383/* end confdefs.h. */ 9384#include <X11/Xlib.h> 9385int 9386main () 9387{ 9388XrmInitialize(); 9389 ; 9390 return 0; 9391} 9392_ACEOF 9393rm -f conftest.$ac_objext conftest$ac_exeext 9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9395 (eval $ac_link) 2>conftest.er1 9396 ac_status=$? 9397 grep -v '^ *+' conftest.er1 >conftest.err 9398 rm -f conftest.er1 9399 cat conftest.err >&5 9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9401 (exit $ac_status); } && 9402 { ac_try='test -z "$ac_c_werror_flag" 9403 || test ! -s conftest.err' 9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9405 (eval $ac_try) 2>&5 9406 ac_status=$? 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 (exit $ac_status); }; } && 9409 { ac_try='test -s conftest$ac_exeext' 9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9411 (eval $ac_try) 2>&5 9412 ac_status=$? 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 (exit $ac_status); }; }; then 9415 tcl_cv_lib_x11_64=yes 9416else 9417 echo "$as_me: failed program was:" >&5 9418sed 's/^/| /' conftest.$ac_ext >&5 9419 9420tcl_cv_lib_x11_64=no 9421fi 9422rm -f conftest.err conftest.$ac_objext \ 9423 conftest$ac_exeext conftest.$ac_ext 9424 for v in CFLAGS CPPFLAGS LDFLAGS; do 9425 eval $v'="$hold_'$v'"' 9426 done 9427fi 9428echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9429echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6 9430 fi 9431 # remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit 9432 # fat builds if configuration does not support 64-bit. 9433 if test "$tcl_cv_lib_x11_64" = no; then 9434 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9435echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9436 for v in CFLAGS CPPFLAGS LDFLAGS; do 9437 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9438 done 9439 fi 9440 fi 9441 if test $tk_aqua = no; then 9442 # check if weak linking whole libraries is possible. 9443 echo "$as_me:$LINENO: checking if ld accepts -weak-l flag" >&5 9444echo $ECHO_N "checking if ld accepts -weak-l flag... $ECHO_C" >&6 9445if test "${tcl_cv_ld_weak_l+set}" = set; then 9446 echo $ECHO_N "(cached) $ECHO_C" >&6 9447else 9448 9449 hold_ldflags=$LDFLAGS 9450 LDFLAGS="$LDFLAGS -Wl,-weak-lm" 9451 cat >conftest.$ac_ext <<_ACEOF 9452/* confdefs.h. */ 9453_ACEOF 9454cat confdefs.h >>conftest.$ac_ext 9455cat >>conftest.$ac_ext <<_ACEOF 9456/* end confdefs.h. */ 9457#include <math.h> 9458int 9459main () 9460{ 9461double f = sin(1.0); 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466rm -f conftest.$ac_objext conftest$ac_exeext 9467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9468 (eval $ac_link) 2>conftest.er1 9469 ac_status=$? 9470 grep -v '^ *+' conftest.er1 >conftest.err 9471 rm -f conftest.er1 9472 cat conftest.err >&5 9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 (exit $ac_status); } && 9475 { ac_try='test -z "$ac_c_werror_flag" 9476 || test ! -s conftest.err' 9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9478 (eval $ac_try) 2>&5 9479 ac_status=$? 9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9481 (exit $ac_status); }; } && 9482 { ac_try='test -s conftest$ac_exeext' 9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9484 (eval $ac_try) 2>&5 9485 ac_status=$? 9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9487 (exit $ac_status); }; }; then 9488 tcl_cv_ld_weak_l=yes 9489else 9490 echo "$as_me: failed program was:" >&5 9491sed 's/^/| /' conftest.$ac_ext >&5 9492 9493tcl_cv_ld_weak_l=no 9494fi 9495rm -f conftest.err conftest.$ac_objext \ 9496 conftest$ac_exeext conftest.$ac_ext 9497 LDFLAGS=$hold_ldflags 9498fi 9499echo "$as_me:$LINENO: result: $tcl_cv_ld_weak_l" >&5 9500echo "${ECHO_T}$tcl_cv_ld_weak_l" >&6 9501 fi 9502 9503for ac_header in AvailabilityMacros.h 9504do 9505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9506if eval "test \"\${$as_ac_Header+set}\" = set"; then 9507 echo "$as_me:$LINENO: checking for $ac_header" >&5 9508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9509if eval "test \"\${$as_ac_Header+set}\" = set"; then 9510 echo $ECHO_N "(cached) $ECHO_C" >&6 9511fi 9512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9514else 9515 # Is the header compilable? 9516echo "$as_me:$LINENO: checking $ac_header usability" >&5 9517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9518cat >conftest.$ac_ext <<_ACEOF 9519/* confdefs.h. */ 9520_ACEOF 9521cat confdefs.h >>conftest.$ac_ext 9522cat >>conftest.$ac_ext <<_ACEOF 9523/* end confdefs.h. */ 9524$ac_includes_default 9525#include <$ac_header> 9526_ACEOF 9527rm -f conftest.$ac_objext 9528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9529 (eval $ac_compile) 2>conftest.er1 9530 ac_status=$? 9531 grep -v '^ *+' conftest.er1 >conftest.err 9532 rm -f conftest.er1 9533 cat conftest.err >&5 9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9535 (exit $ac_status); } && 9536 { ac_try='test -z "$ac_c_werror_flag" 9537 || test ! -s conftest.err' 9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9539 (eval $ac_try) 2>&5 9540 ac_status=$? 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9542 (exit $ac_status); }; } && 9543 { ac_try='test -s conftest.$ac_objext' 9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9545 (eval $ac_try) 2>&5 9546 ac_status=$? 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); }; }; then 9549 ac_header_compiler=yes 9550else 9551 echo "$as_me: failed program was:" >&5 9552sed 's/^/| /' conftest.$ac_ext >&5 9553 9554ac_header_compiler=no 9555fi 9556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9557echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9558echo "${ECHO_T}$ac_header_compiler" >&6 9559 9560# Is the header present? 9561echo "$as_me:$LINENO: checking $ac_header presence" >&5 9562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9563cat >conftest.$ac_ext <<_ACEOF 9564/* confdefs.h. */ 9565_ACEOF 9566cat confdefs.h >>conftest.$ac_ext 9567cat >>conftest.$ac_ext <<_ACEOF 9568/* end confdefs.h. */ 9569#include <$ac_header> 9570_ACEOF 9571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9573 ac_status=$? 9574 grep -v '^ *+' conftest.er1 >conftest.err 9575 rm -f conftest.er1 9576 cat conftest.err >&5 9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9578 (exit $ac_status); } >/dev/null; then 9579 if test -s conftest.err; then 9580 ac_cpp_err=$ac_c_preproc_warn_flag 9581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9582 else 9583 ac_cpp_err= 9584 fi 9585else 9586 ac_cpp_err=yes 9587fi 9588if test -z "$ac_cpp_err"; then 9589 ac_header_preproc=yes 9590else 9591 echo "$as_me: failed program was:" >&5 9592sed 's/^/| /' conftest.$ac_ext >&5 9593 9594 ac_header_preproc=no 9595fi 9596rm -f conftest.err conftest.$ac_ext 9597echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9598echo "${ECHO_T}$ac_header_preproc" >&6 9599 9600# So? What about this header? 9601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9602 yes:no: ) 9603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9607 ac_header_preproc=yes 9608 ;; 9609 no:yes:* ) 9610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9622 ( 9623 cat <<\_ASBOX 9624## ----------------------------- ## 9625## Report this to the tk lists. ## 9626## ----------------------------- ## 9627_ASBOX 9628 ) | 9629 sed "s/^/$as_me: WARNING: /" >&2 9630 ;; 9631esac 9632echo "$as_me:$LINENO: checking for $ac_header" >&5 9633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9634if eval "test \"\${$as_ac_Header+set}\" = set"; then 9635 echo $ECHO_N "(cached) $ECHO_C" >&6 9636else 9637 eval "$as_ac_Header=\$ac_header_preproc" 9638fi 9639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9641 9642fi 9643if test `eval echo '${'$as_ac_Header'}'` = yes; then 9644 cat >>confdefs.h <<_ACEOF 9645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9646_ACEOF 9647 9648fi 9649 9650done 9651 9652 if test "$ac_cv_header_AvailabilityMacros_h" = yes; then 9653 echo "$as_me:$LINENO: checking if weak import is available" >&5 9654echo $ECHO_N "checking if weak import is available... $ECHO_C" >&6 9655if test "${tcl_cv_cc_weak_import+set}" = set; then 9656 echo $ECHO_N "(cached) $ECHO_C" >&6 9657else 9658 9659 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9660 cat >conftest.$ac_ext <<_ACEOF 9661/* confdefs.h. */ 9662_ACEOF 9663cat confdefs.h >>conftest.$ac_ext 9664cat >>conftest.$ac_ext <<_ACEOF 9665/* end confdefs.h. */ 9666 9667 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 9668 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 9669 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 9670 #endif 9671 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020 9672 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020 9673 #endif 9674 int rand(void) __attribute__((weak_import)); 9675 9676int 9677main () 9678{ 9679rand(); 9680 ; 9681 return 0; 9682} 9683_ACEOF 9684rm -f conftest.$ac_objext conftest$ac_exeext 9685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9686 (eval $ac_link) 2>conftest.er1 9687 ac_status=$? 9688 grep -v '^ *+' conftest.er1 >conftest.err 9689 rm -f conftest.er1 9690 cat conftest.err >&5 9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9692 (exit $ac_status); } && 9693 { ac_try='test -z "$ac_c_werror_flag" 9694 || test ! -s conftest.err' 9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9696 (eval $ac_try) 2>&5 9697 ac_status=$? 9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9699 (exit $ac_status); }; } && 9700 { ac_try='test -s conftest$ac_exeext' 9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9702 (eval $ac_try) 2>&5 9703 ac_status=$? 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9705 (exit $ac_status); }; }; then 9706 tcl_cv_cc_weak_import=yes 9707else 9708 echo "$as_me: failed program was:" >&5 9709sed 's/^/| /' conftest.$ac_ext >&5 9710 9711tcl_cv_cc_weak_import=no 9712fi 9713rm -f conftest.err conftest.$ac_objext \ 9714 conftest$ac_exeext conftest.$ac_ext 9715 CFLAGS=$hold_cflags 9716fi 9717echo "$as_me:$LINENO: result: $tcl_cv_cc_weak_import" >&5 9718echo "${ECHO_T}$tcl_cv_cc_weak_import" >&6 9719 if test $tcl_cv_cc_weak_import = yes; then 9720 9721cat >>confdefs.h <<\_ACEOF 9722#define HAVE_WEAK_IMPORT 1 9723_ACEOF 9724 9725 fi 9726 echo "$as_me:$LINENO: checking if Darwin SUSv3 extensions are available" >&5 9727echo $ECHO_N "checking if Darwin SUSv3 extensions are available... $ECHO_C" >&6 9728if test "${tcl_cv_cc_darwin_c_source+set}" = set; then 9729 echo $ECHO_N "(cached) $ECHO_C" >&6 9730else 9731 9732 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 9733 cat >conftest.$ac_ext <<_ACEOF 9734/* confdefs.h. */ 9735_ACEOF 9736cat confdefs.h >>conftest.$ac_ext 9737cat >>conftest.$ac_ext <<_ACEOF 9738/* end confdefs.h. */ 9739 9740 #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 9741 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 9742 #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 9743 #endif 9744 #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050 9745 #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050 9746 #endif 9747 #define _DARWIN_C_SOURCE 1 9748 #include <sys/cdefs.h> 9749 9750int 9751main () 9752{ 9753 9754 ; 9755 return 0; 9756} 9757_ACEOF 9758rm -f conftest.$ac_objext 9759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9760 (eval $ac_compile) 2>conftest.er1 9761 ac_status=$? 9762 grep -v '^ *+' conftest.er1 >conftest.err 9763 rm -f conftest.er1 9764 cat conftest.err >&5 9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9766 (exit $ac_status); } && 9767 { ac_try='test -z "$ac_c_werror_flag" 9768 || test ! -s conftest.err' 9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9770 (eval $ac_try) 2>&5 9771 ac_status=$? 9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 (exit $ac_status); }; } && 9774 { ac_try='test -s conftest.$ac_objext' 9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9776 (eval $ac_try) 2>&5 9777 ac_status=$? 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); }; }; then 9780 tcl_cv_cc_darwin_c_source=yes 9781else 9782 echo "$as_me: failed program was:" >&5 9783sed 's/^/| /' conftest.$ac_ext >&5 9784 9785tcl_cv_cc_darwin_c_source=no 9786fi 9787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9788 CFLAGS=$hold_cflags 9789fi 9790echo "$as_me:$LINENO: result: $tcl_cv_cc_darwin_c_source" >&5 9791echo "${ECHO_T}$tcl_cv_cc_darwin_c_source" >&6 9792 if test $tcl_cv_cc_darwin_c_source = yes; then 9793 9794cat >>confdefs.h <<\_ACEOF 9795#define _DARWIN_C_SOURCE 1 9796_ACEOF 9797 9798 fi 9799 fi 9800else 9801 tk_aqua=no 9802fi 9803 9804if test $tk_aqua = yes; then 9805 9806cat >>confdefs.h <<\_ACEOF 9807#define MAC_OSX_TK 1 9808_ACEOF 9809 9810 LIBS="$LIBS -framework Cocoa -framework Carbon -framework IOKit" 9811 EXTRA_CC_SWITCHES='-std=gnu99 -x objective-c' 9812 EXTRA_LIB_CC_SWITCHES='-fobjc-gc' 9813 TK_WINDOWINGSYSTEM=AQUA 9814 if test -n "${enable_symbols}" -a "${enable_symbols}" != no; then 9815 9816cat >>confdefs.h <<\_ACEOF 9817#define TK_MAC_DEBUG 1 9818_ACEOF 9819 9820 fi 9821else 9822 #-------------------------------------------------------------------- 9823 # Locate the X11 header files and the X11 library archive. Try 9824 # the ac_path_x macro first, but if it doesn't find the X stuff 9825 # (e.g. because there's no xmkmf program) then check through 9826 # a list of possible directories. Under some conditions the 9827 # autoconf macro will return an include directory that contains 9828 # no include files, so double-check its result just to be safe. 9829 #-------------------------------------------------------------------- 9830 9831 9832 echo "$as_me:$LINENO: checking for X" >&5 9833echo $ECHO_N "checking for X... $ECHO_C" >&6 9834 9835 9836# Check whether --with-x or --without-x was given. 9837if test "${with_x+set}" = set; then 9838 withval="$with_x" 9839 9840fi; 9841# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9842if test "x$with_x" = xno; then 9843 # The user explicitly disabled X. 9844 have_x=disabled 9845else 9846 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 9847 # Both variables are already set. 9848 have_x=yes 9849 else 9850 if test "${ac_cv_have_x+set}" = set; then 9851 echo $ECHO_N "(cached) $ECHO_C" >&6 9852else 9853 # One or both of the vars are not set, and there is no cached value. 9854ac_x_includes=no ac_x_libraries=no 9855rm -fr conftest.dir 9856if mkdir conftest.dir; then 9857 cd conftest.dir 9858 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 9859 cat >Imakefile <<'_ACEOF' 9860acfindx: 9861 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 9862_ACEOF 9863 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9865 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9866 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 9867 for ac_extension in a so sl; do 9868 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 9869 test -f $ac_im_libdir/libX11.$ac_extension; then 9870 ac_im_usrlibdir=$ac_im_libdir; break 9871 fi 9872 done 9873 # Screen out bogus values from the imake configuration. They are 9874 # bogus both because they are the default anyway, and because 9875 # using them would break gcc on systems where it needs fixed includes. 9876 case $ac_im_incroot in 9877 /usr/include) ;; 9878 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9879 esac 9880 case $ac_im_usrlibdir in 9881 /usr/lib | /lib) ;; 9882 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9883 esac 9884 fi 9885 cd .. 9886 rm -fr conftest.dir 9887fi 9888 9889# Standard set of common directories for X headers. 9890# Check X11 before X11Rn because it is often a symlink to the current release. 9891ac_x_header_dirs=' 9892/usr/X11/include 9893/usr/X11R6/include 9894/usr/X11R5/include 9895/usr/X11R4/include 9896 9897/usr/include/X11 9898/usr/include/X11R6 9899/usr/include/X11R5 9900/usr/include/X11R4 9901 9902/usr/local/X11/include 9903/usr/local/X11R6/include 9904/usr/local/X11R5/include 9905/usr/local/X11R4/include 9906 9907/usr/local/include/X11 9908/usr/local/include/X11R6 9909/usr/local/include/X11R5 9910/usr/local/include/X11R4 9911 9912/usr/X386/include 9913/usr/x386/include 9914/usr/XFree86/include/X11 9915 9916/usr/include 9917/usr/local/include 9918/usr/unsupported/include 9919/usr/athena/include 9920/usr/local/x11r5/include 9921/usr/lpp/Xamples/include 9922 9923/usr/openwin/include 9924/usr/openwin/share/include' 9925 9926if test "$ac_x_includes" = no; then 9927 # Guess where to find include files, by looking for Intrinsic.h. 9928 # First, try using that file with no special directory specified. 9929 cat >conftest.$ac_ext <<_ACEOF 9930/* confdefs.h. */ 9931_ACEOF 9932cat confdefs.h >>conftest.$ac_ext 9933cat >>conftest.$ac_ext <<_ACEOF 9934/* end confdefs.h. */ 9935#include <X11/Intrinsic.h> 9936_ACEOF 9937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9939 ac_status=$? 9940 grep -v '^ *+' conftest.er1 >conftest.err 9941 rm -f conftest.er1 9942 cat conftest.err >&5 9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9944 (exit $ac_status); } >/dev/null; then 9945 if test -s conftest.err; then 9946 ac_cpp_err=$ac_c_preproc_warn_flag 9947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9948 else 9949 ac_cpp_err= 9950 fi 9951else 9952 ac_cpp_err=yes 9953fi 9954if test -z "$ac_cpp_err"; then 9955 # We can compile using X headers with no special include directory. 9956ac_x_includes= 9957else 9958 echo "$as_me: failed program was:" >&5 9959sed 's/^/| /' conftest.$ac_ext >&5 9960 9961 for ac_dir in $ac_x_header_dirs; do 9962 if test -r "$ac_dir/X11/Intrinsic.h"; then 9963 ac_x_includes=$ac_dir 9964 break 9965 fi 9966done 9967fi 9968rm -f conftest.err conftest.$ac_ext 9969fi # $ac_x_includes = no 9970 9971if test "$ac_x_libraries" = no; then 9972 # Check for the libraries. 9973 # See if we find them without any special options. 9974 # Don't add to $LIBS permanently. 9975 ac_save_LIBS=$LIBS 9976 LIBS="-lXt $LIBS" 9977 cat >conftest.$ac_ext <<_ACEOF 9978/* confdefs.h. */ 9979_ACEOF 9980cat confdefs.h >>conftest.$ac_ext 9981cat >>conftest.$ac_ext <<_ACEOF 9982/* end confdefs.h. */ 9983#include <X11/Intrinsic.h> 9984int 9985main () 9986{ 9987XtMalloc (0) 9988 ; 9989 return 0; 9990} 9991_ACEOF 9992rm -f conftest.$ac_objext conftest$ac_exeext 9993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9994 (eval $ac_link) 2>conftest.er1 9995 ac_status=$? 9996 grep -v '^ *+' conftest.er1 >conftest.err 9997 rm -f conftest.er1 9998 cat conftest.err >&5 9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 (exit $ac_status); } && 10001 { ac_try='test -z "$ac_c_werror_flag" 10002 || test ! -s conftest.err' 10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10004 (eval $ac_try) 2>&5 10005 ac_status=$? 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); }; } && 10008 { ac_try='test -s conftest$ac_exeext' 10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10010 (eval $ac_try) 2>&5 10011 ac_status=$? 10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10013 (exit $ac_status); }; }; then 10014 LIBS=$ac_save_LIBS 10015# We can link X programs with no special library path. 10016ac_x_libraries= 10017else 10018 echo "$as_me: failed program was:" >&5 10019sed 's/^/| /' conftest.$ac_ext >&5 10020 10021LIBS=$ac_save_LIBS 10022for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10023do 10024 # Don't even attempt the hair of trying to link an X program! 10025 for ac_extension in a so sl; do 10026 if test -r $ac_dir/libXt.$ac_extension; then 10027 ac_x_libraries=$ac_dir 10028 break 2 10029 fi 10030 done 10031done 10032fi 10033rm -f conftest.err conftest.$ac_objext \ 10034 conftest$ac_exeext conftest.$ac_ext 10035fi # $ac_x_libraries = no 10036 10037if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 10038 # Didn't find X anywhere. Cache the known absence of X. 10039 ac_cv_have_x="have_x=no" 10040else 10041 # Record where we found X for the cache. 10042 ac_cv_have_x="have_x=yes \ 10043 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 10044fi 10045fi 10046 10047 fi 10048 eval "$ac_cv_have_x" 10049fi # $with_x != no 10050 10051if test "$have_x" != yes; then 10052 echo "$as_me:$LINENO: result: $have_x" >&5 10053echo "${ECHO_T}$have_x" >&6 10054 no_x=yes 10055else 10056 # If each of the values was on the command line, it overrides each guess. 10057 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10058 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10059 # Update the cache value to reflect the command line values. 10060 ac_cv_have_x="have_x=yes \ 10061 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10062 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 10063echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10064fi 10065 10066 not_really_there="" 10067 if test "$no_x" = ""; then 10068 if test "$x_includes" = ""; then 10069 cat >conftest.$ac_ext <<_ACEOF 10070/* confdefs.h. */ 10071_ACEOF 10072cat confdefs.h >>conftest.$ac_ext 10073cat >>conftest.$ac_ext <<_ACEOF 10074/* end confdefs.h. */ 10075#include <X11/XIntrinsic.h> 10076_ACEOF 10077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10079 ac_status=$? 10080 grep -v '^ *+' conftest.er1 >conftest.err 10081 rm -f conftest.er1 10082 cat conftest.err >&5 10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10084 (exit $ac_status); } >/dev/null; then 10085 if test -s conftest.err; then 10086 ac_cpp_err=$ac_c_preproc_warn_flag 10087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10088 else 10089 ac_cpp_err= 10090 fi 10091else 10092 ac_cpp_err=yes 10093fi 10094if test -z "$ac_cpp_err"; then 10095 : 10096else 10097 echo "$as_me: failed program was:" >&5 10098sed 's/^/| /' conftest.$ac_ext >&5 10099 10100 not_really_there="yes" 10101fi 10102rm -f conftest.err conftest.$ac_ext 10103 else 10104 if test ! -r $x_includes/X11/Intrinsic.h; then 10105 not_really_there="yes" 10106 fi 10107 fi 10108 fi 10109 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then 10110 echo "$as_me:$LINENO: checking for X11 header files" >&5 10111echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6 10112 found_xincludes="no" 10113 cat >conftest.$ac_ext <<_ACEOF 10114/* confdefs.h. */ 10115_ACEOF 10116cat confdefs.h >>conftest.$ac_ext 10117cat >>conftest.$ac_ext <<_ACEOF 10118/* end confdefs.h. */ 10119#include <X11/Intrinsic.h> 10120_ACEOF 10121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10123 ac_status=$? 10124 grep -v '^ *+' conftest.er1 >conftest.err 10125 rm -f conftest.er1 10126 cat conftest.err >&5 10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10128 (exit $ac_status); } >/dev/null; then 10129 if test -s conftest.err; then 10130 ac_cpp_err=$ac_c_preproc_warn_flag 10131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10132 else 10133 ac_cpp_err= 10134 fi 10135else 10136 ac_cpp_err=yes 10137fi 10138if test -z "$ac_cpp_err"; then 10139 found_xincludes="yes" 10140else 10141 echo "$as_me: failed program was:" >&5 10142sed 's/^/| /' conftest.$ac_ext >&5 10143 10144 found_xincludes="no" 10145fi 10146rm -f conftest.err conftest.$ac_ext 10147 if test "$found_xincludes" = "no"; then 10148 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" 10149 for i in $dirs ; do 10150 if test -r $i/X11/Intrinsic.h; then 10151 echo "$as_me:$LINENO: result: $i" >&5 10152echo "${ECHO_T}$i" >&6 10153 XINCLUDES=" -I$i" 10154 found_xincludes="yes" 10155 break 10156 fi 10157 done 10158 fi 10159 else 10160 if test "$x_includes" != ""; then 10161 XINCLUDES="-I$x_includes" 10162 found_xincludes="yes" 10163 fi 10164 fi 10165 if test "$found_xincludes" = "no"; then 10166 echo "$as_me:$LINENO: result: couldn't find any!" >&5 10167echo "${ECHO_T}couldn't find any!" >&6 10168 fi 10169 10170 if test "$no_x" = yes; then 10171 echo "$as_me:$LINENO: checking for X11 libraries" >&5 10172echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6 10173 XLIBSW=nope 10174 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" 10175 for i in $dirs ; do 10176 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then 10177 echo "$as_me:$LINENO: result: $i" >&5 10178echo "${ECHO_T}$i" >&6 10179 XLIBSW="-L$i -lX11" 10180 x_libraries="$i" 10181 break 10182 fi 10183 done 10184 else 10185 if test "$x_libraries" = ""; then 10186 XLIBSW=-lX11 10187 else 10188 XLIBSW="-L$x_libraries -lX11" 10189 fi 10190 fi 10191 if test "$XLIBSW" = nope ; then 10192 echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5 10193echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6 10194if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then 10195 echo $ECHO_N "(cached) $ECHO_C" >&6 10196else 10197 ac_check_lib_save_LIBS=$LIBS 10198LIBS="-lXwindow $LIBS" 10199cat >conftest.$ac_ext <<_ACEOF 10200/* confdefs.h. */ 10201_ACEOF 10202cat confdefs.h >>conftest.$ac_ext 10203cat >>conftest.$ac_ext <<_ACEOF 10204/* end confdefs.h. */ 10205 10206/* Override any gcc2 internal prototype to avoid an error. */ 10207#ifdef __cplusplus 10208extern "C" 10209#endif 10210/* We use char because int might match the return type of a gcc2 10211 builtin and then its argument prototype would still apply. */ 10212char XCreateWindow (); 10213int 10214main () 10215{ 10216XCreateWindow (); 10217 ; 10218 return 0; 10219} 10220_ACEOF 10221rm -f conftest.$ac_objext conftest$ac_exeext 10222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10223 (eval $ac_link) 2>conftest.er1 10224 ac_status=$? 10225 grep -v '^ *+' conftest.er1 >conftest.err 10226 rm -f conftest.er1 10227 cat conftest.err >&5 10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 (exit $ac_status); } && 10230 { ac_try='test -z "$ac_c_werror_flag" 10231 || test ! -s conftest.err' 10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10233 (eval $ac_try) 2>&5 10234 ac_status=$? 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10236 (exit $ac_status); }; } && 10237 { ac_try='test -s conftest$ac_exeext' 10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10239 (eval $ac_try) 2>&5 10240 ac_status=$? 10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10242 (exit $ac_status); }; }; then 10243 ac_cv_lib_Xwindow_XCreateWindow=yes 10244else 10245 echo "$as_me: failed program was:" >&5 10246sed 's/^/| /' conftest.$ac_ext >&5 10247 10248ac_cv_lib_Xwindow_XCreateWindow=no 10249fi 10250rm -f conftest.err conftest.$ac_objext \ 10251 conftest$ac_exeext conftest.$ac_ext 10252LIBS=$ac_check_lib_save_LIBS 10253fi 10254echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 10255echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6 10256if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then 10257 XLIBSW=-lXwindow 10258fi 10259 10260 fi 10261 if test "$XLIBSW" = nope ; then 10262 echo "$as_me:$LINENO: result: could not find any! Using -lX11." >&5 10263echo "${ECHO_T}could not find any! Using -lX11." >&6 10264 XLIBSW=-lX11 10265 fi 10266 10267 TK_WINDOWINGSYSTEM=X11 10268fi 10269 10270#-------------------------------------------------------------------- 10271# Various manipulations on the search path used at runtime to 10272# find shared libraries: 10273# 1. If the X library binaries are in a non-standard directory, 10274# add the X library location into that search path. 10275# 2. On systems such as AIX and Ultrix that use "-L" as the 10276# search path option, colons cannot be used to separate 10277# directories from each other. Change colons to " -L". 10278# 3. Create two sets of search flags, one for use in cc lines 10279# and the other for when the linker is invoked directly. In 10280# the second case, '-Wl,' must be stripped off and commas must 10281# be replaced by spaces. 10282#-------------------------------------------------------------------- 10283 10284if test "x${x_libraries}" != "x"; then 10285 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${x_libraries}" 10286fi 10287if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then 10288 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'` 10289fi 10290 10291#-------------------------------------------------------------------- 10292# Check for the existence of various libraries. The order here 10293# is important, so that then end up in the right order in the 10294# command line generated by make. The -lsocket and -lnsl libraries 10295# require a couple of special tricks: 10296# 1. Use "connect" and "accept" to check for -lsocket, and 10297# "gethostbyname" to check for -lnsl. 10298# 2. Use each function name only once: can't redo a check because 10299# autoconf caches the results of the last check and won't redo it. 10300# 3. Use -lnsl and -lsocket only if they supply procedures that 10301# aren't already present in the normal libraries. This is because 10302# IRIX 5.2 has libraries, but they aren't needed and they're 10303# bogus: they goof up name resolution if used. 10304# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 10305# To get around this problem, check for both libraries together 10306# if -lsocket doesn't work by itself. 10307#-------------------------------------------------------------------- 10308 10309if test $tk_aqua = no; then 10310 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 10311echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 10312if test "${ac_cv_lib_Xbsd_main+set}" = set; then 10313 echo $ECHO_N "(cached) $ECHO_C" >&6 10314else 10315 ac_check_lib_save_LIBS=$LIBS 10316LIBS="-lXbsd $LIBS" 10317cat >conftest.$ac_ext <<_ACEOF 10318/* confdefs.h. */ 10319_ACEOF 10320cat confdefs.h >>conftest.$ac_ext 10321cat >>conftest.$ac_ext <<_ACEOF 10322/* end confdefs.h. */ 10323 10324 10325int 10326main () 10327{ 10328main (); 10329 ; 10330 return 0; 10331} 10332_ACEOF 10333rm -f conftest.$ac_objext conftest$ac_exeext 10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10335 (eval $ac_link) 2>conftest.er1 10336 ac_status=$? 10337 grep -v '^ *+' conftest.er1 >conftest.err 10338 rm -f conftest.er1 10339 cat conftest.err >&5 10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 (exit $ac_status); } && 10342 { ac_try='test -z "$ac_c_werror_flag" 10343 || test ! -s conftest.err' 10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10345 (eval $ac_try) 2>&5 10346 ac_status=$? 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10348 (exit $ac_status); }; } && 10349 { ac_try='test -s conftest$ac_exeext' 10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10351 (eval $ac_try) 2>&5 10352 ac_status=$? 10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10354 (exit $ac_status); }; }; then 10355 ac_cv_lib_Xbsd_main=yes 10356else 10357 echo "$as_me: failed program was:" >&5 10358sed 's/^/| /' conftest.$ac_ext >&5 10359 10360ac_cv_lib_Xbsd_main=no 10361fi 10362rm -f conftest.err conftest.$ac_objext \ 10363 conftest$ac_exeext conftest.$ac_ext 10364LIBS=$ac_check_lib_save_LIBS 10365fi 10366echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 10367echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 10368if test $ac_cv_lib_Xbsd_main = yes; then 10369 LIBS="$LIBS -lXbsd" 10370fi 10371 10372fi 10373 10374#-------------------------------------------------------------------- 10375# One more check related to the X libraries. The standard releases 10376# of Ultrix don't support the "xauth" mechanism, so send won't work 10377# unless TK_NO_SECURITY is defined. However, there are usually copies 10378# of the MIT X server available as well, which do support xauth. 10379# Check for the MIT stuff and use it if it exists. 10380# 10381# Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1) 10382# because it can't deal with the "-" in the library name. 10383#-------------------------------------------------------------------- 10384 10385if test -d /usr/include/mit -a $tk_aqua = no; then 10386 echo "$as_me:$LINENO: checking MIT X libraries" >&5 10387echo $ECHO_N "checking MIT X libraries... $ECHO_C" >&6 10388 tk_oldCFlags=$CFLAGS 10389 CFLAGS="$CFLAGS -I/usr/include/mit" 10390 tk_oldLibs=$LIBS 10391 LIBS="$LIBS -lX11-mit" 10392 cat >conftest.$ac_ext <<_ACEOF 10393/* confdefs.h. */ 10394_ACEOF 10395cat confdefs.h >>conftest.$ac_ext 10396cat >>conftest.$ac_ext <<_ACEOF 10397/* end confdefs.h. */ 10398 10399 #include <X11/Xlib.h> 10400 10401int 10402main () 10403{ 10404 10405 XOpenDisplay(0); 10406 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411rm -f conftest.$ac_objext conftest$ac_exeext 10412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10413 (eval $ac_link) 2>conftest.er1 10414 ac_status=$? 10415 grep -v '^ *+' conftest.er1 >conftest.err 10416 rm -f conftest.er1 10417 cat conftest.err >&5 10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); } && 10420 { ac_try='test -z "$ac_c_werror_flag" 10421 || test ! -s conftest.err' 10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10423 (eval $ac_try) 2>&5 10424 ac_status=$? 10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10426 (exit $ac_status); }; } && 10427 { ac_try='test -s conftest$ac_exeext' 10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10429 (eval $ac_try) 2>&5 10430 ac_status=$? 10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10432 (exit $ac_status); }; }; then 10433 10434 echo "$as_me:$LINENO: result: yes" >&5 10435echo "${ECHO_T}yes" >&6 10436 XLIBSW="-lX11-mit" 10437 XINCLUDES="-I/usr/include/mit" 10438 10439else 10440 echo "$as_me: failed program was:" >&5 10441sed 's/^/| /' conftest.$ac_ext >&5 10442 10443echo "$as_me:$LINENO: result: no" >&5 10444echo "${ECHO_T}no" >&6 10445fi 10446rm -f conftest.err conftest.$ac_objext \ 10447 conftest$ac_exeext conftest.$ac_ext 10448 CFLAGS=$tk_oldCFlags 10449 LIBS=$tk_oldLibs 10450fi 10451 10452#-------------------------------------------------------------------- 10453# Check whether the header and library for the XScreenSaver 10454# extension are available, and set HAVE_XSS if so. 10455# XScreenSaver is needed for Tk_GetUserInactiveTime(). 10456#-------------------------------------------------------------------- 10457 10458if test $tk_aqua = no; then 10459 tk_oldCFlags=$CFLAGS 10460 CFLAGS="$CFLAGS $XINCLUDES" 10461 tk_oldLibs=$LIBS 10462 LIBS="$tk_oldLibs $XLIBSW" 10463 xss_header_found=no 10464 xss_lib_found=no 10465 echo "$as_me:$LINENO: checking whether to try to use XScreenSaver" >&5 10466echo $ECHO_N "checking whether to try to use XScreenSaver... $ECHO_C" >&6 10467 # Check whether --enable-xss or --disable-xss was given. 10468if test "${enable_xss+set}" = set; then 10469 enableval="$enable_xss" 10470 enable_xss=$enableval 10471else 10472 enable_xss=yes 10473fi; 10474 if test "$enable_xss" = "no" ; then 10475 echo "$as_me:$LINENO: result: $enable_xss" >&5 10476echo "${ECHO_T}$enable_xss" >&6 10477 else 10478 echo "$as_me:$LINENO: result: $enable_xss" >&5 10479echo "${ECHO_T}$enable_xss" >&6 10480 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5 10481echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6 10482if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then 10483 echo $ECHO_N "(cached) $ECHO_C" >&6 10484else 10485 cat >conftest.$ac_ext <<_ACEOF 10486/* confdefs.h. */ 10487_ACEOF 10488cat confdefs.h >>conftest.$ac_ext 10489cat >>conftest.$ac_ext <<_ACEOF 10490/* end confdefs.h. */ 10491#include <X11/Xlib.h> 10492 10493#include <X11/extensions/scrnsaver.h> 10494_ACEOF 10495rm -f conftest.$ac_objext 10496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10497 (eval $ac_compile) 2>conftest.er1 10498 ac_status=$? 10499 grep -v '^ *+' conftest.er1 >conftest.err 10500 rm -f conftest.er1 10501 cat conftest.err >&5 10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10503 (exit $ac_status); } && 10504 { ac_try='test -z "$ac_c_werror_flag" 10505 || test ! -s conftest.err' 10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10507 (eval $ac_try) 2>&5 10508 ac_status=$? 10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10510 (exit $ac_status); }; } && 10511 { ac_try='test -s conftest.$ac_objext' 10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10513 (eval $ac_try) 2>&5 10514 ac_status=$? 10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10516 (exit $ac_status); }; }; then 10517 ac_cv_header_X11_extensions_scrnsaver_h=yes 10518else 10519 echo "$as_me: failed program was:" >&5 10520sed 's/^/| /' conftest.$ac_ext >&5 10521 10522ac_cv_header_X11_extensions_scrnsaver_h=no 10523fi 10524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10525fi 10526echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5 10527echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6 10528if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then 10529 10530 xss_header_found=yes 10531 10532fi 10533 10534 10535 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo" >&5 10536echo $ECHO_N "checking for XScreenSaverQueryInfo... $ECHO_C" >&6 10537if test "${ac_cv_func_XScreenSaverQueryInfo+set}" = set; then 10538 echo $ECHO_N "(cached) $ECHO_C" >&6 10539else 10540 cat >conftest.$ac_ext <<_ACEOF 10541/* confdefs.h. */ 10542_ACEOF 10543cat confdefs.h >>conftest.$ac_ext 10544cat >>conftest.$ac_ext <<_ACEOF 10545/* end confdefs.h. */ 10546/* Define XScreenSaverQueryInfo to an innocuous variant, in case <limits.h> declares XScreenSaverQueryInfo. 10547 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10548#define XScreenSaverQueryInfo innocuous_XScreenSaverQueryInfo 10549 10550/* System header to define __stub macros and hopefully few prototypes, 10551 which can conflict with char XScreenSaverQueryInfo (); below. 10552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10553 <limits.h> exists even on freestanding compilers. */ 10554 10555#ifdef __STDC__ 10556# include <limits.h> 10557#else 10558# include <assert.h> 10559#endif 10560 10561#undef XScreenSaverQueryInfo 10562 10563/* Override any gcc2 internal prototype to avoid an error. */ 10564#ifdef __cplusplus 10565extern "C" 10566{ 10567#endif 10568/* We use char because int might match the return type of a gcc2 10569 builtin and then its argument prototype would still apply. */ 10570char XScreenSaverQueryInfo (); 10571/* The GNU C library defines this for functions which it implements 10572 to always fail with ENOSYS. Some functions are actually named 10573 something starting with __ and the normal name is an alias. */ 10574#if defined (__stub_XScreenSaverQueryInfo) || defined (__stub___XScreenSaverQueryInfo) 10575choke me 10576#else 10577char (*f) () = XScreenSaverQueryInfo; 10578#endif 10579#ifdef __cplusplus 10580} 10581#endif 10582 10583int 10584main () 10585{ 10586return f != XScreenSaverQueryInfo; 10587 ; 10588 return 0; 10589} 10590_ACEOF 10591rm -f conftest.$ac_objext conftest$ac_exeext 10592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10593 (eval $ac_link) 2>conftest.er1 10594 ac_status=$? 10595 grep -v '^ *+' conftest.er1 >conftest.err 10596 rm -f conftest.er1 10597 cat conftest.err >&5 10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10599 (exit $ac_status); } && 10600 { ac_try='test -z "$ac_c_werror_flag" 10601 || test ! -s conftest.err' 10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10603 (eval $ac_try) 2>&5 10604 ac_status=$? 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10606 (exit $ac_status); }; } && 10607 { ac_try='test -s conftest$ac_exeext' 10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10609 (eval $ac_try) 2>&5 10610 ac_status=$? 10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10612 (exit $ac_status); }; }; then 10613 ac_cv_func_XScreenSaverQueryInfo=yes 10614else 10615 echo "$as_me: failed program was:" >&5 10616sed 's/^/| /' conftest.$ac_ext >&5 10617 10618ac_cv_func_XScreenSaverQueryInfo=no 10619fi 10620rm -f conftest.err conftest.$ac_objext \ 10621 conftest$ac_exeext conftest.$ac_ext 10622fi 10623echo "$as_me:$LINENO: result: $ac_cv_func_XScreenSaverQueryInfo" >&5 10624echo "${ECHO_T}$ac_cv_func_XScreenSaverQueryInfo" >&6 10625if test $ac_cv_func_XScreenSaverQueryInfo = yes; then 10626 : 10627else 10628 10629 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXext" >&5 10630echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXext... $ECHO_C" >&6 10631if test "${ac_cv_lib_Xext_XScreenSaverQueryInfo+set}" = set; then 10632 echo $ECHO_N "(cached) $ECHO_C" >&6 10633else 10634 ac_check_lib_save_LIBS=$LIBS 10635LIBS="-lXext $LIBS" 10636cat >conftest.$ac_ext <<_ACEOF 10637/* confdefs.h. */ 10638_ACEOF 10639cat confdefs.h >>conftest.$ac_ext 10640cat >>conftest.$ac_ext <<_ACEOF 10641/* end confdefs.h. */ 10642 10643/* Override any gcc2 internal prototype to avoid an error. */ 10644#ifdef __cplusplus 10645extern "C" 10646#endif 10647/* We use char because int might match the return type of a gcc2 10648 builtin and then its argument prototype would still apply. */ 10649char XScreenSaverQueryInfo (); 10650int 10651main () 10652{ 10653XScreenSaverQueryInfo (); 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658rm -f conftest.$ac_objext conftest$ac_exeext 10659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10660 (eval $ac_link) 2>conftest.er1 10661 ac_status=$? 10662 grep -v '^ *+' conftest.er1 >conftest.err 10663 rm -f conftest.er1 10664 cat conftest.err >&5 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); } && 10667 { ac_try='test -z "$ac_c_werror_flag" 10668 || test ! -s conftest.err' 10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10670 (eval $ac_try) 2>&5 10671 ac_status=$? 10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10673 (exit $ac_status); }; } && 10674 { ac_try='test -s conftest$ac_exeext' 10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10676 (eval $ac_try) 2>&5 10677 ac_status=$? 10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10679 (exit $ac_status); }; }; then 10680 ac_cv_lib_Xext_XScreenSaverQueryInfo=yes 10681else 10682 echo "$as_me: failed program was:" >&5 10683sed 's/^/| /' conftest.$ac_ext >&5 10684 10685ac_cv_lib_Xext_XScreenSaverQueryInfo=no 10686fi 10687rm -f conftest.err conftest.$ac_objext \ 10688 conftest$ac_exeext conftest.$ac_ext 10689LIBS=$ac_check_lib_save_LIBS 10690fi 10691echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverQueryInfo" >&5 10692echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverQueryInfo" >&6 10693if test $ac_cv_lib_Xext_XScreenSaverQueryInfo = yes; then 10694 10695 XLIBSW="$XLIBSW -lXext" 10696 xss_lib_found=yes 10697 10698else 10699 10700 echo "$as_me:$LINENO: checking for XScreenSaverQueryInfo in -lXss" >&5 10701echo $ECHO_N "checking for XScreenSaverQueryInfo in -lXss... $ECHO_C" >&6 10702if test "${ac_cv_lib_Xss_XScreenSaverQueryInfo+set}" = set; then 10703 echo $ECHO_N "(cached) $ECHO_C" >&6 10704else 10705 ac_check_lib_save_LIBS=$LIBS 10706LIBS="-lXss -lXext $LIBS" 10707cat >conftest.$ac_ext <<_ACEOF 10708/* confdefs.h. */ 10709_ACEOF 10710cat confdefs.h >>conftest.$ac_ext 10711cat >>conftest.$ac_ext <<_ACEOF 10712/* end confdefs.h. */ 10713 10714/* Override any gcc2 internal prototype to avoid an error. */ 10715#ifdef __cplusplus 10716extern "C" 10717#endif 10718/* We use char because int might match the return type of a gcc2 10719 builtin and then its argument prototype would still apply. */ 10720char XScreenSaverQueryInfo (); 10721int 10722main () 10723{ 10724XScreenSaverQueryInfo (); 10725 ; 10726 return 0; 10727} 10728_ACEOF 10729rm -f conftest.$ac_objext conftest$ac_exeext 10730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10731 (eval $ac_link) 2>conftest.er1 10732 ac_status=$? 10733 grep -v '^ *+' conftest.er1 >conftest.err 10734 rm -f conftest.er1 10735 cat conftest.err >&5 10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10737 (exit $ac_status); } && 10738 { ac_try='test -z "$ac_c_werror_flag" 10739 || test ! -s conftest.err' 10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10741 (eval $ac_try) 2>&5 10742 ac_status=$? 10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10744 (exit $ac_status); }; } && 10745 { ac_try='test -s conftest$ac_exeext' 10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10747 (eval $ac_try) 2>&5 10748 ac_status=$? 10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10750 (exit $ac_status); }; }; then 10751 ac_cv_lib_Xss_XScreenSaverQueryInfo=yes 10752else 10753 echo "$as_me: failed program was:" >&5 10754sed 's/^/| /' conftest.$ac_ext >&5 10755 10756ac_cv_lib_Xss_XScreenSaverQueryInfo=no 10757fi 10758rm -f conftest.err conftest.$ac_objext \ 10759 conftest$ac_exeext conftest.$ac_ext 10760LIBS=$ac_check_lib_save_LIBS 10761fi 10762echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverQueryInfo" >&5 10763echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverQueryInfo" >&6 10764if test $ac_cv_lib_Xss_XScreenSaverQueryInfo = yes; then 10765 10766 if test "$tcl_cv_ld_weak_l" = yes; then 10767 # On Darwin, weak link libXss if possible, 10768 # as it is only available on Tiger or later. 10769 XLIBSW="$XLIBSW -Wl,-weak-lXss -lXext" 10770 else 10771 XLIBSW="$XLIBSW -lXss -lXext" 10772 fi 10773 xss_lib_found=yes 10774 10775fi 10776 10777 10778fi 10779 10780 10781fi 10782 10783 fi 10784 if test $enable_xss = yes -a $xss_lib_found = yes -a $xss_header_found = yes; then 10785 10786cat >>confdefs.h <<\_ACEOF 10787#define HAVE_XSS 1 10788_ACEOF 10789 10790 fi 10791 CFLAGS=$tk_oldCFlags 10792 LIBS=$tk_oldLibs 10793fi 10794 10795#-------------------------------------------------------------------- 10796# Check for freetype / fontconfig / Xft support. 10797#-------------------------------------------------------------------- 10798 10799if test $tk_aqua = no; then 10800 echo "$as_me:$LINENO: checking whether to use xft" >&5 10801echo $ECHO_N "checking whether to use xft... $ECHO_C" >&6 10802 # Check whether --enable-xft or --disable-xft was given. 10803if test "${enable_xft+set}" = set; then 10804 enableval="$enable_xft" 10805 enable_xft=$enableval 10806else 10807 enable_xft="default" 10808fi; 10809 XFT_CFLAGS="" 10810 XFT_LIBS="" 10811 if test "$enable_xft" = "no" ; then 10812 echo "$as_me:$LINENO: result: $enable_xft" >&5 10813echo "${ECHO_T}$enable_xft" >&6 10814 else 10815 found_xft="yes" 10816 XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no" 10817 XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no" 10818 if test "$found_xft" = "no" ; then 10819 found_xft=yes 10820 XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no" 10821 XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no" 10822 fi 10823 echo "$as_me:$LINENO: result: $found_xft" >&5 10824echo "${ECHO_T}$found_xft" >&6 10825 if test "$found_xft" = "yes" ; then 10826 tk_oldCFlags=$CFLAGS 10827 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10828 tk_oldLibs=$LIBS 10829 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 10830 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 10831echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6 10832if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then 10833 echo $ECHO_N "(cached) $ECHO_C" >&6 10834else 10835 cat >conftest.$ac_ext <<_ACEOF 10836/* confdefs.h. */ 10837_ACEOF 10838cat confdefs.h >>conftest.$ac_ext 10839cat >>conftest.$ac_ext <<_ACEOF 10840/* end confdefs.h. */ 10841#include <X11/Xlib.h> 10842 10843#include <X11/Xft/Xft.h> 10844_ACEOF 10845rm -f conftest.$ac_objext 10846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10847 (eval $ac_compile) 2>conftest.er1 10848 ac_status=$? 10849 grep -v '^ *+' conftest.er1 >conftest.err 10850 rm -f conftest.er1 10851 cat conftest.err >&5 10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10853 (exit $ac_status); } && 10854 { ac_try='test -z "$ac_c_werror_flag" 10855 || test ! -s conftest.err' 10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10857 (eval $ac_try) 2>&5 10858 ac_status=$? 10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10860 (exit $ac_status); }; } && 10861 { ac_try='test -s conftest.$ac_objext' 10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10863 (eval $ac_try) 2>&5 10864 ac_status=$? 10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10866 (exit $ac_status); }; }; then 10867 ac_cv_header_X11_Xft_Xft_h=yes 10868else 10869 echo "$as_me: failed program was:" >&5 10870sed 's/^/| /' conftest.$ac_ext >&5 10871 10872ac_cv_header_X11_Xft_Xft_h=no 10873fi 10874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10875fi 10876echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 10877echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6 10878if test $ac_cv_header_X11_Xft_Xft_h = yes; then 10879 : 10880else 10881 10882 found_xft=no 10883 10884fi 10885 10886 10887 CFLAGS=$tk_oldCFlags 10888 LIBS=$tk_oldLibs 10889 fi 10890 if test "$found_xft" = "yes" ; then 10891 tk_oldCFlags=$CFLAGS 10892 CFLAGS="$CFLAGS $XINCLUDES $XFT_CFLAGS" 10893 tk_oldLibs=$LIBS 10894 LIBS="$tk_oldLIBS $XFT_LIBS $XLIBSW" 10895 10896echo "$as_me:$LINENO: checking for FT_New_Face in -lXft" >&5 10897echo $ECHO_N "checking for FT_New_Face in -lXft... $ECHO_C" >&6 10898if test "${ac_cv_lib_Xft_FT_New_Face+set}" = set; then 10899 echo $ECHO_N "(cached) $ECHO_C" >&6 10900else 10901 ac_check_lib_save_LIBS=$LIBS 10902LIBS="-lXft $LIBS" 10903cat >conftest.$ac_ext <<_ACEOF 10904/* confdefs.h. */ 10905_ACEOF 10906cat confdefs.h >>conftest.$ac_ext 10907cat >>conftest.$ac_ext <<_ACEOF 10908/* end confdefs.h. */ 10909 10910/* Override any gcc2 internal prototype to avoid an error. */ 10911#ifdef __cplusplus 10912extern "C" 10913#endif 10914/* We use char because int might match the return type of a gcc2 10915 builtin and then its argument prototype would still apply. */ 10916char FT_New_Face (); 10917int 10918main () 10919{ 10920FT_New_Face (); 10921 ; 10922 return 0; 10923} 10924_ACEOF 10925rm -f conftest.$ac_objext conftest$ac_exeext 10926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10927 (eval $ac_link) 2>conftest.er1 10928 ac_status=$? 10929 grep -v '^ *+' conftest.er1 >conftest.err 10930 rm -f conftest.er1 10931 cat conftest.err >&5 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10933 (exit $ac_status); } && 10934 { ac_try='test -z "$ac_c_werror_flag" 10935 || test ! -s conftest.err' 10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10937 (eval $ac_try) 2>&5 10938 ac_status=$? 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 (exit $ac_status); }; } && 10941 { ac_try='test -s conftest$ac_exeext' 10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10943 (eval $ac_try) 2>&5 10944 ac_status=$? 10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10946 (exit $ac_status); }; }; then 10947 ac_cv_lib_Xft_FT_New_Face=yes 10948else 10949 echo "$as_me: failed program was:" >&5 10950sed 's/^/| /' conftest.$ac_ext >&5 10951 10952ac_cv_lib_Xft_FT_New_Face=no 10953fi 10954rm -f conftest.err conftest.$ac_objext \ 10955 conftest$ac_exeext conftest.$ac_ext 10956LIBS=$ac_check_lib_save_LIBS 10957fi 10958echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_FT_New_Face" >&5 10959echo "${ECHO_T}$ac_cv_lib_Xft_FT_New_Face" >&6 10960if test $ac_cv_lib_Xft_FT_New_Face = yes; then 10961 cat >>confdefs.h <<_ACEOF 10962#define HAVE_LIBXFT 1 10963_ACEOF 10964 10965 LIBS="-lXft $LIBS" 10966 10967else 10968 10969 found_xft=no 10970 10971fi 10972 10973 CFLAGS=$tk_oldCFlags 10974 LIBS=$tk_oldLibs 10975 fi 10976 if test "$found_xft" = "no" ; then 10977 if test "$enable_xft" = "yes" ; then 10978 { echo "$as_me:$LINENO: WARNING: Can't find xft configuration, or xft is unusable" >&5 10979echo "$as_me: WARNING: Can't find xft configuration, or xft is unusable" >&2;} 10980 fi 10981 enable_xft=no 10982 XFT_CFLAGS="" 10983 XFT_LIBS="" 10984 else 10985 enable_xft=yes 10986 fi 10987 fi 10988 if test $enable_xft = "yes" ; then 10989 UNIX_FONT_OBJS=tkUnixRFont.o 10990 10991cat >>confdefs.h <<\_ACEOF 10992#define HAVE_XFT 1 10993_ACEOF 10994 10995 else 10996 UNIX_FONT_OBJS=tkUnixFont.o 10997 fi 10998 10999 11000 11001fi 11002 11003#-------------------------------------------------------------------- 11004# Figure out whether "char" is unsigned. If so, set a 11005# #define for __CHAR_UNSIGNED__. 11006#-------------------------------------------------------------------- 11007 11008 11009echo "$as_me:$LINENO: checking whether char is unsigned" >&5 11010echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 11011if test "${ac_cv_c_char_unsigned+set}" = set; then 11012 echo $ECHO_N "(cached) $ECHO_C" >&6 11013else 11014 cat >conftest.$ac_ext <<_ACEOF 11015/* confdefs.h. */ 11016_ACEOF 11017cat confdefs.h >>conftest.$ac_ext 11018cat >>conftest.$ac_ext <<_ACEOF 11019/* end confdefs.h. */ 11020$ac_includes_default 11021int 11022main () 11023{ 11024static int test_array [1 - 2 * !(((char) -1) < 0)]; 11025test_array [0] = 0 11026 11027 ; 11028 return 0; 11029} 11030_ACEOF 11031rm -f conftest.$ac_objext 11032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11033 (eval $ac_compile) 2>conftest.er1 11034 ac_status=$? 11035 grep -v '^ *+' conftest.er1 >conftest.err 11036 rm -f conftest.er1 11037 cat conftest.err >&5 11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11039 (exit $ac_status); } && 11040 { ac_try='test -z "$ac_c_werror_flag" 11041 || test ! -s conftest.err' 11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11043 (eval $ac_try) 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); }; } && 11047 { ac_try='test -s conftest.$ac_objext' 11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11049 (eval $ac_try) 2>&5 11050 ac_status=$? 11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11052 (exit $ac_status); }; }; then 11053 ac_cv_c_char_unsigned=no 11054else 11055 echo "$as_me: failed program was:" >&5 11056sed 's/^/| /' conftest.$ac_ext >&5 11057 11058ac_cv_c_char_unsigned=yes 11059fi 11060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11061fi 11062echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 11063echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 11064if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 11065 cat >>confdefs.h <<\_ACEOF 11066#define __CHAR_UNSIGNED__ 1 11067_ACEOF 11068 11069fi 11070 11071 11072#-------------------------------------------------------------------- 11073# The statements below define a collection of symbols related to 11074# building libtk as a shared library instead of a static library. 11075#-------------------------------------------------------------------- 11076 11077eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}" 11078eval eval "TK_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}" 11079eval "TK_LIB_FILE=libtk${LIB_SUFFIX}" 11080 11081# tkConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed 11082# since on some platforms TK_LIB_FILE contains shell escapes. 11083 11084eval "TK_LIB_FILE=${TK_LIB_FILE}" 11085 11086if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then 11087 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \${TCL_STUB_LIB_SPEC}" 11088 TCL_STUB_FLAGS="-DUSE_TCL_STUBS" 11089fi 11090 11091TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' 11092PRIVATE_INCLUDE_DIR='$(includedir)' 11093HTML_DIR='$(DISTDIR)/html' 11094TK_PKG_DIR='tk$(VERSION)' 11095TK_RSRC_FILE='tk$(VERSION).rsrc' 11096WISH_RSRC_FILE='wish$(VERSION).rsrc' 11097 11098# Note: in the following variable, it's important to use the absolute 11099# path name of the Tcl directory rather than "..": this is because 11100# AIX remembers this path and will attempt to use it at run-time to look 11101# up the Tcl library. 11102 11103if test "`uname -s`" = "Darwin" ; then 11104 11105 if test "`uname -s`" = "Darwin" ; then 11106 echo "$as_me:$LINENO: checking how to package libraries" >&5 11107echo $ECHO_N "checking how to package libraries... $ECHO_C" >&6 11108 # Check whether --enable-framework or --disable-framework was given. 11109if test "${enable_framework+set}" = set; then 11110 enableval="$enable_framework" 11111 enable_framework=$enableval 11112else 11113 enable_framework=no 11114fi; 11115 if test $enable_framework = yes; then 11116 if test $SHARED_BUILD = 0; then 11117 { echo "$as_me:$LINENO: WARNING: Frameworks can only be built if --enable-shared is yes" >&5 11118echo "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;} 11119 enable_framework=no 11120 fi 11121 if test $tcl_corefoundation = no; then 11122 { echo "$as_me:$LINENO: WARNING: Frameworks can only be used when CoreFoundation is available" >&5 11123echo "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;} 11124 enable_framework=no 11125 fi 11126 fi 11127 if test $enable_framework = yes; then 11128 echo "$as_me:$LINENO: result: framework" >&5 11129echo "${ECHO_T}framework" >&6 11130 FRAMEWORK_BUILD=1 11131 else 11132 if test $SHARED_BUILD = 1; then 11133 echo "$as_me:$LINENO: result: shared library" >&5 11134echo "${ECHO_T}shared library" >&6 11135 else 11136 echo "$as_me:$LINENO: result: static library" >&5 11137echo "${ECHO_T}static library" >&6 11138 fi 11139 FRAMEWORK_BUILD=0 11140 fi 11141 fi 11142 11143 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)}'`" 11144 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)' 11145 echo "$LDFLAGS " | grep -q -- '-prebind ' && TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -seg1addr 0xb000000' 11146 TK_SHLIB_LD_EXTRAS="${TK_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tk-Info.plist' 11147 EXTRA_WISH_LIBS='-sectcreate __TEXT __info_plist Wish-Info.plist' 11148 EXTRA_APP_CC_SWITCHES="${EXTRA_APP_CC_SWITCHES}"' -mdynamic-no-pic' 11149 ac_config_files="$ac_config_files Tk-Info.plist:../macosx/Tk-Info.plist.in Wish-Info.plist:../macosx/Wish-Info.plist.in" 11150 11151 for l in ${LOCALES}; do CFBUNDLELOCALIZATIONS="${CFBUNDLELOCALIZATIONS}<string>$l</string>"; done 11152 TK_YEAR="`date +%Y`" 11153fi 11154 11155if test "$FRAMEWORK_BUILD" = "1" ; then 11156 11157cat >>confdefs.h <<\_ACEOF 11158#define TK_FRAMEWORK 1 11159_ACEOF 11160 11161 # Construct a fake local framework structure to make linking with 11162 # '-framework Tk' and running of tktest work 11163 ac_config_commands="$ac_config_commands Tk.framework" 11164 11165 LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH" 11166 if test "${libdir}" = '${exec_prefix}/lib'; then 11167 # override libdir default 11168 libdir="/Library/Frameworks" 11169 fi 11170 TK_LIB_FILE="Tk" 11171 TK_LIB_FLAG="-framework Tk" 11172 TK_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tk" 11173 TK_LIB_SPEC="-F${libdir} -framework Tk" 11174 libdir="${libdir}/Tk.framework/Versions/\${VERSION}" 11175 TK_LIBRARY="${libdir}/Resources/Scripts" 11176 TK_PKG_DIR="Resources/Scripts" 11177 TK_RSRC_FILE="Tk.rsrc" 11178 WISH_RSRC_FILE="Wish.rsrc" 11179 includedir="${libdir}/Headers" 11180 PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders" 11181 HTML_DIR="${libdir}/Resources/Documentation/Reference/Tk" 11182 EXTRA_INSTALL="install-private-headers html-tk" 11183 EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)"/TkTOC.html' 11184 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"' 11185 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"' 11186 if test $tk_aqua = yes; then 11187 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' 11188 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)"' 11189 bindir="${libdir}/Resources/Wish.app/Contents/MacOS" 11190 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"' 11191 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"' 11192 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"' 11193 fi 11194 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)/../.."' 11195 # Don't use AC_DEFINE for the following as the framework version define 11196 # needs to go into the Makefile even when using autoheader, so that we 11197 # can pick up a potential make override of VERSION. Also, don't put this 11198 # into CFLAGS as it should not go into tkConfig.sh 11199 EXTRA_CC_SWITCHES="$EXTRA_CC_SWITCHES"' -DTK_FRAMEWORK_VERSION=\"$(VERSION)\"' 11200else 11201 if test $tk_aqua = yes; then 11202 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' 11203 fi 11204 # libdir must be a fully qualified path and not ${exec_prefix}/lib 11205 eval libdir="$libdir" 11206 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 11207 TK_LIB_FLAG="-ltk${TK_VERSION}" 11208 else 11209 TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`" 11210 fi 11211 TK_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_LIB_FLAG}" 11212 TK_LIB_SPEC="-L${libdir} ${TK_LIB_FLAG}" 11213fi 11214 11215#-------------------------------------------------------------------- 11216# The statements below define various symbols relating to Tk 11217# stub support. 11218#-------------------------------------------------------------------- 11219 11220# Replace ${VERSION} with contents of ${TK_VERSION} 11221eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}" 11222eval "TK_STUB_LIB_DIR=${libdir}" 11223 11224if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then 11225 TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}" 11226else 11227 TK_STUB_LIB_FLAG="-ltkstub`echo ${TK_VERSION} | tr -d .`" 11228fi 11229 11230TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}" 11231TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}" 11232TK_BUILD_STUB_LIB_PATH="`pwd`/${TK_STUB_LIB_FILE}" 11233TK_STUB_LIB_PATH="${TK_STUB_LIB_DIR}/${TK_STUB_LIB_FILE}" 11234 11235# Install time header dir can be set via --includedir 11236eval "TK_INCLUDE_SPEC=\"-I${includedir}\"" 11237 11238#------------------------------------------------------------------------ 11239# tkConfig.sh refers to this by a different name 11240#------------------------------------------------------------------------ 11241 11242TK_SHARED_BUILD=${SHARED_BUILD} 11243 11244 11245 11246 11247 11248 11249 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 ac_config_files="$ac_config_files Makefile:../unix/Makefile.in tkConfig.sh:../unix/tkConfig.sh.in" 11295 11296cat >confcache <<\_ACEOF 11297# This file is a shell script that caches the results of configure 11298# tests run on this system so they can be shared between configure 11299# scripts and configure runs, see configure's option --config-cache. 11300# It is not useful on other systems. If it contains results you don't 11301# want to keep, you may remove or edit it. 11302# 11303# config.status only pays attention to the cache file if you give it 11304# the --recheck option to rerun configure. 11305# 11306# `ac_cv_env_foo' variables (set or unset) will be overridden when 11307# loading this file, other *unset* `ac_cv_foo' will be assigned the 11308# following values. 11309 11310_ACEOF 11311 11312# The following way of writing the cache mishandles newlines in values, 11313# but we know of no workaround that is simple, portable, and efficient. 11314# So, don't put newlines in cache variables' values. 11315# Ultrix sh set writes to stderr and can't be redirected directly, 11316# and sets the high bit in the cache file unless we assign to the vars. 11317{ 11318 (set) 2>&1 | 11319 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11320 *ac_space=\ *) 11321 # `set' does not quote correctly, so add quotes (double-quote 11322 # substitution turns \\\\ into \\, and sed turns \\ into \). 11323 sed -n \ 11324 "s/'/'\\\\''/g; 11325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11326 ;; 11327 *) 11328 # `set' quotes correctly as required by POSIX, so do not add quotes. 11329 sed -n \ 11330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11331 ;; 11332 esac; 11333} | 11334 sed ' 11335 t clear 11336 : clear 11337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11338 t end 11339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11340 : end' >>confcache 11341if diff $cache_file confcache >/dev/null 2>&1; then :; else 11342 if test -w $cache_file; then 11343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11344 cat confcache >$cache_file 11345 else 11346 echo "not updating unwritable cache $cache_file" 11347 fi 11348fi 11349rm -f confcache 11350 11351test "x$prefix" = xNONE && prefix=$ac_default_prefix 11352# Let make expand exec_prefix. 11353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11354 11355# VPATH may cause trouble with some makes, so we remove $(srcdir), 11356# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11357# trailing colons and then remove the whole line if VPATH becomes empty 11358# (actually we leave an empty line to preserve line numbers). 11359if test "x$srcdir" = x.; then 11360 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11361s/:*\$(srcdir):*/:/; 11362s/:*\${srcdir}:*/:/; 11363s/:*@srcdir@:*/:/; 11364s/^\([^=]*=[ ]*\):*/\1/; 11365s/:*$//; 11366s/^[^=]*=[ ]*$//; 11367}' 11368fi 11369 11370# Transform confdefs.h into DEFS. 11371# Protect against shell expansion while executing Makefile rules. 11372# Protect against Makefile macro expansion. 11373# 11374# If the first sed substitution is executed (which looks for macros that 11375# take arguments), then we branch to the quote section. Otherwise, 11376# look for a macro that doesn't take arguments. 11377cat >confdef2opt.sed <<\_ACEOF 11378t clear 11379: clear 11380s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 11381t quote 11382s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 11383t quote 11384d 11385: quote 11386s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 11387s,\[,\\&,g 11388s,\],\\&,g 11389s,\$,$$,g 11390p 11391_ACEOF 11392# We use echo to avoid assuming a particular line-breaking character. 11393# The extra dot is to prevent the shell from consuming trailing 11394# line-breaks from the sub-command output. A line-break within 11395# single-quotes doesn't work because, if this script is created in a 11396# platform that uses two characters for line-breaks (e.g., DOS), tr 11397# would break. 11398ac_LF_and_DOT=`echo; echo .` 11399DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 11400rm -f confdef2opt.sed 11401 11402 11403ac_libobjs= 11404ac_ltlibobjs= 11405for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11406 # 1. Remove the extension, and $U if already installed. 11407 ac_i=`echo "$ac_i" | 11408 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11409 # 2. Add them. 11410 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11411 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11412done 11413LIBOBJS=$ac_libobjs 11414 11415LTLIBOBJS=$ac_ltlibobjs 11416 11417 11418CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 11419 11420: ${CONFIG_STATUS=./config.status} 11421ac_clean_files_save=$ac_clean_files 11422ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11423{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11424echo "$as_me: creating $CONFIG_STATUS" >&6;} 11425cat >$CONFIG_STATUS <<_ACEOF 11426#! $SHELL 11427# Generated by $as_me. 11428# Run this file to recreate the current configuration. 11429# Compiler output produced by configure, useful for debugging 11430# configure, is in config.log if it exists. 11431 11432debug=false 11433ac_cs_recheck=false 11434ac_cs_silent=false 11435SHELL=\${CONFIG_SHELL-$SHELL} 11436_ACEOF 11437 11438cat >>$CONFIG_STATUS <<\_ACEOF 11439## --------------------- ## 11440## M4sh Initialization. ## 11441## --------------------- ## 11442 11443# Be Bourne compatible 11444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11445 emulate sh 11446 NULLCMD=: 11447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11448 # is contrary to our usage. Disable this feature. 11449 alias -g '${1+"$@"}'='"$@"' 11450elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11451 set -o posix 11452fi 11453DUALCASE=1; export DUALCASE # for MKS sh 11454 11455# Support unset when possible. 11456if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11457 as_unset=unset 11458else 11459 as_unset=false 11460fi 11461 11462 11463# Work around bugs in pre-3.0 UWIN ksh. 11464$as_unset ENV MAIL MAILPATH 11465PS1='$ ' 11466PS2='> ' 11467PS4='+ ' 11468 11469# NLS nuisances. 11470for as_var in \ 11471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11473 LC_TELEPHONE LC_TIME 11474do 11475 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11476 eval $as_var=C; export $as_var 11477 else 11478 $as_unset $as_var 11479 fi 11480done 11481 11482# Required to use basename. 11483if expr a : '\(a\)' >/dev/null 2>&1; then 11484 as_expr=expr 11485else 11486 as_expr=false 11487fi 11488 11489if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11490 as_basename=basename 11491else 11492 as_basename=false 11493fi 11494 11495 11496# Name of the executable. 11497as_me=`$as_basename "$0" || 11498$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11499 X"$0" : 'X\(//\)$' \| \ 11500 X"$0" : 'X\(/\)$' \| \ 11501 . : '\(.\)' 2>/dev/null || 11502echo X/"$0" | 11503 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11504 /^X\/\(\/\/\)$/{ s//\1/; q; } 11505 /^X\/\(\/\).*/{ s//\1/; q; } 11506 s/.*/./; q'` 11507 11508 11509# PATH needs CR, and LINENO needs CR and PATH. 11510# Avoid depending upon Character Ranges. 11511as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11512as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11513as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11514as_cr_digits='0123456789' 11515as_cr_alnum=$as_cr_Letters$as_cr_digits 11516 11517# The user is always right. 11518if test "${PATH_SEPARATOR+set}" != set; then 11519 echo "#! /bin/sh" >conf$$.sh 11520 echo "exit 0" >>conf$$.sh 11521 chmod +x conf$$.sh 11522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11523 PATH_SEPARATOR=';' 11524 else 11525 PATH_SEPARATOR=: 11526 fi 11527 rm -f conf$$.sh 11528fi 11529 11530 11531 as_lineno_1=$LINENO 11532 as_lineno_2=$LINENO 11533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11534 test "x$as_lineno_1" != "x$as_lineno_2" && 11535 test "x$as_lineno_3" = "x$as_lineno_2" || { 11536 # Find who we are. Look in the path if we contain no path at all 11537 # relative or not. 11538 case $0 in 11539 *[\\/]* ) as_myself=$0 ;; 11540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11541for as_dir in $PATH 11542do 11543 IFS=$as_save_IFS 11544 test -z "$as_dir" && as_dir=. 11545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11546done 11547 11548 ;; 11549 esac 11550 # We did not find ourselves, most probably we were run as `sh COMMAND' 11551 # in which case we are not to be found in the path. 11552 if test "x$as_myself" = x; then 11553 as_myself=$0 11554 fi 11555 if test ! -f "$as_myself"; then 11556 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11557echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11558 { (exit 1); exit 1; }; } 11559 fi 11560 case $CONFIG_SHELL in 11561 '') 11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11563for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11564do 11565 IFS=$as_save_IFS 11566 test -z "$as_dir" && as_dir=. 11567 for as_base in sh bash ksh sh5; do 11568 case $as_dir in 11569 /*) 11570 if ("$as_dir/$as_base" -c ' 11571 as_lineno_1=$LINENO 11572 as_lineno_2=$LINENO 11573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11574 test "x$as_lineno_1" != "x$as_lineno_2" && 11575 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11576 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11577 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11578 CONFIG_SHELL=$as_dir/$as_base 11579 export CONFIG_SHELL 11580 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11581 fi;; 11582 esac 11583 done 11584done 11585;; 11586 esac 11587 11588 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11589 # uniformly replaced by the line number. The first 'sed' inserts a 11590 # line-number line before each line; the second 'sed' does the real 11591 # work. The second script uses 'N' to pair each line-number line 11592 # with the numbered line, and appends trailing '-' during 11593 # substitution so that $LINENO is not a special case at line end. 11594 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11595 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11596 sed '=' <$as_myself | 11597 sed ' 11598 N 11599 s,$,-, 11600 : loop 11601 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11602 t loop 11603 s,-$,, 11604 s,^['$as_cr_digits']*\n,, 11605 ' >$as_me.lineno && 11606 chmod +x $as_me.lineno || 11607 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11608echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11609 { (exit 1); exit 1; }; } 11610 11611 # Don't try to exec as it changes $[0], causing all sort of problems 11612 # (the dirname of $[0] is not the place where we might find the 11613 # original and so on. Autoconf is especially sensible to this). 11614 . ./$as_me.lineno 11615 # Exit status is that of the last command. 11616 exit 11617} 11618 11619 11620case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11621 *c*,-n*) ECHO_N= ECHO_C=' 11622' ECHO_T=' ' ;; 11623 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11624 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11625esac 11626 11627if expr a : '\(a\)' >/dev/null 2>&1; then 11628 as_expr=expr 11629else 11630 as_expr=false 11631fi 11632 11633rm -f conf$$ conf$$.exe conf$$.file 11634echo >conf$$.file 11635if ln -s conf$$.file conf$$ 2>/dev/null; then 11636 # We could just check for DJGPP; but this test a) works b) is more generic 11637 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11638 if test -f conf$$.exe; then 11639 # Don't use ln at all; we don't have any links 11640 as_ln_s='cp -p' 11641 else 11642 as_ln_s='ln -s' 11643 fi 11644elif ln conf$$.file conf$$ 2>/dev/null; then 11645 as_ln_s=ln 11646else 11647 as_ln_s='cp -p' 11648fi 11649rm -f conf$$ conf$$.exe conf$$.file 11650 11651if mkdir -p . 2>/dev/null; then 11652 as_mkdir_p=: 11653else 11654 test -d ./-p && rmdir ./-p 11655 as_mkdir_p=false 11656fi 11657 11658as_executable_p="test -f" 11659 11660# Sed expression to map a string onto a valid CPP name. 11661as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11662 11663# Sed expression to map a string onto a valid variable name. 11664as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11665 11666 11667# IFS 11668# We need space, tab and new line, in precisely that order. 11669as_nl=' 11670' 11671IFS=" $as_nl" 11672 11673# CDPATH. 11674$as_unset CDPATH 11675 11676exec 6>&1 11677 11678# Open the log real soon, to keep \$[0] and so on meaningful, and to 11679# report actual input values of CONFIG_FILES etc. instead of their 11680# values after options handling. Logging --version etc. is OK. 11681exec 5>>config.log 11682{ 11683 echo 11684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11685## Running $as_me. ## 11686_ASBOX 11687} >&5 11688cat >&5 <<_CSEOF 11689 11690This file was extended by tk $as_me 8.5, which was 11691generated by GNU Autoconf 2.59. Invocation command line was 11692 11693 CONFIG_FILES = $CONFIG_FILES 11694 CONFIG_HEADERS = $CONFIG_HEADERS 11695 CONFIG_LINKS = $CONFIG_LINKS 11696 CONFIG_COMMANDS = $CONFIG_COMMANDS 11697 $ $0 $@ 11698 11699_CSEOF 11700echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11701echo >&5 11702_ACEOF 11703 11704# Files that config.status was made for. 11705if test -n "$ac_config_files"; then 11706 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11707fi 11708 11709if test -n "$ac_config_headers"; then 11710 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11711fi 11712 11713if test -n "$ac_config_links"; then 11714 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11715fi 11716 11717if test -n "$ac_config_commands"; then 11718 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11719fi 11720 11721cat >>$CONFIG_STATUS <<\_ACEOF 11722 11723ac_cs_usage="\ 11724\`$as_me' instantiates files from templates according to the 11725current configuration. 11726 11727Usage: $0 [OPTIONS] [FILE]... 11728 11729 -h, --help print this help, then exit 11730 -V, --version print version number, then exit 11731 -q, --quiet do not print progress messages 11732 -d, --debug don't remove temporary files 11733 --recheck update $as_me by reconfiguring in the same conditions 11734 --file=FILE[:TEMPLATE] 11735 instantiate the configuration file FILE 11736 11737Configuration files: 11738$config_files 11739 11740Configuration commands: 11741$config_commands 11742 11743Report bugs to <bug-autoconf@gnu.org>." 11744_ACEOF 11745 11746cat >>$CONFIG_STATUS <<_ACEOF 11747ac_cs_version="\\ 11748tk config.status 8.5 11749configured by $0, generated by GNU Autoconf 2.59, 11750 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11751 11752Copyright (C) 2003 Free Software Foundation, Inc. 11753This config.status script is free software; the Free Software Foundation 11754gives unlimited permission to copy, distribute and modify it." 11755srcdir=$srcdir 11756_ACEOF 11757 11758cat >>$CONFIG_STATUS <<\_ACEOF 11759# If no file are specified by the user, then we need to provide default 11760# value. By we need to know if files were specified by the user. 11761ac_need_defaults=: 11762while test $# != 0 11763do 11764 case $1 in 11765 --*=*) 11766 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11767 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11768 ac_shift=: 11769 ;; 11770 -*) 11771 ac_option=$1 11772 ac_optarg=$2 11773 ac_shift=shift 11774 ;; 11775 *) # This is not an option, so the user has probably given explicit 11776 # arguments. 11777 ac_option=$1 11778 ac_need_defaults=false;; 11779 esac 11780 11781 case $ac_option in 11782 # Handling of the options. 11783_ACEOF 11784cat >>$CONFIG_STATUS <<\_ACEOF 11785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11786 ac_cs_recheck=: ;; 11787 --version | --vers* | -V ) 11788 echo "$ac_cs_version"; exit 0 ;; 11789 --he | --h) 11790 # Conflict between --help and --header 11791 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11792Try \`$0 --help' for more information." >&5 11793echo "$as_me: error: ambiguous option: $1 11794Try \`$0 --help' for more information." >&2;} 11795 { (exit 1); exit 1; }; };; 11796 --help | --hel | -h ) 11797 echo "$ac_cs_usage"; exit 0 ;; 11798 --debug | --d* | -d ) 11799 debug=: ;; 11800 --file | --fil | --fi | --f ) 11801 $ac_shift 11802 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11803 ac_need_defaults=false;; 11804 --header | --heade | --head | --hea ) 11805 $ac_shift 11806 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11807 ac_need_defaults=false;; 11808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11809 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11810 ac_cs_silent=: ;; 11811 11812 # This is an error. 11813 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11814Try \`$0 --help' for more information." >&5 11815echo "$as_me: error: unrecognized option: $1 11816Try \`$0 --help' for more information." >&2;} 11817 { (exit 1); exit 1; }; } ;; 11818 11819 *) ac_config_targets="$ac_config_targets $1" ;; 11820 11821 esac 11822 shift 11823done 11824 11825ac_configure_extra_args= 11826 11827if $ac_cs_silent; then 11828 exec 6>/dev/null 11829 ac_configure_extra_args="$ac_configure_extra_args --silent" 11830fi 11831 11832_ACEOF 11833cat >>$CONFIG_STATUS <<_ACEOF 11834if \$ac_cs_recheck; then 11835 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11836 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11837fi 11838 11839_ACEOF 11840 11841cat >>$CONFIG_STATUS <<_ACEOF 11842# 11843# INIT-COMMANDS section. 11844# 11845 11846VERSION=${TK_VERSION} && tk_aqua=${tk_aqua} 11847 11848_ACEOF 11849 11850 11851 11852cat >>$CONFIG_STATUS <<\_ACEOF 11853for ac_config_target in $ac_config_targets 11854do 11855 case "$ac_config_target" in 11856 # Handling of arguments. 11857 "Tk-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Tk-Info.plist:../macosx/Tk-Info.plist.in" ;; 11858 "Wish-Info.plist" ) CONFIG_FILES="$CONFIG_FILES Wish-Info.plist:../macosx/Wish-Info.plist.in" ;; 11859 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;; 11860 "tkConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tkConfig.sh:../unix/tkConfig.sh.in" ;; 11861 "Tk.framework" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Tk.framework" ;; 11862 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11863echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11864 { (exit 1); exit 1; }; };; 11865 esac 11866done 11867 11868# If the user did not use the arguments to specify the items to instantiate, 11869# then the envvar interface is used. Set only those that are not. 11870# We use the long form for the default assignment because of an extremely 11871# bizarre bug on SunOS 4.1.3. 11872if $ac_need_defaults; then 11873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11875fi 11876 11877# Have a temporary directory for convenience. Make it in the build tree 11878# simply because there is no reason to put it here, and in addition, 11879# creating and moving files from /tmp can sometimes cause problems. 11880# Create a temporary directory, and hook for its removal unless debugging. 11881$debug || 11882{ 11883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11884 trap '{ (exit 1); exit 1; }' 1 2 13 15 11885} 11886 11887# Create a (secure) tmp directory for tmp files. 11888 11889{ 11890 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11891 test -n "$tmp" && test -d "$tmp" 11892} || 11893{ 11894 tmp=./confstat$$-$RANDOM 11895 (umask 077 && mkdir $tmp) 11896} || 11897{ 11898 echo "$me: cannot create a temporary directory in ." >&2 11899 { (exit 1); exit 1; } 11900} 11901 11902_ACEOF 11903 11904cat >>$CONFIG_STATUS <<_ACEOF 11905 11906# 11907# CONFIG_FILES section. 11908# 11909 11910# No need to generate the scripts if there are no CONFIG_FILES. 11911# This happens for instance when ./config.status config.h 11912if test -n "\$CONFIG_FILES"; then 11913 # Protect against being on the right side of a sed subst in config.status. 11914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11916s,@SHELL@,$SHELL,;t t 11917s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11918s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11919s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11920s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11921s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11922s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11923s,@exec_prefix@,$exec_prefix,;t t 11924s,@prefix@,$prefix,;t t 11925s,@program_transform_name@,$program_transform_name,;t t 11926s,@bindir@,$bindir,;t t 11927s,@sbindir@,$sbindir,;t t 11928s,@libexecdir@,$libexecdir,;t t 11929s,@datadir@,$datadir,;t t 11930s,@sysconfdir@,$sysconfdir,;t t 11931s,@sharedstatedir@,$sharedstatedir,;t t 11932s,@localstatedir@,$localstatedir,;t t 11933s,@libdir@,$libdir,;t t 11934s,@includedir@,$includedir,;t t 11935s,@oldincludedir@,$oldincludedir,;t t 11936s,@infodir@,$infodir,;t t 11937s,@mandir@,$mandir,;t t 11938s,@build_alias@,$build_alias,;t t 11939s,@host_alias@,$host_alias,;t t 11940s,@target_alias@,$target_alias,;t t 11941s,@DEFS@,$DEFS,;t t 11942s,@ECHO_C@,$ECHO_C,;t t 11943s,@ECHO_N@,$ECHO_N,;t t 11944s,@ECHO_T@,$ECHO_T,;t t 11945s,@LIBS@,$LIBS,;t t 11946s,@TCL_VERSION@,$TCL_VERSION,;t t 11947s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t 11948s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t 11949s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t 11950s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t 11951s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t 11952s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t 11953s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t 11954s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t 11955s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t 11956s,@TCLSH_PROG@,$TCLSH_PROG,;t t 11957s,@BUILD_TCLSH@,$BUILD_TCLSH,;t t 11958s,@MAN_FLAGS@,$MAN_FLAGS,;t t 11959s,@CC@,$CC,;t t 11960s,@CFLAGS@,$CFLAGS,;t t 11961s,@LDFLAGS@,$LDFLAGS,;t t 11962s,@CPPFLAGS@,$CPPFLAGS,;t t 11963s,@ac_ct_CC@,$ac_ct_CC,;t t 11964s,@EXEEXT@,$EXEEXT,;t t 11965s,@OBJEXT@,$OBJEXT,;t t 11966s,@CPP@,$CPP,;t t 11967s,@EGREP@,$EGREP,;t t 11968s,@TCL_THREADS@,$TCL_THREADS,;t t 11969s,@RANLIB@,$RANLIB,;t t 11970s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11971s,@AR@,$AR,;t t 11972s,@TCL_LIBS@,$TCL_LIBS,;t t 11973s,@DL_LIBS@,$DL_LIBS,;t t 11974s,@DL_OBJS@,$DL_OBJS,;t t 11975s,@PLAT_OBJS@,$PLAT_OBJS,;t t 11976s,@PLAT_SRCS@,$PLAT_SRCS,;t t 11977s,@LDAIX_SRC@,$LDAIX_SRC,;t t 11978s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t 11979s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t 11980s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t 11981s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t 11982s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t 11983s,@CC_SEARCH_FLAGS@,$CC_SEARCH_FLAGS,;t t 11984s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t 11985s,@STLIB_LD@,$STLIB_LD,;t t 11986s,@SHLIB_LD@,$SHLIB_LD,;t t 11987s,@TCL_SHLIB_LD_EXTRAS@,$TCL_SHLIB_LD_EXTRAS,;t t 11988s,@TK_SHLIB_LD_EXTRAS@,$TK_SHLIB_LD_EXTRAS,;t t 11989s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t 11990s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t 11991s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t 11992s,@MAKE_LIB@,$MAKE_LIB,;t t 11993s,@MAKE_STUB_LIB@,$MAKE_STUB_LIB,;t t 11994s,@INSTALL_LIB@,$INSTALL_LIB,;t t 11995s,@INSTALL_STUB_LIB@,$INSTALL_STUB_LIB,;t t 11996s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t 11997s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t 11998s,@LIBOBJS@,$LIBOBJS,;t t 11999s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t 12000s,@XFT_LIBS@,$XFT_LIBS,;t t 12001s,@UNIX_FONT_OBJS@,$UNIX_FONT_OBJS,;t t 12002s,@TK_VERSION@,$TK_VERSION,;t t 12003s,@TK_MAJOR_VERSION@,$TK_MAJOR_VERSION,;t t 12004s,@TK_MINOR_VERSION@,$TK_MINOR_VERSION,;t t 12005s,@TK_PATCH_LEVEL@,$TK_PATCH_LEVEL,;t t 12006s,@TK_YEAR@,$TK_YEAR,;t t 12007s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t 12008s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t 12009s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t 12010s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t 12011s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t 12012s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t 12013s,@TK_STUB_LIB_PATH@,$TK_STUB_LIB_PATH,;t t 12014s,@TK_INCLUDE_SPEC@,$TK_INCLUDE_SPEC,;t t 12015s,@TK_BUILD_STUB_LIB_SPEC@,$TK_BUILD_STUB_LIB_SPEC,;t t 12016s,@TK_BUILD_STUB_LIB_PATH@,$TK_BUILD_STUB_LIB_PATH,;t t 12017s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t 12018s,@TK_SHARED_BUILD@,$TK_SHARED_BUILD,;t t 12019s,@LD_LIBRARY_PATH_VAR@,$LD_LIBRARY_PATH_VAR,;t t 12020s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t 12021s,@TCL_STUB_FLAGS@,$TCL_STUB_FLAGS,;t t 12022s,@XINCLUDES@,$XINCLUDES,;t t 12023s,@XLIBSW@,$XLIBSW,;t t 12024s,@LOCALES@,$LOCALES,;t t 12025s,@TK_WINDOWINGSYSTEM@,$TK_WINDOWINGSYSTEM,;t t 12026s,@TK_PKG_DIR@,$TK_PKG_DIR,;t t 12027s,@TK_LIBRARY@,$TK_LIBRARY,;t t 12028s,@PRIVATE_INCLUDE_DIR@,$PRIVATE_INCLUDE_DIR,;t t 12029s,@HTML_DIR@,$HTML_DIR,;t t 12030s,@EXTRA_CC_SWITCHES@,$EXTRA_CC_SWITCHES,;t t 12031s,@EXTRA_LIB_CC_SWITCHES@,$EXTRA_LIB_CC_SWITCHES,;t t 12032s,@EXTRA_APP_CC_SWITCHES@,$EXTRA_APP_CC_SWITCHES,;t t 12033s,@EXTRA_INSTALL@,$EXTRA_INSTALL,;t t 12034s,@EXTRA_INSTALL_BINARIES@,$EXTRA_INSTALL_BINARIES,;t t 12035s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;t t 12036s,@EXTRA_WISH_LIBS@,$EXTRA_WISH_LIBS,;t t 12037s,@CFBUNDLELOCALIZATIONS@,$CFBUNDLELOCALIZATIONS,;t t 12038s,@TK_RSRC_FILE@,$TK_RSRC_FILE,;t t 12039s,@WISH_RSRC_FILE@,$WISH_RSRC_FILE,;t t 12040s,@LIB_RSRC_FILE@,$LIB_RSRC_FILE,;t t 12041s,@APP_RSRC_FILE@,$APP_RSRC_FILE,;t t 12042s,@REZ@,$REZ,;t t 12043s,@REZ_FLAGS@,$REZ_FLAGS,;t t 12044s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12045CEOF 12046 12047_ACEOF 12048 12049 cat >>$CONFIG_STATUS <<\_ACEOF 12050 # Split the substitutions into bite-sized pieces for seds with 12051 # small command number limits, like on Digital OSF/1 and HP-UX. 12052 ac_max_sed_lines=48 12053 ac_sed_frag=1 # Number of current file. 12054 ac_beg=1 # First line for current file. 12055 ac_end=$ac_max_sed_lines # Line after last line for current file. 12056 ac_more_lines=: 12057 ac_sed_cmds= 12058 while $ac_more_lines; do 12059 if test $ac_beg -gt 1; then 12060 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12061 else 12062 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12063 fi 12064 if test ! -s $tmp/subs.frag; then 12065 ac_more_lines=false 12066 else 12067 # The purpose of the label and of the branching condition is to 12068 # speed up the sed processing (if there are no `@' at all, there 12069 # is no need to browse any of the substitutions). 12070 # These are the two extra sed commands mentioned above. 12071 (echo ':t 12072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12073 if test -z "$ac_sed_cmds"; then 12074 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12075 else 12076 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12077 fi 12078 ac_sed_frag=`expr $ac_sed_frag + 1` 12079 ac_beg=$ac_end 12080 ac_end=`expr $ac_end + $ac_max_sed_lines` 12081 fi 12082 done 12083 if test -z "$ac_sed_cmds"; then 12084 ac_sed_cmds=cat 12085 fi 12086fi # test -n "$CONFIG_FILES" 12087 12088_ACEOF 12089cat >>$CONFIG_STATUS <<\_ACEOF 12090for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12092 case $ac_file in 12093 - | *:- | *:-:* ) # input from stdin 12094 cat >$tmp/stdin 12095 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12096 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12097 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12099 * ) ac_file_in=$ac_file.in ;; 12100 esac 12101 12102 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12103 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12105 X"$ac_file" : 'X\(//\)[^/]' \| \ 12106 X"$ac_file" : 'X\(//\)$' \| \ 12107 X"$ac_file" : 'X\(/\)' \| \ 12108 . : '\(.\)' 2>/dev/null || 12109echo X"$ac_file" | 12110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12111 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12112 /^X\(\/\/\)$/{ s//\1/; q; } 12113 /^X\(\/\).*/{ s//\1/; q; } 12114 s/.*/./; q'` 12115 { if $as_mkdir_p; then 12116 mkdir -p "$ac_dir" 12117 else 12118 as_dir="$ac_dir" 12119 as_dirs= 12120 while test ! -d "$as_dir"; do 12121 as_dirs="$as_dir $as_dirs" 12122 as_dir=`(dirname "$as_dir") 2>/dev/null || 12123$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12124 X"$as_dir" : 'X\(//\)[^/]' \| \ 12125 X"$as_dir" : 'X\(//\)$' \| \ 12126 X"$as_dir" : 'X\(/\)' \| \ 12127 . : '\(.\)' 2>/dev/null || 12128echo X"$as_dir" | 12129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12130 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12131 /^X\(\/\/\)$/{ s//\1/; q; } 12132 /^X\(\/\).*/{ s//\1/; q; } 12133 s/.*/./; q'` 12134 done 12135 test ! -n "$as_dirs" || mkdir $as_dirs 12136 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12137echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12138 { (exit 1); exit 1; }; }; } 12139 12140 ac_builddir=. 12141 12142if test "$ac_dir" != .; then 12143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12144 # A "../" for each directory in $ac_dir_suffix. 12145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12146else 12147 ac_dir_suffix= ac_top_builddir= 12148fi 12149 12150case $srcdir in 12151 .) # No --srcdir option. We are building in place. 12152 ac_srcdir=. 12153 if test -z "$ac_top_builddir"; then 12154 ac_top_srcdir=. 12155 else 12156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12157 fi ;; 12158 [\\/]* | ?:[\\/]* ) # Absolute path. 12159 ac_srcdir=$srcdir$ac_dir_suffix; 12160 ac_top_srcdir=$srcdir ;; 12161 *) # Relative path. 12162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12163 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12164esac 12165 12166# Do not use `cd foo && pwd` to compute absolute paths, because 12167# the directories may not exist. 12168case `pwd` in 12169.) ac_abs_builddir="$ac_dir";; 12170*) 12171 case "$ac_dir" in 12172 .) ac_abs_builddir=`pwd`;; 12173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12174 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12175 esac;; 12176esac 12177case $ac_abs_builddir in 12178.) ac_abs_top_builddir=${ac_top_builddir}.;; 12179*) 12180 case ${ac_top_builddir}. in 12181 .) ac_abs_top_builddir=$ac_abs_builddir;; 12182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12184 esac;; 12185esac 12186case $ac_abs_builddir in 12187.) ac_abs_srcdir=$ac_srcdir;; 12188*) 12189 case $ac_srcdir in 12190 .) ac_abs_srcdir=$ac_abs_builddir;; 12191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12193 esac;; 12194esac 12195case $ac_abs_builddir in 12196.) ac_abs_top_srcdir=$ac_top_srcdir;; 12197*) 12198 case $ac_top_srcdir in 12199 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12202 esac;; 12203esac 12204 12205 12206 12207 if test x"$ac_file" != x-; then 12208 { echo "$as_me:$LINENO: creating $ac_file" >&5 12209echo "$as_me: creating $ac_file" >&6;} 12210 rm -f "$ac_file" 12211 fi 12212 # Let's still pretend it is `configure' which instantiates (i.e., don't 12213 # use $as_me), people would be surprised to read: 12214 # /* config.h. Generated by config.status. */ 12215 if test x"$ac_file" = x-; then 12216 configure_input= 12217 else 12218 configure_input="$ac_file. " 12219 fi 12220 configure_input=$configure_input"Generated from `echo $ac_file_in | 12221 sed 's,.*/,,'` by configure." 12222 12223 # First look for the input files in the build tree, otherwise in the 12224 # src tree. 12225 ac_file_inputs=`IFS=: 12226 for f in $ac_file_in; do 12227 case $f in 12228 -) echo $tmp/stdin ;; 12229 [\\/$]*) 12230 # Absolute (can't be DOS-style, as IFS=:) 12231 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12232echo "$as_me: error: cannot find input file: $f" >&2;} 12233 { (exit 1); exit 1; }; } 12234 echo "$f";; 12235 *) # Relative 12236 if test -f "$f"; then 12237 # Build tree 12238 echo "$f" 12239 elif test -f "$srcdir/$f"; then 12240 # Source tree 12241 echo "$srcdir/$f" 12242 else 12243 # /dev/null tree 12244 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12245echo "$as_me: error: cannot find input file: $f" >&2;} 12246 { (exit 1); exit 1; }; } 12247 fi;; 12248 esac 12249 done` || { (exit 1); exit 1; } 12250_ACEOF 12251cat >>$CONFIG_STATUS <<_ACEOF 12252 sed "$ac_vpsub 12253$extrasub 12254_ACEOF 12255cat >>$CONFIG_STATUS <<\_ACEOF 12256:t 12257/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12258s,@configure_input@,$configure_input,;t t 12259s,@srcdir@,$ac_srcdir,;t t 12260s,@abs_srcdir@,$ac_abs_srcdir,;t t 12261s,@top_srcdir@,$ac_top_srcdir,;t t 12262s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12263s,@builddir@,$ac_builddir,;t t 12264s,@abs_builddir@,$ac_abs_builddir,;t t 12265s,@top_builddir@,$ac_top_builddir,;t t 12266s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12267" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12268 rm -f $tmp/stdin 12269 if test x"$ac_file" != x-; then 12270 mv $tmp/out $ac_file 12271 else 12272 cat $tmp/out 12273 rm -f $tmp/out 12274 fi 12275 12276done 12277_ACEOF 12278cat >>$CONFIG_STATUS <<\_ACEOF 12279 12280# 12281# CONFIG_COMMANDS section. 12282# 12283for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12284 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12285 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12286 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12287$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12288 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12289 X"$ac_dest" : 'X\(//\)$' \| \ 12290 X"$ac_dest" : 'X\(/\)' \| \ 12291 . : '\(.\)' 2>/dev/null || 12292echo X"$ac_dest" | 12293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12294 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12295 /^X\(\/\/\)$/{ s//\1/; q; } 12296 /^X\(\/\).*/{ s//\1/; q; } 12297 s/.*/./; q'` 12298 { if $as_mkdir_p; then 12299 mkdir -p "$ac_dir" 12300 else 12301 as_dir="$ac_dir" 12302 as_dirs= 12303 while test ! -d "$as_dir"; do 12304 as_dirs="$as_dir $as_dirs" 12305 as_dir=`(dirname "$as_dir") 2>/dev/null || 12306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12307 X"$as_dir" : 'X\(//\)[^/]' \| \ 12308 X"$as_dir" : 'X\(//\)$' \| \ 12309 X"$as_dir" : 'X\(/\)' \| \ 12310 . : '\(.\)' 2>/dev/null || 12311echo X"$as_dir" | 12312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12313 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12314 /^X\(\/\/\)$/{ s//\1/; q; } 12315 /^X\(\/\).*/{ s//\1/; q; } 12316 s/.*/./; q'` 12317 done 12318 test ! -n "$as_dirs" || mkdir $as_dirs 12319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12320echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12321 { (exit 1); exit 1; }; }; } 12322 12323 ac_builddir=. 12324 12325if test "$ac_dir" != .; then 12326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12327 # A "../" for each directory in $ac_dir_suffix. 12328 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12329else 12330 ac_dir_suffix= ac_top_builddir= 12331fi 12332 12333case $srcdir in 12334 .) # No --srcdir option. We are building in place. 12335 ac_srcdir=. 12336 if test -z "$ac_top_builddir"; then 12337 ac_top_srcdir=. 12338 else 12339 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12340 fi ;; 12341 [\\/]* | ?:[\\/]* ) # Absolute path. 12342 ac_srcdir=$srcdir$ac_dir_suffix; 12343 ac_top_srcdir=$srcdir ;; 12344 *) # Relative path. 12345 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12346 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12347esac 12348 12349# Do not use `cd foo && pwd` to compute absolute paths, because 12350# the directories may not exist. 12351case `pwd` in 12352.) ac_abs_builddir="$ac_dir";; 12353*) 12354 case "$ac_dir" in 12355 .) ac_abs_builddir=`pwd`;; 12356 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12357 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12358 esac;; 12359esac 12360case $ac_abs_builddir in 12361.) ac_abs_top_builddir=${ac_top_builddir}.;; 12362*) 12363 case ${ac_top_builddir}. in 12364 .) ac_abs_top_builddir=$ac_abs_builddir;; 12365 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12366 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12367 esac;; 12368esac 12369case $ac_abs_builddir in 12370.) ac_abs_srcdir=$ac_srcdir;; 12371*) 12372 case $ac_srcdir in 12373 .) ac_abs_srcdir=$ac_abs_builddir;; 12374 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12375 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12376 esac;; 12377esac 12378case $ac_abs_builddir in 12379.) ac_abs_top_srcdir=$ac_top_srcdir;; 12380*) 12381 case $ac_top_srcdir in 12382 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12383 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12384 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12385 esac;; 12386esac 12387 12388 12389 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12390echo "$as_me: executing $ac_dest commands" >&6;} 12391 case $ac_dest in 12392 Tk.framework ) n=Tk && 12393 f=$n.framework && v=Versions/$VERSION && 12394 rm -rf $f && mkdir -p $f/$v/Resources && 12395 ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v && 12396 ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist && 12397 if test $tk_aqua = yes; then ln -s ../../../../$n.rsrc $f/$v/Resources; fi && 12398 unset n f v 12399 ;; 12400 esac 12401done 12402_ACEOF 12403 12404cat >>$CONFIG_STATUS <<\_ACEOF 12405 12406{ (exit 0); exit 0; } 12407_ACEOF 12408chmod +x $CONFIG_STATUS 12409ac_clean_files=$ac_clean_files_save 12410 12411 12412# configure is writing to config.log, and then calls config.status. 12413# config.status does its own redirection, appending to config.log. 12414# Unfortunately, on DOS this fails, as config.log is still kept open 12415# by configure, so config.status won't be able to write to it; its 12416# output is simply discarded. So we exec the FD to /dev/null, 12417# effectively closing config.log, so it can be properly (re)opened and 12418# appended to by config.status. When coming back to configure, we 12419# need to make the FD available again. 12420if test "$no_create" != yes; then 12421 ac_cs_success=: 12422 ac_config_status_args= 12423 test "$silent" = yes && 12424 ac_config_status_args="$ac_config_status_args --quiet" 12425 exec 5>/dev/null 12426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12427 exec 5>>config.log 12428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12429 # would make configure fail if this is the last instruction. 12430 $ac_cs_success || { (exit 1); exit 1; } 12431fi 12432 12433